/* =========================================================
   陳培愷 & 李佳穎 — Wedding Invitation Site
   Palette: ivory / ink / muted gold / crimson
   ========================================================= */
:root {
  --ivory: #f7f3eb;
  --ivory-deep: #efe8dc;
  --paper: #faf7f1;
  --ink: #1a1714;
  --ink-soft: #3d3832;
  --ink-muted: #6b645b;
  --gold: #a6895a;
  --gold-light: #c4a97a;
  --gold-pale: rgba(166, 137, 90, 0.18);
  --crimson: #7a2e2e;
  --crimson-soft: #9a4545;
  --line: rgba(26, 23, 20, 0.12);
  --shadow: 0 20px 60px rgba(26, 23, 20, 0.12);
  --serif: "Noto Serif TC", "Songti TC", "PingFang TC", serif;
  --sans: "Noto Sans TC", "PingFang TC", "Helvetica Neue", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--serif);
  color: var(--ink);
  background: var(--ivory);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; border: none; background: none; cursor: pointer; color: inherit; }
ul { list-style: none; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 1.25rem;
  transition: background .4s var(--ease), backdrop-filter .4s, box-shadow .4s;
}
.nav.scrolled {
  background: rgba(247, 243, 235, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line);
}
.nav-brand {
  font-size: 0.85rem; letter-spacing: 0.28em;
  font-weight: 500; color: #fff;
  transition: color .3s;
}
.nav.scrolled .nav-brand { color: var(--ink); }
.nav-toggle {
  width: 40px; height: 40px;
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 6px;
  z-index: 110;
}
.nav-toggle span {
  display: block; width: 22px; height: 1.5px;
  background: #fff; transition: .3s var(--ease);
}
.nav.scrolled .nav-toggle span { background: var(--ink); }
.nav-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); background: var(--ink); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); background: var(--ink); }

.nav-menu {
  position: fixed; inset: 0;
  background: rgba(247, 243, 235, 0.98);
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 1.75rem;
  opacity: 0; pointer-events: none; transition: opacity .4s var(--ease);
  z-index: 105;
}
.nav-menu.open { opacity: 1; pointer-events: auto; }
.nav-menu a {
  font-size: 1.35rem; letter-spacing: 0.35em;
  color: var(--ink); position: relative;
}
.nav-menu a::after {
  content: ""; position: absolute; left: 50%; bottom: -6px;
  width: 0; height: 1px; background: var(--gold);
  transition: width .35s var(--ease), left .35s var(--ease);
}
.nav-menu a:hover::after { width: 100%; left: 0; }

@media (min-width: 900px) {
  .nav { padding: 0 3rem; }
  .nav-toggle { display: none; }
  .bgm-toggle { margin-left: 1.25rem; }
  .nav-menu {
    position: static; inset: auto;
    flex-direction: row; gap: 2rem;
    background: transparent; opacity: 1; pointer-events: auto;
  }
  .nav-menu a {
    font-size: 0.78rem; letter-spacing: 0.22em;
    color: #fff; transition: color .3s;
  }
  .nav.scrolled .nav-menu a { color: var(--ink-soft); }
  .nav-menu a:hover { color: var(--gold-light); }
  .nav.scrolled .nav-menu a:hover { color: var(--crimson); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: flex-end; justify-content: center;
  overflow: hidden;
  background: #0d0b0a;
}
.hero-bg {
  position: absolute; inset: -8%;
  background: center/cover no-repeat;
  transform: scale(1.08);
  animation: heroZoom 28s ease-in-out infinite alternate;
  will-change: transform;
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(13,11,10,0.35) 0%, rgba(13,11,10,0.15) 35%, rgba(13,11,10,0.55) 70%, rgba(13,11,10,0.88) 100%),
    linear-gradient(90deg, rgba(13,11,10,0.25) 0%, transparent 30%, transparent 70%, rgba(13,11,10,0.25) 100%);
}
@keyframes heroZoom {
  from { transform: scale(1.05); }
  to { transform: scale(1.15); }
}

.hero-vertical {
  position: absolute;
  top: 50%; right: 1.1rem;
  transform: translateY(-50%);
  writing-mode: vertical-rl;
  font-size: 0.72rem;
  letter-spacing: 0.55em;
  color: rgba(255,255,255,0.55);
  z-index: 2;
}
@media (min-width: 768px) {
  .hero-vertical { right: 2.5rem; font-size: 0.85rem; letter-spacing: 0.7em; }
}

.hero-content {
  position: relative; z-index: 2;
  text-align: center;
  color: #fff;
  padding: 0 1.5rem 4.5rem;
  width: 100%;
  max-width: 720px;
}
.hero-ornament {
  display: flex; align-items: center; justify-content: center; gap: 1rem;
  margin-bottom: 1.5rem;
  opacity: 0; animation: fadeUp .9s .2s var(--ease) forwards;
}
.hero-ornament .line {
  width: 40px; height: 1px; background: var(--gold-light);
}
.hero-ornament span {
  font-size: 0.7rem; letter-spacing: 0.45em; color: var(--gold-light);
}
.hero-names {
  font-size: clamp(2rem, 7vw, 3.6rem);
  font-weight: 500;
  letter-spacing: 0.18em;
  line-height: 1.35;
  margin-bottom: 0.75rem;
  opacity: 0; animation: fadeUp .9s .4s var(--ease) forwards;
}
.hero-names .amp {
  display: block;
  font-size: 0.45em;
  letter-spacing: 0.5em;
  color: var(--gold-light);
  margin: 0.35em 0;
  font-weight: 400;
}
.hero-tagline {
  font-size: 0.9rem;
  letter-spacing: 0.35em;
  color: rgba(255,255,255,0.7);
  margin-bottom: 2.25rem;
  opacity: 0; animation: fadeUp .9s .55s var(--ease) forwards;
}
.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  max-width: 360px;
  margin: 0 auto 2rem;
  opacity: 0; animation: fadeUp .9s .7s var(--ease) forwards;
}
.countdown-item {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(196, 169, 122, 0.25);
  padding: 0.85rem 0.4rem;
  backdrop-filter: blur(4px);
}
.countdown-num {
  display: block;
  font-size: 1.55rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.countdown-label {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  color: var(--gold-light);
  margin-top: 0.25rem;
}
.hero-scroll {
  opacity: 0; animation: fadeUp .9s .9s var(--ease) forwards;
  font-size: 0.65rem; letter-spacing: 0.4em;
  color: rgba(255,255,255,0.5);
  display: inline-flex; flex-direction: column; align-items: center; gap: 0.6rem;
}
.hero-scroll .chevron {
  width: 1px; height: 36px;
  background: linear-gradient(180deg, var(--gold-light), transparent);
  position: relative;
}
.hero-scroll .chevron::after {
  content: ""; position: absolute; bottom: 0; left: 50%;
  width: 6px; height: 6px;
  border-right: 1px solid var(--gold-light);
  border-bottom: 1px solid var(--gold-light);
  transform: translateX(-50%) rotate(45deg);
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}


.hero-bg-mobile { display: none; }
@media (max-width: 700px) {
  .hero-bg { display: none; }
  .hero-bg-mobile {
    display: block;
    position: absolute; inset: -2%;
    background: center 18%/cover no-repeat;
    animation: heroZoom 36s ease-in-out infinite alternate;
  }
  .hero-bg-mobile::after {
    content: ""; position: absolute; inset: 0;
    background:
      linear-gradient(180deg, rgba(13,11,10,0.4) 0%, rgba(13,11,10,0.15) 35%, rgba(13,11,10,0.55) 68%, rgba(13,11,10,0.92) 100%);
  }
  .hero-content { padding-bottom: 3.25rem; }
  .countdown { max-width: 100%; gap: 0.4rem; }
  .countdown-num { font-size: 1.35rem; }
}

/* ---------- Sections common ---------- */
.section {
  padding: 5.5rem 1.5rem;
  position: relative;
}
@media (min-width: 768px) {
  .section { padding: 7.5rem 3rem; }
}
.section-inner { max-width: 1100px; margin: 0 auto; }

.section-head {
  text-align: center;
  margin-bottom: 3.5rem;
}
.section-eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.68rem;
  letter-spacing: 0.45em;
  color: var(--gold);
  margin-bottom: 1rem;
  text-transform: uppercase;
}
.section-title {
  font-size: clamp(1.75rem, 4.5vw, 2.6rem);
  font-weight: 500;
  letter-spacing: 0.3em;
  color: var(--ink);
  margin-bottom: 1.25rem;
}
.section-divider {
  display: flex; align-items: center; justify-content: center; gap: 0.85rem;
  margin-bottom: 1.25rem;
}
.section-divider::before,
.section-divider::after {
  content: ""; width: 48px; height: 1px; background: var(--gold);
  opacity: 0.55;
}
.section-divider .diamond {
  width: 6px; height: 6px;
  border: 1px solid var(--gold);
  transform: rotate(45deg);
}
.section-lead {
  font-size: 0.95rem;
  color: var(--ink-muted);
  letter-spacing: 0.12em;
  max-width: 28em;
  margin: 0 auto;
  line-height: 1.9;
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }

/* ---------- Story ---------- */
.story {
  background: var(--paper);
}
.story-quote {
  text-align: center;
  max-width: 36em;
  margin: 0 auto;
}
.story-quote p {
  font-size: clamp(1.05rem, 2.5vw, 1.35rem);
  line-height: 2.1;
  letter-spacing: 0.14em;
  color: var(--ink-soft);
}
.story-quote .em {
  color: var(--crimson);
  font-weight: 500;
}
.story-meta {
  margin-top: 2.5rem;
  font-size: 0.78rem;
  letter-spacing: 0.3em;
  color: var(--gold);
}

/* ---------- Gallery ---------- */
.gallery-section { background: var(--ivory); }
.gallery-section.alt { background: var(--ivory-deep); }

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  grid-auto-flow: dense;
}
/* 8 photos fill 2-col and 4-col; skip 3-col to avoid an empty cell */
@media (min-width: 800px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.1rem;
  }
}

.gallery-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--line);
  cursor: zoom-in;
}
.gallery-item.tall { aspect-ratio: 3 / 4; }

.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease), filter .5s;
  filter: saturate(0.92) contrast(1.02);
}
.gallery-item:hover img {
  transform: scale(1.06);
  filter: saturate(1) contrast(1.05);
}
.gallery-item::after {
  content: "";
  position: absolute; inset: 0;
  border: 0 solid rgba(255,255,255,0);
  transition: border .35s, background .35s;
  background: transparent;
  pointer-events: none;
}
.gallery-item:hover::after {
  border-width: 8px;
  background: rgba(26,23,20,0.08);
}

.gallery-caption-bar {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-top: 1.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  color: var(--ink-muted);
}


/* ---------- Era chapters ---------- */
.era-ming {
  background: linear-gradient(180deg, #faf6f0 0%, #f3ebe3 48%, #faf6f0 100%);
}
.era-ming .section-eyebrow { color: var(--crimson); }
.era-ming .section-divider::before,
.era-ming .section-divider::after { background: var(--gold); }
.era-ming .diamond { border-color: var(--crimson); }
.era-ming .chapter-lead { color: #6a3a32; }
.era-ming .gallery-caption-bar { color: #8a5a3a; border-top-color: rgba(160, 90, 60, 0.25); }

.era-minguo {
  background: linear-gradient(180deg, #f3f1ec 0%, #ebe7e0 50%, #f3f1ec 100%);
}
.era-minguo .section-eyebrow { color: #5c5346; letter-spacing: 0.4em; }
.era-minguo .section-title { color: #2c2924; }
.era-minguo .section-divider::before,
.era-minguo .section-divider::after { background: #8a8070; }
.era-minguo .diamond { border-color: #6e6558; }
.era-minguo .chapter-lead { color: #5a5348; }
.era-minguo .gallery-caption-bar { color: #6e6558; border-top-color: rgba(80, 70, 55, 0.22); }
.era-minguo .gallery-item img {
  filter: saturate(0.78) contrast(1.04) sepia(0.12);
}
.era-minguo .gallery-item:hover img {
  filter: saturate(0.9) contrast(1.06) sepia(0.06);
}

/* ---------- Events / Palais venue ---------- */
.events {
  background: #0c0a09;
  color: #f3ebe0;
  position: relative;
  overflow: hidden;
  /* Soft bridge from light Taiwan gallery above */
  box-shadow: inset 0 48px 64px -48px rgba(247, 243, 235, 0.07);
}
.events.events-palais {
  padding-top: 5.5rem;
  padding-bottom: 5.5rem;
}
@media (min-width: 768px) {
  .events.events-palais {
    padding-top: 7.5rem;
    padding-bottom: 7rem;
  }
}

/* Atmosphere layers */
.palais-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.palais-bg-wash {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 55% at 50% -10%, rgba(166, 137, 90, 0.18), transparent 58%),
    radial-gradient(ellipse 70% 50% at 50% 110%, rgba(122, 46, 46, 0.12), transparent 55%),
    linear-gradient(180deg, #14110f 0%, #0c0a09 38%, #0a0908 100%);
}
.palais-lattice {
  position: absolute;
  inset: 0;
  opacity: 0.07;
  background-image:
    linear-gradient(rgba(196, 169, 122, 0.9) 1px, transparent 1px),
    linear-gradient(90deg, rgba(196, 169, 122, 0.9) 1px, transparent 1px),
    linear-gradient(45deg, transparent 46%, rgba(196, 169, 122, 0.55) 49%, rgba(196, 169, 122, 0.55) 51%, transparent 54%),
    linear-gradient(-45deg, transparent 46%, rgba(196, 169, 122, 0.55) 49%, rgba(196, 169, 122, 0.55) 51%, transparent 54%);
  background-size: 28px 28px, 28px 28px, 56px 56px, 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
}
.palais-arcade {
  position: absolute;
  left: 50%;
  bottom: -2%;
  transform: translateX(-50%);
  width: min(1400px, 160%);
  height: auto;
  color: rgba(196, 169, 122, 0.22);
}
.palais-chandelier {
  position: absolute;
  top: 3.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: min(168px, 38vw);
  height: auto;
  color: rgba(196, 169, 122, 0.38);
  filter: drop-shadow(0 0 18px rgba(196, 169, 122, 0.15));
}
.palais-vignette {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(12,10,9,0.35) 0%, transparent 12%, transparent 88%, rgba(12,10,9,0.55) 100%),
    radial-gradient(ellipse 85% 70% at 50% 50%, transparent 45%, rgba(8,6,5,0.55) 100%);
}

.events-inner {
  position: relative;
  z-index: 1;
}

/* Section head on dark */
.events .section-eyebrow { color: var(--gold-light); }
.events .section-title {
  color: #f7f0e4;
  text-shadow: 0 1px 0 rgba(0,0,0,0.35);
}
.events .section-divider::before,
.events .section-divider::after { background: var(--gold-light); opacity: 0.7; }
.events .section-divider .diamond { border-color: var(--gold-light); }
.events .section-lead { color: rgba(243, 235, 224, 0.72); }

.events-single {
  display: flex;
  justify-content: center;
}
.events-grid {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 800px) {
  .events-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

.event-card {
  background: rgba(250, 247, 241, 0.97);
  border: 1px solid rgba(196, 169, 122, 0.35);
  padding: 2.25rem 1.75rem;
  position: relative;
  transition: box-shadow .4s var(--ease), transform .4s var(--ease);
  color: var(--ink);
}
.event-card-solo {
  width: 100%;
  max-width: 28rem;
  text-align: left;
  padding: 2.75rem 2.25rem 2.5rem;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}
.event-card-solo .event-title {
  letter-spacing: 0.35em;
}
.event-card-solo .event-map {
  margin-top: 1.75rem;
}
.event-card:hover {
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.4);
  transform: translateY(-3px);
}
.event-card::before {
  content: "";
  position: absolute; top: 0; left: 1.75rem; right: 1.75rem;
  height: 2px; background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.event-label {
  font-family: var(--sans);
  font-size: 0.68rem;
  letter-spacing: 0.4em;
  color: var(--crimson);
  margin-bottom: 0.85rem;
}
.event-title {
  font-size: 1.55rem;
  letter-spacing: 0.28em;
  font-weight: 500;
  margin-bottom: 1.5rem;
  color: var(--ink);
}
.event-row {
  display: grid;
  grid-template-columns: 3.5em 1fr;
  gap: 0.5rem 0.85rem;
  margin-bottom: 0.85rem;
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
}
.event-row dt {
  color: var(--gold);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  padding-top: 0.15rem;
}
.event-row dd { line-height: 1.6; }
.event-note {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px dashed rgba(26, 23, 20, 0.18);
  font-size: 0.78rem;
  color: var(--ink-muted);
  letter-spacing: 0.12em;
}
.event-map {
  display: inline-flex; align-items: center; gap: 0.5rem;
  margin-top: 1.5rem;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  color: var(--gold-light);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, color .3s;
}
.event-map:hover {
  border-color: var(--gold-light);
  color: #e4d0a8;
}
.event-map svg { width: 14px; height: 14px; }

/* Invitation panel on dark stage */
.venue-block {
  max-width: 46rem;
  margin: 0 auto;
  text-align: center;
  position: relative;
}
.venue-invite {
  position: relative;
  padding: 1.15rem;
}
.invite-frame {
  position: relative;
  padding: 2rem 1.25rem 1.75rem;
  background:
    linear-gradient(180deg, rgba(22, 18, 15, 0.72) 0%, rgba(14, 12, 10, 0.82) 100%);
  border: 1px solid rgba(196, 169, 122, 0.38);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.4) inset,
    0 24px 70px rgba(0, 0, 0, 0.45);
}
.invite-frame::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(196, 169, 122, 0.18);
  pointer-events: none;
}
.invite-corner {
  position: absolute;
  width: 22px;
  height: 22px;
  border-color: var(--gold-light);
  border-style: solid;
  opacity: 0.85;
  z-index: 2;
}
.invite-tl { top: 0; left: 0; border-width: 1px 0 0 1px; }
.invite-tr { top: 0; right: 0; border-width: 1px 1px 0 0; }
.invite-bl { bottom: 0; left: 0; border-width: 0 0 1px 1px; }
.invite-br { bottom: 0; right: 0; border-width: 0 1px 1px 0; }

.venue-motif {
  color: var(--gold-light);
  margin: 0 auto 1.15rem;
  width: min(260px, 70%);
  opacity: 0.9;
}
.venue-motif-arch { width: 100%; height: auto; display: block; }
.venue-kicker {
  font-family: var(--sans);
  font-size: 0.68rem;
  letter-spacing: 0.42em;
  color: var(--gold-light);
  margin-bottom: 0.65rem;
}
.venue-name {
  font-size: clamp(1.5rem, 3.8vw, 2rem);
  font-weight: 500;
  letter-spacing: 0.3em;
  margin-bottom: 0.45rem;
  color: #f7f0e4;
  text-shadow: 0 1px 18px rgba(196, 169, 122, 0.18);
}
.venue-tagline {
  font-family: var(--sans);
  font-size: 0.82rem;
  letter-spacing: 0.35em;
  color: var(--gold);
  margin-bottom: 1.15rem;
}
.venue-desc {
  font-size: 0.9rem;
  line-height: 1.95;
  letter-spacing: 0.06em;
  color: rgba(243, 235, 224, 0.82);
  text-align: justify;
  text-align-last: center;
  max-width: 34rem;
  margin: 0 auto 1.85rem;
  padding: 0 0.35rem;
}
.venue-card {
  max-width: 100%;
  margin: 0 auto 1.85rem;
  text-align: left;
  background: linear-gradient(180deg, #faf7f1 0%, #f3ebe0 100%);
}
.venue-card .addr-zh {
  display: inline-block;
  margin-top: 0.15rem;
}
.venue-card .addr-en {
  display: inline-block;
  margin-top: 0.2rem;
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
  line-height: 1.45;
  word-break: break-word;
}
.venue-guide {
  text-align: left;
  border: 1px solid rgba(196, 169, 122, 0.32);
  background: rgba(250, 247, 241, 0.96);
  color: var(--ink);
  padding: 1.75rem 1.35rem 1.5rem;
  margin-bottom: 1.5rem;
  position: relative;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.28);
}
.venue-guide::before {
  content: "";
  position: absolute; top: 0; left: 1.25rem; right: 1.25rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.venue-guide-title {
  font-size: 1.05rem;
  letter-spacing: 0.32em;
  font-weight: 500;
  text-align: center;
  margin-bottom: 0.35rem;
  color: var(--ink);
}
.venue-guide-lead {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  color: var(--ink-muted);
  text-align: center;
  margin-bottom: 1.35rem;
}
.guide-list {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}
.guide-item {
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: 0.85rem;
  align-items: start;
}
.guide-icon {
  width: 2rem;
  height: 2rem;
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.1rem;
}
.guide-icon svg { width: 1.35rem; height: 1.35rem; }
.guide-item strong {
  display: block;
  font-weight: 500;
  letter-spacing: 0.22em;
  font-size: 0.88rem;
  margin-bottom: 0.25rem;
  color: var(--ink);
}
.guide-item p {
  font-size: 0.86rem;
  line-height: 1.75;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}
.guide-item em {
  font-style: normal;
  color: var(--crimson-soft);
  letter-spacing: 0.06em;
}
.venue-map-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.hall-hint {
  display: inline-block;
  margin-top: 0.25rem;
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
  line-height: 1.5;
}
.venue-map-card {
  position: relative;
  width: 100%;
  border: 1px solid rgba(196, 169, 122, 0.35);
  border-radius: 2px;
  overflow: hidden;
  background: #1a1714;
  min-height: 220px;
}
.venue-map {
  width: 100%;
  aspect-ratio: 16 / 10;
  min-height: 220px;
  border: 0;
  display: block;
  filter: none;
  background: #e8e4dc;
}
.venue-map-fallback {
  pointer-events: none;
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 0.85rem 1rem 0.95rem;
  background: linear-gradient(180deg, transparent, rgba(12,10,9,0.88) 35%);
  text-align: left;
  color: #f3ebe0;
}
.map-fallback-kicker {
  font-family: var(--sans);
  font-size: 0.62rem;
  letter-spacing: 0.35em;
  color: var(--gold-light);
  margin-bottom: 0.25rem;
}
.map-fallback-name {
  font-size: 0.92rem;
  letter-spacing: 0.18em;
  margin-bottom: 0.2rem;
}
.map-fallback-addr {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: rgba(243,235,224,0.75);
  line-height: 1.45;
}

.venue-map-link { margin-top: 0; color: var(--gold-light); }


@media (min-width: 720px) {
  .venue-invite { padding: 1.5rem; }
  .invite-frame { padding: 2.5rem 2.25rem 2rem; }
  .venue-guide { padding: 2rem 2rem 1.75rem; }
  .guide-item { grid-template-columns: 2.25rem 1fr; gap: 1rem; }
  .venue-desc { padding: 0 1rem; }
  .event-card-solo.venue-card { max-width: 32rem; }
  .invite-corner { width: 28px; height: 28px; }
}
@media (max-width: 420px) {
  .venue-invite { padding: 0.75rem; }
  .invite-frame { padding: 1.5rem 1rem 1.35rem; }
  .invite-frame::before { inset: 6px; }
  .event-row {
    grid-template-columns: 3em 1fr;
    gap: 0.4rem 0.65rem;
    font-size: 0.86rem;
  }
  .venue-name { letter-spacing: 0.16em; }
  .venue-tagline { letter-spacing: 0.2em; }
  .guide-item p { font-size: 0.82rem; }
  .palais-chandelier { top: 2.5rem; width: 120px; opacity: 0.85; }
}

/* Seamless handoff into dark video section below */
.events.events-palais + .video-section {
  box-shadow: none;
}

/* ---------- Video ---------- */
.video-section {
  background: #0d0b0a;
  color: #fff;
  padding: 5.5rem 1.5rem 6rem;
}
.video-section .section-title { color: #fff; }
.video-section .section-eyebrow { color: var(--gold-light); }
.video-section .section-lead { color: rgba(255,255,255,0.55); }
.video-section .section-divider::before,
.video-section .section-divider::after { background: var(--gold-light); }
.video-section .diamond { border-color: var(--gold-light); }

.video-wrap {
  position: relative;
  max-width: 960px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  background: #0d0b0a;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.45);
}
.video-wrap video {
  width: 100%; height: 100%;
  object-fit: contain;
  display: block;
  background: #0d0b0a;
}
@media (max-width: 640px) {
  .video-wrap {
    max-width: 100%;
    aspect-ratio: 16 / 9;
  }
}
.video-play {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(13,11,10,0.35);
  transition: background .35s, opacity .35s;
  z-index: 2;
}
.video-play.hidden { opacity: 0; pointer-events: none; }
.video-play-btn {
  width: 72px; height: 72px;
  border-radius: 50%;
  border: 1px solid rgba(196,169,122,0.7);
  background: rgba(13,11,10,0.45);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  transition: transform .35s var(--ease), background .35s;
}
.video-play-btn:hover {
  transform: scale(1.08);
  background: rgba(166,137,90,0.3);
}
.video-play-btn svg {
  width: 22px; height: 22px;
  fill: var(--gold-light);
  margin-left: 3px;
}

/* ---------- Closing ---------- */
.closing {
  min-height: 70svh;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: #0d0b0a;
  color: #fff;
  padding: 5rem 1.5rem;
}
.closing-bg {
  position: absolute; inset: 0;
  background: center/cover no-repeat;
  opacity: 0.45;
  filter: brightness(0.7);
}
.closing-bg::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, transparent 20%, rgba(13,11,10,0.85) 100%);
}
.closing-inner { position: relative; z-index: 2; max-width: 520px; }
.closing-eyebrow {
  font-size: 0.7rem; letter-spacing: 0.45em; color: var(--gold-light);
  margin-bottom: 1.5rem;
}
.closing-title {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  letter-spacing: 0.35em;
  font-weight: 500;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}
.closing-text {
  font-size: 0.95rem;
  letter-spacing: 0.18em;
  color: rgba(255,255,255,0.65);
  line-height: 2;
  margin-bottom: 2.5rem;
}
.closing-names {
  font-size: 1.15rem;
  letter-spacing: 0.4em;
  color: #fff;
}
.closing-date {
  margin-top: 0.75rem;
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  color: var(--gold-light);
}

/* ---------- Footer ---------- */
.footer {
  background: var(--ink);
  color: rgba(247,243,235,0.45);
  text-align: center;
  padding: 2rem 1.5rem;
  font-size: 0.7rem;
  letter-spacing: 0.25em;
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(10, 8, 7, 0.94);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity .35s var(--ease);
  padding: 1.5rem;
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox img {
  max-width: min(96vw, 1200px);
  max-height: 88vh;
  object-fit: contain;
  box-shadow: 0 20px 80px rgba(0,0,0,0.5);
  transform: scale(0.96);
  transition: transform .4s var(--ease);
}
.lightbox.open img { transform: scale(1); }
.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  color: rgba(255,255,255,0.7);
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  transition: color .25s;
  z-index: 2;
}
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover { color: #fff; }
.lightbox-close { top: 1rem; right: 1rem; font-size: 1.5rem; }
.lightbox-prev { left: 0.5rem; top: 50%; transform: translateY(-50%); font-size: 1.75rem; }
.lightbox-next { right: 0.5rem; top: 50%; transform: translateY(-50%); font-size: 1.75rem; }
.lightbox-counter {
  position: absolute; bottom: 1.25rem; left: 50%;
  transform: translateX(-50%);
  font-size: 0.75rem; letter-spacing: 0.3em;
  color: rgba(255,255,255,0.45);
}

/* ---------- Misc ---------- */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}

/* Selection + polish */
::selection { background: var(--gold-pale); color: var(--ink); }
.gallery-item img { object-position: center center; }
.gallery-item.wide img { object-position: center center; }
.gallery-item.gallery-feet img {
  object-position: center bottom;
  transform-origin: center bottom;
}
@media (min-width: 700px) {
  .hero-content { padding-bottom: 5.5rem; }
}
/* event-card background: see palace-card system below */

/* =========================================================
   Palace Door Intro
   ========================================================= */
body.intro-pending,
body.intro-active {
  overflow: hidden;
  height: 100%;
}

.door-intro {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: #0a0706;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1600px;
  perspective-origin: 50% 45%;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.door-intro.is-gone {
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.55s ease;
}

.door-stage {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 2.2s cubic-bezier(0.22, 0.82, 0.2, 1);
}
.door-intro.is-opening .door-stage {
  transform: scale(1.18) translateZ(40px);
}
.door-intro.is-finishing .door-stage {
  transform: scale(1.32) translateZ(80px);
}

/* Warm light behind doors */
.door-backlight {
  position: absolute;
  inset: -10%;
  background:
    radial-gradient(ellipse 28% 70% at 50% 48%, rgba(255, 220, 160, 0.75) 0%, rgba(220, 120, 50, 0.28) 35%, transparent 68%),
    radial-gradient(ellipse 80% 70% at 50% 50%, #1a0e0a 0%, #0a0706 100%);
  opacity: 0;
  transition: opacity 0.9s cubic-bezier(0.22, 0.82, 0.2, 1);
  z-index: 0;
}
.door-intro.is-opening .door-backlight {
  opacity: 1;
}

/* Hero peek through gap */
.door-hero-peek {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10,7,6,0.25), rgba(10,7,6,0.05) 40%, rgba(10,7,6,0.35)),
    url("assets/img/hero/ancient.jpg") center/cover no-repeat;
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 1.6s ease, transform 2.4s cubic-bezier(0.22, 0.82, 0.2, 1);
  z-index: 1;
}
@media (max-width: 700px) {
  .door-hero-peek {
    background-image:
      linear-gradient(180deg, rgba(10,7,6,0.25), rgba(10,7,6,0.05) 40%, rgba(10,7,6,0.35)),
      url("assets/img/hero/mobile.jpg");
    background-position: center 18%;
    background-size: cover;
  }
}
.door-intro.is-opening .door-hero-peek {
  opacity: 1;
  transform: scale(1);
}

.door-panel {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50.15%;
  z-index: 3;
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 2.35s cubic-bezier(0.45, 0.05, 0.2, 1);
}
.door-left {
  left: 0;
  transform-origin: left center;
  box-shadow: 8px 0 40px rgba(0,0,0,0.35);
}
.door-right {
  right: 0;
  transform-origin: right center;
  box-shadow: -8px 0 40px rgba(0,0,0,0.35);
}
.door-intro.is-opening .door-left {
  transform: rotateY(-62deg) translateX(-2%);
}
.door-intro.is-opening .door-right {
  transform: rotateY(62deg) translateX(2%);
}

.door-face {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #5a1212;
  box-shadow:
    inset 0 0 100px rgba(0,0,0,0.55),
    inset 0 0 0 1px rgba(255, 210, 140, 0.08);
  backface-visibility: hidden;
}
.door-face::after {
  /* door thickness / edge when swinging */
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 18px;
  background: linear-gradient(90deg, #2a0a0a, #6b1c1c 40%, #3d1010);
  box-shadow: inset 0 0 8px rgba(0,0,0,0.5);
  opacity: 0;
  transition: opacity 0.6s ease;
}
.door-left .door-face::after {
  right: -18px;
  transform-origin: left center;
  transform: rotateY(90deg);
  opacity: 0;
}
.door-right .door-face::after {
  left: -18px;
  transform-origin: right center;
  transform: rotateY(-90deg);
}
.door-intro.is-opening .door-left .door-face::after,
.door-intro.is-opening .door-right .door-face::after {
  opacity: 1;
}
.door-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 5;
  background: radial-gradient(ellipse 70% 60% at 50% 45%, transparent 35%, rgba(8,4,3,0.45) 100%);
  transition: opacity 1.2s ease;
}
.door-intro.is-opening .door-vignette { opacity: 0; }

/* Lacquer vermilion */
.door-lacquer {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(255,255,255,0.07) 0%, transparent 28%, transparent 72%, rgba(0,0,0,0.18) 100%),
    linear-gradient(180deg, #8a1f1f 0%, #6b1414 18%, #521010 48%, #3d0c0c 78%, #2a0808 100%);
}
.door-left .door-lacquer {
  background:
    linear-gradient(95deg, rgba(0,0,0,0.22) 0%, transparent 18%, rgba(255,220,160,0.06) 55%, transparent 100%),
    linear-gradient(180deg, #8a1f1f 0%, #6b1414 18%, #521010 48%, #3d0c0c 78%, #2a0808 100%);
}
.door-right .door-lacquer {
  background:
    linear-gradient(-95deg, rgba(0,0,0,0.22) 0%, transparent 18%, rgba(255,220,160,0.06) 55%, transparent 100%),
    linear-gradient(180deg, #8a1f1f 0%, #6b1414 18%, #521010 48%, #3d0c0c 78%, #2a0808 100%);
}

/* Subtle wood grain via repeating lines */
.door-grain {
  position: absolute;
  inset: 0;
  opacity: 0.22;
  mix-blend-mode: multiply;
  background:
    repeating-linear-gradient(
      92deg,
      transparent 0px,
      transparent 3px,
      rgba(30, 8, 8, 0.35) 3px,
      rgba(30, 8, 8, 0.35) 4px,
      transparent 4px,
      transparent 11px,
      rgba(80, 20, 10, 0.2) 11px,
      rgba(80, 20, 10, 0.2) 12px
    ),
    repeating-linear-gradient(
      88deg,
      transparent 0px,
      transparent 17px,
      rgba(0,0,0,0.12) 17px,
      rgba(0,0,0,0.12) 18px
    );
  pointer-events: none;
}

/* Inner gold frame */
.door-frame {
  position: absolute;
  inset: 3.2% 4.5%;
  border: 1.5px solid rgba(201, 164, 92, 0.45);
  box-shadow:
    inset 0 0 0 6px rgba(60, 12, 12, 0.35),
    inset 0 0 0 7.5px rgba(201, 164, 92, 0.22),
    0 0 0 1px rgba(0,0,0,0.25);
  pointer-events: none;
}
.door-frame::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(201, 164, 92, 0.18);
}

/* Door studs grid — generated via background radial dots for performance */
.door-studs {
  position: absolute;
  inset: 9% 11%;
  background-image: radial-gradient(circle at center, #e8d5a0 0%, #c9a45c 35%, #8a6528 70%, #4a340f 100%);
  background-size: calc(100% / 5) calc(100% / 9);
  background-repeat: repeat;
  /* Mask each cell to a small circle — use radial mask on each tile via layered approach:
     Instead use a grid of box-shadows via JS... For CSS-only, use mask + background-size */
  -webkit-mask-image: radial-gradient(circle, #000 38%, transparent 40%);
  mask-image: radial-gradient(circle, #000 38%, transparent 40%);
  -webkit-mask-size: calc(100% / 5) calc(100% / 9);
  mask-size: calc(100% / 5) calc(100% / 9);
  -webkit-mask-repeat: repeat;
  mask-repeat: repeat;
  opacity: 0.92;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,0.45));
  pointer-events: none;
}

/* Knocker */
.door-knocker {
  position: absolute;
  top: 42%;
  width: clamp(56px, 14vw, 96px);
  transform: translateY(-50%);
  filter: drop-shadow(0 6px 10px rgba(0,0,0,0.45));
  z-index: 2;
}
.door-left .door-knocker { right: 14%; }
.door-right .door-knocker { left: 14%; }
.door-knocker svg { width: 100%; height: auto; display: block; }

/* Gold seam between doors */
.door-seam {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  transform: translateX(-50%);
  z-index: 4;
  background: linear-gradient(
    180deg,
    rgba(201,164,92,0.15) 0%,
    rgba(232,213,160,0.75) 20%,
    rgba(201,164,92,0.95) 50%,
    rgba(232,213,160,0.75) 80%,
    rgba(201,164,92,0.15) 100%
  );
  box-shadow:
    0 0 12px rgba(255, 200, 120, 0.35),
    -1px 0 0 rgba(0,0,0,0.35),
    1px 0 0 rgba(0,0,0,0.35);
  transition: opacity 0.9s ease, width 1.2s ease, box-shadow 1.2s ease;
  pointer-events: none;
}
.door-intro.is-opening .door-seam {
  opacity: 0;
  width: 0;
  box-shadow: 0 0 40px rgba(255, 210, 140, 0.6);
}

.door-edge-shine {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 18%;
  pointer-events: none;
  opacity: 0.35;
}
.door-left .door-edge-shine {
  right: 0;
  background: linear-gradient(90deg, transparent, rgba(255,220,160,0.12));
}
.door-right .door-edge-shine {
  left: 0;
  background: linear-gradient(-90deg, transparent, rgba(255,220,160,0.12));
}

/* Overlay UI */
.door-overlay-ui {
  position: relative;
  z-index: 10;
  text-align: center;
  color: #f3e6c8;
  pointer-events: none;
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.door-intro.is-opening .door-overlay-ui {
  opacity: 0;
  transform: scale(0.96) translateY(-8px);
  pointer-events: none;
}

.door-mono {
  font-size: clamp(0.85rem, 2.6vw, 1.05rem);
  letter-spacing: 0.42em;
  font-weight: 500;
  color: rgba(243, 230, 200, 0.92);
  text-shadow: 0 2px 18px rgba(0,0,0,0.55);
  margin-bottom: 1.1rem;
  animation: doorFadeIn 1.1s 0.15s both;
}
.door-xi {
  font-size: clamp(2.8rem, 10vw, 4.2rem);
  line-height: 1;
  color: #d4af67;
  text-shadow:
    0 0 24px rgba(212, 175, 103, 0.35),
    0 4px 20px rgba(0,0,0,0.5);
  margin-bottom: 1.75rem;
  font-weight: 600;
  animation: doorFadeIn 1.1s 0.35s both;
}
.door-enter {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  color: rgba(243, 230, 200, 0.85);
  letter-spacing: 0.45em;
  font-size: 0.78rem;
  padding: 0.85rem 0.5rem;
  animation: doorFadeIn 1.1s 0.55s both, doorPulse 2.8s 1.6s ease-in-out infinite;
}
.door-enter-line {
  width: 28px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212,175,103,0.85), transparent);
}
.door-enter-text { padding-left: 0.2em; }
.door-skip {
  pointer-events: auto;
  display: block;
  margin: 1.75rem auto 0;
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  color: rgba(243, 230, 200, 0.4);
  animation: doorFadeIn 1.1s 0.75s both;
  transition: color 0.25s;
}
.door-skip:hover { color: rgba(243, 230, 200, 0.75); }
.door-sound {
  pointer-events: auto;
  position: absolute;
  bottom: -4.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(212,175,103,0.28);
  color: rgba(243, 230, 200, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: doorFadeIn 1.1s 0.9s both;
}
.door-sound[aria-pressed="true"] { color: rgba(243, 230, 200, 0.9); border-color: rgba(212,175,103,0.55); }
.door-sound .icon-on { display: none; }
.door-sound[aria-pressed="true"] .icon-muted { display: none; }
.door-sound[aria-pressed="true"] .icon-on { display: block; }

@keyframes doorFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
@keyframes doorPulse {
  0%, 100% { opacity: 0.85; }
  50% { opacity: 1; }
}

/* Whole intro clickable */
.door-intro { cursor: pointer; }
.door-skip, .door-sound, .door-enter { cursor: pointer; }

/* After intro: reveal hero content */
body.intro-pending .hero-content,
body.intro-pending .hero-vertical,
body.intro-active .hero-content,
body.intro-active .hero-vertical {
  opacity: 0;
  transform: translateY(18px);
}
body.intro-revealing .hero-content,
body.intro-revealing .hero-vertical {
  opacity: 0;
  transform: translateY(18px);
}
body.intro-done .hero-content {
  animation: heroContentIn 1.1s 0.15s cubic-bezier(0.22, 1, 0.36, 1) both;
}
body.intro-done .hero-vertical {
  animation: heroContentIn 1.1s 0.35s cubic-bezier(0.22, 1, 0.36, 1) both;
}
body.intro-done .hero-bg {
  animation:
    heroBgSettle 1.6s cubic-bezier(0.22, 1, 0.36, 1) both,
    heroZoom 28s ease-in-out 1.6s infinite alternate;
}
body.intro-done .hero-bg-mobile {
  animation: heroBgSettle 1.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@media (max-width: 700px) {
  body.intro-done .hero-bg-mobile {
    animation:
      heroBgSettle 1.6s cubic-bezier(0.22, 1, 0.36, 1) both,
      heroZoom 36s ease-in-out 1.6s infinite alternate;
  }
}
@keyframes heroContentIn {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}
@keyframes heroBgSettle {
  from { transform: scale(1.12); filter: brightness(0.85); }
  to { transform: scale(1.05); filter: none; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .door-panel,
  .door-stage,
  .door-backlight,
  .door-hero-peek,
  .door-seam,
  .door-overlay-ui {
    transition-duration: 0.01ms !important;
  }
  .door-intro.is-opening .door-left,
  .door-intro.is-opening .door-right {
    transform: none;
    opacity: 0;
  }
  .door-enter { animation: doorFadeIn 0.4s both; }
  body.intro-done .hero-content,
  body.intro-done .hero-vertical,
  body.intro-done .hero-bg,
  body.intro-done .hero-bg-mobile {
    animation: none;
    opacity: 1;
    transform: none;
    filter: none;
  }
}

.door-studs .stud {
  width: clamp(9px, 1.7vw, 16px);
  height: clamp(9px, 1.7vw, 16px);
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, #f5e6c0 0%, #d4af67 32%, #a07830 62%, #5c3d14 100%);
  box-shadow:
    0 1px 2px rgba(0,0,0,0.55),
    inset 0 -1px 1px rgba(0,0,0,0.35),
    inset 0 1px 1px rgba(255,255,255,0.35);
}
.door-overlay-ui {
  margin-top: -4vh;
}
.door-intro .door-sound {
  position: fixed;
  top: auto;
  bottom: max(1.25rem, env(safe-area-inset-bottom));
  left: auto;
  right: 1.25rem;
  transform: none;
  animation: doorFadeIn 1.1s 0.9s both;
}
.door-intro.is-opening .door-sound {
  opacity: 0;
  pointer-events: none;
}

.door-thickness {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 14px;
  background: linear-gradient(180deg, #4a1414, #1a0808 50%, #3d1010);
  box-shadow: inset 0 0 10px rgba(0,0,0,0.55);
  z-index: 0;
}
.door-left .door-thickness {
  right: 0;
  transform-origin: right center;
  transform: translateZ(-1px) rotateY(90deg);
  background: linear-gradient(90deg, #1a0808, #5a1818 40%, #2a0c0c);
}
.door-right .door-thickness {
  left: 0;
  transform-origin: left center;
  transform: translateZ(-1px) rotateY(-90deg);
  background: linear-gradient(-90deg, #1a0808, #5a1818 40%, #2a0c0c);
}
.door-face { z-index: 1; transform: translateZ(0); }


/* Attempt to hide Tiiny Host free-tier footer banner when embedded */
iframe[src*="tiiny"],
#tiiny-footer,
.tiiny-footer,
[class*="tiiny"],
a[href*="tiiny.host"][target="_blank"] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  height: 0 !important;
  max-height: 0 !important;
}

/* =========================================================
   LINE greeting + RSVP / table guest panels
   ========================================================= */
.line-greeting {
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.line-greeting.is-visible {
  opacity: 1;
  transform: none;
}
.line-greeting-inner {
  margin: .65rem auto 0;
  width: fit-content;
  max-width: calc(100% - 2rem);
  padding: .45rem 1.1rem;
  background: rgba(26, 23, 20, 0.88);
  color: var(--ivory);
  border: 1px solid rgba(166, 137, 90, 0.45);
  border-radius: 999px;
  font-family: var(--sans);
  font-size: .78rem;
  letter-spacing: .12em;
  display: flex;
  align-items: baseline;
  gap: .45rem;
  flex-wrap: wrap;
  justify-content: center;
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 28px rgba(0,0,0,.25);
}
.line-greeting-label { color: var(--gold-light); font-size: .7rem; }
.line-greeting-name {
  font-family: var(--serif);
  font-size: .95rem;
  letter-spacing: .16em;
  color: #fff;
}
.line-greeting-tail { opacity: .75; font-size: .7rem; }

.guest-section {
  background: var(--paper);
  padding: clamp(3.5rem, 8vw, 6rem) 0;
}
.guest-section-alt {
  background: linear-gradient(180deg, #1a1714 0%, #241c18 100%);
  color: var(--ivory);
}
.guest-section-alt .section-eyebrow { color: var(--gold-light); }
.guest-section-alt .section-title { color: #fff; }
.guest-section-alt .section-lead { color: rgba(247,243,235,.72); }
.guest-section-alt .section-divider .diamond {
  background: var(--gold);
}
.guest-section-alt .section-divider::before,
.guest-section-alt .section-divider::after {
  background: rgba(166,137,90,.45);
}

.guest-panel {
  max-width: 520px;
  margin: 0 auto;
  padding: 1.75rem 1.5rem 1.85rem;
  background: rgba(255,255,255,.72);
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: var(--shadow);
  text-align: center;
}
.guest-section-alt .guest-panel {
  background: rgba(255,255,255,.04);
  border-color: rgba(166,137,90,.35);
  box-shadow: none;
}
.guest-panel-lead {
  font-family: var(--sans);
  font-size: .95rem;
  color: var(--ink-soft);
  margin-bottom: 1.25rem;
  letter-spacing: .04em;
}
.guest-section-alt .guest-panel-lead { color: rgba(247,243,235,.78); }
.guest-panel-hint {
  margin-top: 1rem;
  font-size: .78rem;
  color: var(--ink-muted);
  letter-spacing: .04em;
}

.guest-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  padding: .75rem 1.5rem;
  background: var(--ink);
  color: #fff;
  border: 1px solid var(--ink);
  font-family: var(--sans);
  font-size: .82rem;
  letter-spacing: .18em;
  transition: background .25s var(--ease), color .25s, border-color .25s;
}
.guest-btn:hover { background: var(--crimson); border-color: var(--crimson); }
.guest-btn.ghost {
  background: transparent;
  color: var(--ink);
  margin-top: 1rem;
}
.guest-section-alt .guest-btn {
  background: transparent;
  color: var(--ivory);
  border-color: rgba(166,137,90,.7);
}
.guest-section-alt .guest-btn:hover {
  background: var(--gold);
  color: var(--ink);
  border-color: var(--gold);
}
.guest-section-alt .guest-btn.ghost {
  color: rgba(247,243,235,.85);
  border-color: rgba(247,243,235,.35);
}

.guest-form { text-align: left; }
.guest-field { margin-bottom: 1.1rem; }
.guest-field label,
.guest-attend legend {
  display: block;
  font-family: var(--sans);
  font-size: .72rem;
  letter-spacing: .16em;
  color: var(--ink-muted);
  margin-bottom: .4rem;
}
.guest-field input[type="text"],
.guest-field input[type="number"],
.guest-field textarea {
  width: 100%;
  padding: .7rem .85rem;
  border: 1px solid var(--line);
  background: rgba(250,247,241,.9);
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--ink);
  border-radius: 2px;
}
.guest-field textarea { resize: vertical; min-height: 88px; }
.guest-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.guest-attend {
  border: 0;
  margin: 0 0 1.1rem;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
}
.guest-radio {
  display: flex;
  align-items: center;
  gap: .55rem;
  padding: .7rem .85rem;
  border: 1px solid var(--line);
  cursor: pointer;
  font-family: var(--serif);
  font-size: .95rem;
  letter-spacing: .08em;
  background: rgba(250,247,241,.6);
}
.guest-radio:has(input:checked) {
  border-color: var(--crimson);
  background: rgba(122,46,46,.06);
}
.guest-check {
  display: flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--sans);
  font-size: .88rem;
  margin: 0 0 1.1rem;
  letter-spacing: .04em;
  cursor: pointer;
}
.guest-form .guest-btn { width: 100%; margin-top: .25rem; }
.guest-status {
  margin-top: 1rem;
  text-align: center;
  font-family: var(--sans);
  font-size: .85rem;
  color: var(--crimson);
  letter-spacing: .06em;
}
[data-rsvp-yes].is-disabled {
  opacity: .42;
  pointer-events: none;
}

.guest-card {
  padding: 1.75rem 1.25rem;
  border: 1px solid rgba(166,137,90,.45);
  background:
    linear-gradient(180deg, rgba(166,137,90,.08), transparent 40%),
    rgba(0,0,0,.2);
  text-align: center;
  margin-bottom: .25rem;
}
.guest-card-kicker {
  font-family: var(--sans);
  font-size: .68rem;
  letter-spacing: .28em;
  color: var(--gold-light);
  margin-bottom: .85rem;
}
.guest-card-name {
  font-family: var(--serif);
  font-size: 1.15rem;
  letter-spacing: .2em;
  margin-bottom: .75rem;
}
.guest-card-table {
  font-family: var(--serif);
  font-size: clamp(2rem, 6vw, 2.75rem);
  letter-spacing: .18em;
  color: #f0e0b0;
  line-height: 1.2;
  margin-bottom: .65rem;
}
.guest-card-pending {
  font-family: var(--serif);
  font-size: 1.2rem;
  letter-spacing: .18em;
  color: rgba(247,243,235,.9);
  margin: .5rem 0 0.75rem;
}
.guest-card-note,
.guest-card-msg {
  font-family: var(--sans);
  font-size: .78rem;
  letter-spacing: .08em;
  color: rgba(247,243,235,.55);
}
.guest-card.is-ready {
  border-color: var(--gold);
}

@media (max-width: 560px) {
  .guest-field-row,
  .guest-attend { grid-template-columns: 1fr; }
  .line-greeting-inner { border-radius: 12px; padding: .55rem .9rem; }
}


/* ---------- Background music toggle (nav) ---------- */
.bgm-toggle {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  margin-left: auto;
  margin-right: 0.1rem;
  z-index: 110;
  color: var(--gold-light);
  border: none;
  border-radius: 0;
  background: transparent;
  opacity: 0.5;
  transition: color .3s, opacity .3s;
}
.bgm-toggle:hover { color: var(--gold-light); opacity: 0.85; }
.bgm-toggle[aria-pressed="true"] {
  opacity: 1;
  color: var(--gold-light);
}
.bgm-toggle .bgm-slash { opacity: 1; transition: opacity .25s; }
.bgm-toggle[aria-pressed="true"] .bgm-slash { opacity: 0; }
.nav.scrolled .bgm-toggle {
  color: var(--gold);
  opacity: 0.55;
}
.nav.scrolled .bgm-toggle[aria-pressed="true"] {
  color: var(--gold);
  opacity: 1;
}
.nav-toggle { margin-left: 0.1rem; }
body.intro-pending .bgm-toggle,
body.intro-active .bgm-toggle {
  color: var(--gold-light);
  opacity: 0.55;
}
body.intro-pending .bgm-toggle[aria-pressed="true"],
body.intro-active .bgm-toggle[aria-pressed="true"] {
  opacity: 1;
}
@media (max-width: 480px) {
  .bgm-toggle { width: 40px; height: 40px; }
}
@media (min-width: 900px) {
  .bgm-toggle { margin-left: 1.25rem; margin-right: 0; }
}

/* ========== Schedule ========== */
.schedule-section { background: var(--ink); color: var(--ivory); }
.schedule-section .section-eyebrow { color: var(--gold-light); }
.schedule-section .section-title { color: var(--ivory); }
.schedule-section .section-lead { color: rgba(247,243,235,.72); }
.schedule-section .section-divider::after { background: var(--gold-light); }
.schedule-section .diamond { border-color: var(--gold-light); }
.sched-list {
  list-style: none; margin: 2.5rem auto 0; padding: 0; max-width: 560px;
}
.sched-item {
  display: grid; grid-template-columns: 7.5rem 1.25rem 1fr; gap: .85rem 1rem;
  align-items: start; position: relative; padding: 1.1rem 0;
}
.sched-item:not(:last-child)::after {
  content: ""; position: absolute; left: calc(7.5rem + .55rem); top: 2.4rem;
  bottom: -.2rem; width: 1px; background: rgba(196,169,122,.35);
}
.sched-time {
  font-family: var(--serif); font-size: .82rem; letter-spacing: .08em;
  color: var(--gold-light); text-align: right; padding-top: .15rem;
}
.sched-dot {
  width: 10px; height: 10px; border-radius: 50%; margin-top: .45rem;
  border: 1px solid var(--gold-light); background: var(--crimson);
  box-shadow: 0 0 0 3px rgba(166,137,90,.15);
}
.sched-title {
  font-family: var(--serif); font-size: 1.15rem; font-weight: 500;
  margin: 0 0 .25rem; letter-spacing: .12em;
}
.sched-note { margin: 0; font-size: .88rem; color: rgba(247,243,235,.65); }

/* ========== Travel ========== */
.travel-section { background: #14110e; color: var(--ivory); }
.travel-section .section-eyebrow { color: var(--gold-light); }
.travel-section .section-title { color: var(--ivory); }
.travel-section .section-lead { color: rgba(247,243,235,.72); }
.travel-grid {
  display: grid; gap: 1.25rem; margin-top: 2rem;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .travel-grid { grid-template-columns: 1fr 1fr; }
}
.travel-card {
  border: 1px solid rgba(196,169,122,.35);
  background: linear-gradient(160deg, rgba(122,46,46,.18), rgba(20,17,14,.9));
  padding: 1.75rem 1.5rem; border-radius: 2px;
}
.travel-kicker {
  font-size: .7rem; letter-spacing: .35em; color: var(--gold-light); margin: 0 0 .6rem;
}
.travel-main {
  font-family: var(--serif); font-size: 1.45rem; margin: 0 0 .35rem; letter-spacing: .1em;
}
.travel-sub { margin: 0 0 1.25rem; color: rgba(247,243,235,.7); font-size: .92rem; }
.travel-actions { display: flex; flex-wrap: wrap; gap: .65rem; }

/* ========== Vendors ========== */
.vendors-section { background: var(--ivory); color: var(--ink); }
.vendor-grid {
  display: grid; gap: 1rem; margin-top: 2rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .vendor-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 960px) {
  .vendor-grid { grid-template-columns: 1fr 1fr 1fr; }
}
.vendor-card {
  border: 1px solid rgba(26,23,20,.12); background: #fff;
  padding: 1.35rem 1.2rem; border-radius: 2px;
  box-shadow: 0 8px 24px rgba(26,23,20,.04);
}
.vendor-role {
  margin: 0 0 .4rem; font-size: .72rem; letter-spacing: .28em; color: var(--crimson);
}
.vendor-name {
  font-family: var(--serif); font-size: 1.2rem; margin: 0 0 .35rem; letter-spacing: .08em;
}
.vendor-name.is-pending { color: #8a8074; font-weight: 400; }
.vendor-detail { margin: 0 0 .75rem; font-size: .88rem; color: #6b645b; }
.vendor-link {
  font-size: .82rem; letter-spacing: .08em; color: var(--gold);
  text-decoration: none; border-bottom: 1px solid rgba(166,137,90,.45);
}
.vendor-link:hover { color: var(--crimson); border-color: var(--crimson); }

/* ========== Blessings ========== */
.bless-section { background: #0f0d0b; color: var(--ivory); }
.bless-section .section-eyebrow { color: var(--gold-light); }
.bless-section .section-title { color: var(--ivory); }
.bless-section .section-lead { color: rgba(247,243,235,.72); }
.bless-wall {
  display: grid; gap: 1rem; margin-top: 2rem;
  grid-template-columns: 1fr;
}
@media (min-width: 700px) {
  .bless-wall { grid-template-columns: 1fr 1fr; }
}
.bless-card {
  border: 1px solid rgba(196,169,122,.28);
  background: linear-gradient(145deg, rgba(166,137,90,.08), rgba(15,13,11,.95));
  padding: 1.35rem 1.25rem; border-radius: 2px;
  animation: bless-in .55s ease both;
}
@keyframes bless-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
.bless-msg {
  font-family: var(--serif); font-size: 1.05rem; line-height: 1.7;
  margin: 0 0 .75rem; letter-spacing: .04em;
}
.bless-name {
  margin: 0; font-size: .82rem; letter-spacing: .12em; color: var(--gold-light); text-align: right;
}
.bless-empty {
  grid-column: 1 / -1; text-align: center; color: rgba(247,243,235,.55);
  font-size: .95rem; padding: 1.5rem 0;
}

/* ========== Album ========== */
.album-section { background: var(--ivory); color: var(--ink); text-align: center; }
.album-cta { margin-top: 1.5rem; }
.album-cta .guest-btn.is-disabled,
.guest-btn.is-disabled {
  opacity: .55; cursor: not-allowed;
}

@media (max-width: 640px) {
  .sched-item { grid-template-columns: 5.8rem 1rem 1fr; gap: .55rem .7rem; }
  .sched-item:not(:last-child)::after { left: calc(5.8rem + .4rem); }
  .sched-time { font-size: .74rem; }
  .sched-title { font-size: 1.02rem; letter-spacing: .08em; }
  .nav-menu { max-height: 70vh; overflow-y: auto; }
}

/* Travel ghost buttons need stronger contrast on dark panels */
.travel-section .guest-btn.ghost {
  color: var(--ivory);
  border-color: rgba(196,169,122,.55);
  background: transparent;
}
.travel-section .guest-btn.ghost:hover {
  border-color: var(--gold-light);
  color: var(--gold-light);
}
.travel-section .guest-btn {
  min-width: 9.5rem;
}


/* =========================================================
   Palace burgundy-gold cards (君品 rich-menu aesthetic)
   ========================================================= */
:root {
  --palace-bg: #1a0f12;
  --palace-bg-deep: #12090c;
  --palace-burgundy: #4a1820;
  --palace-gold: #c9a45c;
  --palace-gold-soft: #e2c789;
  --palace-ivory: #f5e6c8;
  --palace-ivory-dim: rgba(245, 230, 200, 0.78);
  --palace-ivory-mute: rgba(245, 230, 200, 0.58);
  --palace-line: rgba(201, 164, 92, 0.45);
  --palace-line-soft: rgba(201, 164, 92, 0.22);
}

.palace-card,
.event-card,
.venue-card,
.venue-guide,
.travel-card,
.vendor-card,
.bless-card,
.guest-card,
.guest-panel,
.venue-map-card {
  --card-ink: var(--palace-ivory);
  position: relative;
  color: var(--palace-ivory);
  background-color: var(--palace-bg);
  background-image:
    linear-gradient(165deg, rgba(74, 24, 32, 0.55) 0%, rgba(18, 9, 12, 0.92) 48%, rgba(12, 8, 10, 0.96) 100%),
    url("assets/img/textures/palace-burgundy.jpg");
  background-size: cover;
  background-position: center;
  border: 1px solid var(--palace-line);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.55) inset,
    0 0 0 5px rgba(18, 9, 12, 0.55),
    0 18px 48px rgba(0, 0, 0, 0.45);
  border-radius: 2px;
}
.palace-card::after,
.event-card::after,
.venue-guide::after,
.travel-card::after,
.vendor-card::after,
.bless-card::after,
.guest-card::after,
.guest-panel::after {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid var(--palace-line-soft);
  pointer-events: none;
  z-index: 1;
}
/* Ornate corner flourishes */
.palace-card::before,
.event-card::before,
.venue-guide::before,
.travel-card::before,
.vendor-card::before,
.bless-card::before,
.guest-card::before,
.guest-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  background:
    linear-gradient(var(--palace-gold), var(--palace-gold)) top 10px left 10px / 14px 1px no-repeat,
    linear-gradient(var(--palace-gold), var(--palace-gold)) top 10px left 10px / 1px 14px no-repeat,
    linear-gradient(var(--palace-gold), var(--palace-gold)) top 10px right 10px / 14px 1px no-repeat,
    linear-gradient(var(--palace-gold), var(--palace-gold)) top 10px right 10px / 1px 14px no-repeat,
    linear-gradient(var(--palace-gold), var(--palace-gold)) bottom 10px left 10px / 14px 1px no-repeat,
    linear-gradient(var(--palace-gold), var(--palace-gold)) bottom 10px left 10px / 1px 14px no-repeat,
    linear-gradient(var(--palace-gold), var(--palace-gold)) bottom 10px right 10px / 14px 1px no-repeat,
    linear-gradient(var(--palace-gold), var(--palace-gold)) bottom 10px right 10px / 1px 14px no-repeat;
  opacity: 0.9;
}

.event-card,
.venue-card,
.venue-guide,
.travel-card,
.vendor-card,
.bless-card,
.guest-panel,
.guest-card {
  padding: 2rem 1.5rem;
}
.event-card-solo {
  background-image:
    linear-gradient(165deg, rgba(74, 24, 32, 0.55) 0%, rgba(18, 9, 12, 0.92) 48%, rgba(12, 8, 10, 0.96) 100%),
    url("assets/img/textures/palace-burgundy.jpg");
}
.event-card:hover,
.venue-guide:hover,
.travel-card:hover,
.vendor-card:hover {
  transform: translateY(-2px);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.55) inset,
    0 0 0 5px rgba(18, 9, 12, 0.55),
    0 22px 56px rgba(0, 0, 0, 0.55);
}

/* Text inside palace cards */
.event-label {
  color: var(--palace-gold-soft) !important;
}
.event-title,
.venue-guide-title,
.travel-main,
.vendor-name,
.guest-card-name,
.sched-title {
  color: var(--palace-gold-soft) !important;
}
.event-row {
  color: var(--palace-ivory-dim) !important;
}
.event-row dt {
  color: var(--palace-gold) !important;
}
.event-row dd {
  color: var(--palace-ivory) !important;
}
.event-note {
  border-top-color: rgba(201, 164, 92, 0.28) !important;
  color: var(--palace-ivory-mute) !important;
}
.date-zh {
  display: inline-block;
  white-space: nowrap;
  font-size: clamp(0.88rem, 3.6vw, 1rem);
  letter-spacing: 0.06em;
}
.date-en {
  display: inline-block;
  margin-top: 0.15rem;
  color: var(--palace-ivory-dim);
  font-family: var(--sans);
  font-size: 0.86rem;
  letter-spacing: 0.12em;
}
.venue-card .addr-zh {
  color: var(--palace-ivory);
  display: block;
  max-width: 100%;
  line-height: 1.55;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.venue-card .addr-en {
  color: var(--palace-ivory-mute) !important;
  display: block;
  max-width: 100%;
  line-height: 1.5;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.hall-hint {
  color: var(--palace-ivory-mute) !important;
}
.venue-guide-lead {
  color: var(--palace-ivory-mute) !important;
}
.guide-item strong {
  color: var(--palace-gold-soft) !important;
}
.guide-item p {
  color: var(--palace-ivory-dim) !important;
}
.guide-item em {
  color: var(--palace-gold) !important;
}
.guide-icon {
  color: var(--palace-gold) !important;
}

/* Travel / vendors / blessings / album / table sections */
.vendors-section,
.album-section,
.guest-section:not(.guest-section-alt) {
  background: #12090c !important;
  color: var(--palace-ivory) !important;
}
.vendors-section .section-title,
.album-section .section-title,
.guest-section:not(.guest-section-alt) .section-title {
  color: var(--palace-ivory) !important;
}
.vendors-section .section-eyebrow,
.album-section .section-eyebrow {
  color: var(--palace-gold-soft) !important;
}
.vendors-section .section-lead,
.album-section .section-lead {
  color: var(--palace-ivory-dim) !important;
}
.vendors-section .section-divider::before,
.vendors-section .section-divider::after,
.album-section .section-divider::before,
.album-section .section-divider::after {
  background: var(--palace-gold) !important;
}
.vendors-section .diamond,
.album-section .diamond {
  border-color: var(--palace-gold) !important;
}

.vendor-role { color: var(--palace-gold) !important; }
.vendor-name.is-pending { color: var(--palace-ivory-mute) !important; }
.vendor-detail { color: var(--palace-ivory-dim) !important; }
.vendor-link {
  color: var(--palace-gold-soft) !important;
  border-bottom-color: rgba(201,164,92,.45) !important;
}
.vendor-link:hover { color: var(--palace-ivory) !important; }

.travel-card {
  background-image:
    linear-gradient(160deg, rgba(74,24,32,.5), rgba(18,9,12,.94)),
    url("assets/img/textures/palace-burgundy.jpg") !important;
}
.travel-kicker { color: var(--palace-gold-soft) !important; }
.travel-sub { color: var(--palace-ivory-dim) !important; }

.bless-card {
  background-image:
    linear-gradient(145deg, rgba(74,24,32,.35), rgba(15,13,11,.96)),
    url("assets/img/textures/palace-burgundy.jpg") !important;
}
.bless-msg { color: var(--palace-ivory) !important; }
.bless-name { color: var(--palace-gold-soft) !important; }

.guest-card,
.guest-panel {
  background-image:
    linear-gradient(165deg, rgba(74,24,32,.45), rgba(18,9,12,.95)),
    url("assets/img/textures/palace-burgundy.jpg") !important;
}
.guest-card-kicker { color: var(--palace-gold) !important; }
.guest-card-pending,
.guest-card-note,
.guest-card-msg,
.guest-panel-lead,
.guest-panel-hint { color: var(--palace-ivory-dim) !important; }
.guest-card-table { color: var(--palace-gold-soft) !important; }

.guest-section-alt .guest-panel {
  background-image:
    linear-gradient(165deg, rgba(74,24,32,.45), rgba(18,9,12,.95)),
    url("assets/img/textures/palace-burgundy.jpg") !important;
  border-color: var(--palace-line) !important;
}

.album-section .guest-btn,
.travel-section .guest-btn {
  border-color: rgba(201,164,92,.55);
}

/* Schedule items as soft palace rows */
.sched-item {
  background: linear-gradient(90deg, rgba(74,24,32,.22), rgba(18,9,12,.35));
  border: 1px solid var(--palace-line-soft);
  border-radius: 2px;
  padding: 1rem 0.85rem;
  margin-bottom: 0.55rem;
}
.sched-item:not(:last-child)::after { display: none; }
.sched-note { color: var(--palace-ivory-mute) !important; }

/* Map card stays dark; reinforce gold frame */
.venue-map-card {
  background-image: none !important;
  background-color: #1a1714 !important;
  box-shadow:
    0 0 0 1px rgba(0,0,0,.55) inset,
    0 0 0 5px rgba(18,9,12,.4),
    0 14px 36px rgba(0,0,0,.4);
}
.venue-map-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  background:
    linear-gradient(var(--palace-gold), var(--palace-gold)) top 8px left 8px / 12px 1px no-repeat,
    linear-gradient(var(--palace-gold), var(--palace-gold)) top 8px left 8px / 1px 12px no-repeat,
    linear-gradient(var(--palace-gold), var(--palace-gold)) top 8px right 8px / 12px 1px no-repeat,
    linear-gradient(var(--palace-gold), var(--palace-gold)) top 8px right 8px / 1px 12px no-repeat,
    linear-gradient(var(--palace-gold), var(--palace-gold)) bottom 8px left 8px / 12px 1px no-repeat,
    linear-gradient(var(--palace-gold), var(--palace-gold)) bottom 8px left 8px / 1px 12px no-repeat,
    linear-gradient(var(--palace-gold), var(--palace-gold)) bottom 8px right 8px / 12px 1px no-repeat,
    linear-gradient(var(--palace-gold), var(--palace-gold)) bottom 8px right 8px / 1px 12px no-repeat;
  opacity: 0.85;
}
.venue-map-card::after { display: none; }

/* Calendar landing page already dark — leave as is */

/* Stacking: keep content above flourishes */
.event-card > *,
.venue-guide > *,
.travel-card > *,
.vendor-card > *,
.bless-card > *,
.guest-card > *,
.guest-panel > * {
  position: relative;
  z-index: 3;
}

@media (max-width: 420px) {
  .date-zh { font-size: 0.9rem; letter-spacing: 0.02em; }
  .event-card-solo,
  .venue-guide,
  .travel-card { padding: 1.65rem 1.15rem; }
  .event-row {
    grid-template-columns: 3.2em 1fr;
    font-size: 0.88rem;
  }
}

/* Free parking callout — top of 交通與停車 card */
.parking-free-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  margin: 0 0 0.95rem;
  padding: 0.5rem 1.05rem;
  border: 1px solid rgba(201, 164, 92, 0.85);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(201, 164, 92, 0.28), rgba(201, 164, 92, 0.08)),
    rgba(20, 12, 10, 0.55);
  color: #f0d78a;
  font-family: "Noto Serif TC", "Noto Sans TC", serif;
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.18em;
  line-height: 1.2;
  white-space: nowrap;
  box-shadow:
    0 0 0 1px rgba(240, 215, 138, 0.18),
    0 8px 22px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 236, 180, 0.25);
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.45);
}
.parking-copy {
  line-break: strict;
  word-break: keep-all;
  overflow-wrap: break-word;
}
.guide-item p,
.venue-guide-lead,
.event-detail dd,
.travel-sub {
  line-break: strict;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.nowrap { white-space: nowrap; }
.parking-copy .nowrap { white-space: nowrap; }

/* ===== Vendor monogram cards (2026-11) ===== */
a.vendor-card {
  display: block;
  text-decoration: none;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}
.vendor-badge {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin: 0 0 1rem;
  position: relative;
  z-index: 3;
}
.vendor-mono {
  flex: 0 0 auto;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  border: 1px solid var(--palace-gold);
  box-shadow: 0 0 0 3px rgba(201,164,92,.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 1rem;
  letter-spacing: .04em;
  color: var(--palace-gold-soft);
  background: radial-gradient(circle at 35% 30%, rgba(201,164,92,.22), rgba(18,9,12,.85) 70%);
  white-space: nowrap;
}
.vendor-icon {
  width: 1.55rem;
  height: 1.55rem;
  color: var(--palace-gold);
  opacity: .85;
  display: inline-flex;
}
.vendor-icon svg { width: 100%; height: 100%; display: block; }
.vendor-role {
  letter-spacing: .32em !important;
  white-space: nowrap;
  position: relative;
  z-index: 3;
}
.vendor-name {
  position: relative;
  z-index: 3;
  line-height: 1.45;
  overflow-wrap: anywhere;
  font-size: clamp(1.05rem, 3.8vw, 1.22rem) !important;
}
.vendor-detail {
  position: relative;
  z-index: 3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: .04em;
}
.vendor-link {
  position: relative;
  z-index: 3;
  display: inline-block;
  margin-top: .15rem;
  white-space: nowrap;
}
@media (max-width: 640px) {
  .vendor-grid { gap: .85rem; }
  .vendor-card { padding: 1.35rem 1.15rem !important; }
  .vendor-mono { width: 2.5rem; height: 2.5rem; font-size: .92rem; }
}

/* Hide Netlify deploy badge */
#nl-badge-frame,
iframe[id*="badge"],
iframe[src*="netlify"],
a[href*="netlify.com"][target="_blank"] {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
  width: 0 !important; height: 0 !important; opacity: 0 !important;
}
