/* ================================================================
   FOR. 혜란 — Birthday Memory Film
   Vintage darkroom / Polaroid / Handwritten aesthetic
   ================================================================ */

/* ---------- tokens ---------- */
:root {
  --cream:   #f5f0e8;
  --parchment: #ede7d8;
  --dark:    #1a1712;
  --charcoal: #2d2926;
  --sepia:   #7a6248;
  --gold:    #c9a96e;
  --gold-lt: #e8d5a8;
  --rose:    #c97b8a;
  --rose-lt: #e8b4be;
  --ink:     #3d3228;
  --ink-lt:  #7a6e62;
  --ease:    cubic-bezier(.22,1,.36,1);
  --ease-back: cubic-bezier(.34,1.56,.64,1);
}

/* ---------- reset ---------- */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: "Gowun Batang", "Noto Serif KR", serif;
  background: var(--cream);
  color: var(--ink);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }

/* ================================================================
   GRAIN OVERLAY
   ================================================================ */
.grain-overlay {
  position: fixed; inset: 0; z-index: 9998; pointer-events: none;
  opacity: .04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 180px;
}

/* ================================================================
   INTRO
   ================================================================ */
.intro {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--dark);
  display: flex; align-items: center; justify-content: center; gap: 0;
  overflow: hidden;
  transition: opacity 1.6s var(--ease), visibility 1.6s;
}
.intro.hide { opacity: 0; visibility: hidden; pointer-events: none; }

/* side film strips */
.intro-film-strip {
  width: 40px; height: 100vh; flex-shrink: 0;
  background: #111;
  border-right: 1px solid #2a2a2a;
  display: flex; flex-direction: column; justify-content: space-around; align-items: center;
  padding: 12px 0;
}
.intro-film-strip.right { border-right: none; border-left: 1px solid #2a2a2a; }
.intro-film-strip span {
  display: block; width: 18px; height: 12px;
  background: #222; border: 1px solid #333; border-radius: 2px;
  animation: flickerPerf 2.4s ease-in-out infinite;
}
.intro-film-strip span:nth-child(odd)  { animation-delay: .3s; }
.intro-film-strip span:nth-child(even) { animation-delay: .8s; }
@keyframes flickerPerf { 0%,100%{opacity:.4} 50%{opacity:.9} }

/* center */
.intro-center {
  flex: 1; text-align: center; padding: 0 20px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0;
}
.intro-from {
  font-family: "Nanum Pen Script", cursive;
  font-size: clamp(1rem,3.5vw,1.4rem);
  color: var(--gold);
  letter-spacing: .04em;
  opacity: 0;
  animation: introUp .9s var(--ease) .4s forwards;
}
.intro-shutter {
  margin: 18px 0;
  width: 64px; height: 64px; border-radius: 50%;
  border: 2px solid var(--sepia);
  display: flex; align-items: center; justify-content: center;
  position: relative;
  opacity: 0; animation: introUp .7s var(--ease) .8s forwards;
}
.shutter-blade {
  width: 48px; height: 48px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #3a3028, #111);
  border: 2px solid var(--gold);
  animation: shutterClick .6s ease 1.4s forwards;
}
@keyframes shutterClick { 0%{transform:scale(1)} 40%{transform:scale(.55)} 70%{transform:scale(1.08)} 100%{transform:scale(1)} }
.intro-name {
  font-family: "Nanum Pen Script", "Noto Serif KR", cursive;
  font-size: clamp(3.4rem, 13vw, 7.5rem);
  font-weight: 400;
  letter-spacing: .08em;
  color: #fff;
  opacity: 0;
  animation: introUp 1s var(--ease) 1.1s forwards;
}
.intro-date {
  font-family: "Nanum Pen Script", cursive;
  font-size: clamp(1.6rem, 5.5vw, 2.8rem);
  letter-spacing: .06em;
  color: var(--gold-lt);
  margin-top: 10px;
  opacity: 0;
  animation: introUp 1s var(--ease) 1.8s forwards;
}
@keyframes introUp { from{opacity:0;transform:translateY(22px)} to{opacity:1;transform:translateY(0)} }

/* ================================================================
   HEADER
   ================================================================ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  padding: 12px 20px;
  display: flex; align-items: center; justify-content: space-between;
  transition: background .5s, box-shadow .5s;
}
.site-header.scrolled {
  background: rgba(245,240,232,.92);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(122,98,72,.15);
}
.hdr-logo { display: flex; align-items: center; gap: 8px; }
.hdr-logo-text {
  font-family: "Nanum Pen Script", cursive;
  font-size: 1.1rem; color: var(--dark);
  white-space: nowrap;
  opacity: 0; transition: opacity .4s;
}
.site-header.scrolled .hdr-logo-text { opacity: 1; }
.hdr-logo-heart {
  color: var(--rose); font-size: .9rem;
  opacity: 0; transition: opacity .4s .1s;
}
.site-header.scrolled .hdr-logo-heart { opacity: 1; }
.hdr-nav { display: flex; gap: 16px; }
.hdr-nav a {
  font-family: "Noto Serif KR", serif;
  font-size: .8rem; letter-spacing: .06em;
  color: var(--ink); transition: color .3s;
  white-space: nowrap;
  position: relative;
}
.hdr-nav a::after {
  content: ""; position: absolute; left: 0; bottom: -4px;
  width: 0; height: 1px; background: var(--gold);
  transition: width .35s var(--ease);
}
.hdr-nav a:hover::after { width: 100%; }
/* 스크롤 전: nav 희어지게 하되 클릭은 허용, 파란색 탄색 방지 */
.site-header:not(.scrolled) .hdr-nav a {
  color: rgba(255,255,255,.01);
  text-decoration: none;
}

/* ================================================================
   HERO
   ================================================================ */
.hero {
  min-height: 100vh; /* svh 구형 호환성 대비 */
  min-height: 100svh;
  background:
    radial-gradient(ellipse 80% 70% at 60% 40%, rgba(201,169,110,.08), transparent),
    linear-gradient(160deg, #1a1712 0%, #2d2520 40%, #1a1510 100%);
  display: -webkit-box;
  display: -ms-flexbox;
  display: grid;
  grid-template-columns: 1fr 1fr;
  -webkit-box-align: center;
  align-items: center;
  gap: 0;
  padding: 100px clamp(24px,6vw,90px) 80px;
  position: relative; overflow: hidden;
}

/* tape decorations */
.hero-tape {
  position: absolute; width: 80px; height: 22px;
  background: rgba(201,169,110,.25);
  border: 1px solid rgba(201,169,110,.18);
}
.hero-tape--tl { top: 58px; left: 48px; transform: rotate(-8deg); }
.hero-tape--br { bottom: 68px; right: 48px; transform: rotate(6deg); }

/* left: polaroid */
.hero-polaroid {
  display: flex; flex-direction: column; align-items: center;
  animation: floatPol 6s ease-in-out infinite;
}
@keyframes floatPol { 0%,100%{transform:rotate(-3deg) translateY(0)} 50%{transform:rotate(-3deg) translateY(-12px)} }
.hero-polaroid-img {
  width: clamp(210px,32vw,330px);
  aspect-ratio: 5 / 4;
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,.01) 0px, rgba(255,255,255,.01) 1px, transparent 1px, transparent 8px),
    linear-gradient(160deg, #2a241c, #1a1510);
  border: 8px solid #f5f0e8;
  border-bottom-width: 34px;
  border-radius: 2px;
  box-shadow: 0 20px 60px rgba(0,0,0,.55), 4px 6px 18px rgba(0,0,0,.35);
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.hero-polaroid-noise {
  position: absolute; inset: 0; z-index: 2;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.12'/%3E%3C/svg%3E");
  opacity: .18; mix-blend-mode: overlay; pointer-events: none;
}
/* 가족사진 */
.hero-polaroid-photo {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center center;
  z-index: 1;
  display: block;
}
/* 숫자 텍스트 숨김 */
.hero-polaroid-year { display: none; }
.hero-polaroid-caption {
  margin-top: 14px;
  font-family: "Nanum Pen Script", cursive;
  font-size: clamp(.9rem,2vw,1.15rem);
  color: var(--sepia); letter-spacing: .06em;
}

/* right: text */
.hero-text {
  padding-left: clamp(20px,4vw,60px);
  color: #fff;
}
.hero-sub {
  font-family: "Playfair Display", serif;
  font-size: clamp(.8rem,1.8vw,1rem);
  letter-spacing: .35em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 22px;
}
.hero-title {
  font-family: "Noto Serif KR", serif;
  font-weight: 700;
  font-size: clamp(1.6rem,5vw,3.6rem);
  line-height: 1.2;
  margin-bottom: 26px;
  white-space: nowrap;
}
.hero-title em { color: var(--gold); font-style: normal; }
.hero-title-line { display: block; overflow: hidden; }
.hero-title-line.js-line span {
  display: block;
  transform: translateY(110%);
  transition: transform 1s var(--ease);
}
.hero-title-line.visible span { transform: translateY(0); }
/* (2nd line removed — single line title) */

.hero-body {
  font-family: "Gowun Batang", serif;
  font-weight: 300; font-size: clamp(.95rem,2.2vw,1.1rem);
  color: rgba(255,255,255,.7);
  line-height: 2; margin-bottom: 36px;
}
.hero-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 30px; border-radius: 2px;
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-family: "Noto Serif KR", serif;
  font-size: .9rem; letter-spacing: .1em;
  transition: background .4s var(--ease), color .4s var(--ease), gap .4s var(--ease), transform .3s;
}
.hero-btn:hover {
  background: var(--gold); color: var(--dark); gap: 16px; transform: translateY(-2px);
}

.hero-scroll {
  position: absolute; bottom: 32px; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: rgba(255,255,255,.35); font-size: .65rem; letter-spacing: .3em;
}
.hero-scroll-line {
  width: 1px; height: 44px;
  background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,.35));
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine { 0%,100%{transform:scaleY(1)} 50%{transform:scaleY(.5)} }
.hero-scroll-txt { text-transform: uppercase; }

/* ================================================================
   MEMORIES
   ================================================================ */
.memories {
  background: var(--parchment);
  padding: clamp(70px,12vw,130px) 0 clamp(80px,12vw,150px);
  overflow: hidden;
}

.mem-label {
  display: flex; align-items: center; gap: 16px;
  justify-content: center; margin-bottom: 18px; padding: 0 24px;
}
.mem-label-line { flex: 1; max-width: 120px; height: 1px; background: var(--sepia); opacity: .4; }
.mem-label-text {
  font-size: .72rem; letter-spacing: .4em; color: var(--sepia); text-transform: uppercase;
}

.mem-title {
  text-align: center; padding: 0 24px;
  font-family: "Noto Serif KR", serif; font-weight: 700;
  font-size: clamp(1.6rem,4.5vw,2.8rem);
  color: var(--charcoal);
}
.mem-hint {
  text-align: center; padding: 12px 24px 0;
  font-family: "Nanum Pen Script", cursive;
  font-size: clamp(1rem,2.5vw,1.2rem);
  color: var(--sepia);
}

/* ---- film roll ---- */
.filmroll-wrap {
  margin: 50px 0 0;
  background: var(--dark);
  padding: 20px 0;
  position: relative; overflow: hidden;
}
.filmroll-wrap::before, .filmroll-wrap::after {
  content: "";
  position: absolute; top: 0; bottom: 0; width: 60px; z-index: 2; pointer-events: none;
}
.filmroll-wrap::before {
  left: 0;
  background: linear-gradient(to right, var(--dark), transparent);
}
.filmroll-wrap::after {
  right: 0;
  background: linear-gradient(to left, var(--dark), transparent);
}

.filmroll {
  display: flex; gap: 4px;
  padding: 0 60px;
  overflow-x: auto; scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  cursor: grab;
}
.filmroll:active { cursor: grabbing; }
.filmroll::-webkit-scrollbar { display: none; }

.fr-frame {
  flex-shrink: 0; width: 180px;
  background: #111; border: none;
  cursor: pointer; position: relative;
  scroll-snap-align: center;
  outline: none;
  transition: transform .35s var(--ease);
}
.fr-frame:hover { transform: scale(1.04); z-index: 1; }
.fr-frame.active { transform: scale(1.06); }
.fr-frame.active .fr-inner { border-color: var(--gold); }

/* top/bottom perforations */
.fr-frame::before, .fr-frame::after {
  content: "";
  display: block; width: 100%; height: 14px;
  background: repeating-linear-gradient(90deg, transparent 0 5px, var(--dark) 5px 7px, #222 7px 21px, var(--dark) 21px 23px);
}
.fr-inner {
  border: 2px solid transparent;
  transition: border-color .3s;
  overflow: hidden;
  position: relative;
}
.fr-inner video {
  width: 100%; aspect-ratio: 9/6; object-fit: cover;
  display: block; pointer-events: none;
  filter: sepia(.15) contrast(1.06);
}
.fr-year {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(0,0,0,.8), transparent);
  color: var(--gold); font-family: "Nanum Pen Script", cursive;
  font-size: 1rem; text-align: center; padding: 8px 4px 5px;
}

/* ---- active memory stage ---- */
.mem-stage {
  max-width: 900px; margin: 52px auto 0;
  padding: 0 24px;
}
.mem-card {
  background: #f0ebe0;
  box-shadow: 0 24px 80px rgba(61,50,40,.18), 0 4px 16px rgba(61,50,40,.1);
  border-radius: 2px; overflow: hidden;
  animation: cardIn .7s var(--ease) both;
}
@keyframes cardIn { from{opacity:0;transform:translateY(28px) scale(.97)} to{opacity:1;transform:none} }

.mc-video-wrap {
  position: relative; background: #1a1510;
}
.mc-video-wrap::before, .mc-video-wrap::after {
  content: "";
  position: absolute; left: 0; right: 0; height: 18px; z-index: 2;
  background: repeating-linear-gradient(90deg, transparent 0 6px, rgba(0,0,0,.7) 6px 8px, #1a1510 8px 26px, rgba(0,0,0,.7) 26px 28px);
}
.mc-video-wrap::before { top: 0; }
.mc-video-wrap::after  { bottom: 0; }

.mc-video {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  -webkit-aspect-ratio: 16 / 9; /* 삼성 구형 브라우저 대비 */
  object-fit: cover;
  display: block;
  filter: sepia(.08) contrast(1.04);
  margin: 18px 0;
  opacity: 0;
  transition: opacity .6s ease;
}
.mc-video.ready { opacity: 1; }
/* 로딩 플레이스홀더 */
.mc-video-placeholder {
  position: absolute; inset: 18px 0;
  z-index: 1;
  background: linear-gradient(160deg, #1e1a14, #2a2218);
  display: flex; align-items: center; justify-content: center;
  transition: opacity .6s ease;
}
.mc-video-placeholder.hidden { opacity: 0; pointer-events: none; }
.mc-video-placeholder-inner {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  color: rgba(255,255,255,.35);
}
.mc-video-placeholder-icon {
  font-size: 2.4rem;
  animation: placeholderPulse 1.8s ease-in-out infinite;
}
.mc-video-placeholder-text {
  font-family: "Nanum Pen Script", cursive;
  font-size: 1.1rem; letter-spacing: .08em;
}
@keyframes placeholderPulse { 0%,100%{opacity:.3} 50%{opacity:.7} }
.mc-play-overlay {
  position: absolute; inset: 18px 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.18);
  transition: opacity .3s;
  cursor: pointer; z-index: 3;
}
.mc-play-overlay.hidden { opacity: 0; pointer-events: none; }
.mc-play-btn {
  width: 72px; height: 72px; border-radius: 50%;
  background: rgba(245,240,232,.15); backdrop-filter: blur(6px);
  border: 2px solid rgba(255,255,255,.6);
  color: #fff; font-size: 1.3rem;
  display: flex; align-items: center; justify-content: center;
  transition: background .3s, transform .3s var(--ease-back);
}
.mc-play-overlay:hover .mc-play-btn {
  background: var(--gold); border-color: transparent; transform: scale(1.12);
}

.mc-info {
  padding: 28px 36px 32px;
  display: flex; justify-content: space-between; align-items: flex-start; gap: 20px;
}
.mc-year-block {}
.mc-year {
  font-family: "Playfair Display", serif; font-size: 2.8rem; font-weight: 700;
  color: var(--sepia); line-height: 1;
}
.mc-date { font-size: .8rem; letter-spacing: .2em; color: var(--ink-lt); margin-top: 4px; }
.mc-text {}
.mc-title {
  font-family: "Noto Serif KR", serif; font-weight: 600;
  font-size: clamp(1rem,2.5vw,1.3rem); color: var(--charcoal); margin-bottom: 8px;
}
.mc-caption {
  font-family: "Gowun Batang", serif; font-weight: 300;
  font-size: .95rem; color: var(--ink-lt); line-height: 1.75;
}
.mc-nav {
  display: flex; gap: 10px; flex-shrink: 0;
}
.mc-nav-btn {
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid rgba(122,98,72,.3);
  background: transparent; cursor: pointer; color: var(--sepia); font-size: .95rem;
  display: flex; align-items: center; justify-content: center;
  transition: background .3s, color .3s, border-color .3s, transform .3s;
}
.mc-nav-btn:hover { background: var(--sepia); color: #fff; border-color: transparent; transform: scale(1.06); }
.mc-nav-btn:disabled { opacity: .3; pointer-events: none; }

/* ================================================================
   LETTER
   ================================================================ */
/* ================================================================
   LETTER  —  big, readable HTML postcard + typewriter
   (노안 고려: 글씨 크게)
   ================================================================ */
.letter-section {
  background: linear-gradient(160deg, #1e1b17 0%, #2a2520 100%);
  padding: clamp(70px,11vw,140px) 20px;
  position: relative; overflow: hidden;
}
.letter-section::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 65% at 25% 55%, rgba(201,169,110,.08), transparent);
  pointer-events: none;
}
.letter-label { margin-bottom: 40px; position: relative; z-index: 1; }
.letter-label .mem-label-text { color: var(--gold); }
.letter-label .mem-label-line { background: var(--gold); opacity: .4; }

/* ── postcard card ── */
.postcard {
  position: relative; z-index: 1;
  max-width: 720px; margin: 0 auto;
  background: linear-gradient(160deg, #fdf8ee, #f5edda);
  border-radius: 10px;
  padding: clamp(32px,5vw,56px) clamp(26px,5vw,60px) clamp(40px,5vw,60px);
  /* 검정 그림자 제거 → 부드러운 세피아 톤 그림자만 */
  box-shadow: 0 20px 60px rgba(80,55,30,.22), 0 4px 18px rgba(80,55,30,.12);
  border: none;
  overflow: hidden;
}
/* paper texture hint */
.postcard::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 80% 10%, rgba(201,169,110,.06), transparent 50%);
}

/* ── head: To + stamp ── */
.pc-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 20px; position: relative; z-index: 1;
}
.pc-to { display: flex; flex-direction: column; gap: 4px; }
.pc-to-label {
  font-family: "Playfair Display", serif; font-style: italic;
  font-size: clamp(1.1rem,2.5vw,1.4rem); color: var(--gold);
}
.pc-to-name {
  font-family: "Nanum Pen Script", cursive;
  font-size: clamp(1.7rem,5vw,2.6rem);   /* 크게 */
  color: var(--charcoal); line-height: 1.2;
}

/* stamp */
.pc-stamp {
  flex-shrink: 0; width: clamp(80px,16vw,104px); aspect-ratio: 5/6;
  background: linear-gradient(180deg, #2d2520, #1a1510);
  border: 1.5px solid var(--gold);
  border-radius: 3px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; padding: 8px 4px; position: relative;
}
.pc-stamp-heart { color: var(--rose); font-size: clamp(1.2rem,3vw,1.6rem); }
.pc-stamp-line1 { font-family: "Noto Serif KR", serif; font-size: .62rem; letter-spacing: .12em; color: var(--gold); }
.pc-stamp-line2 { font-family: "Noto Serif KR", serif; font-size: .52rem; letter-spacing: .08em; color: #9a8060; }

.pc-divider {
  border: none; height: 1px;
  background: repeating-linear-gradient(90deg, var(--gold) 0 6px, transparent 6px 11px);
  opacity: .5; margin: clamp(20px,3vw,28px) 0;
  position: relative; z-index: 1;
}

/* ── body (typed) ── 큰 글씨, 넉넉한 줄간격 ── */
.pc-body {
  position: relative; z-index: 1;
  font-family: "Gowun Batang", "Noto Serif KR", serif;
  font-size: clamp(1.05rem, 2.8vw, 1.4rem);   /* 노안 고려 — 크게 */
  line-height: 2.1;
  color: #2e2419;
  word-break: keep-all;
  min-height: 6em;
}
.pc-body p { margin: 0; white-space: pre-wrap; }

/* typewriter cursor */
.typewriter-cursor {
  display: inline-block;
  width: 3px; height: 1.05em;
  background: var(--sepia);
  vertical-align: text-bottom;
  margin-left: 2px;
  animation: cursorBlink 1s step-end infinite;
}
@keyframes cursorBlink { 0%,100%{opacity:1} 50%{opacity:0} }

/* ── sign ── */
.pc-sign {
  position: relative; z-index: 1;
  margin-top: clamp(28px,4vw,40px);
  text-align: right;
  font-family: "Nanum Pen Script", cursive;
  font-size: clamp(1.4rem,3.5vw,1.9rem);  /* 크게 */
  color: var(--sepia); line-height: 1.7;
  opacity: 0; transition: opacity 1.2s var(--ease);
}
.pc-sign.show { opacity: 1; }
.pc-sign strong { color: var(--rose); font-weight: 400; font-size: 1.1em; }

/* ── deco hearts ── */
.pc-deco {
  position: absolute; color: var(--rose-lt); pointer-events: none;
  animation: beat 2s ease-in-out infinite;
}
.pc-deco1 { top: 18%; right: 8%; font-size: 1rem; opacity: .5; }
.pc-deco2 { bottom: 16%; left: 7%; font-size: 1.4rem; opacity: .35; animation-delay: .5s; }
@keyframes beat { 0%,100%{transform:scale(1)} 40%{transform:scale(1.28)} }

/* ================================================================
   CLOSING
   ================================================================ */
.closing {
  background:
    radial-gradient(ellipse 60% 50% at 50% 30%, rgba(201,169,110,.1), transparent),
    var(--cream);
  text-align: center;
  padding: clamp(90px,14vw,180px) 24px;
}
.closing-eyebrow {
  font-family: "Playfair Display", serif;
  font-size: .72rem; letter-spacing: .45em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 22px;
}
.closing-quote {
  font-family: "Noto Serif KR", serif; font-weight: 600;
  font-size: clamp(1.4rem,4.5vw,2.5rem); color: var(--charcoal); margin-bottom: 18px;
  line-height: 1.5;
}
.closing-quote em { color: var(--rose); font-style: normal; }
.closing-msg {
  font-family: "Nanum Pen Script", cursive;
  font-size: clamp(1.2rem,3vw,1.6rem); color: var(--sepia);
  margin-bottom: 28px;
}
.closing-year {
  font-size: .78rem; letter-spacing: .3em; color: var(--sepia);
  margin-bottom: 24px;
}
.closing-heart { font-size: 1.8rem; color: var(--rose); }
.closing-heart i { animation: beat 1.8s ease-in-out infinite; }

/* ================================================================
   FOOTER
   ================================================================ */
.site-footer {
  background: var(--charcoal); color: rgba(255,255,255,.55);
  text-align: center; padding: 32px 24px;
  font-family: "Gowun Batang", serif; font-size: .85rem; letter-spacing: .08em;
}
.site-footer i { color: var(--rose); margin: 0 3px; }

/* ================================================================
   MODAL
   ================================================================ */
.modal {
  position: fixed; inset: 0; z-index: 2000;
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.modal.open { display: flex; }
.modal-bg {
  position: absolute; inset: 0;
  background: rgba(10,8,6,.9); backdrop-filter: blur(10px);
  opacity: 0; transition: opacity .4s var(--ease);
}
.modal.open .modal-bg { opacity: 1; }

.modal-inner {
  position: relative; z-index: 2;
  width: min(880px,100%);
  transform: scale(.95) translateY(20px); opacity: 0;
  transition: transform .5s var(--ease), opacity .5s var(--ease);
}
.modal.open .modal-inner { transform: none; opacity: 1; }

.modal-close {
  position: absolute; top: -48px; right: 0;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.25);
  color: #fff; cursor: pointer; font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  transition: background .3s, transform .4s;
}
.modal-close:hover { background: var(--rose); transform: rotate(90deg); }

.modal-strip {
  height: 18px;
  background: #111;
  background-image: repeating-linear-gradient(90deg, transparent 0 6px, rgba(0,0,0,.6) 6px 8px, #222 8px 28px, rgba(0,0,0,.6) 28px 30px);
  border-radius: 2px 2px 0 0;
}
.modal-strip.bottom { border-radius: 0 0 2px 2px; }

.modal-screen {
  background: #000; line-height: 0;
  position: relative;
}
.modal-screen video {
  width: 100%; max-height: 72vh; object-fit: contain;
}
/* 영상 버퍼링 중 로딩 스피너 */
.modal-screen::after {
  content: "";
  position: absolute; top: 50%; left: 50%;
  width: 46px; height: 46px;
  margin: -23px 0 0 -23px;
  border: 3px solid rgba(232,213,168,.25);
  border-top-color: var(--gold-lt);
  border-radius: 50%;
  opacity: 0; pointer-events: none;
  transition: opacity .25s;
  animation: modalSpin .8s linear infinite;
}
.modal.loading .modal-screen::after { opacity: 1; }
@keyframes modalSpin { to { transform: rotate(360deg); } }

.modal-info {
  text-align: center; margin-top: 18px; color: #fff;
}
.modal-date {
  font-family: "Playfair Display", serif; font-size: .85rem;
  letter-spacing: .3em; color: var(--gold); margin-bottom: 6px;
}
.modal-caption {
  font-family: "Noto Serif KR", serif; font-weight: 300;
  font-size: 1.05rem; color: rgba(255,255,255,.8);
}

/* ================================================================
   JS REVEAL HELPERS
   ================================================================ */
.js-reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity .85s var(--ease), transform .85s var(--ease);
}
.js-reveal.visible { opacity: 1; transform: none; }
.js-reveal-up {
  opacity: 0; transform: translateY(44px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}
.js-reveal-up.visible { opacity: 1; transform: none; }

/* ================================================================
   SCROLL PROGRESS BAR
   ================================================================ */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--gold), var(--rose));
  z-index: 600; transition: width .12s linear;
}

/* ================================================================
   FLOATING HEARTS (ambient)
   ================================================================ */
.floating-hearts {
  position: fixed; inset: 0; z-index: 1; pointer-events: none; overflow: hidden;
}
.floating-hearts .fh {
  position: absolute; bottom: -30px;
  color: var(--rose-lt); opacity: 0;
  animation: floatUp linear forwards;
}
@keyframes floatUp {
  0%   { transform: translateY(0) scale(.6) rotate(0deg);   opacity: 0; }
  12%  { opacity: .5; }
  85%  { opacity: .45; }
  100% { transform: translateY(-110vh) scale(1) rotate(40deg); opacity: 0; }
}

/* ================================================================
   JOURNEY (함께한 시간)
   ================================================================ */
.journey {
  background:
    linear-gradient(180deg, var(--parchment) 0%, #e8dfcc 100%);
  padding: clamp(80px,13vw,150px) 24px;
  position: relative; overflow: hidden;
}
.journey::before, .journey::after {
  content: "♥"; position: absolute; color: rgba(201,169,110,.12);
  font-size: clamp(120px, 24vw, 300px); line-height: 1; pointer-events: none;
}
.journey::before { top: -40px; left: -30px; }
.journey::after  { bottom: -80px; right: -20px; transform: rotate(18deg); }
.journey-inner { max-width: 1080px; margin: 0 auto; position: relative; z-index: 1; }

.journey-title {
  text-align: center;
  font-family: "Noto Serif KR", serif; font-weight: 700;
  font-size: clamp(1.6rem,4.5vw,2.8rem); color: var(--charcoal);
}
.journey-sub {
  text-align: center; margin-top: 14px;
  font-family: "Gowun Batang", serif; color: var(--ink-lt);
  font-size: clamp(.95rem,2.2vw,1.05rem);
}

.journey-stats {
  margin-top: clamp(40px,6vw,64px);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
}
.stat-card {
  background: rgba(253,248,238,.7);
  border: 1px solid rgba(201,169,110,.3);
  border-radius: 10px;
  padding: 32px 18px 26px;
  text-align: center;
  backdrop-filter: blur(4px);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s;
}
.stat-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(122,98,72,.16);
  border-color: var(--gold);
}
.stat-num {
  font-family: "Playfair Display", serif; font-weight: 700;
  font-size: clamp(2rem,5vw,3rem); color: var(--sepia); line-height: 1;
}
.stat-plus {
  font-family: "Noto Serif KR", serif; font-weight: 600;
  font-size: clamp(1rem,2.2vw,1.3rem); color: var(--gold);
  margin-left: 3px;
}
.stat-num { letter-spacing: -.01em; }
.stat-infinity { color: var(--rose); }
.stat-label {
  font-family: "Noto Serif KR", serif; font-weight: 600;
  font-size: 1rem; color: var(--charcoal); margin-top: 14px;
}
.stat-desc {
  font-family: "Gowun Batang", serif; font-size: .82rem;
  color: var(--ink-lt); margin-top: 6px; line-height: 1.6;
}

.journey-quote {
  margin: clamp(44px,7vw,72px) auto 0; max-width: 680px; text-align: center;
  font-family: "Nanum Pen Script", cursive;
  font-size: clamp(1.3rem,3.5vw,1.9rem);
  color: var(--sepia); line-height: 1.7;
  position: relative; padding: 0 20px;
}

/* ================================================================
   MUSIC TOGGLE BUTTON
   ================================================================ */
.music-toggle {
  position: fixed;
  right: 22px; bottom: 22px;
  z-index: 9997;
  width: 54px; height: 54px;
  border-radius: 50%;
  border: 1px solid rgba(201,169,110,.6);
  background: rgba(26,23,18,.82);
  color: var(--gold-lt);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(6px);
  box-shadow: 0 8px 24px rgba(0,0,0,.3);
  transition: transform .35s var(--ease-back), box-shadow .35s var(--ease), border-color .3s, opacity .6s;
  -webkit-tap-highlight-color: transparent;
}
.music-toggle:hover {
  transform: scale(1.08);
  border-color: var(--gold);
  box-shadow: 0 12px 30px rgba(201,169,110,.35);
}
.music-toggle:active { transform: scale(.95); }

.music-toggle-icon {
  font-size: 1.1rem;
  transition: opacity .3s;
}
/* 재생 중일 때 아이콘 숨기고 막대 표시 */
.music-toggle.playing .music-toggle-icon { display: none; }
.music-toggle:not(.playing) .music-bars { display: none; }

/* equalizer bars */
.music-bars {
  display: flex; align-items: flex-end; gap: 3px;
  height: 20px;
}
.music-bars span {
  display: block;
  width: 3px;
  background: var(--gold-lt);
  border-radius: 2px;
  animation: musicBar 0.9s ease-in-out infinite;
}
.music-bars span:nth-child(1) { height: 8px;  animation-delay: 0s;    }
.music-bars span:nth-child(2) { height: 16px; animation-delay: 0.2s;  }
.music-bars span:nth-child(3) { height: 11px; animation-delay: 0.4s;  }
.music-bars span:nth-child(4) { height: 18px; animation-delay: 0.15s; }
@keyframes musicBar {
  0%, 100% { transform: scaleY(0.4); }
  50%      { transform: scaleY(1);   }
}
/* 음소거(일시정지) 상태 — 막대 정지 (paused 클래스) */
.music-toggle.paused .music-bars span { animation-play-state: paused; }

/* 살짝 등장 애니메이션 */
.music-toggle {
  opacity: 0;
  animation: musicFadeIn .8s var(--ease) forwards;
  animation-delay: 5.4s;
}
@keyframes musicFadeIn {
  from { opacity: 0; transform: translateY(20px) scale(.8); }
  to   { opacity: 1; transform: translateY(0)   scale(1);  }
}

@media (max-width: 540px) {
  .music-toggle { width: 46px; height: 46px; right: 16px; bottom: 16px; }
  .music-bars { height: 16px; }
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 820px) {
  .hero {
    grid-template-columns: 1fr !important;
    -ms-grid-columns: 1fr !important;
    text-align: center;
    gap: 40px;
    padding: 100px 20px 60px;
  }
  .hero-polaroid { order: -1; }
  .hero-text { padding-left: 0; }
  .hero-tape--tl, .hero-tape--br { display: none; }
  .mc-info { flex-wrap: wrap; }
  .mc-nav { margin-top: 8px; }
  .journey-stats { grid-template-columns: repeat(2, 1fr); }
  .hero-title {
    font-size: clamp(1.4rem, 7vw, 2.4rem);
    white-space: nowrap;
  }
  .site-header { padding: 10px 16px; }
  /* 모바일에서 스크롤 전 nav 표시 — 타이핑으로 스크롤 유도 */
  .site-header:not(.scrolled) .hdr-nav a {
    color: rgba(255,255,255,.45);
    pointer-events: auto;
  }
}
@media (max-width: 540px) {
  .fr-frame { width: 140px; }
  .hdr-nav { gap: 12px; }
  .hdr-nav a { font-size: .76rem; letter-spacing: .03em; }
  .mc-info { padding: 20px 20px 24px; }
  .mc-year { font-size: 2rem; }
  .stat-card { padding: 24px 12px 20px; }
  .hero-title {
    font-size: clamp(1.2rem, 7vw, 1.9rem);
    white-space: nowrap;
  }
  /* 히어로 블록을 세로 스택 */
  .hero-polaroid-img { width: clamp(220px, 78vw, 320px) !important; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js-reveal, .js-reveal-up, .hero-title-line.js-line span { opacity:1!important; transform:none!important; }
  .intro { display: none; }
}
