/* =========================================================
   THREADS OF GRACE & EXCELLENCE — Editorial Documentary CSS
   Palette: Deep Obsidian, Warm Charcoal, Champagne Gold, Ivory
   ========================================================= */

:root {
  --bg-obsidian: #0b0a09;
  --bg-charcoal: #151311;
  --bg-elevated: #1d1a17;
  --surface-glass: rgba(20, 18, 15, 0.78);
  --border-subtle: rgba(214, 178, 110, 0.2);
  --border-strong: rgba(214, 178, 110, 0.48);

  --gold: #d6b26e;
  --gold-bright: #ecd095;
  --gold-dim: rgba(214, 178, 110, 0.16);

  /* Subtle Royal Purple accent echoing CONCEPTUALIZA Clothing */
  --brand-purple: #4a1d96;
  --brand-purple-glow: rgba(92, 45, 184, 0.28);

  --ivory: #f6f0e6;
  --ivory-muted: #c8bfb2;
  --ivory-soft: #968c7f;

  --font-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.55);
  --ease-editorial: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100dvh;
  background-color: var(--bg-obsidian);
  color: var(--ivory);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

button,
input,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* ---------- Shared Typography & Buttons ---------- */
.eyebrow {
  margin: 0 0 0.65rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

.section-title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.8vw, 3.15rem);
  font-weight: 500;
  line-height: 1.1;
  color: var(--ivory);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.65rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.25s var(--ease-editorial);
}

.btn:active {
  transform: scale(0.98);
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  color: #16120c;
  font-weight: 600;
}

.btn-gold:hover {
  background: linear-gradient(135deg, #f3dca8, var(--gold-bright));
}

.btn-ghost {
  background: rgba(246, 240, 230, 0.06);
  border-color: var(--border-strong);
  color: var(--ivory);
}

.btn-ghost:hover {
  background: rgba(214, 178, 110, 0.16);
  border-color: var(--gold-bright);
}

/* ---------- Opening Curtain ---------- */
.intro-curtain {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 2rem;
  background: var(--bg-obsidian);
  transition: opacity 0.8s var(--ease-editorial), visibility 0.8s ease;
}

.intro-curtain.is-exiting {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.intro-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.intro-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  opacity: 0.55;
  transform: scale(1.03);
}

@media (prefers-reduced-motion: no-preference) {
  .intro-bg-img {
    animation: gentleBreath 18s ease-in-out infinite alternate;
  }
}

.intro-vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 42%, rgba(11, 10, 9, 0.25) 0%, rgba(11, 10, 9, 0.88) 78%),
    linear-gradient(to top, rgba(11, 10, 9, 0.96) 0%, transparent 45%, rgba(11, 10, 9, 0.65) 100%);
}

.intro-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  text-align: center;
}

.intro-logo-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.35rem;
  margin-bottom: 1.45rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(214, 178, 110, 0.55);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45), 0 0 36px var(--brand-purple-glow);
}

.intro-logo-img {
  height: clamp(56px, 8vw, 84px);
  width: auto;
  object-fit: contain;
}

.intro-title {
  margin: 0 0 1rem;
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 6.5vw, 5.2rem);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.01em;
  color: var(--ivory);
}

.intro-subtitle {
  margin: 0 auto 2.2rem;
  max-width: 560px;
  font-size: clamp(1rem, 1.8vw, 1.18rem);
  color: var(--ivory-muted);
  font-weight: 300;
}

.intro-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
  margin-bottom: 1.5rem;
}

.intro-hint {
  margin: 0;
  font-size: 0.8rem;
  color: var(--ivory-soft);
}

/* ---------- Main Shell & Header ---------- */
.experience-shell[hidden] {
  display: none;
}

.experience-shell {
  padding-bottom: 6.5rem; /* room for floating music dock */
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem clamp(1.2rem, 4vw, 3.2rem);
  background: rgba(11, 10, 9, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.header-logo-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.65rem;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid var(--border-strong);
  box-shadow: 0 4px 16px var(--brand-purple-glow);
}

.header-logo-img {
  height: 32px;
  width: auto;
  object-fit: contain;
}

.brand-name {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.1;
}

.brand-tag {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ivory-soft);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}

.header-nav a {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ivory-muted);
  transition: color 0.2s ease;
}

.header-nav a:hover {
  color: var(--gold-bright);
}

/* ---------- Living Documentary Stage ---------- */
.doc-section {
  padding: clamp(1rem, 2.5vw, 2rem) clamp(1rem, 4vw, 3.2rem) 2.5rem;
  max-width: 1440px;
  margin: 0 auto;
}

.doc-stage {
  position: relative;
  width: 100%;
  min-height: clamp(500px, 76vh, 760px);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-charcoal);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-lg);
}

.slides-container {
  position: absolute;
  inset: 0;
}

.doc-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.9s var(--ease-editorial), visibility 0.9s ease;
}

.doc-slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.doc-slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  will-change: transform;
}

/* Editorial Portrait Framing: shows full vertical outfit cleanly over blurred ambient backdrop */
.doc-slide.is-editorial-portrait {
  background: var(--bg-obsidian);
}

.doc-slide-backdrop {
  position: absolute;
  inset: -24px;
  width: calc(100% + 48px);
  height: calc(100% + 48px);
  object-fit: cover;
  object-position: center 25%;
  filter: blur(26px) brightness(0.42) saturate(1.15);
  transform: scale(1.08);
  pointer-events: none;
}

.doc-slide.is-editorial-portrait .doc-slide-img {
  position: absolute;
  top: 0;
  right: clamp(2%, 7vw, 10%);
  width: auto;
  max-width: 58%;
  height: 100%;
  object-fit: contain;
  object-position: center top;
  filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.72));
}

/* Opt-in Ken Burns Motion (only when reduced motion is not requested) */
@media (prefers-reduced-motion: no-preference) {
  .doc-slide.is-active .doc-slide-img.kb-zoom-in {
    animation: kbZoomIn 14s ease-out forwards;
  }
  .doc-slide.is-active .doc-slide-img.kb-zoom-out {
    animation: kbZoomOut 14s ease-out forwards;
  }
  .doc-slide.is-active .doc-slide-img.kb-pan-right {
    animation: kbPanRight 14s ease-out forwards;
  }
  .doc-slide.is-active .doc-slide-img.kb-pan-left {
    animation: kbPanLeft 14s ease-out forwards;
  }
  .doc-stage.is-paused .doc-slide-img {
    animation-play-state: paused;
  }
}

.stage-gradient {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(11, 10, 9, 0.62) 0%, transparent 26%, rgba(11, 10, 9, 0.25) 58%, rgba(11, 10, 9, 0.94) 100%),
    linear-gradient(to right, rgba(11, 10, 9, 0.65) 0%, transparent 55%);
}

/* Top HUD */
.stage-top-hud {
  position: absolute;
  top: 1.25rem;
  left: 1.5rem;
  right: 1.5rem;
  z-index: 6;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.chapter-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-pill);
  background: var(--surface-glass);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-subtle);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.chapter-num {
  color: var(--gold-bright);
  font-weight: 600;
}

.pill-divider {
  color: var(--ivory-soft);
}

.hud-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hud-btn {
  padding: 0.45rem 0.95rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  background: var(--surface-glass);
  backdrop-filter: blur(10px);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--ivory);
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.hud-btn:hover {
  border-color: var(--gold);
  background: rgba(214, 178, 110, 0.2);
}

/* Interactive Photo Hotspots */
.hotspots-layer {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
}

.hotspot-pin {
  position: absolute;
  transform: translate(-50%, -50%);
  pointer-events: auto;
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 50%;
  border: 1.5px solid var(--gold-bright);
  background: rgba(15, 13, 11, 0.75);
  color: var(--gold-bright);
  display: grid;
  place-items: center;
  font-size: 1rem;
  font-weight: 600;
  box-shadow: 0 0 0 6px rgba(214, 178, 110, 0.18);
  transition: transform 0.25s var(--ease-editorial), background-color 0.25s ease;
}

.hotspot-pin:hover,
.hotspot-pin.is-open {
  transform: translate(-50%, -50%) scale(1.14);
  background: var(--gold);
  color: #16120c;
}

@media (prefers-reduced-motion: no-preference) {
  .hotspot-pin::after {
    content: "";
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    border: 1px solid var(--gold);
    animation: pinPulse 2.4s ease-out infinite;
  }
}

.hotspot-card {
  position: absolute;
  top: 4.8rem;
  right: 1.5rem;
  z-index: 8;
  width: min(340px, calc(100% - 3rem));
  padding: 1.25rem 1.35rem;
  border-radius: var(--radius-md);
  background: rgba(18, 16, 13, 0.92);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-lg);
}

.hotspot-card[hidden] {
  display: none;
}

.hotspot-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.4rem;
}

.hotspot-tag {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

.icon-close-btn {
  border: none;
  background: transparent;
  color: var(--ivory-muted);
  font-size: 1.35rem;
  line-height: 1;
  padding: 0.15rem 0.35rem;
}

.icon-close-btn:hover {
  color: var(--ivory);
}

.hotspot-title {
  margin: 0 0 0.45rem;
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--ivory);
}

.hotspot-body {
  margin: 0;
  font-size: 0.88rem;
  color: var(--ivory-muted);
}

/* Bottom Story Overlay */
.stage-story-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 6;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.75rem clamp(1.25rem, 3vw, 2.5rem) 2rem;
}

.story-copy {
  max-width: 680px;
}

.chapter-title {
  margin: 0 0 0.6rem;
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 4vw, 3.25rem);
  font-weight: 500;
  line-height: 1.08;
  color: var(--ivory);
}

.chapter-narrative {
  margin: 0 0 1rem;
  font-size: clamp(0.92rem, 1.3vw, 1.04rem);
  color: var(--ivory-muted);
  font-weight: 300;
}

.chapter-scripture {
  margin: 0;
  padding-left: 1rem;
  border-left: 2px solid var(--gold);
}

.chapter-scripture p {
  margin: 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1rem, 1.5vw, 1.22rem);
  color: var(--gold-bright);
}

.chapter-scripture footer {
  margin-top: 0.2rem;
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ivory-soft);
}

.stage-nav-arrows {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.circle-btn {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: var(--surface-glass);
  backdrop-filter: blur(10px);
  color: var(--ivory);
  font-size: 1.15rem;
  display: grid;
  place-items: center;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.circle-btn:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: #16120c;
}

/* Progress Bar */
.chapter-progress-track {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 7;
  height: 3px;
  background: rgba(246, 240, 230, 0.12);
}

.chapter-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--gold), var(--gold-bright));
  transition: width 0.1s linear;
}

/* Filmstrip Chapter Selector */
.filmstrip-wrap {
  margin-top: 1.25rem;
}

.filmstrip-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.85rem;
}

.filmstrip-item {
  position: relative;
  display: flex;
  flex-direction: column;
  text-align: left;
  padding: 0.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: var(--bg-charcoal);
  transition: border-color 0.25s ease, background-color 0.25s ease, transform 0.25s var(--ease-editorial);
}

.filmstrip-item:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.filmstrip-item.is-active {
  border-color: var(--gold-bright);
  background: var(--bg-elevated);
}

.filmstrip-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 0.55rem;
  opacity: 0.72;
  transition: opacity 0.25s ease;
}

.filmstrip-item.is-active .filmstrip-thumb,
.filmstrip-item:hover .filmstrip-thumb {
  opacity: 1;
}

.filmstrip-roman {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.filmstrip-name {
  font-family: var(--font-serif);
  font-size: 1.08rem;
  font-weight: 500;
  color: var(--ivory);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------- Ethos & Favorite Scripture Interlude ---------- */
.ethos-banner {
  padding: clamp(3rem, 6vw, 4.75rem) clamp(1.25rem, 4vw, 3.2rem);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  background:
    radial-gradient(circle at 50% 50%, var(--brand-purple-glow), transparent 65%),
    radial-gradient(circle at 50% 50%, rgba(214, 178, 110, 0.08), transparent 72%);
}

.ethos-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.ethos-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  padding: clamp(1.75rem, 3.5vw, 2.75rem);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  background: rgba(21, 19, 17, 0.72);
}

.ethos-card.is-scripture {
  border-color: var(--border-strong);
  background: linear-gradient(160deg, rgba(74, 29, 150, 0.22), rgba(21, 19, 17, 0.85));
}

.ethos-quote {
  margin: 0 0 1rem;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.45rem, 2.5vw, 2.15rem);
  line-height: 1.32;
  color: var(--ivory);
}

.ethos-scripture-quote {
  font-size: clamp(1.2rem, 1.9vw, 1.55rem);
  line-height: 1.48;
  color: var(--gold-bright);
}

.ethos-ref {
  margin: 0;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ---------- 22-Year Journey Timeline ---------- */
.journey-section {
  max-width: 1360px;
  margin: 0 auto;
  padding: clamp(3.2rem, 6vw, 5rem) clamp(1.25rem, 4vw, 3.2rem);
  border-bottom: 1px solid var(--border-subtle);
}

.journey-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.75rem;
}

.journey-title-block {
  max-width: 680px;
}

.journey-lead {
  margin: 0.75rem 0 0;
  font-size: 1.02rem;
  color: var(--ivory-muted);
  font-weight: 300;
}

.journey-stat-card {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1.4rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-strong);
  background: linear-gradient(135deg, rgba(74, 29, 150, 0.24), rgba(214, 178, 110, 0.1));
}

.journey-stat-num {
  font-family: var(--font-serif);
  font-size: 3.2rem;
  font-weight: 600;
  line-height: 0.9;
  color: var(--gold-bright);
}

.journey-stat-label {
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.45;
  color: var(--ivory);
}

.journey-route-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 2.25rem;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  background: var(--bg-charcoal);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ivory-muted);
  width: fit-content;
  max-width: 100%;
}

.route-arrow {
  color: var(--gold);
}

.route-highlight {
  color: var(--gold-bright);
  font-weight: 600;
}

.journey-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1.1rem;
}

.journey-step {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.5rem 1.35rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: linear-gradient(170deg, var(--bg-elevated), var(--bg-charcoal));
  transition: border-color 0.25s ease, transform 0.3s var(--ease-editorial);
}

.journey-step:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
}

.journey-step.is-turning-point {
  border-color: var(--border-strong);
  background: linear-gradient(165deg, rgba(74, 29, 150, 0.26), var(--bg-charcoal) 72%);
}

.journey-step-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.journey-step-num {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--gold-bright);
  line-height: 1;
}

.journey-step-place {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-pill);
  background: var(--gold-dim);
}

.journey-step-title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 500;
  line-height: 1.18;
  color: var(--ivory);
}

.journey-step-body {
  margin: 0;
  font-size: 0.87rem;
  line-height: 1.6;
  color: var(--ivory-muted);
}

/* ---------- Gallery Section ---------- */
.gallery-section,
.wishes-section {
  max-width: 1360px;
  margin: 0 auto;
  padding: clamp(3rem, 6vw, 4.75rem) clamp(1.25rem, 4vw, 3.2rem);
}

.section-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.filter-chip {
  padding: 0.5rem 1.05rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  background: transparent;
  color: var(--ivory-muted);
  font-size: 0.82rem;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.filter-chip:hover {
  border-color: var(--gold);
  color: var(--ivory);
}

.filter-chip.is-active {
  background: var(--gold);
  border-color: var(--gold);
  color: #16120c;
  font-weight: 600;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.gallery-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: var(--bg-charcoal);
  padding: 0;
  text-align: left;
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s ease, transform 0.3s var(--ease-editorial);
}

.gallery-card:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
}

.gallery-card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg-obsidian);
}

.gallery-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-editorial);
}

.gallery-card:hover .gallery-card-media img {
  transform: scale(1.05);
}

.gallery-card-body {
  padding: 1.15rem 1.25rem 1.3rem;
}

.gallery-card-tag {
  display: inline-block;
  margin-bottom: 0.35rem;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.gallery-card-title {
  margin: 0 0 0.35rem;
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 500;
  color: var(--ivory);
}

.gallery-card-desc {
  margin: 0;
  font-size: 0.86rem;
  color: var(--ivory-muted);
}

/* ---------- Wishes Wall ---------- */
.wishes-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.wish-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.1rem;
  padding: 1.6rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: linear-gradient(160deg, var(--bg-elevated), var(--bg-charcoal));
  transition: border-color 0.25s ease, transform 0.25s var(--ease-editorial);
}

.wish-card:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
}

.wish-preview-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.wish-text {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.24rem;
  line-height: 1.48;
  color: var(--ivory);
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.wish-read-btn {
  align-self: flex-start;
  padding: 0;
  border: none;
  background: transparent;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-bright);
  transition: color 0.2s ease, transform 0.2s ease;
}

.wish-read-btn:hover {
  color: var(--ivory);
  transform: translateX(3px);
}

.wish-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--border-subtle);
}

.wish-author {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gold-bright);
}

.wish-role {
  margin: 0;
  font-size: 0.78rem;
  color: var(--ivory-soft);
}

.site-footer {
  padding: 2.2rem 1.5rem;
  text-align: center;
  border-top: 1px solid var(--border-subtle);
  color: var(--ivory-soft);
  font-size: 0.85rem;
}

/* ---------- Floating Music Dock ---------- */
.music-dock[hidden] {
  display: none;
}

.music-dock {
  position: fixed;
  left: 50%;
  bottom: 1.15rem;
  transform: translateX(-50%);
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 1rem;
  width: min(640px, calc(100% - 1.5rem));
  padding: 0.65rem 1.1rem;
  border-radius: var(--radius-pill);
  background: rgba(18, 16, 13, 0.88);
  backdrop-filter: blur(18px);
  border: 1px solid var(--border-strong);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.6);
}

.audio-play-btn {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  color: #16120c;
  font-size: 0.95rem;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.audio-meta {
  min-width: 0;
  flex: 1;
}

.track-title {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ivory);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.track-mood {
  margin: 0;
  font-size: 0.72rem;
  color: var(--ivory-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.audio-visualizer {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 20px;
}

.audio-visualizer span {
  display: block;
  width: 3px;
  height: 6px;
  border-radius: 3px;
  background: var(--gold);
  transition: height 0.2s ease;
}

@media (prefers-reduced-motion: no-preference) {
  .audio-visualizer.is-playing span {
    animation: soundBar 1s ease-in-out infinite alternate;
  }
  .audio-visualizer.is-playing span:nth-child(2) { animation-delay: 0.18s; }
  .audio-visualizer.is-playing span:nth-child(3) { animation-delay: 0.36s; }
  .audio-visualizer.is-playing span:nth-child(4) { animation-delay: 0.12s; }
  .audio-visualizer.is-playing span:nth-child(5) { animation-delay: 0.28s; }
}

.audio-controls {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.audio-mini-btn {
  border: none;
  background: transparent;
  color: var(--ivory-muted);
  font-size: 0.95rem;
  padding: 0.35rem;
}

.audio-mini-btn:hover {
  color: var(--gold-bright);
}

.volume-wrap input[type="range"] {
  width: 68px;
  accent-color: var(--gold);
}

/* Visually hidden host for YouTube audio playback */
.sr-only-player {
  position: fixed;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  bottom: 0;
  right: 0;
}

/* ---------- Native <dialog> Modals (Lightbox & Wish Form) ---------- */
dialog:modal {
  overscroll-behavior: contain;
}

dialog::backdrop {
  background: rgba(5, 4, 3, 0.82);
  backdrop-filter: blur(8px);
  overflow: hidden;
  overscroll-behavior: contain;
}

.editorial-dialog {
  padding: 0;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background: var(--bg-charcoal);
  color: var(--ivory);
  box-shadow: var(--shadow-lg);
  max-width: min(920px, calc(100vw - 2rem));
  max-height: calc(100dvh - 2rem);
}

.editorial-dialog[open] {
  display: block;
}

.dialog-inner {
  position: relative;
}

.dialog-close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 3;
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: rgba(11, 10, 9, 0.78);
  color: var(--ivory);
  font-size: 1.35rem;
  line-height: 1;
  display: grid;
  place-items: center;
}

.dialog-close-btn:hover {
  background: var(--gold);
  color: #16120c;
}

.lightbox-figure {
  margin: 0;
}

.lightbox-media-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-obsidian);
}

.lightbox-img {
  width: 100%;
  max-height: 70dvh;
  object-fit: contain;
  background: var(--bg-obsidian);
}

.lightbox-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: rgba(11, 10, 9, 0.78);
  color: var(--ivory);
  font-size: 1.1rem;
  display: grid;
  place-items: center;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.lightbox-nav-btn:hover {
  background: var(--gold);
  color: #16120c;
}

.lightbox-nav-btn[hidden] {
  display: none;
}

.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }

.lightbox-caption {
  padding: 1.35rem 1.75rem 1.65rem;
}

.lightbox-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.lightbox-counter {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  color: var(--ivory-soft);
}

.lightbox-title {
  margin: 0 0 0.4rem;
  font-family: var(--font-serif);
  font-size: 1.85rem;
  font-weight: 500;
}

.lightbox-desc {
  margin: 0;
  color: var(--ivory-muted);
}

.wish-dialog {
  width: min(540px, calc(100vw - 2rem));
}

.wish-form-wrap {
  padding: 1.75rem;
}

.dialog-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.dialog-header h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.9rem;
  font-weight: 500;
}

.dialog-header .dialog-close-btn {
  position: static;
}

.wish-form {
  display: grid;
  gap: 1rem;
}

.field {
  display: grid;
  gap: 0.4rem;
}

.field span {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ivory-muted);
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.8rem 0.95rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: var(--bg-obsidian);
  color: var(--ivory);
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--gold);
  outline: none;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 0.4rem;
}

/* ---------- Editorial Letter Reader Dialog ---------- */
.letter-dialog {
  width: min(680px, calc(100vw - 2rem));
}

.letter-reader-wrap {
  padding: clamp(1.5rem, 3.5vw, 2.35rem);
  background:
    radial-gradient(circle at top right, var(--brand-purple-glow), transparent 55%),
    var(--bg-charcoal);
}

.letter-header {
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
}

.letter-body {
  max-height: 54dvh;
  overflow-y: auto;
  padding: 1.35rem 0.25rem 1.35rem 0;
  font-family: var(--font-serif);
  font-size: clamp(1.22rem, 2vw, 1.42rem);
  line-height: 1.68;
  color: var(--ivory);
}

.letter-body p {
  margin: 0 0 1.05rem;
}

.letter-body p:last-child {
  margin-bottom: 0;
}

.letter-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--border-subtle);
}

.letter-nav {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.btn-sm {
  padding: 0.58rem 1.15rem;
  font-size: 0.82rem;
}

/* ---------- Keyframes ---------- */
@keyframes gentleBreath {
  from { transform: scale(1.03); }
  to { transform: scale(1.1); }
}

@keyframes kbZoomIn {
  from { transform: scale(1); }
  to { transform: scale(1.11); }
}

@keyframes kbZoomOut {
  from { transform: scale(1.12); }
  to { transform: scale(1); }
}

@keyframes kbPanRight {
  from { transform: scale(1.1) translateX(-2.5%); }
  to { transform: scale(1.1) translateX(2.5%); }
}

@keyframes kbPanLeft {
  from { transform: scale(1.1) translateX(2.5%); }
  to { transform: scale(1.1) translateX(-2.5%); }
}

@keyframes pinPulse {
  0% { transform: scale(1); opacity: 0.85; }
  100% { transform: scale(1.75); opacity: 0; }
}

@keyframes soundBar {
  0% { height: 5px; }
  100% { height: 20px; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1120px) {
  .journey-timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .ethos-grid {
    grid-template-columns: 1fr;
  }

  .filmstrip-list {
    grid-template-columns: repeat(5, minmax(150px, 1fr));
    overflow-x: auto;
    padding-bottom: 0.4rem;
  }

  .gallery-grid,
  .wishes-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .header-nav {
    display: none;
  }

  .journey-timeline {
    grid-template-columns: 1fr;
  }

  .doc-stage {
    min-height: 580px;
  }

  .doc-slide.is-editorial-portrait .doc-slide-img {
    right: 50%;
    transform: translateX(50%);
    max-width: 92%;
  }

  .stage-story-overlay {
    flex-direction: column;
    align-items: flex-start;
  }

  .gallery-grid,
  .wishes-grid {
    grid-template-columns: 1fr;
  }

  .volume-wrap {
    display: none;
  }
}
