/* ============================================================
   Kasalang Michael Jan at Krystel Ann — styles.css
   Modern, minimalist, old-money · dusty navy on butter cream
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  /* Backgrounds */
  --butter-cream:  #F8F3E6;
  --paper:         #FDFBF7;
  --paper-alt:     #F5EFE2;
  /* Accents */
  --butter-yellow: #E6D39A;
  --dusty-blue:    #7D94B8;
  --dusty-navy:    #43537A;
  /* Typography */
  --ink:           #2B3550;
  --muted-text:    #66708A;
  /* Borders & UI */
  --soft-line:     rgba(67,83,122,0.16);
  --soft-border:   rgba(67,83,122,0.10);
  /* Interactive */
  --link:            var(--dusty-navy);
  --link-hover:      var(--dusty-blue);
  --button-bg:       var(--dusty-navy);
  --button-text:     #FFFFFF;
  --button-hover:    #52658D;
  --button-alt-bg:   var(--paper);
  --button-alt-text: var(--dusty-navy);
  --button-alt-hover:#F3EBD9;
  /* Highlights */
  --selection:     rgba(230,211,154,0.45);

  --font-script: 'Pinyon Script', 'EB Garamond', cursive;
  --font-serif:  'Cinzel', 'EB Garamond', serif;
  --font-body:   'EB Garamond', Georgia, serif;

  --content-max: 640px;
  --pad-x: 24px;
  --ease: cubic-bezier(.33,.66,.4,1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
html, body { overflow-x: hidden; }

body {
  margin: 0;
  background: var(--butter-cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Fixed, site-wide wallpaper. A cream veil is layered over the pattern (set in JS
   from WALLPAPER_TINT) so it stays subtle and low-contrast behind the panels.
   Using a fixed element rather than background-attachment:fixed avoids mobile jank. */
.site-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-color: var(--butter-cream);
  background-repeat: repeat;
  background-position: center;
}

::selection { background: var(--selection); }

h1, h2, h3 { color: var(--dusty-navy); font-weight: 400; margin: 0; }

a { color: var(--link); transition: color .2s var(--ease); }
a:hover { color: var(--link-hover); }

img { max-width: 100%; display: block; }

:focus-visible {
  outline: 2px solid var(--dusty-blue);
  outline-offset: 3px;
}

.muted { color: var(--muted-text); }

/* ---------- Monogram (image with text fallback) ---------- */
.monogram-img { width: 72px; height: auto; margin-inline: auto; }
.monogram-img.is-missing { display: none; }
.monogram-text {
  display: none;
  font-family: var(--font-serif);
  font-size: 2rem;
  letter-spacing: .08em;
  color: var(--dusty-navy);
}
.monogram-text em { font-style: italic; color: var(--dusty-blue); }
.monogram-img.is-missing + .monogram-text,
.monogram-img.is-missing ~ .monogram-text { display: inline-block; }

/* ---------- Loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 100;
  background: var(--butter-cream);
  display: grid; place-items: center;
  opacity: 1;
  transition: opacity .6s var(--ease), visibility .6s;
}
.loader.is-done { opacity: 0; visibility: hidden; }
.loader-mark { text-align: center; animation: loaderPulse 1.6s var(--ease) infinite alternate; }
.loader-mark .monogram-img { width: 140px; }
.loader-mark .monogram-text { font-size: 3.6rem; }
@keyframes loaderPulse { from { opacity: .35; } to { opacity: 1; } }

/* ---------- Sticky nav ---------- */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px clamp(24px, 4vw, 44px);
  /* visible from the very top so guests notice it immediately */
  background: rgba(248,243,230,0.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--soft-border);
  transition: background .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.site-nav.is-scrolled {
  background: rgba(248,243,230,0.94);
  box-shadow: 0 6px 24px -18px rgba(43,53,80,0.5);
}
.nav-mark {
  font-family: var(--font-serif);
  font-size: 1.45rem; letter-spacing: .1em;
  text-decoration: none; color: var(--dusty-navy);
  display: flex; align-items: center;
}
.nav-mark-img { height: 40px; width: auto; display: block; }
.nav-mark-img.is-missing { display: none; }
.nav-mark-text { display: none; }
.nav-mark-img.is-missing + .nav-mark-text { display: inline-block; }
.nav-mark em { font-style: italic; color: var(--dusty-blue); }

.nav-links { display: flex; gap: 30px; }
.nav-links a {
  font-size: .92rem; text-transform: uppercase; letter-spacing: .18em;
  text-decoration: none; color: var(--dusty-navy);
  padding: 4px 0;
  position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 1px; background: var(--dusty-blue);
  transform: scaleX(0); transform-origin: center;
  transition: transform .25s var(--ease);
}
.nav-links a:hover { color: var(--dusty-blue); }
.nav-links a:hover::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  background: none; border: 0; cursor: pointer;
  width: 48px; height: 48px; padding: 12px;
  flex-direction: column; justify-content: center; gap: 8px;
}
.nav-toggle span {
  display: block; height: 2px; border-radius: 2px; background: var(--dusty-navy);
  transition: transform .25s var(--ease), opacity .25s;
}
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-5px) rotate(-45deg); }

.nav-overlay {
  position: fixed; inset: 0; z-index: 40;
  background: var(--butter-cream);
  display: grid; place-items: center;
  opacity: 0; visibility: hidden;
  transition: opacity .3s var(--ease), visibility .3s;
}
.nav-overlay.is-open { opacity: 1; visibility: visible; }
.nav-overlay nav { display: flex; flex-direction: column; gap: 20px; text-align: center; }
.nav-overlay a {
  font-family: var(--font-serif);
  font-size: 1.5rem; text-decoration: none; color: var(--dusty-navy);
}

@media (max-width: 767px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
}

/* ---------- Sections as floating cream panels ---------- */
.section {
  position: relative;
  width: min(940px, calc(100% - 32px));
  margin: 30px auto;
  padding: 92px clamp(24px, 6vw, 76px);
  background: var(--butter-cream);
  border-radius: 4px;               /* barely-there softening of the cut */
  /* lighter, higher shadow so panels hover rather than sit on a ledge */
  box-shadow: 0 30px 64px -40px rgba(43,53,80,0.30),
              0 10px 26px -20px rgba(43,53,80,0.16);
}
/* All panels share the one cream tone now (wallpaper provides the contrast) */
.section-paper, .section-alt { background: var(--butter-cream); }
.section > * { max-width: var(--content-max); margin-inline: auto; }

.script-title {
  font-family: var(--font-script);
  font-size: clamp(2.5rem, 6.5vw, 3.7rem);
  text-align: center;
  color: var(--dusty-navy);
  line-height: 1.25;
  padding-bottom: .1em;   /* room for Pinyon Script descenders */
  margin-bottom: 8px;
  max-width: 14ch;
  margin-inline: auto;
  text-wrap: balance;
}
.section-sub {
  text-align: center;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .8rem;
  color: var(--dusty-blue);
  margin: 0 auto 48px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .16em;
  padding: 14px 32px;
  border: 1px solid var(--dusty-navy);
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.btn-primary { background: var(--button-bg); color: var(--button-text); }
.btn-primary:hover { background: var(--button-hover); color: var(--button-text); }
.btn-primary:disabled { opacity: .55; cursor: wait; }
.btn-ghost { background: var(--button-alt-bg); color: var(--button-alt-text); }
.btn-ghost:hover { background: var(--button-alt-hover); color: var(--button-alt-text); }

/* ---------- Hero ---------- */
.hero {
  padding: 0 0 72px;
  text-align: center;
  background: var(--butter-cream);
}
/* Full-bleed banner: breaks out of the centered column to span the viewport */
.hero-banner {
  position: relative;
  left: 50%; right: 50%;
  width: 100vw;
  margin-left: -50vw; margin-right: -50vw;
  height: min(74svh, 640px);
  overflow: hidden;
  background: var(--paper-alt);
  margin-bottom: 52px;
}
.hero-media {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  display: block;
  opacity: 0;
  transition: opacity .9s var(--ease);
}
.hero-media.is-loaded { opacity: 1; }
/* Soft cream fade at the bottom so the banner melts into the page */
.hero-banner::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 120px;
  background: linear-gradient(to bottom, rgba(248,243,230,0), var(--butter-cream));
  pointer-events: none;
}

.hero-card { max-width: 560px; margin-inline: auto; padding-inline: var(--pad-x); }

.hero-eyebrow {
  text-transform: uppercase; letter-spacing: .2em;
  font-size: .74rem; color: var(--ink);
  margin: 0 0 14px;
}
.hero-tagline {
  font-style: italic; color: var(--muted-text);
  margin: 0 0 30px;
}
/* Optional uploaded lettering; shown only once it loads, replacing the text version */
.hero-invite-img {
  display: none;
  width: min(440px, 84%);
  margin: 0 auto 26px;
}
.hero-invite-img.is-loaded { display: block; }
.hero-invite-img.is-loaded + .hero-invite-text { display: none; }
.hero-script {
  font-family: var(--font-script);
  font-size: clamp(2.6rem, 7vw, 3.6rem);
  color: var(--dusty-blue);
  margin: 0 0 2px;
  line-height: 1.25;
}
.hero-names {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(1.7rem, 6vw, 2.9rem);
  letter-spacing: .05em;
  text-transform: uppercase;
  line-height: 1.2;
  margin: 0 0 26px;
}
.hero-names em {
  font-family: var(--font-body);
  font-style: italic; text-transform: lowercase;
  font-size: .55em; color: var(--dusty-blue);
  letter-spacing: 0;
}
.hero-date {
  display: flex; flex-direction: column; gap: 4px;
  text-transform: uppercase; letter-spacing: .16em;
  font-size: .9rem;
  border-top: 1px solid var(--butter-yellow);
  border-bottom: 1px solid var(--butter-yellow);
  padding: 14px 0;
  margin: 0 auto 22px;
  max-width: 420px;
}
.hero-venues { color: var(--muted-text); margin: 0 0 16px; }
.hero-hashtag { letter-spacing: .1em; color: var(--dusty-blue); margin: 0; }
.hero-hashtag:empty { display: none; }

.hero-below { margin-top: 56px; padding-inline: var(--pad-x); }
.countdown {
  display: flex; gap: clamp(16px, 5vw, 36px); justify-content: center;
}
.count-unit { display: flex; flex-direction: column; align-items: center; }
.count-unit span {
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 6vw, 2.6rem);
  color: var(--dusty-navy);
  font-variant-numeric: tabular-nums;
}
.count-unit small {
  text-transform: uppercase; letter-spacing: .18em;
  font-size: .68rem; color: var(--muted-text);
  margin-top: 4px;
}
.countdown-label {
  font-style: italic; color: var(--muted-text);
  margin: 14px 0 30px;
}

/* ---------- Entourage ---------- */
.ent-group { margin-bottom: 64px; text-align: center; }
.ent-group:last-child { margin-bottom: 0; }
.ent-label {
  font-family: var(--font-body);
  font-size: .82rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: .18em;
  color: var(--dusty-blue);
  margin-bottom: 26px;
}
.ent-sep { color: var(--butter-yellow); padding: 0 6px; }

.ent-pairs { display: flex; flex-direction: column; gap: 14px; }
.ent-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
}
.ent-row > span:first-child { text-align: right; }
.ent-row > span:last-child { text-align: left; }

/* Every entourage name renders at one consistent size */
.ent-row > span,
.ent-solo p,
.ent-paired-role .ent-row > span { font-size: 1rem; line-height: 1.5; }

.ent-roled > span { display: flex; flex-direction: column; }
.ent-roled small,
.ent-solo small {
  display: block;
  text-transform: uppercase; letter-spacing: .16em;
  font-size: .66rem; color: var(--dusty-blue);
  margin-bottom: 2px;
}

/* Shared role (Candle / Veil / Cord): centered title above the pair */
.ent-paired-role { margin-top: 18px; }
.ent-role-title {
  text-align: center;
  text-transform: uppercase; letter-spacing: .16em;
  font-size: .66rem; color: var(--dusty-blue);
  margin: 0 0 4px;
}

.ent-solo { margin-top: 22px; }
.ent-solo p { margin: 0 0 12px; }
.ent-solo p:last-child { margin-bottom: 0; }

@media (max-width: 480px) {
  .ent-row { gap: 14px; }
}

/* ---------- Prenup video ---------- */
.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--paper-alt);
  border: 1px solid var(--soft-line);
  overflow: hidden;
}
.video-frame iframe, .video-frame video {
  position: absolute; inset: 0;
  width: 100%; height: 100%; border: 0;
}
.video-poster {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
  background: var(--paper-alt);
  border: 0; cursor: pointer; width: 100%;
}
.video-play {
  display: grid; place-items: center;
  width: 58px; height: 58px;
  border: 1px solid var(--dusty-navy);
  border-radius: 50%;
  color: var(--dusty-navy);
  font-size: .9rem;
  padding-left: 4px;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.video-poster:hover .video-play { background: var(--dusty-navy); color: #fff; }
.video-label {
  text-transform: uppercase; letter-spacing: .2em;
  font-size: .74rem; color: var(--dusty-blue);
}
.video-note { text-align: center; font-style: italic; margin-top: 16px; }

/* Unmute affordance shown when the prenup auto-starts muted */
.video-unmute {
  position: absolute; right: 16px; bottom: 16px; z-index: 3;
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body);
  font-size: .78rem; text-transform: uppercase; letter-spacing: .14em;
  color: #fff; background: rgba(43,53,80,0.78);
  border: 1px solid rgba(248,243,230,0.5);
  padding: 10px 16px; cursor: pointer;
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  transition: background .2s var(--ease);
}
.video-unmute:hover { background: var(--dusty-navy); }
.video-unmute span { font-size: .95rem; }

/* ---------- Carousel ---------- */
.carousel { position: relative; }
.carousel-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-slide {
  flex: 0 0 100%;
  scroll-snap-align: center;
  aspect-ratio: 4 / 3;
}
.carousel-slide img { width: 100%; height: 100%; object-fit: cover; }

.carousel-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: rgba(253,251,247,0.85);
  border: 1px solid var(--soft-line);
  color: var(--dusty-navy);
  font-size: 1.4rem; line-height: 1;
  cursor: pointer;
  transition: background .2s var(--ease);
}
.carousel-arrow:hover { background: var(--paper); }
.carousel-arrow.prev { left: 12px; }
.carousel-arrow.next { right: 12px; }
@media (max-width: 767px) { .carousel-arrow { display: none; } }

.carousel-dots {
  display: flex; gap: 10px; justify-content: center;
  margin-top: 18px;
}
.carousel-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--soft-line);
  border: 0; padding: 0; cursor: pointer;
  transition: background .2s var(--ease), transform .2s var(--ease);
}
.carousel-dot.is-active { background: var(--dusty-navy); transform: scale(1.25); }

.carousel.is-empty { display: none; }

/* ---------- Dress code (consistent cream, centered) ---------- */
.dresscode {
  color: var(--ink);
  text-align: center;
  margin-bottom: 44px;
}
.dresscode p { margin: 0 auto 14px; max-width: 560px; }
.dresscode p:last-child { margin-bottom: 0; }
.dresscode-emph {
  font-family: var(--font-serif);
  font-weight: 500;
  color: var(--dusty-navy);
  letter-spacing: .04em;
  font-size: clamp(1.5rem, 4.5vw, 2rem);
  line-height: 1.25;
  margin: 8px auto 22px !important;
}
.dresscode-after {
  margin: 44px auto 0;
  padding-top: 40px;
  border-top: 1px solid var(--soft-line);
}
.dresscode-after em { font-style: italic; color: var(--dusty-blue); font-weight: 500; }

.swatches {
  display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;
  margin: 28px 0 4px;
}
.swatch {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--soft-line);
}

#lookbookCarousel { margin: 0 auto; }

.gift-note { text-align: center; }
.gift-note p { margin: 0 auto; max-width: 520px; font-style: italic; color: var(--muted-text); }

/* ---------- Maps ---------- */
.map-block { text-align: center; margin-bottom: 64px; }
.map-block:last-child { margin-bottom: 0; }
.map-address { color: var(--muted-text); margin: 0 0 20px; }
.map-photo {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto 20px;
}
.map-embed {
  aspect-ratio: 4 / 3;
  border: 1px solid var(--soft-line);
  background: var(--paper-alt);
  margin-bottom: 20px;
  display: grid; place-items: center;
  color: var(--muted-text); font-style: italic;
}
.map-embed iframe { width: 100%; height: 100%; border: 0; }

/* ---------- FAQ ---------- */
.faq-list { border-top: 1px solid var(--soft-line); }
.faq-item { border-bottom: 1px solid var(--soft-line); }
.faq-q {
  width: 100%;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  background: none; border: 0; cursor: pointer;
  font-family: var(--font-body);
  font-size: 1.05rem; font-weight: 500;
  color: var(--dusty-navy);
  text-align: left;
  padding: 20px 4px;
}
.faq-q::after {
  content: '+';
  font-size: 1.3rem; color: var(--dusty-blue);
  transition: transform .25s var(--ease);
  flex-shrink: 0;
}
.faq-item.is-open .faq-q::after { transform: rotate(45deg); }
.faq-a {
  overflow: hidden;
  max-height: 0;
  transition: max-height .3s var(--ease);
}
.faq-a p { margin: 0 4px 20px; color: var(--muted-text); }

/* ---------- RSVP ---------- */
.rsvp-form { display: flex; flex-direction: column; gap: 26px; }

.hp-field {
  position: absolute !important;
  left: -9999px; top: -9999px;
  height: 1px; width: 1px; overflow: hidden;
}

.field { display: flex; flex-direction: column; gap: 8px; border: 0; padding: 0; margin: 0; }
.field label, .field legend {
  font-size: .8rem; text-transform: uppercase; letter-spacing: .16em;
  color: var(--dusty-navy);
}
.optional { color: var(--muted-text); text-transform: none; letter-spacing: 0; font-style: italic; }

.field input[type="text"],
.field input[type="number"],
.field textarea {
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--soft-line);
  padding: 14px 16px;
  transition: border-color .2s var(--ease);
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--dusty-blue);
}
.field textarea { resize: vertical; }

.field-note { font-style: italic; color: var(--dusty-blue); margin: 0; min-height: 1.3em; }
.field-note strong { color: var(--dusty-navy); }
.field-note.not-found {
  font-style: normal;
  color: #9B3A3A;
  line-height: 1.5;
  margin-top: 6px;
}
.field-note.manual-note {
  font-style: italic;
  color: var(--muted-text);
  line-height: 1.5;
  margin-top: 6px;
}

/* Household member picker */
.member-list { display: flex; flex-direction: column; gap: 10px; }
.member-check {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px;
  border: 1px solid var(--soft-line);
  background: var(--paper);
  cursor: pointer;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.member-check:hover { border-color: var(--dusty-blue); }
.member-check input {
  width: 18px; height: 18px; flex-shrink: 0;
  accent-color: var(--dusty-navy);
  cursor: pointer;
}
.member-check span { font-size: 1.02rem; }
.member-check.is-disabled { opacity: .45; cursor: not-allowed; }
.member-check.is-disabled input { cursor: not-allowed; }

/* Locked state when the typed name isn't on the guest list */
.rsvp-form.is-locked .field:not(.name-field),
.rsvp-form.is-locked fieldset.field,
.rsvp-form.is-locked .btn-primary {
  opacity: .4;
  pointer-events: none;
  filter: grayscale(0.4);
}

.radio-row { display: flex; gap: 12px; flex-wrap: wrap; }
.radio-pill { cursor: pointer; }
.radio-pill input { position: absolute; opacity: 0; pointer-events: none; }
.radio-pill span {
  display: inline-block;
  padding: 12px 24px;
  border: 1px solid var(--soft-line);
  background: var(--paper);
  font-size: .95rem;
  transition: all .2s var(--ease);
}
.radio-pill input:checked + span {
  background: var(--dusty-navy);
  border-color: var(--dusty-navy);
  color: #fff;
}
.radio-pill input:focus-visible + span {
  outline: 2px solid var(--dusty-blue);
  outline-offset: 3px;
}

.form-error { color: #9B3A3A; font-style: italic; margin: 0; }

.rsvp-success {
  text-align: center;
  padding: 64px 24px;
}
.rsvp-success p {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--dusty-navy);
  margin: 0;
}

/* ---------- Messages wall ---------- */
.messages-state { text-align: center; font-style: italic; }
.messages-state[hidden] { display: none; }
.messages-grid {
  max-width: 900px;
  columns: 2 280px;
  column-gap: 20px;
  margin-top: 12px;
}
.message-card {
  break-inside: avoid;
  background: var(--paper);
  border: 1px solid var(--soft-border);
  padding: 26px 28px;
  margin-bottom: 20px;
}
.message-card blockquote {
  margin: 0 0 14px;
  font-style: italic;
  color: var(--ink);
}
.message-card cite {
  font-style: normal;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--dusty-blue);
}

/* ---------- Footer ---------- */
.site-footer {
  text-align: center;
  padding: 72px var(--pad-x) 56px;
  border-top: 1px solid var(--butter-yellow);
  background: var(--butter-cream);
}
.site-footer .monogram-img { width: 56px; margin-bottom: 18px; }
.footer-hashtag { letter-spacing: .1em; color: var(--dusty-blue); margin: 0 0 6px; }
.footer-hashtag:empty { display: none; }
.footer-date { text-transform: uppercase; letter-spacing: .18em; font-size: .78rem; margin: 0 0 6px; }
.footer-thanks { font-style: italic; color: var(--muted-text); margin: 0; }

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateX(-48px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.from-right { transform: translateX(48px); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Background music (Spotify) ---------- */
.music { position: fixed; left: 20px; bottom: 20px; z-index: 45; }
.music-toggle {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--dusty-navy); color: var(--butter-cream);
  border: 1px solid rgba(248,243,230,0.4);
  display: grid; place-items: center; cursor: pointer;
  box-shadow: 0 12px 26px -14px rgba(43,53,80,0.65);
  transition: background .2s var(--ease);
}
.music-toggle:hover { background: var(--button-hover); }
.music-bars { display: flex; align-items: flex-end; gap: 3px; height: 18px; }
.music-bars i { width: 3px; height: 6px; background: currentColor; display: block; }
.music.is-playing .music-bars i { animation: musicBar .9s ease-in-out infinite; }
.music.is-playing .music-bars i:nth-child(2) { animation-delay: .15s; }
.music.is-playing .music-bars i:nth-child(3) { animation-delay: .30s; }
@keyframes musicBar { 0%,100% { height: 5px; } 50% { height: 17px; } }

.music-panel {
  position: absolute; left: 0; bottom: 64px;
  width: min(340px, 78vw);
  opacity: 0; transform: translateY(10px); pointer-events: none;
  transition: opacity .25s var(--ease), transform .25s var(--ease);
  box-shadow: 0 22px 50px -24px rgba(43,53,80,0.55);
  border-radius: 12px; overflow: hidden;
}
.music.is-open .music-panel { opacity: 1; transform: none; pointer-events: auto; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .loader-mark { animation: none; }
  .music-bars i { animation: none !important; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
