:root {
  --ivory: #f6efe4;
  --paper: #fcf8f2;
  --plum: #4a0f1f;
  --plum-2: #6b1d2f;
  --plum-3: #9a3a4e;
  --gold: #c29d4f;
  --gold-2: #e2c98f;
  --gele: #4f8a5b;
  --ink: #2a1518;
  --muted: #7a6366;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --script: 'Pinyon Script', cursive;
  --sans: 'Jost', system-ui, sans-serif;
  --ease: cubic-bezier(.22, .7, .18, 1);
  /* The concentric rings from their matching ankara */
  --ankara: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='150' height='150' viewBox='0 0 150 150'%3E%3Cg fill='none' stroke='%23c29d4f'%3E%3Ccircle cx='75' cy='75' r='54' stroke-width='7' stroke-opacity='.42'/%3E%3Ccircle cx='75' cy='75' r='42' stroke-width='1.2' stroke-opacity='.5' stroke-dasharray='2 4'/%3E%3Ccircle cx='75' cy='75' r='31' stroke-width='5' stroke-opacity='.4'/%3E%3Ccircle cx='75' cy='75' r='17' stroke-width='1.5' stroke-opacity='.5'/%3E%3Ccircle cx='0' cy='0' r='16' stroke-width='3' stroke-opacity='.32'/%3E%3Ccircle cx='150' cy='0' r='16' stroke-width='3' stroke-opacity='.32'/%3E%3Ccircle cx='0' cy='150' r='16' stroke-width='3' stroke-opacity='.32'/%3E%3Ccircle cx='150' cy='150' r='16' stroke-width='3' stroke-opacity='.32'/%3E%3C/g%3E%3Ccircle cx='75' cy='75' r='6' fill='%23c29d4f' fill-opacity='.5'/%3E%3Cg fill='%23c29d4f' fill-opacity='.3'%3E%3Crect x='71' y='2' width='8' height='3' rx='1'/%3E%3Crect x='71' y='145' width='8' height='3' rx='1'/%3E%3Crect x='2' y='71' width='3' height='8' rx='1'/%3E%3Crect x='145' y='71' width='3' height='8' rx='1'/%3E%3C/g%3E%3C/svg%3E");
  color-scheme: light;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; overflow-x: hidden; }
@supports (overflow: clip) { html, body { overflow-x: clip; } }
body {
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.locked { overflow: hidden; height: 100vh; height: 100dvh; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
em { font-style: italic; }

.grain {
  position: fixed; inset: 0; z-index: 200; pointer-events: none; opacity: .07; mix-blend-mode: multiply;
  background-image: 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='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Shared type ---------- */
.tri {
  font-family: var(--sans); font-size: 11.5px; font-weight: 400; letter-spacing: .3em; text-transform: uppercase;
  color: var(--gold); display: flex; align-items: center; justify-content: center; gap: 14px;
}
.tri::before, .tri::after { content: ''; width: 28px; height: 1px; background: currentColor; opacity: .55; }
.script { font-family: var(--script); font-weight: 400; color: var(--plum); font-size: clamp(46px, 12.5vw, 86px); line-height: 1.15; margin-top: 10px; }
.big-serif { font-weight: 300; font-size: clamp(26px, 6.6vw, 40px); line-height: 1.32; color: var(--plum); }
.soft { color: var(--muted); max-width: 32em; margin: 18px auto 0; }

.reveal { opacity: 0; transform: translateY(28px); filter: blur(8px);
  transition: opacity 1.5s var(--ease), transform 1.5s var(--ease), filter 1.5s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; filter: blur(0); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--sans); font-size: 13px; letter-spacing: .08em; text-decoration: none;
  padding: 11px 17px; border-radius: 999px; border: 1px solid rgba(74, 15, 31, .35); color: var(--plum);
  transition: background .4s, color .4s, border-color .4s;
}
.btn:hover { border-color: var(--plum); }
.btn.primary { background: var(--plum); color: var(--paper); border-color: var(--plum); }
.btn.wide { width: 100%; padding: 17px; font-size: 14px; }
.btn svg { width: 15px; height: 15px; }

/* ---------- Cover ---------- */
.cover { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; text-align: center; color: var(--gold-2); }
.curtain {
  position: absolute; top: 0; bottom: 0; width: 50.2%;
  background-color: var(--plum); background-image: var(--ankara); background-size: 150px 150px;
  transition: transform 2.4s cubic-bezier(.65, 0, .25, 1) .55s;
}
.curtain.left { left: 0; background-position: 0 0; border-right: 1px solid rgba(226, 201, 143, .45); box-shadow: inset -40px 0 70px rgba(0, 0, 0, .28); }
.curtain.right { right: 0; background-position: calc(-50vw) 0; border-left: 1px solid rgba(226, 201, 143, .45); box-shadow: inset 40px 0 70px rgba(0, 0, 0, .28); }
.cover-vignette { position: absolute; inset: 0; background: radial-gradient(ellipse 70% 60% at 50% 48%, rgba(48, 10, 20, .92) 0%, rgba(48, 10, 20, .7) 45%, rgba(22, 4, 9, .35) 100%); transition: opacity 1.2s; }
.dust { position: absolute; inset: 0; width: 100%; height: 100%; transition: opacity 1.2s; }
.cover-inner { position: relative; z-index: 2; padding: 24px; max-width: 520px; transition: opacity 1s var(--ease), transform 1.2s var(--ease), filter 1s; }
.greet { font-style: italic; font-size: 19px; letter-spacing: .02em; color: var(--gold-2); }
.greet span { opacity: .5; margin: 0 6px; }
.dear { font-family: var(--script); font-size: 38px; color: var(--paper); margin-top: 26px; line-height: 1.2; }
.lead { font-style: italic; font-weight: 300; font-size: 19px; color: rgba(252, 248, 242, .78); margin-top: 6px; }
.cover-names { font-family: var(--script); font-weight: 400; font-size: clamp(66px, 20vw, 118px); line-height: 1.05; color: var(--paper); margin: 14px 0 34px; }
.cover-names em { font-style: normal; color: var(--gold-2); font-size: .6em; vertical-align: middle; }

.seal {
  position: relative; width: 124px; height: 124px; margin: 0 auto; display: grid; place-items: center;
  border-radius: 49% 51% 48% 52% / 52% 48% 52% 48%;
  background: radial-gradient(circle at 36% 30%, #f1dca6 0%, #d7b46a 32%, #b88f41 64%, #8d6a2b 100%);
  box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .6), inset 0 -6px 14px rgba(80, 45, 10, .35), inset 0 4px 10px rgba(255, 240, 200, .5);
  animation: breathe 4.5s ease-in-out infinite;
  transition: transform 1s var(--ease), opacity .9s;
}
.seal svg { width: 100%; height: 100%; }
.seal::before, .seal::after {
  content: ''; position: absolute; inset: -2px; border-radius: 50%; border: 1px solid rgba(226, 201, 143, .55);
  animation: ripple 4.5s ease-out infinite; pointer-events: none;
}
.seal::after { animation-delay: 2.25s; }
.hint { font-family: var(--sans); font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: rgba(226, 201, 143, .75); margin-top: 26px; animation: fadePulse 3.6s ease-in-out infinite; }

@keyframes breathe { 50% { transform: scale(1.045); } }
@keyframes ripple { from { transform: scale(1); opacity: .9; } to { transform: scale(2.4); opacity: 0; } }
@keyframes fadePulse { 50% { opacity: .45; } }

body.opening .seal { transform: scale(1.7); opacity: 0; animation: none; }
body.opening .cover-inner { opacity: 0; transform: scale(.97); filter: blur(6px); transition-delay: .15s; }
body.opening .cover-vignette, body.opening .dust { opacity: 0; }
body.opening .curtain.left { transform: translateX(-101%); }
body.opening .curtain.right { transform: translateX(101%); }

/* ---------- Hero ---------- */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 580px; overflow: hidden; color: var(--paper); background: var(--plum); }
.hero-media, .hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-media img { object-fit: cover; object-position: 50% 22%; transform: scale(1.16); transition: transform 10s cubic-bezier(.2, .6, .2, 1); }
body.opened .hero-media img { transform: scale(1.02); }
.hero-veil { position: absolute; inset: 0; background: linear-gradient(to top, rgba(42, 8, 18, .95) 0%, rgba(42, 8, 18, .62) 30%, rgba(42, 8, 18, 0) 58%), linear-gradient(to bottom, rgba(42, 8, 18, .35), rgba(42, 8, 18, 0) 22%); }
.hero-text { position: absolute; left: 0; right: 0; bottom: max(96px, 12vh); text-align: center; padding: 0 20px; }
.kicker { font-family: var(--sans); font-size: 11.5px; letter-spacing: .34em; text-transform: uppercase; color: var(--gold-2); }
.hero-names { font-family: var(--script); font-weight: 400; font-size: clamp(64px, 18vw, 128px); line-height: 1.08; margin-top: 6px; }
.hero-names span { color: var(--gold-2); font-size: .62em; vertical-align: middle; }
.full { font-style: italic; font-weight: 300; font-size: 18px; color: rgba(252, 248, 242, .82); }
.full i { color: var(--gold-2); margin: 0 6px; font-style: normal; }
.dates { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 18px; font-weight: 300; font-size: 44px; line-height: 1; }
.dates i { width: 1px; height: 30px; background: var(--gold-2); opacity: .6; }
.month { font-family: var(--sans); font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: var(--gold-2); margin-top: 12px; }
.rise { opacity: 0; transform: translateY(22px); transition: opacity 1.8s var(--ease), transform 1.8s var(--ease); transition-delay: calc(var(--d, 0s) + .9s); }
body.opened .rise { opacity: 1; transform: none; }
/* "Swipe up": a clear, tappable cue that there is more below */
.scroll-cue {
  position: fixed; z-index: 40; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom)); transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 6px 18px 8px; border-radius: 999px;
  font-family: var(--sans); font-size: 10.5px; letter-spacing: .28em; text-transform: uppercase; color: var(--gold-2);
  background: rgba(42, 8, 18, .38); border: 1px solid rgba(226, 201, 143, .4);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  opacity: 0; pointer-events: none; transition: opacity .7s var(--ease);
  box-shadow: 0 8px 24px -10px rgba(42, 8, 18, .6);
}
.scroll-cue svg { width: 20px; height: 20px; animation: cue 1.6s ease-in-out infinite; }
.scroll-cue.show { opacity: 1; pointer-events: auto; }
@keyframes cue { 0%, 100% { transform: translateY(3px); opacity: .7; } 50% { transform: translateY(-4px); opacity: 1; } }

/* ---------- Countdown ---------- */
.count { position: relative; padding: 110px 20px 96px; text-align: center; overflow: hidden; }
.rings { position: absolute; left: 50%; top: 50%; width: 560px; height: 560px; margin: -280px 0 0 -280px; color: var(--gold); opacity: .12; animation: spin 140s linear infinite; pointer-events: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.clock { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); max-width: 520px; margin: 26px auto 0; }
.clock div { display: flex; flex-direction: column; align-items: center; }
.clock div + div { border-left: 1px solid rgba(194, 157, 79, .35); }
.clock b { font-weight: 300; font-size: clamp(40px, 12vw, 70px); line-height: 1; color: var(--plum); font-variant-numeric: lining-nums tabular-nums; }
.clock small { font-family: var(--sans); font-size: 10.5px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); margin-top: 10px; }
.count-sub { position: relative; font-style: italic; color: var(--muted); margin-top: 26px; }

/* ---------- Prayer ---------- */
.prayer { padding: 40px 24px 110px; text-align: center; max-width: 760px; margin: 0 auto; }
.prayer .big-serif { margin-top: 22px; }

/* ---------- Story ---------- */
.story { position: relative; max-width: 1100px; margin: 0 auto; padding: 30px 20px 0 60px; }
.threads { position: absolute; left: 0; top: 0; width: 100%; pointer-events: none; overflow: visible; }
.threads path { fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.threads .t1 { stroke: var(--plum-3); }
.threads .t2 { stroke: var(--gold); }
.story > *:not(.threads) { position: relative; }
.story-head { text-align: center; margin: 0 0 56px -40px; }
.beat { margin-bottom: 64px; }
.beat p { margin-top: 24px; font-size: 21px; line-height: 1.55; }
.beat em { color: var(--plum-2); }
.arch { border-radius: 999px 999px 18px 18px; overflow: hidden; aspect-ratio: 4 / 5; background: #e9dfd1; box-shadow: 0 34px 60px -36px rgba(74, 15, 31, .55); }
.arch img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; transform: scale(1.1); transition: transform 2.8s var(--ease); }
.reveal.in .arch img { transform: scale(1); }

.score {
  max-width: 300px; margin: 0 auto 64px; padding: 50px 24px 20px; text-align: center;
  background: var(--paper); border: 1px solid rgba(194, 157, 79, .45); border-radius: 16px;
  box-shadow: 0 20px 40px -30px rgba(74, 15, 31, .5);
}
.round { font-family: var(--sans); font-size: 10.5px; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); padding-bottom: 12px; border-bottom: 1px dashed rgba(194, 157, 79, .5); }
.who { font-family: var(--script); font-size: 46px; color: var(--plum); line-height: 1.2; margin-top: 10px; }
.how { font-style: italic; font-size: 17px; color: var(--muted); }
.stamp {
  position: absolute; left: 50%; top: -37px; margin-left: -37px; width: 74px; height: 74px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--sans); font-size: 10px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--gold);
  background: var(--paper); border: 3px double var(--gold);
  transform: rotate(-12deg) scale(1.5); opacity: 0; transition: transform .55s cubic-bezier(.3, 1.6, .5, 1) 1s, opacity .3s 1s;
}
.score.in .stamp { transform: rotate(-12deg) scale(1); opacity: 1; }
.story .beat + .score { margin-top: 70px; }

.pull { text-align: center; margin: 20px 0 0 -40px; }
.pull p { font-family: var(--script); font-size: clamp(42px, 11.5vw, 80px); line-height: 1.18; color: var(--plum); }
.pull cite { display: block; font-style: italic; font-size: 22px; color: var(--muted); margin-top: 18px; }
.knot-space { height: 300px; }

@media (min-width: 820px) {
  .story { padding: 60px 40px 0; }
  .story-head, .pull { margin-left: 0; }
  .beat { width: calc(50% - 80px); margin-bottom: 40px; }
  .beat.right { margin-left: auto; }
  .score { margin: 0 auto 40px; }
  .knot-space { height: 340px; }
}

/* ---------- Journey ---------- */
.journey { padding: 120px 18px 90px; text-align: center; background: linear-gradient(var(--ivory), var(--paper) 40%, var(--ivory)); }
#events { margin-top: 30px; }
.event {
  display: grid; grid-template-columns: 88px 1fr; text-align: left; max-width: 640px; margin: 0 auto 22px;
  background: var(--paper); border: 1px solid rgba(194, 157, 79, .38); border-radius: 22px; overflow: hidden;
  box-shadow: 0 26px 50px -38px rgba(74, 15, 31, .55);
}
.ev-date {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 20px 4px;
  background-color: var(--plum); background-image: var(--ankara); background-size: 110px; color: var(--gold-2); text-align: center;
}
.ev-date small { font-family: var(--sans); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; }
.ev-date b { font-weight: 300; font-size: 52px; line-height: .9; color: var(--paper); }
.ev-body { padding: 22px 20px 20px; }
.ev-body h3 { font-weight: 500; font-size: 27px; line-height: 1.15; color: var(--plum); }
.ev-kind { font-family: var(--sans); font-size: 10.5px; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); margin-bottom: 2px; }
.ev-note { margin-top: 8px; font-style: italic; font-size: 18px; line-height: 1.45; color: var(--muted); }
.place { margin-top: 14px; }
.place .lbl { font-family: var(--sans); font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.place .nm { font-size: 20px; font-weight: 500; line-height: 1.3; margin-top: 2px; }
.place .ad { font-size: 17px; line-height: 1.4; color: var(--muted); }
.place a { display: inline-block; margin-top: 6px; font-family: var(--sans); font-size: 12.5px; letter-spacing: .06em; color: var(--plum-2); text-underline-offset: 3px; }
.dress { display: flex; align-items: center; gap: 12px; margin-top: 16px; padding-top: 14px; border-top: 1px dashed rgba(194, 157, 79, .5); font-size: 17px; line-height: 1.35; }
.swatches { display: flex; flex: none; gap: 5px; }
.sw { width: 22px; height: 22px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(42, 21, 24, .14), 0 0 0 1px var(--paper), 0 0 0 2px rgba(194, 157, 79, .55); }
.sw.ankara { background-color: var(--plum); background-image: var(--ankara); background-size: 30px; }
.sw.lace { background: radial-gradient(circle, rgba(42, 21, 24, .18) 1.2px, transparent 1.6px) 0 0 / 6px 6px, #fff; }
.ev-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }

/* ---------- Moments ---------- */
.moments { padding: 110px 0 100px; text-align: center; background: var(--plum); color: var(--paper); overflow: hidden; }
.moments .script { color: var(--paper); margin-bottom: 34px; }
.marquee { overflow: hidden; margin-top: 14px; }
.track { display: flex; width: max-content; animation: drift var(--dur, 80s) linear infinite; }
.marquee.rev .track { animation-direction: reverse; }
.marquee:hover .track, .marquee:active .track { animation-play-state: paused; }
.track button { flex: none; margin-right: 14px; border-radius: 16px; overflow: hidden; cursor: zoom-in; }
.track img { height: clamp(210px, 58vw, 360px); width: auto; aspect-ratio: 2 / 3; object-fit: cover; }
@keyframes drift { to { transform: translateX(-50%); } }

.lightbox { position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; padding: 20px; background: rgba(28, 6, 12, .93); opacity: 0; pointer-events: none; transition: opacity .6s; cursor: zoom-out; }
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox img { max-width: 100%; max-height: 88vh; border-radius: 14px; transform: scale(.96); transition: transform .6s var(--ease); }
.lightbox.open img { transform: none; }

/* ---------- RSVP ---------- */
.rsvp { padding: 120px 20px 110px; text-align: center; }
#rsvp-form { max-width: 520px; margin: 34px auto 0; text-align: left; display: grid; gap: 26px; }
.field { display: grid; gap: 8px; border: 0; }
.field[hidden] { display: none; }
.field > span, .field legend, .field .lbl { font-family: var(--sans); font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.field legend { margin-bottom: 10px; }
.field i { text-transform: none; letter-spacing: 0; font-style: italic; }
.field input, .field textarea {
  font: inherit; font-size: 21px; color: var(--ink); width: 100%; padding: 8px 2px 10px;
  background: transparent; border: 0; border-bottom: 1px solid rgba(74, 15, 31, .28); border-radius: 0; outline: none; resize: vertical;
  transition: border-color .4s;
}
.field input:focus, .field textarea:focus { border-color: var(--plum); }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { position: relative; }
.pill input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.pill span { display: inline-block; padding: 11px 18px; border-radius: 999px; border: 1px solid rgba(74, 15, 31, .28); font-family: var(--sans); font-size: 14px; transition: background .4s, color .4s, border-color .4s; }
.pill input:checked + span { background: var(--plum); border-color: var(--plum); color: var(--paper); }
.pill input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.when-yes { transition: opacity .6s; }
#rsvp-form.no .when-yes { display: none; }
.form-msg { font-style: italic; color: #9a3b3b; min-height: 0; }
.form-msg:empty { display: none; }
.thanks { max-width: 560px; margin: 34px auto 0; }
.thanks .big-serif { margin-top: 18px; }
.link-btn { margin-top: 22px; font-family: var(--sans); font-size: 13px; letter-spacing: .06em; color: var(--plum-2); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Closing ---------- */
.closing { position: relative; min-height: 100vh; min-height: 100svh; display: grid; align-items: end; overflow: hidden; color: var(--paper); text-align: center; background: var(--plum); }
.closing > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; }
.closing-veil { position: absolute; inset: 0; background: linear-gradient(to top, rgba(42, 8, 18, .97) 0%, rgba(42, 8, 18, .8) 42%, rgba(42, 8, 18, .1) 75%); }
.closing-text { position: relative; padding: 0 24px 90px; max-width: 700px; margin: 0 auto; }
.closing .tri { color: var(--gold-2); }
.closing .big-serif { color: var(--paper); margin: 20px 0 30px; font-size: clamp(24px, 6vw, 36px); }
.with { font-style: italic; color: rgba(252, 248, 242, .8); }
.sign { font-family: var(--script); font-size: clamp(54px, 15vw, 96px); line-height: 1.1; margin-bottom: 28px; }
.foot { background: #2a0812; color: rgba(226, 201, 143, .7); text-align: center; padding: 26px 20px calc(26px + env(safe-area-inset-bottom)); font-family: var(--sans); font-size: 11px; letter-spacing: .3em; text-transform: uppercase; }

/* ---------- Music ---------- */
.music {
  position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 90; width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center; background-color: var(--plum); background-image: var(--ankara); background-size: 52px;
  border: 1px solid rgba(226, 201, 143, .55); box-shadow: 0 12px 30px -10px rgba(42, 8, 18, .7);
}
.bars { display: flex; align-items: flex-end; gap: 3px; height: 16px; }
.bars i { width: 3px; height: 100%; background: var(--gold-2); border-radius: 2px; transform-origin: bottom; transform: scaleY(.3); }
.music.playing .bars i { animation: eq 1.1s ease-in-out infinite; }
.music.playing .bars i:nth-child(2) { animation-delay: .25s; }
.music.playing .bars i:nth-child(3) { animation-delay: .5s; }
.music.playing .bars i:nth-child(4) { animation-delay: .12s; }
@keyframes eq { 50% { transform: scaleY(1); } }
.now-playing {
  position: fixed; right: 78px; bottom: calc(28px + env(safe-area-inset-bottom)); z-index: 90; padding: 7px 14px; border-radius: 999px;
  background: rgba(42, 8, 18, .88); color: var(--gold-2); font-family: var(--sans); font-size: 12px; letter-spacing: .04em; white-space: nowrap;
  opacity: 0; transform: translateX(8px); transition: opacity .8s, transform .8s var(--ease); pointer-events: none;
}
.now-playing.show { opacity: 1; transform: none; }

/* ---------- Soft seams between dark and light sections ---------- */
.count { padding-top: 190px; }
.count::before, .moments::before, .moments::after, .closing::before {
  content: ''; position: absolute; left: 0; right: 0; height: 170px; pointer-events: none; z-index: 1;
}
.count::before {
  top: 0;
  background: linear-gradient(to bottom, rgba(42, 8, 18, 1) 0%, rgba(42, 8, 18, .74) 18%, rgba(42, 8, 18, .5) 33%, rgba(42, 8, 18, .3) 49%, rgba(42, 8, 18, .15) 64%, rgba(42, 8, 18, .05) 80%, rgba(42, 8, 18, 0) 100%);
}
.moments { position: relative; padding: 170px 0 180px; }
.moments > * { position: relative; z-index: 2; }
.moments::before {
  top: 0;
  background: linear-gradient(to bottom, rgba(246, 239, 228, 1) 0%, rgba(246, 239, 228, .74) 18%, rgba(246, 239, 228, .5) 33%, rgba(246, 239, 228, .3) 49%, rgba(246, 239, 228, .15) 64%, rgba(246, 239, 228, .05) 80%, rgba(246, 239, 228, 0) 100%);
}
.moments::after {
  bottom: 0;
  background: linear-gradient(to top, rgba(246, 239, 228, 1) 0%, rgba(246, 239, 228, .74) 18%, rgba(246, 239, 228, .5) 33%, rgba(246, 239, 228, .3) 49%, rgba(246, 239, 228, .15) 64%, rgba(246, 239, 228, .05) 80%, rgba(246, 239, 228, 0) 100%);
}
.closing::before {
  top: 0; height: 200px;
  background: linear-gradient(to bottom, rgba(246, 239, 228, 1) 0%, rgba(246, 239, 228, .74) 18%, rgba(246, 239, 228, .5) 33%, rgba(246, 239, 228, .3) 49%, rgba(246, 239, 228, .15) 64%, rgba(246, 239, 228, .05) 80%, rgba(246, 239, 228, 0) 100%);
}
.closing-text { z-index: 2; }

/* ---------- Veil: the second layer, lifts by itself ---------- */
.veil {
  position: fixed; inset: 0; z-index: 99; display: grid; place-items: center; text-align: center; padding: 24px;
  background:
    radial-gradient(circle, rgba(194, 157, 79, .17) 1px, transparent 1.7px) 0 0 / 14px 14px,
    radial-gradient(ellipse 80% 65% at 50% 45%, #fdfaf4 0%, #f3eadc 100%);
  box-shadow: 0 30px 70px rgba(42, 8, 18, .3);
  transition: transform 2.2s cubic-bezier(.7, 0, .2, 1);
}
.veil::before { content: ''; position: absolute; inset: 0; background-image: var(--ankara); background-size: 150px; opacity: .1; pointer-events: none; }
/* Scalloped lace hem, seen as the veil rises */
.veil::after {
  content: ''; position: absolute; left: 0; right: 0; top: 100%; height: 13px;
  background: radial-gradient(circle at 12px 0, #f3eadc 11px, rgba(194, 157, 79, .45) 11.6px, transparent 12.4px) 0 0 / 24px 13px repeat-x;
}
.veil-inner { position: relative; transition: transform 1.6s var(--ease), opacity 1.2s; }
.veil .tri { color: var(--gold); }
.vrings { display: block; width: 190px; margin: 22px auto 8px; overflow: visible; }
.vr { fill: none; stroke-width: 2.2; stroke-dasharray: 277; stroke-dashoffset: 277; transform-box: fill-box; transform-origin: center; }
.vr1 { stroke: var(--plum-3); transform: rotate(180deg); }
.vr2 { stroke: var(--gold); }
.vlink { opacity: 0; }
.vlink path { fill: none; stroke-linecap: butt; }
.vlink .halo { stroke: #fbf6ee; stroke-width: 7; }
.vlink .over { stroke: var(--plum-3); stroke-width: 2.2; }
.veil-names { font-family: var(--script); font-size: clamp(58px, 16vw, 96px); line-height: 1.1; color: var(--plum); }
.veil-names em { font-style: normal; color: var(--gold); font-size: .6em; vertical-align: middle; }
.veil-lead { font-style: italic; font-weight: 300; font-size: 21px; color: var(--muted); }
.veil-dates { font-family: var(--sans); font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: var(--plum-2); margin-top: 16px; }
.veil .v1, .veil .v2, .veil .v3, .veil .v4 { opacity: 0; }

body.opening .veil .v1 { animation: veilIn 1.4s var(--ease) 1.3s forwards; }
body.opening .vr1 { animation: draw 1.7s cubic-bezier(.45, 0, .25, 1) 1.5s forwards; }
body.opening .vr2 { animation: draw 1.7s cubic-bezier(.45, 0, .25, 1) 1.9s forwards; }
body.opening .vlink { animation: fadeOn .5s ease 3.5s forwards; }
body.opening .veil .v2 { animation: veilIn 1.6s var(--ease) 2.5s forwards; }
body.opening .veil .v3 { animation: veilIn 1.4s var(--ease) 3.1s forwards; }
body.opening .veil .v4 { animation: veilIn 1.4s var(--ease) 3.5s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fadeOn { to { opacity: 1; } }
@keyframes veilIn { from { opacity: 0; transform: translateY(14px); filter: blur(5px); } to { opacity: 1; transform: none; filter: blur(0); } }

.veil.lift { transform: translateY(calc(-100% - 30px)); }
.veil.lift .veil-inner { transform: translateY(-40px); opacity: 0; }

/* ---------- Phone spacing fixes ---------- */
.moments > .tri, .moments > .script { padding: 0 20px; }
.veil .tri { gap: 10px; letter-spacing: .2em; white-space: nowrap; }
.veil .tri::before, .veil .tri::after { width: 16px; }
.hero-veil {
  background:
    linear-gradient(to top, rgba(42, 8, 18, .96) 0%, rgba(42, 8, 18, .84) 24%, rgba(42, 8, 18, .6) 42%, rgba(42, 8, 18, .25) 58%, rgba(42, 8, 18, 0) 72%),
    linear-gradient(to bottom, rgba(42, 8, 18, .35), rgba(42, 8, 18, 0) 22%);
}
/* Music control: small, top-right, steps back while scrolling */
.music {
  top: calc(12px + env(safe-area-inset-top)); bottom: auto; right: 12px; width: 42px; height: 42px; background-size: 42px;
  transition: opacity .5s;
}
.music .bars { height: 13px; gap: 2.5px; }
body.scrolling .music { opacity: .25; }
.now-playing { top: calc(23px + env(safe-area-inset-top)); bottom: auto; right: 62px; }

/* ---------- Verse: Two is better than one ---------- */
.verse { padding: 20px 24px 110px; text-align: center; }
.verse-rings { width: 92px; display: block; margin: 0 auto 6px; fill: none; stroke-width: 1.4; }
.verse-rings circle:first-child { stroke: var(--plum-3); }
.verse-rings circle:last-child { stroke: var(--gold); }
.verse-text { font-family: var(--script); font-size: clamp(46px, 12.5vw, 84px); line-height: 1.15; color: var(--plum); margin-bottom: 14px; }

/* ---------- Short invitation (?b=1): just the essentials ---------- */
.brief .count, .brief .verse, .brief .story, .brief .moments { display: none; }

/* Full names: one per line on phones */
.hero .full span { white-space: nowrap; }
@media (max-width: 560px) {
  .hero .full span { display: block; }
  .hero .full i { display: none; }
}

@media (max-width: 420px) { #thanks .tri { letter-spacing: .2em; } }
