/* =========================================================
   Wedding Invitation — 이재준 ♡ 신지영 — 드래프트
   Concept: 보랏빛 꽃 사이, 우리의 약속
   Palette: Lavender × Plum with ivory base
   ========================================================= */

:root {
  /* === Color Palette (concept-sheet) === */
  --color-primary:   #F2EFE9;   /* warm white */
  --color-secondary: #2A2A2C;   /* dark gray */
  --color-accent:    #FFFFFF;   /* white */
  --color-bg:        #0B0B0C;   /* near black */
  --color-surface:   #161617;   /* charcoal */
  --color-text:      #F2EFE9;   /* warm white */
  --color-muted:     #9A9A9A;   /* gray */

  /* === Typography === */
  --font-ko-sans:    "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", sans-serif;
  --font-mono:       "Courier Prime", "Nanum Gothic Coding", "Courier New", monospace;

  /* === Layout ===
     ▼ 전체 구역 크기 조절 노브. 브라우저 개발자도구(F12 → Elements → :root)에서
       숫자만 바꾸면 실시간으로 바뀜. 마음에 들면 여기에 그대로 적어두기.
       구역별 세부 노브는 각 섹션 주석의 ▼ 표시 참고. */
  --max-w: 480px;        /* 카드 전체 너비 (PC에서 보일 때 가운데 폭) */
  --gap-section: 96px;   /* 모든 구역의 위아래 여백 (구역 사이 간격) */
  --gap-block: 28px;     /* 구역 안 블록 사이 여백 */
  --side-pad: 28px;      /* 모든 구역의 좌우 여백 */

  /* === Motion tokens (motion-spec §5) === */
  --ease-emphasized: cubic-bezier(0.2, 0, 0, 1);
  --ease-standard:   cubic-bezier(0.4, 0, 0.2, 1);
  --ease-decelerate: cubic-bezier(0, 0, 0.2, 1);
  --ease-accelerate: cubic-bezier(0.4, 0, 1, 1);
  --ease-out-cubic:  cubic-bezier(0.33, 1, 0.68, 1);

  --dur-fast:  0.15s;
  --dur-base:  0.3s;
  --dur-mid:   0.6s;
  --dur-slow:  0.9s;
  --dur-xslow: 1.4s;

  --dur-bg-mesh:   60s;
  --dur-pulse:     1.6s;
  --dur-eq-bar:    0.4s;
  --dur-ken-burns: 18s;

  --stagger-base:  0.1s;
  --stagger-large: 0.15s;
}

/* === Reset === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

html, body {
  background: var(--color-secondary);
  background:
    #000;
  color: var(--color-text);
  font-family: var(--font-ko-sans);
  font-size: 15px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100%;
}

body { position: relative; min-height: 100vh; overflow-x: hidden; }

img { max-width: 100%; display: block; }
[hidden] { display: none !important; }

button {
  font-family: inherit;
  cursor: pointer;
  background: none;
  border: 0;
  color: inherit;
}

a { color: var(--color-accent); text-decoration: none; }

/* === Background mesh (motion §1-B) === */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 50% at 20% 30%, rgba(255, 255, 255, 0.05), transparent 70%),
    radial-gradient(ellipse 50% 60% at 80% 70%, rgba(255, 255, 255, 0.04), transparent 70%);
  background-size: 200% 200%;
  animation: meshDrift var(--dur-bg-mesh) ease-in-out infinite alternate;
  will-change: background-position;
}
@keyframes meshDrift {
  0%   { background-position: 0% 0%, 100% 100%, 50% 100%, 100% 0%; }
  50%  { background-position: 30% 20%, 70% 80%, 60% 70%, 80% 20%; }
  100% { background-position: 60% 40%, 40% 60%, 80% 50%, 60% 40%; }
}

/* === Card container === */
.card {
  position: relative;
  z-index: 2;
  max-width: var(--max-w);
  margin: 0 auto;
  background: var(--color-bg);
  min-height: 100vh;
  box-shadow: 0 0 60px rgba(52, 43, 62, 0.08);
  overflow: hidden;
}

/* === Section base === */
.section {
  position: relative;
  padding: var(--gap-section) var(--side-pad); /* ▼ 특정 구역만 다르게 하려면 아래처럼: .venue { padding: 60px 20px; } */
  text-align: left;
  contain: layout style;
}
.calendar-section, .rsvp, .share { text-align: center; }

.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: var(--color-muted);
  margin-bottom: 32px; /* ▼ 작은 영문 제목(eyebrow)과 본문 사이 간격 */
  text-transform: uppercase;
}

.mono { font-family: var(--font-mono); }
.muted { color: var(--color-muted); font-size: 13px; }

/* === Reveal (motion §2) === */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity var(--dur-slow) var(--ease-standard),
    transform var(--dur-slow) var(--ease-standard);
}
.reveal.is-visible { opacity: 1; transform: none; }

.reveal-line {
  display: block;
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity var(--dur-mid) var(--ease-emphasized),
    transform var(--dur-mid) var(--ease-emphasized);
}
.reveal.is-visible .reveal-line { opacity: 1; transform: none; }
.reveal.is-visible .reveal-line:nth-child(1)  { transition-delay: 0.05s; }
.reveal.is-visible .reveal-line:nth-child(2)  { transition-delay: 0.13s; }
.reveal.is-visible .reveal-line:nth-child(3)  { transition-delay: 0.21s; }
.reveal.is-visible .reveal-line:nth-child(4)  { transition-delay: 0.29s; }
.reveal.is-visible .reveal-line:nth-child(5)  { transition-delay: 0.37s; }
.reveal.is-visible .reveal-line:nth-child(6)  { transition-delay: 0.45s; }
.reveal.is-visible .reveal-line:nth-child(7)  { transition-delay: 0.53s; }
.reveal.is-visible .reveal-line:nth-child(8)  { transition-delay: 0.61s; }

/* ==========================================================
   1. HERO — 사진 한 장 + 모노스페이스 타이포, 검정 배경
   ========================================================== */
.hero {
  position: relative;
  padding: 0;
  background: #000;
  color: #F2EFE9;
  contain: layout style;
}
.hero-frame {
  position: relative;
  min-height: 92vh;
  min-height: 92svh; /* ▼ 히어로 사진 높이 (화면 높이의 %). 100svh = 화면 꽉 참 */
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}
.hero-illustration {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top; /* ▼ 사진 어디를 보여줄지: center / center 20% 등 */
  display: block;
  filter: grayscale(1) contrast(1.08); /* 흑백. 컬러로 쓰려면 이 줄 삭제 */
  -webkit-mask-image: linear-gradient(to bottom, #000 58%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 58%, transparent 100%); /* ▼ 58% = 사진이 아래로 어두워지기 시작하는 지점 */
}

.hero-content {
  position: relative;
  padding: 0 24px 40px; /* ▼ 사진 위 텍스트의 좌우 여백 / 바닥 여백 */
  text-align: left;
}
.hero-names-en {
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 18px;
}
.hero-lead {
  font-size: 14.5px;
  line-height: 1.6;
  max-width: 38ch;
  color: rgba(242, 239, 233, 0.92);
}

.hero-band {
  position: relative;
  padding: 44px 24px 56px; /* ▼ 사진 아래 이름/날짜 띠의 위 / 좌우 / 아래 여백 */
  text-align: center;
}
.hero-ornament {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.12em;
  opacity: 0.85;
  margin-bottom: 24px;
}
.hero-names {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 48px; /* ▼ 두 이름 사이 간격 */
  font-weight: 700;
  font-size: 18px; /* ▼ 이름 글자 크기 */
  letter-spacing: 0.04em;
  margin-bottom: 22px;
}
.hero-amp { opacity: 0.7; }
.hero-info {
  font-size: 11.5px;
  line-height: 2;
  letter-spacing: 0.06em;
  color: rgba(242, 239, 233, 0.65);
}

/* hero step-in animation */
[data-hero-step] {
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 800ms var(--ease-decelerate),
    transform 800ms var(--ease-decelerate);
}
.hero.is-loaded [data-hero-step="1"] { opacity: 1; transform: none; transition-delay: 600ms; }
.hero.is-loaded [data-hero-step="2"] { opacity: 1; transform: none; transition-delay: 900ms; }
.hero.is-loaded [data-hero-step="3"] { opacity: 1; transform: none; transition-delay: 1300ms; }
.hero.is-loaded [data-hero-step="4"] { opacity: 1; transform: none; transition-delay: 1500ms; }
.hero.is-loaded [data-hero-step="5"] { opacity: 1; transform: none; transition-delay: 1800ms; }

.hero-illustration {
  opacity: 0;
  transition: opacity 1400ms var(--ease-decelerate) 200ms;
}
.hero.is-loaded .hero-illustration { opacity: 1; }

/* ==========================================================
   2. GREETING
   ========================================================== */
.greeting-body {
  font-size: 15px;  /* ▼ 인사말 글자 크기 */
  line-height: 2;   /* ▼ 인사말 줄 간격 */
  word-break: keep-all;
  color: var(--color-text);
}
.greeting-body .spacer { height: 10px; line-height: 1; }

/* ==========================================================
   3. COUPLE
   ========================================================== */
.couple-list { list-style: none; }
.couple-list li {
  display: grid;
  gap: 6px;        /* ▼ 역할/이름/부모님 줄 사이 간격 */
  padding: 22px 0; /* ▼ 신랑·신부 칸 하나의 위아래 높이 */
  border-top: 1px solid rgba(242, 239, 233, 0.15);
}
.couple-list li:last-child { border-bottom: 1px solid rgba(242, 239, 233, 0.15); }
.couple-role { font-size: 10.5px; letter-spacing: 0.3em; color: var(--color-muted); }
.couple-name { font-size: 20px; font-weight: 700; letter-spacing: 0.06em; }
.parents { font-size: 12.5px; color: var(--color-muted); letter-spacing: 0.02em; }

/* ==========================================================
   4. CALENDAR + D-DAY
   ========================================================== */
.date-headline {
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: 0.08em;
  margin-bottom: 36px; /* ▼ 날짜 제목과 달력 사이 간격 */
  line-height: 1.5;
}
.date-headline span { font-size: 12px; font-weight: 400; color: var(--color-muted); letter-spacing: 0.2em; }

.cal {
  width: 100%;
  max-width: 320px;    /* ▼ 달력 너비 */
  margin: 0 auto 36px; /* ▼ 36px = 달력과 D-day 사이 간격 */
  border-collapse: collapse;
  font-family: var(--font-mono);
}
.cal-caption {
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--color-muted);
  padding-bottom: 16px;
  caption-side: top;
  text-align: center;
}
.cal th, .cal td {
  padding: 10px 0;
  text-align: center;
  font-size: 13px;
  font-weight: 400;
}
.cal th {
  color: var(--color-muted);
  font-size: 11px;
  letter-spacing: 0.18em;
  border-bottom: 1px solid rgba(242, 239, 233, 0.15);
  padding-bottom: 14px;
}
.cal th.sun { color: var(--color-accent); }
.cal th.sat { color: var(--color-muted); }
.cal td.sun { color: var(--color-accent); }
.cal td.sat { color: var(--color-muted); }
.cal td.today {
  position: relative;
  color: var(--color-bg);
  font-weight: 600;
}
.cal td.today::before {
  content: '';
  position: absolute;
  inset: 4px;
  background: var(--color-primary);
  opacity: 1;
  border-radius: 50%;
  z-index: 0;
  animation: pulseDay var(--dur-pulse) ease-in-out 3;
}
.cal td.today span {
  position: relative;
  z-index: 1;
}
@keyframes pulseDay {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.12); }
}

.dday-wrap { margin-top: 12px; }
.dday {
  font-size: 30px; /* ▼ D-day 숫자 크기 */
  color: var(--color-accent);
  letter-spacing: 0.08em;
  font-weight: 700;
}

/* ==========================================================
   5. GALLERY
   ========================================================== */
.gallery-section {
  background: var(--color-bg);
}
.gallery-note, .calendar-message {
  font-family: var(--font-ko-sans);
  font-size: 13px;
  color: var(--color-muted);
  line-height: 1.8;
}

.gallery-collage {
  display: grid;
  grid-template-columns: repeat(6, 1fr); /* 6칸 격자. 사진별 칸 배치/비율은 script.js GALLERY_PHOTOS */
  gap: 10px; /* ▼ 사진 사이 간격 */
  width: 100%;
  list-style: none;
}
.gallery-item {
  overflow: hidden;
  border-radius: 4px; /* ▼ 사진 모서리 둥글기 */
  background: var(--color-surface);
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 700ms var(--ease-decelerate) calc(min(var(--i, 0), 5) * 110ms),
    transform 700ms var(--ease-decelerate) calc(min(var(--i, 0), 5) * 110ms);
}
.gallery-item--gap { margin-top: 26px; } /* 가로 사진과 아래 묶음 사이 여백 */
.reveal.is-visible .gallery-item {
  opacity: 1;
  transform: none;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  cursor: zoom-in;
}


/* ==========================================================
   6. VENUE
   ========================================================== */
.venue { background: var(--color-bg); }
.venue-name {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.02em;
  margin-bottom: 4px;
}
.venue-hall { font-size: 13px; font-weight: 400; color: var(--color-accent); margin-left: 6px; }
.venue-addr {
  font-size: 13px;
  color: var(--color-muted);
  margin-bottom: 22px; /* ▼ 주소와 지도 사이 간격 */
}

.map-static {
  width: 100%;
  height: 220px; /* ▼ 지도 높이 */
  border-radius: 4px;
  background:
    linear-gradient(135deg, #1A1A1B 0%, #262627 100%);
  position: relative;
  margin-bottom: 18px;
  overflow: hidden;
  display: grid;
  place-items: center;
}
.map-static::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,0.06) 0 14px, transparent 14px 28px);
  pointer-events: none;
}
.map-static.is-live { display: block; cursor: pointer; }
.map-static.is-live::before { content: none; }
.map-pin {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--color-accent);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-align: center;
  background: rgba(11, 11, 12, 0.85);
  padding: 10px 14px;
  border-radius: 2px;
  backdrop-filter: blur(4px);
  position: relative;
  z-index: 1;
}

.venue-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 32px;
}
.venue-actions .btn { flex: 1 1 auto; min-width: 96px; margin: 0; }

.directions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
}
.directions article {
  background: var(--color-surface);
  border-radius: 4px;
  padding: 18px 20px;
}
.directions h3 {
  font-family: var(--font-ko-sans);
  font-weight: 700;
  font-size: 14px;
  color: var(--color-accent);
  margin-bottom: 8px;
  letter-spacing: 0.04em;
}
.directions p {
  font-family: var(--font-ko-sans);
  font-size: 13.5px;
  color: var(--color-text);
  line-height: 1.7;
}
.bus-list {
  list-style: none;
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.bus-list li {
  font-family: var(--font-ko-sans);
  font-size: 12.5px;
  color: var(--color-text);
  display: flex;
  gap: 8px;
  align-items: baseline;
}
.bus-tag {
  flex-shrink: 0;
  font-size: 10.5px;
  padding: 2px 7px;
  border-radius: 2px;
  color: white;
  font-weight: 500;
  letter-spacing: 0.04em;
}
.bus-blue  { background: #1D4ED8; }
.bus-green { background: #287541; }
.bus-red   { background: #B6463F; }

/* ==========================================================
   7. ACCOUNT
   ========================================================== */
.account { background: var(--color-bg); position: relative; }
.account-message {
  font-size: 14px;
  color: var(--color-muted);
  margin-bottom: 24px;
}

.acc-group {
  width: 100%;
  margin: 12px 0 0;
  background: var(--color-surface);
  border-radius: 4px;
  overflow: hidden;
  text-align: left;
}
.acc-group + .acc-group { margin-top: 14px; } /* ▼ 신랑측/신부측 계좌 박스 사이 간격 */
.acc-group summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 20px; /* ▼ 계좌 박스 제목 줄 높이 / 좌우 여백 */
  font-family: var(--font-ko-sans);
  font-weight: 700;
  font-size: 14.5px;
  color: var(--color-accent);
  letter-spacing: 0.04em;
  position: relative;
  user-select: none;
  transition: background var(--dur-base) var(--ease-standard);
}
.acc-group summary::-webkit-details-marker { display: none; }
.acc-group summary::after {
  content: '';
  position: absolute;
  right: 24px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 1.5px solid var(--color-accent);
  border-bottom: 1.5px solid var(--color-accent);
  transform: translateY(-70%) rotate(45deg);
  transition: transform var(--dur-base) var(--ease-standard);
}
.acc-group[open] summary::after {
  transform: translateY(-30%) rotate(-135deg);
}
.acc-group[open] summary { background: rgba(255, 255, 255, 0.06); }

.acc-list {
  list-style: none;
  padding: 0 4px 14px;
}
.acc-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-top: 1px solid rgba(116, 101, 125, 0.15);
  flex-wrap: wrap;
}
.acc-list li > .copy-btn { margin-left: auto; }

.acc-name {
  font-family: var(--font-ko-sans);
  font-size: 13.5px;
  color: var(--color-text);
  font-weight: 700;
  flex: 1 0 100%;
}
.acc-num {
  font-family: var(--font-ko-sans);
  font-size: 12.5px;
  color: var(--color-muted);
  letter-spacing: 0.02em;
  flex: 1 1 auto;
}

.copy-btn:disabled { cursor: default; opacity: 0.65; }

.copy-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border: 1px solid var(--color-secondary);
  background: var(--color-bg);
  color: var(--color-accent);
  border-radius: 2px;
  font-size: 12px;
  font-family: var(--font-ko-sans);
  letter-spacing: 0.02em;
  transition:
    transform var(--dur-fast) var(--ease-standard),
    background var(--dur-base) var(--ease-standard),
    color var(--dur-base) var(--ease-standard),
    border-color var(--dur-base) var(--ease-standard);
}
.copy-btn:active { transform: scale(0.96); }
.copy-btn:hover  { background: var(--color-primary); color: var(--color-bg); border-color: var(--color-primary); }

.copy-btn .copy-default,
.copy-btn .copy-done {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: opacity 400ms var(--ease-decelerate), transform 400ms var(--ease-decelerate);
}
.copy-btn .copy-default { opacity: 1; transform: scale(1); }
.copy-btn .copy-done {
  position: absolute;
  inset: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.8);
  color: var(--color-secondary);
  background: var(--color-bg);
  border-radius: 2px;
}
.copy-btn.is-copied .copy-default { opacity: 0; transform: scale(0.8); }
.copy-btn.is-copied .copy-done    { opacity: 1; transform: scale(1); color: #5C9F5F; }
.copy-btn.is-copied                { border-color: #5C9F5F; }

/* ==========================================================
   8. RSVP / 9. SHARE
   ========================================================== */
.action-list {
  display: flex;
  flex-direction: column;
  gap: 8px;         /* ▼ 버튼 사이 간격 */
  align-items: center;
  max-width: 320px; /* ▼ 버튼 너비 */
  margin: 0 auto;
}
.action-list .btn { width: 100%; margin: 0; }

/* ==========================================================
   FOOTER
   ========================================================== */
.card-footer {
  padding: 64px var(--side-pad) 80px; /* ▼ 푸터 위 / 좌우 / 아래 여백 */
  text-align: center;
  color: var(--color-muted);
}
.footer-line {
  font-size: 12px;
  letter-spacing: 0.2em;
  margin-top: 8px;
}
.footer-line:first-child { font-weight: 700; margin-bottom: 20px; }

/* ==========================================================
   COMMON UI : Buttons / Toast / Lightbox / Music
   ========================================================== */
.btn {
  display: inline-block;
  padding: 12px 22px;
  margin: 4px;
  border: 1px solid var(--color-primary);
  background: transparent;
  color: var(--color-text);
  font-family: var(--font-ko-sans);
  font-size: 13.5px;
  letter-spacing: 0.04em;
  border-radius: 2px;
  text-decoration: none;
  transition:
    transform var(--dur-fast) var(--ease-standard),
    background var(--dur-base) var(--ease-standard),
    color var(--dur-base) var(--ease-standard),
    border-color var(--dur-base) var(--ease-standard);
  cursor: pointer;
  text-align: center;
}
.btn:hover  { background: var(--color-accent); color: var(--color-bg); }
.btn:active { transform: scale(0.96); }
.btn:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}
.btn.primary {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-bg);
}
.btn.primary:hover { background: var(--color-accent); border-color: var(--color-accent); }

/* Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 32px;
  transform: translate(-50%, 20px);
  background: var(--color-surface);
  color: var(--color-text);
  padding: 12px 20px;
  border-radius: 4px;
  font-family: var(--font-ko-sans);
  font-size: 13px;
  letter-spacing: 0.02em;
  box-shadow: 0 6px 24px rgba(52, 43, 62, 0.18);
  z-index: 999;
  opacity: 0;
  transition:
    opacity var(--dur-base) var(--ease-decelerate),
    transform var(--dur-base) var(--ease-decelerate);
  border: 1px solid rgba(242, 239, 233, 0.15);
}
.toast[hidden] { display: none; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  contain: strict;
  opacity: 0;
  transition: opacity 250ms var(--ease-decelerate);
}
.lightbox[hidden] { display: none; }
.lightbox.is-open { opacity: 1; }
.lightbox-img {
  max-width: 92vw;
  max-height: 88vh;
  display: block;
  transform-origin: center center;
  user-select: none;
  -webkit-user-drag: none;
  touch-action: none;
  transition: transform 250ms var(--ease-decelerate);
}
.lightbox.is-zooming .lightbox-img { transition: none; }
.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(250, 248, 252, 0.18);
  color: white;
  display: grid;
  place-items: center;
  backdrop-filter: blur(6px);
  transition: transform var(--dur-fast) var(--ease-standard), background var(--dur-base);
}
.lightbox-close:hover { background: rgba(250, 248, 252, 0.3); }
.lightbox-close:active { transform: scale(0.94); }

/* Music toggle */
.music-toggle {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 50;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(11, 11, 12, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--color-accent);
  display: grid;
  place-items: center;
  transition: transform var(--dur-fast) var(--ease-standard);
  overflow: hidden;
}
.music-toggle:active { transform: scale(0.94); }
.music-toggle .ico-note { display: inline-flex; align-items: center; justify-content: center; }
.music-toggle .eq {
  display: none;
  gap: 2px;
  align-items: end;
  height: 14px;
  padding: 0 1px;
}
.music-toggle .eq i {
  display: block;
  width: 2px;
  height: 4px;
  background: var(--color-accent);
  border-radius: 1px;
  animation: eqBounce var(--dur-eq-bar) ease-in-out infinite alternate;
  transform-origin: bottom;
}
.music-toggle .eq i:nth-child(2) { animation-delay: 0.10s; }
.music-toggle .eq i:nth-child(3) { animation-delay: 0.20s; }
@keyframes eqBounce {
  0%   { height: 3px; }
  100% { height: 14px; }
}
.music-toggle[aria-pressed="true"] .ico-note { display: none; }
.music-toggle[aria-pressed="true"] .eq       { display: inline-flex; }
.music-toggle[aria-pressed="true"]            { color: var(--color-accent); border-color: var(--color-accent); }

/* music ripple */
.music-toggle::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  transform: scale(0);
  opacity: 0;
  pointer-events: none;
}
.music-toggle.is-rippling::after {
  animation: ripple 600ms var(--ease-decelerate);
}
@keyframes ripple {
  0%   { transform: scale(0);   opacity: 0.4; }
  100% { transform: scale(2.5); opacity: 0; }
}

/* ==========================================================
   RESPONSIVE / DESKTOP
   ========================================================== */
@media (min-width: 768px) {
  .card { box-shadow: 0 0 80px rgba(52, 43, 62, 0.18); }
}

/* ==========================================================
   PREFERS-REDUCED-MOTION (motion §5 + global)
   ========================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  body::before { animation: none !important; }
  .hero-illustration { animation: none !important; transform: none !important; opacity: 1 !important; }
  .cal td.today::before { animation: none; }
  .music-toggle .eq i { animation: none; height: 8px; }
  [data-hero-step] { opacity: 1 !important; transform: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .reveal .reveal-line { opacity: 1 !important; transform: none !important; }
}
