@font-face {
  font-family: "Wedding Serif";
  src: url("./assets/fonts/wedding-serif.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #2a241c;
  --ink-light: #53493d;
  --paper: #f6f1e8;
  --paper-card: rgba(255, 252, 247, 0.92);
  --paper-deep: #ebe3d4;
  --muted: #8a7d6d;
  --line: rgba(42, 36, 28, 0.1);
  --line-light: rgba(255, 255, 255, 0.22);
  --gold: #b8894a;
  --gold-dark: #8d6830;
  --gold-light: #f3e4c4;
  --gold-gradient: linear-gradient(160deg, #f4e2be 0%, #d4b06a 52%, #b8894a 100%);
  --gold-glow: rgba(184, 137, 74, 0.28);
  --accent-red: #9d3a3a;
  --sea: #6f8ea3;
  --night: #1a1612;
  --night-card: rgba(26, 22, 18, 0.78);
  --night-elevated: #221c17;
  --shadow-sm: 0 4px 16px rgba(26, 22, 18, 0.05);
  --shadow-md: 0 16px 40px rgba(26, 22, 18, 0.1);
  --shadow-lg: 0 28px 70px rgba(12, 9, 7, 0.26);
  --shadow-gold: 0 10px 28px rgba(184, 137, 74, 0.28);
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-pill: 999px;
  --serif: "Wedding Serif", "Noto Serif SC", "Songti SC", "STSong", "Source Han Serif SC", Georgia, serif;
  --display: "Wedding Serif", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --transition-smooth: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background: var(--night);
  color-scheme: dark light;
}

body {
  color: var(--ink);
  background: var(--paper);
  font-family: var(--serif);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography Helpers */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: 0.04em;
}

p {
  letter-spacing: 0.02em;
}

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

button {
  border: none;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

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

/* ==========================================================================
   Ambient Particle Canvas & Background Glows
   ========================================================================== */
#ambientCanvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 8;
  opacity: 0.45;
  transition: opacity 1s ease;
}

body:has(.seal-gate:not(.is-opened)) #ambientCanvas {
  opacity: 0;
}

/* ==========================================================================
   Envelope / Wax Seal Opening Experience
   ========================================================================== */
.seal-gate {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  color: #fffaf2;
  overflow: hidden;
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.9s;
}

.seal-gate.is-opened {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.seal-photo {
  position: absolute;
  inset: 0;
  background-image: url("./assets/images/cover.webp");
  background-size: cover;
  background-position: center 28%;
  transform: scale(1.06);
  animation: sealKen 18s ease-in-out infinite alternate;
}

.seal-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(18, 14, 10, 0.18) 0%, rgba(18, 14, 10, 0.08) 38%, rgba(18, 14, 10, 0.72) 100%);
}

.seal-envelope {
  position: relative;
  z-index: 2;
  width: min(92vw, 520px);
  padding: 0 24px max(56px, env(safe-area-inset-bottom));
  text-align: center;
}

.seal-kicker {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.38em;
  color: rgba(255, 246, 232, 0.78);
  margin-bottom: 14px;
}

.seal-title {
  font-family: var(--serif);
  font-size: clamp(36px, 9vw, 56px);
  font-weight: 400;
  letter-spacing: 0.16em;
  line-height: 1.2;
  margin-bottom: 8px;
}

.seal-title em {
  font-style: italic;
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: 0;
  margin: 0 0.12em;
  color: var(--gold-light);
}

.seal-line {
  font-size: 16px;
  letter-spacing: 0.42em;
  color: rgba(255, 246, 232, 0.82);
  margin-bottom: 18px;
}

.seal-meta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.08em;
  color: rgba(255, 246, 232, 0.78);
  margin-bottom: 28px;
}

.seal-meta i {
  width: 18px;
  height: 1px;
  background: rgba(243, 228, 196, 0.55);
}

.seal-facts {
  margin: 0 auto 20px;
  padding: 17px 20px;
  border: 1px solid rgba(255, 246, 232, 0.38);
  border-radius: 18px;
  background: rgba(18, 14, 10, 0.64);
  backdrop-filter: blur(12px);
  text-align: left;
  font-family: var(--sans);
}

.seal-facts p {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  margin: 6px 0;
  line-height: 1.45;
  letter-spacing: 0;
}

.seal-facts p span {
  color: #f3dfb5;
  font-size: 15px;
}

.seal-facts p strong {
  color: #fffaf2;
  font-size: clamp(16px, 4.3vw, 20px);
  font-weight: 600;
}

.seal-facts p .weekday, .hero-facts p .weekday {
  color: inherit;
  font-size: inherit;
  padding: 0;
  white-space: nowrap;
}

.seal-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 168px;
  padding: 13px 32px;
  border-radius: var(--radius-pill);
  background: rgba(255, 250, 242, 0.14);
  border: 1px solid rgba(255, 246, 232, 0.42);
  color: #fffaf2;
  font-family: var(--sans);
  font-size: 14px;
  letter-spacing: 0.22em;
  backdrop-filter: blur(16px);
  transition: transform 0.25s ease, background 0.25s ease;
}

.seal-action-btn:hover {
  transform: translateY(-2px);
  background: rgba(255, 250, 242, 0.24);
}

.seal-wax-btn {
  display: none;
}

.seal-skip {
  display: block;
  margin: 18px auto 0;
  font-family: var(--sans);
  font-size: 12px;
  color: rgba(255, 249, 240, 0.48);
  letter-spacing: 0.16em;
}

/* ==========================================================================
   Top Floating Nav & Sound Toggle
   ========================================================================== */
.top-bar {
  position: fixed;
  top: max(14px, env(safe-area-inset-top));
  left: 0;
  right: 0;
  z-index: 90;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 18px;
  pointer-events: none;
}

.brand-mark {
  pointer-events: auto;
  font-family: var(--display);
  font-size: 15px;
  letter-spacing: 0.28em;
  color: rgba(255, 250, 242, 0.88);
  padding: 8px 4px;
}

.nav-pill {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  background: rgba(20, 16, 12, 0.38);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-pill a {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: rgba(255, 250, 242, 0.75);
  padding: 4px 8px;
  border-radius: var(--radius-pill);
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-pill a:hover, .nav-pill a.is-active {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
}

.top-bar.is-on-paper .brand-mark { color: var(--ink); }
.top-bar.is-on-paper .nav-pill,
.top-bar.is-on-paper .sound-toggle { background: rgba(20, 16, 12, 0.72); }

.sound-toggle {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  background: rgba(20, 16, 12, 0.38);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff9f0;
  transition: background 0.25s ease;
}

.sound-toggle:hover {
  background: rgba(20, 17, 14, 0.9);
  transform: translateY(-1px);
}

.sound-bars {
  display: flex;
  align-items: flex-end;
  gap: 2.5px;
  height: 14px;
}

.sound-bars span {
  width: 2.5px;
  background: var(--gold);
  border-radius: 2px;
  height: 4px;
  transition: height 0.2s ease;
}

.sound-toggle.is-playing .sound-bars span:nth-child(1) {
  animation: soundBar1 0.8s ease-in-out infinite alternate;
}
.sound-toggle.is-playing .sound-bars span:nth-child(2) {
  animation: soundBar2 0.7s ease-in-out infinite alternate 0.2s;
}
.sound-toggle.is-playing .sound-bars span:nth-child(3) {
  animation: soundBar3 0.9s ease-in-out infinite alternate 0.4s;
}

.sound-label {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: rgba(255, 250, 242, 0.88);
}

/* ==========================================================================
   Hero Section & Dual-City Badge
   ========================================================================== */
.hero {
  min-height: 100svh;
  position: relative;
  z-index: 9;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  isolation: isolate;
  overflow: hidden;
  color: #fffaf2;
  background: var(--night);
}

.hero__backdrop {
  position: absolute;
  inset: 0;
  z-index: -3;
  background-image:
    linear-gradient(180deg, rgba(18, 14, 10, 0.22) 0%, rgba(18, 14, 10, 0.04) 28%, rgba(18, 14, 10, 0.08) 58%, rgba(18, 14, 10, 0.78) 100%),
    url("./assets/images/cover.webp");
  background-size: cover;
  background-position: center 32%;
  transform: scale(1.04);
  animation: sealKen 22s ease-in-out infinite alternate;
}

.grain {
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: 0.1;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

.hero__sky {
  width: min(92vw, 760px);
  margin: 0 auto;
  text-align: center;
  padding: max(92px, calc(env(safe-area-inset-top) + 72px)) 16px 0;
  position: relative;
  z-index: 2;
}

.hero-kicker {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.36em;
  color: rgba(255, 246, 232, 0.78);
  margin-bottom: 14px;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
}

.hero-names {
  margin: 0 0 6px;
  font-size: clamp(40px, 9vw, 76px);
  font-weight: 400;
  letter-spacing: 0.16em;
  line-height: 1.12;
  text-shadow: 0 6px 28px rgba(0, 0, 0, 0.28);
}

.hero-names span {
  display: inline-block;
}

.hero-names i {
  display: inline-block;
  margin: 0 0.12em;
  font-style: italic;
  font-family: var(--display);
  font-size: 0.62em;
  vertical-align: 0.12em;
  color: var(--gold-light);
  letter-spacing: 0;
}

.hero-romance-name {
  font-family: var(--display);
  font-size: 15px;
  letter-spacing: 0.42em;
  color: rgba(255, 250, 242, 0.62);
}

.hero__shore {
  width: min(92vw, 640px);
  margin: 0 auto;
  text-align: center;
  padding: 0 16px max(36px, env(safe-area-inset-bottom));
  position: relative;
  z-index: 2;
}

.hero__subtitle {
  font-size: clamp(15px, 3.2vw, 19px);
  letter-spacing: 0.08em;
  line-height: 1.7;
  margin: 0 auto 12px;
  color: #fff9f0;
}

.hero-meta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.08em;
  color: rgba(255, 246, 232, 0.78);
  margin-bottom: 18px;
}

.hero-meta i {
  width: 16px;
  height: 1px;
  background: rgba(243, 228, 196, 0.5);
}

.hero-facts {
  width: min(100%, 520px);
  margin: 0 auto 15px;
  padding: 13px 18px;
  border: 1px solid rgba(255, 246, 232, 0.4);
  border-radius: 18px;
  background: rgba(18, 14, 10, 0.68);
  backdrop-filter: blur(12px);
  text-align: left;
  font-family: var(--sans);
}

.hero-facts p {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  margin: 5px 0;
  letter-spacing: 0;
  line-height: 1.45;
}

.hero-facts span {
  color: #f3dfb5;
  font-size: 13px;
  padding-top: 2px;
}

.hero-facts strong {
  font-size: clamp(15px, 3.9vw, 18px);
  color: #fffaf2;
  font-weight: 600;
}

.hero__sky, .hero__shore { z-index: 9; }

.chapter--essentials {
  position: relative;
  z-index: 9;
  background: var(--paper);
}

.essentials-heading {
  margin-bottom: 32px;
}

.essentials-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, .65fr);
  gap: 24px;
  align-items: stretch;
}

.essentials-card {
  padding: clamp(22px, 4vw, 38px);
  border: 1px solid rgba(141, 104, 48, 0.24);
  border-radius: var(--radius-lg);
  background: #fffcf7;
  box-shadow: var(--shadow-md);
  font-family: var(--sans);
}

.essentials-row {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr);
  gap: 14px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  letter-spacing: 0;
  line-height: 1.45;
}

.essentials-row:first-child { padding-top: 0; }
.essentials-label { color: var(--gold-dark); font-size: 16px; }
.essentials-row strong { font-size: clamp(19px, 2.1vw, 25px); font-weight: 600; overflow-wrap: anywhere; }
.essentials-row small { font-size: 16px; font-weight: 400; color: var(--ink-light); }
.essentials-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.essentials-actions a, .essentials-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--gold-dark);
  font-size: 16px;
  font-weight: 600;
}
.essentials-actions a { background: var(--gold-dark); color: white; }
.essentials-actions button { background: transparent; color: var(--gold-dark); }
.essentials-side { overflow: hidden; border-radius: var(--radius-lg); background: #ebe3d4; box-shadow: var(--shadow-sm); }
.essentials-side img { width: 100%; height: clamp(260px, 30vw, 390px); object-fit: cover; }
.essentials-side p { padding: 16px 20px 0; color: var(--ink-light); font: 15px/1.5 var(--sans); }
.essentials-side a { display: inline-flex; padding: 18px 20px 24px; color: var(--gold-dark); font: 600 16px/1.4 var(--sans); }

.countdown-card {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  background: rgba(18, 14, 10, 0.28);
  border: 1px solid rgba(255, 246, 232, 0.16);
  backdrop-filter: blur(16px);
  margin-bottom: 22px;
}

.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 36px;
}

.countdown-num {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 500;
  color: #fffaf2;
  line-height: 1.1;
}

.countdown-unit {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: rgba(255, 250, 242, 0.55);
}

.countdown-sep {
  color: rgba(243, 228, 196, 0.45);
  font-size: 14px;
  margin-top: -10px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: var(--radius-pill);
  background: rgba(255, 250, 242, 0.92);
  color: #2a2116;
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.16em;
  transition: transform 0.25s ease, background 0.25s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  background: #fff;
}

.btn-ghost,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 22px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff9f0;
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.12em;
  backdrop-filter: blur(10px);
  transition: background 0.25s ease, border-color 0.25s ease;
}

.btn-ghost:hover,
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.5);
}

.scroll-indicator {
  position: absolute;
  bottom: max(14px, env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.scroll-indicator span {
  display: block;
  width: 1px;
  height: 28px;
  background: linear-gradient(180deg, rgba(255, 246, 232, 0), rgba(255, 246, 232, 0.7));
  animation: bounceDown 2.2s infinite ease-in-out;
}

.dock {
  display: none;
}

.details-intro {
  text-align: center;
  max-width: 620px;
  margin: 0 auto;
}

.details-intro .section-desc {
  margin: 0 auto;
}

.wall-title {
  font-size: 22px;
  font-weight: 400;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.wall-lead {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.06em;
}

/* ==========================================================================
   Chapter Common Layout
   ========================================================================== */
.chapter {
  position: relative;
  padding: 110px 6vw 120px;
}

.chapter-container {
  max-width: 1120px;
  margin: 0 auto;
}

.chapter-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-size: 14px;
  letter-spacing: 0.42em;
  color: var(--gold-dark);
  margin-bottom: 16px;
}

.chapter-badge::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--gold-dark);
}

.section-title {
  font-size: clamp(32px, 6.2vw, 54px);
  line-height: 1.25;
  letter-spacing: 0.04em;
  margin-bottom: 20px;
}

.section-desc {
  font-size: 16px;
  line-height: 2;
  color: var(--muted);
  max-width: 560px;
}

/* ==========================================================================
   Chapter 01: The Story & Letter
   ========================================================================== */
.chapter--story {
  background: var(--paper);
  overflow: hidden;
}

.story-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: clamp(40px, 7vw, 90px);
  align-items: center;
}

.letter-card {
  position: relative;
  background: rgba(255, 252, 247, 0.94);
  padding: clamp(32px, 5vw, 56px);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line);
}

.letter-card::after {
  content: "";
  position: absolute;
  top: 16px;
  left: 16px;
  right: 16px;
  bottom: 16px;
  border: 1px solid rgba(42, 36, 28, 0.06);
  border-radius: calc(var(--radius-lg) - 10px);
  pointer-events: none;
}

.letter-salutation {
  font-size: 21px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 22px;
}

.letter-body p {
  margin-bottom: 18px;
  color: var(--ink-light);
  font-size: 15px;
  line-height: 2.15;
  text-align: justify;
}

.letter-quote-box {
  margin: 24px 0;
  padding: 18px 0 18px 18px;
  background: transparent;
  border-left: 1px solid var(--gold);
  border-radius: 0;
}

.letter-quote-box p {
  margin: 0;
  font-size: 15px;
  font-style: italic;
  color: #63503f;
  line-height: 1.95;
}

.letter-sign {
  margin-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}

.letter-sign-date {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.1em;
}

.letter-sign-names {
  text-align: right;
}

.letter-sign-names span {
  display: block;
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--gold-dark);
}

.letter-sign-names strong {
  font-size: 22px;
  font-weight: 400;
  letter-spacing: 0.15em;
  color: var(--ink);
}

/* Story Milestones */
.story-photo-wrap {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.polaroid-card {
  position: relative;
  background: #ffffff;
  padding: 14px 14px 22px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  transform: rotate(-1.5deg);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.polaroid-card:hover {
  transform: rotate(0deg) scale(1.02);
  box-shadow: var(--shadow-lg);
}

.polaroid-img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: calc(var(--radius-md) - 6px);
}

.polaroid-caption {
  margin-top: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 4px;
}

.polaroid-caption span:first-child {
  font-size: 14px;
  color: var(--ink);
  letter-spacing: 0.05em;
}

.polaroid-caption span:last-child {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--gold-dark);
  font-weight: 500;
}

/* Timeline Cards */
.timeline-strip {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.timeline-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 14px 18px;
  background: rgba(255, 252, 247, 0.78);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.timeline-year {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  color: var(--gold-dark);
  letter-spacing: 0.1em;
  padding: 4px 8px;
  background: #fbf5ec;
  border-radius: var(--radius-pill);
}

.timeline-text {
  flex: 1;
}

.timeline-text h4 {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 2px;
  color: var(--ink);
}

.timeline-text p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

/* ==========================================================================
   Chapter 02: The Album (Gallery)
   ========================================================================== */
.chapter--gallery {
  background: linear-gradient(180deg, #f6f1e8 0%, #efe6d8 72%, #1a1612 100%);
  padding-bottom: 140px;
}

.gallery-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  margin-bottom: 44px;
}

.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-btn {
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(20, 17, 14, 0.12);
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--ink);
  transition: all 0.25s ease;
}

.filter-btn:hover {
  background: #ffffff;
}

.filter-btn.is-active {
  background: var(--ink);
  color: #ffffff;
  border-color: var(--ink);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}

.photo-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #201a15;
  box-shadow: var(--shadow-sm);
  cursor: zoom-in;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s ease;
}

.photo-card:hover {
  transform: translateY(-4px) scale(1.015);
  box-shadow: var(--shadow-lg);
}

.photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.photo-card:hover img {
  transform: scale(1.06);
}

@media (hover: none) {
  .photo-card:hover, .photo-card:hover img { transform: none; }
}

.photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 48%, rgba(14, 11, 8, 0.78) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px;
  color: #fff9f0;
}

.photo-tag {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--gold-light);
  margin-bottom: 4px;
  text-transform: uppercase;
}

.photo-title {
  font-size: 17px;
  font-weight: 400;
  margin-bottom: 6px;
}

.photo-quote {
  font-size: 12px;
  color: rgba(255, 249, 240, 0.78);
  line-height: 1.6;
}

.photo-zoom-icon {
  display: none;
}

.photo--col-7 {
  grid-column: span 7;
  aspect-ratio: 16 / 11;
}

.photo--col-5 {
  grid-column: span 5;
  aspect-ratio: 3 / 4;
}

.photo--col-4 {
  grid-column: span 4;
  aspect-ratio: 3 / 4;
}

.photo--col-8 {
  grid-column: span 8;
  aspect-ratio: 16 / 9;
}

.photo--col-6 {
  grid-column: span 6;
  aspect-ratio: 4 / 3;
}

/* ==========================================================================
   Chapter 03: The Film (Video)
   ========================================================================== */
.chapter--film {
  z-index: 9;
  background: var(--night);
  color: #fffaf2;
  padding: 120px 6vw 140px;
  isolation: isolate;
  overflow: hidden;
}

.film__backdrop {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: linear-gradient(180deg, rgba(20, 17, 14, 0.4) 0%, rgba(20, 17, 14, 0.95) 100%), url("./assets/images/beach.webp");
  background-size: cover;
  background-position: center;
  filter: blur(4px) saturate(0.8);
  opacity: 0.3;
}

.film-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 50px;
}

.film-header .chapter-badge {
  color: var(--gold-light);
}

.film-header .chapter-badge::before {
  background: var(--gold-light);
}

.film-header .section-title {
  color: #fffaf2;
}

.film-header .section-desc {
  color: rgba(255, 250, 242, 0.75);
  margin: 0 auto;
}

.video-wrapper {
  position: relative;
  max-width: 980px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #000;
}

.video-wrapper video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.video-overlay-play {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, rgba(14, 11, 9, 0.15) 0%, rgba(14, 11, 9, 0.6) 100%);
  cursor: pointer;
  transition: opacity 0.4s ease, visibility 0.4s;
}

.video-quality-tag {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(14, 11, 9, 0.48);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fffaf2;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.18em;
  padding: 4px 12px;
  border-radius: 999px;
  pointer-events: none;
  z-index: 2;
}

.video-wrapper.is-playing .video-overlay-play {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.play-ring {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, background 0.3s ease;
}

.video-overlay-play:hover .play-ring {
  transform: scale(1.1);
  background: var(--gold-gradient);
}

.video-overlay-play:hover .play-ring svg path {
  fill: #1a140b;
}

.play-text {
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.2em;
  color: #fff9f0;
}

.film-footer-meta {
  max-width: 980px;
  margin: 18px auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.15em;
  color: rgba(255, 250, 242, 0.5);
}

.film-controls {
  max-width: 980px;
  margin: 20px auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 20px;
  font-family: var(--sans);
}

.film-quality {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(255, 250, 242, 0.18);
  border-radius: var(--radius-pill);
  background: rgba(255, 250, 242, 0.04);
}

.quality-btn {
  min-height: 40px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  color: rgba(255, 250, 242, 0.7);
  font-size: 12px;
  letter-spacing: 0.04em;
  transition: background 0.2s, color 0.2s;
}

.quality-btn.is-active {
  background: var(--gold-light);
  color: var(--ink);
}

.video-status {
  color: rgba(255, 250, 242, 0.72);
  font-size: 12px;
  letter-spacing: 0.02em;
}

.video-wrapper video { object-fit: contain; }
.video-wrapper.is-playing .video-quality-tag { opacity: 0; }
.video-wrapper.is-playing { z-index: 9; }
body.is-watching-film #ambientCanvas { opacity: 0; }
.chapter { scroll-margin-top: 72px; }
.lightbox-counter { margin-top: 8px; font-family: var(--sans); font-size: 12px; color: var(--gold-light); }

/* ==========================================================================
   Chapter 04: The Day (Homecoming Banquet in Harbin)
   ========================================================================== */
.chapter--details {
  background: #f8f3eb;
  padding: 120px 6vw 130px;
}

.details-tabs-nav {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin: 40px auto 46px;
  max-width: 640px;
  padding: 5px;
  background: rgba(42, 36, 28, 0.06);
  border-radius: var(--radius-pill);
}

.tab-btn {
  flex: 1;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--ink-light);
  transition: all 0.25s ease;
  white-space: nowrap;
}

.tab-btn:hover {
  color: var(--ink);
}

.tab-btn.is-active {
  background: #ffffff;
  color: var(--ink);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

.tab-pane {
  display: none;
  animation: fadeIn 0.4s ease;
}

.tab-pane.is-active {
  display: block;
}

/* Schedule Tab */
.schedule-flow {
  max-width: 760px;
  margin: 0 auto;
  position: relative;
  padding-left: 36px;
}

.schedule-flow::before {
  content: "";
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: 11px;
  width: 2px;
  background: linear-gradient(180deg, var(--gold) 0%, rgba(212, 175, 88, 0.2) 100%);
}

.schedule-step {
  position: relative;
  padding: 22px 28px;
  background: #ffffff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  margin-bottom: 20px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

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

.schedule-step--highlight {
  background: #fffdf8;
  border-color: rgba(184, 137, 74, 0.45);
}

.schedule-step::before {
  content: "";
  position: absolute;
  top: 30px;
  left: -31px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px #f8f3eb, 0 0 8px rgba(212, 175, 88, 0.4);
}

.schedule-step--highlight::before {
  width: 14px;
  height: 14px;
  left: -32px;
  background: #d49f47;
  box-shadow: 0 0 0 5px #f8f3eb, 0 0 14px rgba(212, 175, 88, 0.7);
}

.schedule-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.schedule-time {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  color: var(--gold-dark);
  letter-spacing: 0.08em;
}

.schedule-badge {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.1em;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: #fbf5ec;
  color: var(--muted);
}

.schedule-badge--gold {
  background: var(--gold-gradient);
  color: #21190d;
  font-weight: 600;
}

.schedule-title {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--ink);
}

.schedule-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.8;
}

/* Venue / Harbin Memory Tab */
.venue-card-grid {
  max-width: 980px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: stretch;
}

.venue-info-box {
  background: #ffffff;
  padding: clamp(28px, 4.5vw, 40px);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}

.venue-badge-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.venue-badge {
  display: inline-block;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--gold-dark);
  font-weight: 600;
}

.venue-tag-hall {
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: #fbf1e0;
  color: #9c6e2b;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  border: 1px solid rgba(212, 175, 88, 0.3);
}

.venue-name-cn {
  font-size: 27px;
  font-weight: 500;
  margin-bottom: 4px;
  color: var(--ink);
}

.venue-name-en {
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 24px;
}

.venue-details-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 28px;
}

.venue-detail-item {
  display: flex;
  gap: 14px;
  font-size: 14px;
}

.venue-detail-label {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--muted);
  min-width: 68px;
  margin-top: 2px;
}

.venue-detail-val {
  color: var(--ink);
  line-height: 1.7;
}

.venue-detail-val strong {
  color: var(--gold-dark);
  font-weight: 600;
}

/* Map & Direct Navigation Buttons */
.map-actions-group {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.nav-buttons-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.venue-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: var(--radius-pill);
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.08em;
  transition: all 0.25s ease;
  text-align: center;
}

.btn-outline-gold {
  border: 1px solid var(--gold);
  color: var(--gold-dark);
  background: #fffdf9;
}

.btn-outline-gold:hover {
  background: var(--gold);
  color: #fff;
}

.btn-app-nav {
  background: #f6efe2;
  border: 1px solid rgba(212, 175, 88, 0.35);
  color: var(--ink);
}

.btn-app-nav:hover {
  background: #ede1cb;
  transform: translateY(-1px);
}

/* Radar Pulse Venue Card */
.venue-visual-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: #231b14;
  display: flex;
  flex-direction: column;
  color: #fff;
  border: 1px solid rgba(212, 175, 88, 0.25);
}

.venue-visual-bg {
  position: relative;
  flex: 1;
  min-height: 260px;
  background-image: 
    linear-gradient(180deg, rgba(20, 16, 12, 0.2) 0%, rgba(20, 16, 12, 0.85) 100%),
    url("./assets/images/wide.webp");
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Radar Location Pin Animation */
.radar-pin-box {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.radar-circle {
  position: absolute;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
  animation: radarWave 2s ease-out infinite;
}

.radar-circle:nth-child(2) {
  animation-delay: 0.6s;
}

.radar-pin-core {
  position: relative;
  z-index: 2;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  background: rgba(20, 17, 14, 0.88);
  border: 1px solid var(--gold);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  color: #fff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  gap: 6px;
}

.radar-pin-core span {
  color: var(--gold-light);
}

.venue-visual-footer {
  padding: 22px 24px;
  background: rgba(26, 20, 15, 0.95);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.venue-visual-footer h4 {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 4px;
  color: var(--gold-light);
}

.venue-visual-footer p {
  font-size: 13px;
  color: rgba(255, 249, 240, 0.75);
  line-height: 1.7;
}

/* Dress Code Tab */
.dress-card {
  max-width: 820px;
  margin: 0 auto;
  background: #ffffff;
  padding: clamp(32px, 5vw, 48px);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(212, 175, 88, 0.18);
  text-align: center;
}

.dress-title {
  font-size: 24px;
  margin-bottom: 14px;
}

.dress-lead {
  font-size: 15px;
  line-height: 2;
  color: var(--muted);
  max-width: 620px;
  margin: 0 auto 36px;
}

.color-palette {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 36px;
}

.color-swatch-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.swatch-circle {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  border: 2px solid #ffffff;
}

.swatch-name {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--ink);
}

.swatch-desc {
  font-family: var(--sans);
  font-size: 10px;
  color: var(--muted);
}

.dress-tips-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  text-align: left;
  border-top: 1px solid var(--line);
  padding-top: 28px;
}

.dress-tip-box h5 {
  font-size: 15px;
  margin-bottom: 6px;
  color: var(--ink);
}

.dress-tip-box p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.8;
}

/* Culture / Harbin Memory Story Tab */
.concierge-grid {
  max-width: 880px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.concierge-card {
  background: #ffffff;
  padding: 28px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(212, 175, 88, 0.16);
}

.concierge-icon {
  font-size: 26px;
  margin-bottom: 12px;
}

.concierge-card h4 {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 8px;
}

.concierge-card p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.8;
}

/* ==========================================================================
   Chapter 05: RSVP & Blessing Wall
   ========================================================================== */
.chapter--rsvp {
  background: #ffffff;
  padding: 120px 6vw 140px;
}

.rsvp-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 70px);
  align-items: flex-start;
}

.rsvp-form-card {
  background: #faf6f0;
  padding: clamp(28px, 5vw, 44px);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  position: relative;
}

.rsvp-form-title {
  font-size: 24px;
  margin-bottom: 6px;
}

.rsvp-form-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 28px;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--ink);
  margin-bottom: 8px;
}

.form-input, .form-textarea, .form-select {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: #ffffff;
  border: 1px solid rgba(36, 28, 21, 0.15);
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(197, 155, 88, 0.18);
}

.form-textarea {
  resize: vertical;
  min-height: 90px;
  line-height: 1.6;
}

.attend-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.radio-pill-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 14px;
  background: #ffffff;
  border: 1px solid rgba(36, 28, 21, 0.15);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.04em;
  transition: all 0.2s ease;
}

.radio-pill-label input {
  display: none;
}

.radio-pill-label:has(input:checked) {
  border-color: var(--gold);
  background: #fcf8f2;
  color: var(--gold-dark);
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(197, 155, 88, 0.15);
}

.rsvp-submit-btn {
  width: 100%;
  margin-top: 10px;
  padding: 14px;
  border-radius: var(--radius-pill);
  background: var(--ink);
  color: #fffaf2;
  font-family: var(--sans);
  font-size: 14px;
  letter-spacing: 0.16em;
  transition: transform 0.25s ease, background 0.25s ease;
}

.rsvp-submit-btn:hover {
  transform: translateY(-2px);
  background: #1a1612;
}

/* Blessing Wall Display */
.blessing-wall-wrap {
  display: flex;
  flex-direction: column;
}

.wall-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.wall-counter {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--gold-dark);
  background: #fdfaf6;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(212, 175, 88, 0.25);
}

.blessings-stream {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: 520px;
  overflow-y: auto;
  padding-right: 8px;
}

.blessings-stream::-webkit-scrollbar {
  width: 5px;
}

.blessings-stream::-webkit-scrollbar-thumb {
  background: rgba(197, 155, 88, 0.3);
  border-radius: 4px;
}

.blessing-card {
  position: relative;
  background: #ffffff;
  padding: 20px 24px;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(212, 175, 88, 0.15);
  animation: slideInUp 0.4s ease;
  transition: transform 0.2s ease;
}

.blessing-card:hover {
  transform: translateY(-2px);
}

.blessing-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.blessing-author {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
}

.blessing-tag {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.08em;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

.blessing-tag.tag-attend {
  background: #e9f5ed;
  color: #287a48;
}

.blessing-tag.tag-remote {
  background: #fbf0e8;
  color: #a85822;
}

.blessing-message {
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-light);
  margin-bottom: 12px;
}

.blessing-card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--sans);
  font-size: 11px;
  color: var(--muted);
}

.blessing-like-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: var(--radius-pill);
  background: #faf6f0;
  color: var(--muted);
  transition: all 0.2s ease;
}

.blessing-like-btn:hover, .blessing-like-btn.has-liked {
  color: #d13e3e;
  background: #fee;
}

/* ==========================================================================
   Footer & Share
   ========================================================================== */
.footer {
  background: var(--night);
  color: #fff9f0;
  padding: 100px 6vw 70px;
  text-align: center;
  position: relative;
  isolation: isolate;
}

.footer-monogram {
  font-family: var(--display);
  font-size: 28px;
  letter-spacing: 0.32em;
  color: var(--gold-light);
  margin-bottom: 18px;
}

.footer-quote {
  font-size: clamp(16px, 3.5vw, 20px);
  line-height: 1.8;
  max-width: 560px;
  margin: 0 auto 36px;
  color: rgba(255, 249, 240, 0.85);
}

.footer-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-bottom: 50px;
}

.footer-copy-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(212, 175, 88, 0.35);
  color: var(--gold-light);
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.1em;
  transition: all 0.25s ease;
}

.footer-copy-link:hover {
  background: rgba(212, 175, 88, 0.2);
  transform: translateY(-2px);
}

.footer-back-top {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 249, 240, 0.7);
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.1em;
  transition: all 0.25s ease;
}

.footer-back-top:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.footer-credits {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: rgba(255, 249, 240, 0.4);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 36px;
}

/* ==========================================================================
   Toast Feedback Notification
   ========================================================================== */
.toast-msg {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(30px);
  z-index: 1000;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  background: rgba(20, 17, 14, 0.92);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(212, 175, 88, 0.45);
  color: #fff9f0;
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.08em;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

.toast-msg.is-active {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ==========================================================================
   Enhanced Lightbox Modal
   ========================================================================== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 990;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(12, 9, 7, 0.94);
  backdrop-filter: blur(18px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox img {
  max-height: 74vh;
  max-width: 90vw;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.8);
  transition: transform 0.3s ease;
}

.lightbox-caption {
  margin-top: 16px;
  text-align: center;
  color: #fff9f0;
}

.lightbox-caption h4 {
  font-size: 18px;
  font-weight: 400;
  margin-bottom: 4px;
}

.lightbox-caption p {
  font-size: 13px;
  color: rgba(255, 249, 240, 0.7);
  letter-spacing: 0.05em;
}

.lightbox__close {
  position: absolute;
  top: max(20px, env(safe-area-inset-top));
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
}

.lightbox__close:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: rotate(90deg);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
}

.lightbox-nav:hover {
  background: var(--gold-gradient);
  color: #1b140b;
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

/* ==========================================================================
   Keyframe Animations
   ========================================================================== */
@keyframes sealFloat {
  0% { transform: translateY(0); }
  100% { transform: translateY(-6px); }
}

@keyframes rippleGlow {
  0% { transform: scale(0.9); opacity: 0.8; }
  100% { transform: scale(1.4); opacity: 0; }
}

@keyframes soundBar1 {
  0% { height: 4px; }
  100% { height: 14px; }
}

@keyframes soundBar2 {
  0% { height: 6px; }
  100% { height: 16px; }
}

@keyframes soundBar3 {
  0% { height: 3px; }
  100% { height: 11px; }
}

@keyframes bounceDown {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(6px); }
  60% { transform: translateY(3px); }
}

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

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

@keyframes planeFloat {
  0% { transform: translateX(-50%) translateY(0); }
  100% { transform: translateX(-50%) translateY(-3px); }
}

@keyframes pulseDot {
  0% { transform: scale(0.8); opacity: 0.6; }
  100% { transform: scale(1.25); opacity: 1; }
}

@keyframes radarWave {
  0% { transform: scale(0.5); opacity: 0.9; }
  100% { transform: scale(2.2); opacity: 0; }
}

@keyframes sealKen {
  0% { transform: scale(1.06) translate3d(0, 0, 0); }
  100% { transform: scale(1.14) translate3d(0, -2.2%, 0); }
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */
@media (max-width: 900px) {
  .story-grid {
    grid-template-columns: 1fr;
  }
  .story-photo-wrap {
    order: -1;
    max-width: 440px;
    margin: 0 auto;
  }
  .venue-card-grid {
    grid-template-columns: 1fr;
  }
  .rsvp-layout {
    grid-template-columns: 1fr;
  }
  .photo--col-7, .photo--col-5, .photo--col-4, .photo--col-8, .photo--col-6 {
    grid-column: span 6;
  }
}

@media (max-width: 640px) {
  .seal-envelope { padding: 0 10px max(28px, env(safe-area-inset-bottom)); }
  .seal-kicker { margin-bottom: 8px; }
  .seal-title { font-size: clamp(32px, 9vw, 42px); }
  .seal-line { margin-bottom: 12px; }
  .seal-facts { padding: 13px 15px; }
  .seal-facts p { grid-template-columns: 40px minmax(0, 1fr); gap: 8px; }
  .hero-facts { padding: 12px 14px; }
  .hero-facts p { grid-template-columns: 76px minmax(0, 1fr); }
  .essentials-layout { grid-template-columns: 1fr; }
  .essentials-row { grid-template-columns: 48px minmax(0, 1fr); gap: 10px; }
  .essentials-actions a, .essentials-actions button { flex: 1 1 135px; }
  .essentials-side img { height: 240px; }
  .countdown-card { display: none; }
  .seal-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }
  .seal-meta span {
    white-space: nowrap;
  }
  .seal-meta i {
    display: none;
  }
  .details-tabs-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-radius: 22px;
  }
  .tab-btn {
    min-width: 0;
    padding: 10px 8px;
  }
  .chapter {
    padding: 80px 5vw 90px;
  }
  .nav-pill {
    display: none;
  }
  .hero-names {
    font-size: clamp(38px, 12vw, 56px);
  }
  .hero__sky {
    padding-top: max(86px, calc(env(safe-area-inset-top) + 64px));
  }
  .hero__shore {
    padding-bottom: max(78px, calc(env(safe-area-inset-bottom) + 62px));
  }
  .countdown-card {
    gap: 8px;
    padding: 10px 16px;
  }
  .countdown-num {
    font-size: 17px;
  }
  .dock {
    display: flex;
    position: fixed;
    left: 14px;
    right: 14px;
    bottom: max(12px, env(safe-area-inset-bottom));
    z-index: 80;
    justify-content: space-between;
    align-items: center;
    padding: 8px 10px;
    border-radius: var(--radius-pill);
    background: rgba(26, 22, 18, 0.72);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
  }
  .dock a {
    flex: 1;
    text-align: center;
    font-family: var(--sans);
    font-size: 12px;
    letter-spacing: 0.08em;
    color: rgba(255, 250, 242, 0.62);
    padding: 8px 0;
    border-radius: var(--radius-pill);
  }
  .dock a.is-active {
    color: #fffaf2;
    background: rgba(255, 255, 255, 0.12);
  }
  .chapter--rsvp,
  .footer {
    padding-bottom: 120px;
  }
  .photo--col-7, .photo--col-5, .photo--col-4, .photo--col-8, .photo--col-6 {
    grid-column: span 12;
    aspect-ratio: 4 / 3;
  }
  .dress-tips-grid {
    grid-template-columns: 1fr;
  }
  .nav-buttons-row {
    grid-template-columns: 1fr;
  }
  .attend-options {
    grid-template-columns: 1fr;
  }
  .schedule-flow {
    padding-left: 26px;
  }
  .schedule-step {
    padding: 18px 20px;
  }
  .schedule-step::before {
    left: -21px;
  }
  .lightbox-prev {
    left: 8px;
  }
  .lightbox-next {
    right: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  #ambientCanvas {
    display: none;
  }
}

/* Public release: resilient controls and form feedback. */
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 5px; }
.photo-card:focus-visible { outline-offset: -5px; }
.video-overlay-play { width: 100%; color: #fff; }
.no-script { padding: 20px; text-align: center; }

/* Wedding stationery typography, with clear practical information. */
.seal-title, .hero-names { font-weight: 500; letter-spacing: 0.1em; }
.hero-romance-name { font-family: "Palatino Linotype", Palatino, Georgia, serif; font-style: italic; font-size: clamp(18px, 4.5vw, 25px); letter-spacing: 0.12em; }
.brand-mark, .footer-monogram { font-family: Georgia, "Times New Roman", serif; font-weight: 400; letter-spacing: 0.15em; }
.section-title { font-weight: 500; letter-spacing: 0.08em; }

/* New portraits keep both faces visible in the album. */
.photo--new-portrait img { object-position: 50% 35%; }
@media (max-width: 700px) {
  .photo-card.photo--new-portrait { aspect-ratio: 2 / 3; }
}
