/* Memorial — 經典版（追思紀念頁） */
*, *::before, *::after { box-sizing: border-box; }

html {
  background: oklch(0.975 0.008 82);
}

body {
  margin: 0;
  background: oklch(0.975 0.008 82);
  overflow-x: clip;
}

@keyframes mc-reveal-up {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: none; }
}
@keyframes mc-drift-mist {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(46px); }
}
@keyframes mc-glow-pulse {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 0.85; }
}
@keyframes mc-twinkle {
  0%, 100% { opacity: 0.25; }
  50% { opacity: 0.7; }
}

.mc-page {
  --paper: oklch(0.975 0.008 82);
  --paper2: oklch(0.96 0.013 70);
  --ink: oklch(0.345 0.014 262);
  --ink2: oklch(0.505 0.013 262);
  --ink3: oklch(0.635 0.010 262);
  --line: oklch(0.885 0.012 80);
  --accent: oklch(0.74 0.040 235);
  --gold: oklch(0.80 0.058 84);
  --card: rgba(255, 253, 249, 0.60);
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: clip;
  font-family: 'Noto Serif TC', serif;
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  background: linear-gradient(180deg, var(--paper) 0%, oklch(0.965 0.012 78) 48%, oklch(0.95 0.016 220) 100%);
}

/* Ambient */
.mc-ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.mc-ambient__glow {
  position: absolute;
  top: -180px;
  left: 50%;
  transform: translateX(-50%);
  width: 120%;
  height: 520px;
  background: radial-gradient(ellipse at center, oklch(0.995 0.02 88 / 0.9) 0%, oklch(0.99 0.02 88 / 0) 65%);
  animation: mc-glow-pulse 9s ease-in-out infinite;
}
.mc-ambient__mist {
  position: absolute;
  bottom: -150px;
  left: -12%;
  width: 130%;
  height: 420px;
  border-radius: 50%;
  filter: blur(34px);
  animation: mc-drift-mist 26s ease-in-out infinite;
}
.mc-ambient__mist--green {
  background: radial-gradient(ellipse at center, oklch(0.77 0.04 158 / 0.22) 0%, transparent 70%);
}
.mc-ambient__mist--blue {
  bottom: -90px;
  left: 6%;
  width: 120%;
  height: 360px;
  background: radial-gradient(ellipse at center, oklch(0.74 0.04 235 / 0.20) 0%, transparent 70%);
  filter: blur(40px);
  animation: mc-drift-mist 32s ease-in-out infinite reverse;
}
.mc-ambient__mist--gold {
  bottom: -40px;
  left: -8%;
  width: 116%;
  height: 300px;
  background: radial-gradient(ellipse at center, oklch(0.82 0.05 84 / 0.16) 0%, transparent 72%);
  filter: blur(30px);
  animation: none;
}
.mc-ambient__star {
  position: absolute;
  border-radius: 50%;
  background: var(--gold);
  animation: mc-twinkle 6s ease-in-out infinite;
}
.mc-ambient__star--1 { top: 18%; left: 12%; width: 4px; height: 4px; }
.mc-ambient__star--2 { top: 32%; right: 16%; width: 3px; height: 3px; animation-delay: 1s; animation-duration: 7.5s; }
.mc-ambient__star--3 { top: 56%; left: 22%; width: 3px; height: 3px; animation-delay: 2s; animation-duration: 8s; }
.mc-ambient__grain {
  position: absolute;
  inset: 0;
  opacity: 0.045;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Top bar */
.mc-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 10px 16px;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.4s ease, border-color 0.4s ease, backdrop-filter 0.4s ease;
  pointer-events: none;
}
.mc-topbar.is-scrolled {
  background: oklch(0.98 0.008 82 / 0.88);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.mc-topbar__diamond {
  width: 6px;
  height: 6px;
  transform: rotate(45deg);
  border: 1px solid var(--gold);
  flex-shrink: 0;
}
.mc-topbar__name {
  font-size: 15px;
  letter-spacing: 0.22em;
  color: var(--ink2);
  font-weight: 500;
  white-space: nowrap;
}
.mc-topbar__share {
  position: absolute;
  right: clamp(12px, 3vw, 20px);
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: oklch(0.99 0.008 82 / 0.92);
  backdrop-filter: blur(10px);
  color: var(--ink2);
  cursor: pointer;
  pointer-events: auto;
  transition: all 0.25s;
  box-shadow: 0 8px 24px -14px rgba(50, 62, 88, 0.4);
}
.mc-topbar.is-scrolled .mc-topbar__share {
  background: oklch(0.99 0.008 82 / 0.75);
  border-color: transparent;
  box-shadow: none;
}
.mc-topbar__share svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.mc-topbar__share:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: #fff;
}

/* Share sheet */
.mc-share-sheet[hidden] { display: none; }
.mc-share-sheet {
  position: fixed;
  inset: 0;
  z-index: 110;
}
.mc-share-sheet.is-open { display: block; }
.mc-share-sheet__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 24, 32, 0.45);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.mc-share-sheet.is-open .mc-share-sheet__backdrop { opacity: 1; }
.mc-share-sheet__panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 12px 20px calc(20px + env(safe-area-inset-bottom));
  background: oklch(0.99 0.008 82);
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -12px 40px rgba(50, 62, 88, 0.18);
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
}
.mc-share-sheet.is-open .mc-share-sheet__panel { transform: translateY(0); }
.mc-share-sheet__handle {
  width: 40px;
  height: 4px;
  margin: 0 auto 16px;
  border-radius: 999px;
  background: var(--line);
}
.mc-share-sheet__title {
  margin: 0 0 20px;
  text-align: center;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--ink2);
}
.mc-share-sheet__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px 12px;
  margin-bottom: 20px;
}
@media (min-width: 480px) {
  .mc-share-sheet__grid { grid-template-columns: repeat(4, 1fr); }
}
.mc-share-sheet__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
}
.mc-share-sheet__icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #fff;
  transition: transform 0.2s;
}
.mc-share-sheet__item:hover .mc-share-sheet__icon { transform: scale(1.06); }
.mc-share-sheet__icon--line { background: #06c755; font-size: 11px; }
.mc-share-sheet__icon--facebook { background: #1877f2; font-size: 20px; font-family: serif; }
.mc-share-sheet__icon--instagram {
  background: linear-gradient(135deg, #f9ce34, #ee2a7b 50%, #6228d7);
  font-size: 12px;
}
.mc-share-sheet__icon--whatsapp { background: #25d366; font-size: 11px; }
.mc-share-sheet__icon--copy,
.mc-share-sheet__icon--more {
  background: oklch(0.94 0.01 262);
  color: var(--ink2);
  border: 1px solid var(--line);
}
.mc-share-sheet__icon--copy svg,
.mc-share-sheet__icon--more svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
}
.mc-share-sheet__label {
  font-size: 11px;
  color: var(--ink3);
  letter-spacing: 0.04em;
  text-align: center;
}
.mc-share-sheet__cancel {
  width: 100%;
  border: none;
  background: oklch(0.96 0.01 262);
  color: var(--ink2);
  border-radius: 14px;
  padding: 14px;
  font-family: inherit;
  font-size: 15px;
  letter-spacing: 0.08em;
  cursor: pointer;
}

/* Main */
.mc-main {
  position: relative;
  z-index: 1;
  max-width: 880px;
  margin: 0 auto;
  padding: clamp(80px, 13vw, 130px) clamp(20px, 5vw, 44px) 124px;
}

/* Preview / flash */
.mc-preview-banner {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 10px 16px;
  background: oklch(0.92 0.04 84 / 0.9);
  color: var(--ink);
  font-size: 14px;
  letter-spacing: 0.08em;
}
.mc-flash {
  position: relative;
  z-index: 2;
  max-width: 880px;
  margin: 0 auto;
  padding: 12px 20px;
  text-align: center;
  font-size: 15px;
}
.mc-flash--success { background: oklch(0.92 0.04 158 / 0.5); color: var(--ink); }
.mc-flash--error { background: oklch(0.92 0.06 25 / 0.4); color: var(--ink); }

/* Hero */
.mc-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 22px;
}
.mc-hero__eyebrow {
  font-family: 'Cormorant Garamond', serif;
  font-size: 15px;
  letter-spacing: 0.55em;
  text-transform: uppercase;
  color: var(--ink3);
  padding-left: 0.55em;
  margin: 0;
}
.mc-hero__portrait-wrap {
  position: relative;
  padding: 11px;
  border-radius: 22px;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.32));
  box-shadow: 0 30px 70px -34px rgba(60, 72, 98, 0.5), 0 0 0 1px var(--line);
  backdrop-filter: blur(6px);
  margin-top: 6px;
}
.mc-hero__portrait-glow {
  position: absolute;
  inset: -14px;
  border-radius: 28px;
  background: radial-gradient(ellipse at 50% 0%, oklch(0.82 0.05 84 / 0.35), transparent 70%);
  z-index: -1;
  filter: blur(10px);
}
.mc-hero__portrait {
  width: clamp(220px, 58vw, 290px);
  aspect-ratio: 3 / 4;
  border-radius: 13px;
  overflow: hidden;
  margin: 0;
}
.mc-hero__portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.mc-hero__title {
  margin: 14px 0 0;
  font-weight: 500;
  font-size: clamp(32px, 6.5vw, 48px);
  letter-spacing: 0.14em;
  line-height: 1.1;
  padding-left: 0.14em;
}
.mc-hero__subtitle {
  display: block;
  font-size: 0.45em;
  letter-spacing: 0.2em;
  color: var(--ink2);
  margin-top: 0.35em;
  font-weight: 400;
}
.mc-hero__dates {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(22px, 4.5vw, 30px);
  letter-spacing: 0.28em;
  color: var(--ink2);
  padding-left: 0.28em;
  margin: 0;
}
.mc-hero__age {
  margin: 6px 0 0;
  font-size: 15px;
  font-weight: 300;
  letter-spacing: 0.22em;
  color: var(--ink3);
  padding-left: 0.22em;
}
.mc-hero__ceremony {
  font-size: 15px;
  letter-spacing: 0.12em;
  color: var(--ink3);
  margin: 0;
}
.mc-hero__intro {
  max-width: 540px;
  margin: 16px auto 0;
  text-align: center;
  font-size: clamp(17px, 2.6vw, 20px);
  line-height: 2;
  color: var(--ink2);
  font-weight: 300;
}

/* Separator */
.mc-sep {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: clamp(56px, 9vw, 90px) 0;
}
.mc-sep__line {
  width: 1px;
  height: 44px;
}
.mc-sep__line--down { background: linear-gradient(var(--line), transparent); }
.mc-sep__line--up { background: linear-gradient(transparent, var(--line)); }
.mc-sep__diamond {
  width: 8px;
  height: 8px;
  transform: rotate(45deg);
  border: 1px solid var(--gold);
  margin: -1px 0;
}

/* Section header */
.mc-section-head {
  text-align: center;
  margin-bottom: 34px;
}
.mc-section-head__eyebrow {
  font-size: 13px;
  letter-spacing: 0.4em;
  color: var(--gold);
  padding-left: 0.4em;
  margin: 0 0 12px;
}
.mc-section-head__title {
  margin: 0;
  font-weight: 500;
  font-size: clamp(26px, 4.5vw, 36px);
  letter-spacing: 0.1em;
}

/* Carousel */
.mc-carousel {
  position: relative;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
}
.mc-carousel__viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 30px 70px -38px rgba(50, 62, 88, 0.55), 0 0 0 1px var(--line);
  background: var(--paper2);
}
.mc-carousel__track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
}
.mc-carousel__slide {
  flex: 0 0 100%;
  height: 100%;
}
.mc-carousel__slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: zoom-in;
}
.mc-carousel__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: oklch(0.99 0.008 82 / 0.8);
  backdrop-filter: blur(6px);
  cursor: pointer;
  color: var(--ink2);
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s;
}
.mc-carousel__btn:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.06);
}
.mc-carousel__btn--prev { left: 14px; }
.mc-carousel__btn--next { right: 14px; }
.mc-carousel__dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: 20px;
}
.mc-carousel__dot {
  height: 7px;
  width: 7px;
  border-radius: 999px;
  background: var(--line);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.35s;
}
.mc-carousel__dot.is-active {
  width: 24px;
  background: var(--accent);
}
.mc-carousel__hint {
  text-align: center;
  margin: 14px 0 0;
  font-size: 14px;
  color: var(--ink3);
  letter-spacing: 0.08em;
}

/* Biography & family */
.mc-prose {
  max-width: 620px;
  margin: 0 auto;
  font-size: clamp(16px, 2.4vw, 18px);
  line-height: 2.2;
  color: var(--ink2);
  font-weight: 300;
  text-align: center;
  text-wrap: pretty;
  white-space: pre-wrap;
}
.mc-quote {
  position: relative;
  max-width: 600px;
  margin: 48px auto 0;
  padding: 4px 0;
  text-align: center;
}
.mc-quote p {
  margin: 0;
  font-size: clamp(20px, 3.4vw, 26px);
  line-height: 1.9;
  color: var(--ink);
  font-weight: 400;
  letter-spacing: 0.04em;
  white-space: pre-wrap;
}

/* Banner (narrow pair layout) */
.mc-banner {
  max-width: 640px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.mc-banner--pair {
  max-width: 960px;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 520px) {
  .mc-banner--pair {
    grid-template-columns: 1fr;
    max-width: 360px;
  }
}
.mc-banner__item {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 20px 50px -36px rgba(50, 62, 88, 0.45);
  background: var(--paper2);
}
.mc-banner__item img {
  display: block;
  width: 100%;
  height: auto;
  cursor: zoom-in;
}
.mc-banner:not(.mc-banner--pair) {
  max-width: 400px;
}

/* Schedule */
#sec-time { scroll-margin-top: 80px; }
.mc-schedule-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: clamp(26px, 4vw, 38px);
  backdrop-filter: blur(8px);
  box-shadow: 0 24px 60px -42px rgba(50, 62, 88, 0.5);
  max-width: 480px;
  margin: 0 auto;
}
.mc-schedule-card__label {
  font-size: 14px;
  letter-spacing: 0.2em;
  color: var(--ink3);
  margin: 0 0 18px;
}
.mc-schedule-card__date {
  font-family: 'Cormorant Garamond', serif;
  font-size: 34px;
  letter-spacing: 0.06em;
  color: var(--ink);
  margin: 0 0 4px;
}
.mc-schedule-card__weekday {
  font-size: 15px;
  color: var(--ink2);
  margin: 0 0 22px;
}
.mc-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.mc-timeline__item {
  display: grid;
  grid-template-columns: 4em minmax(0, 1fr);
  column-gap: 14px;
  row-gap: 4px;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.mc-timeline__item:last-child { border-bottom: none; padding-bottom: 0; }
.mc-timeline__item:first-child { padding-top: 0; }
.mc-timeline__row {
  display: contents;
}
.mc-timeline__time {
  grid-column: 1;
  grid-row: 1;
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  min-width: 4em;
}
.mc-timeline__label {
  grid-column: 2;
  grid-row: 1;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent);
  white-space: normal;
}
.mc-timeline__desc {
  grid-column: 2;
  grid-row: 2;
  font-size: 13px;
  font-weight: 400;
  color: var(--ink3);
  margin: 0;
  line-height: 1.7;
}

/* Locations */
#sec-place { scroll-margin-top: 80px; }
.mc-locations {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.mc-location-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: clamp(26px, 4vw, 38px);
  backdrop-filter: blur(8px);
  box-shadow: 0 24px 60px -42px rgba(50, 62, 88, 0.5);
  display: flex;
  flex-direction: column;
}
.mc-location-card__label {
  font-size: 14px;
  letter-spacing: 0.2em;
  color: var(--ink3);
  margin: 0 0 18px;
}
.mc-location-card__name {
  font-size: 21px;
  color: var(--ink);
  margin: 0 0 6px;
  letter-spacing: 0.04em;
}
.mc-location-card__address {
  font-size: 15px;
  color: var(--ink2);
  margin: 0 0 18px;
  line-height: 1.7;
}
.mc-location-card__map-btn {
  display: inline-flex;
  align-items: center;
  margin-top: 4px;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: oklch(0.99 0.008 82 / 0.7);
  color: var(--ink2);
  font-size: 14px;
  letter-spacing: 0.08em;
  text-decoration: none;
  transition: all 0.25s;
}
.mc-location-card__map-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: #fff;
}
.mc-location-card__traffic {
  font-size: 14px;
  line-height: 1.9;
  color: var(--ink2);
  margin: 16px 0 0;
  white-space: pre-wrap;
}

/* Video */
.mc-video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 30px 70px -38px rgba(50, 62, 88, 0.55), 0 0 0 1px var(--line);
}
.mc-video iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Flowers CTA */
#sec-flowers { scroll-margin-top: 80px; }
.mc-flowers {
  max-width: 560px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: clamp(28px, 5vw, 42px);
  backdrop-filter: blur(8px);
  box-shadow: 0 24px 60px -42px rgba(50, 62, 88, 0.5);
  text-align: center;
}
.mc-flowers__lead {
  margin: 0 0 26px;
  font-size: 16px;
  line-height: 2;
  color: var(--ink2);
  font-weight: 300;
}
.mc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--accent);
  background: oklch(0.99 0.008 82 / 0.5);
  color: var(--ink);
  border-radius: 999px;
  padding: 12px 32px;
  font-family: inherit;
  font-size: 15px;
  letter-spacing: 0.1em;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.25s;
}
.mc-btn:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-2px);
}
.mc-btn--filled {
  border: none;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 24px -12px var(--accent);
}

/* Handler */
.mc-handler {
  max-width: 560px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: clamp(26px, 4vw, 38px);
  backdrop-filter: blur(8px);
  box-shadow: 0 24px 60px -42px rgba(50, 62, 88, 0.5);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
}
.mc-handler__avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line);
}
.mc-handler__info { flex: 1; min-width: 160px; }
.mc-handler__name {
  margin: 0 0 6px;
  font-size: 19px;
  letter-spacing: 0.06em;
}
.mc-handler__company {
  margin: 0 0 8px;
  font-size: 13px;
  color: var(--ink3);
  letter-spacing: 0.06em;
}
.mc-handler__meta {
  margin: 0;
  font-size: 15px;
  color: var(--ink2);
}
.mc-handler__meta a { color: inherit; text-decoration: none; }
.mc-handler__meta a:hover { color: var(--accent); }
.mc-handler__qr {
  width: 88px;
  height: 88px;
  border-radius: 8px;
  border: 1px solid var(--line);
}

/* Messages */
#sec-words { scroll-margin-top: 80px; }
.mc-messages__layout {
  display: grid;
  gap: 26px;
}
.mc-messages__list {
  order: 2;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
@media (min-width: 768px) {
  .mc-messages__layout {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
  .mc-messages__list {
    order: 1;
  }
  .mc-message-form {
    order: 2;
  }
}
.mc-message-card {
  background: oklch(0.99 0.008 82 / 0.55);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px 24px;
}
.mc-message-card__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.mc-message-card__name {
  font-size: 16px;
  color: var(--ink);
  letter-spacing: 0.06em;
}
.mc-message-card__date {
  font-family: 'Cormorant Garamond', serif;
  font-size: 14px;
  color: var(--ink3);
  letter-spacing: 0.08em;
}
.mc-message-card__text {
  margin: 0;
  font-size: 16px;
  line-height: 1.9;
  color: var(--ink2);
  font-weight: 300;
  text-wrap: pretty;
  white-space: pre-wrap;
}
.mc-messages__empty {
  text-align: center;
  color: var(--ink3);
  font-size: 15px;
  margin: 0;
  padding: 24px;
}
.mc-message-form {
  order: 1;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: clamp(22px, 4vw, 32px);
  backdrop-filter: blur(8px);
  box-shadow: 0 24px 60px -42px rgba(50, 62, 88, 0.5);
}
.mc-message-form__lead {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink3);
}
.mc-message-form input,
.mc-message-form textarea {
  width: 100%;
  background: oklch(0.99 0.008 82 / 0.7);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 13px 16px;
  font-family: inherit;
  font-size: 16px;
  color: var(--ink);
  margin-bottom: 14px;
}
.mc-message-form input:focus,
.mc-message-form textarea:focus {
  border-color: var(--accent);
  outline: none;
}
.mc-message-form textarea {
  line-height: 1.8;
  resize: vertical;
}
.mc-message-form__error {
  margin: -8px 0 10px;
  font-size: 13px;
  color: oklch(0.55 0.12 25);
}
.mc-message-form__actions {
  display: flex;
  justify-content: center;
  margin-top: 12px;
}
.mc-message-form__captcha { margin: 10px 0 0; }

/* Footer */
.mc-footer {
  text-align: center;
  margin-top: clamp(70px, 11vw, 110px);
  padding-top: 48px;
  border-top: 1px solid var(--line);
}
.mc-footer__diamond {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 30px;
}
.mc-footer__diamond span {
  width: 8px;
  height: 8px;
  transform: rotate(45deg);
  border: 1px solid var(--gold);
}
.mc-footer__closing {
  margin: 0 0 8px;
  font-size: clamp(18px, 3vw, 22px);
  letter-spacing: 0.1em;
  color: var(--ink);
}
.mc-footer__family {
  margin: 22px 0 0;
  font-size: 15px;
  line-height: 2;
  color: var(--ink3);
  letter-spacing: 0.08em;
}

/* Dock */
.mc-dock {
  position: fixed;
  left: 50%;
  bottom: clamp(12px, 3vw, 22px);
  transform: translateX(-50%);
  z-index: 30;
  display: flex;
  align-items: stretch;
  gap: 2px;
  padding: 6px;
  border-radius: 999px;
  background: oklch(0.99 0.008 82 / 0.82);
  backdrop-filter: blur(16px);
  border: 1px solid var(--line);
  box-shadow: 0 18px 46px -20px rgba(50, 62, 88, 0.45);
  max-width: calc(100vw - 24px);
}
.mc-dock__btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 8px clamp(10px, 3.4vw, 22px);
  border: none;
  border-radius: 999px;
  cursor: pointer;
  background: transparent;
  font-family: inherit;
  text-decoration: none;
  transition: background 0.3s;
  color: var(--ink2);
}
.mc-dock__btn:hover,
.mc-dock__btn.is-active {
  background: oklch(0.96 0.014 220 / 0.7);
}
.mc-dock__btn svg {
  width: 21px;
  height: 21px;
  stroke: var(--ink3);
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 0.3s;
}
.mc-dock__btn.is-active svg { stroke: var(--accent); }
.mc-dock__btn span {
  font-size: 12px;
  letter-spacing: 0.12em;
  white-space: nowrap;
  transition: color 0.3s;
}
.mc-dock__btn.is-active span { color: var(--accent); }

/* Lightbox */
.mc-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(20, 24, 32, 0.92);
  align-items: center;
  justify-content: center;
  padding: 48px clamp(56px, 14vw, 88px);
  box-sizing: border-box;
}
.mc-lightbox.is-open { display: flex; }
.mc-lightbox__img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.4);
}
.mc-lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.mc-lightbox__nav:hover {
  background: rgba(255, 255, 255, 0.22);
}
.mc-lightbox__nav--prev { left: clamp(12px, 4vw, 28px); }
.mc-lightbox__nav--next { right: clamp(12px, 4vw, 28px); }
.mc-lightbox__nav[hidden] { display: none; }
.mc-lightbox__close {
  position: absolute;
  top: 20px;
  right: 20px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-radius: 999px;
  padding: 8px 18px;
  font-family: inherit;
  font-size: 14px;
  cursor: pointer;
  letter-spacing: 0.1em;
}
