/* =========================================================
   PeakPic 랜딩 — "콜라주 / 스티커" 리디자인
   토큰: 블랙 #000 / 포인트 오렌지 #FF5A47 / 화이트 #FFF, 본문 회색은 블랙 투명도만.
   보라는 "출시 예정" 뱃지 전용. 콜라주 요소(테이프·스티커·말풍선)는 전부 CSS/SVG.
   ========================================================= */

:root {
  --black: #000000;
  --white: #ffffff;
  --orange: #ff5a47;
  --violet: #6e56cf;                 /* "출시 예정" 뱃지 전용 */

  --ink-90: rgba(0, 0, 0, .9);
  --ink-70: rgba(0, 0, 0, .7);
  --ink-55: rgba(0, 0, 0, .55);
  --ink-40: rgba(0, 0, 0, .4);
  --ink-20: rgba(0, 0, 0, .2);
  --ink-12: rgba(0, 0, 0, .12);
  --ink-08: rgba(0, 0, 0, .08);
  --ink-06: rgba(0, 0, 0, .06);
  --ink-03: rgba(0, 0, 0, .03);

  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
          system-ui, Roboto, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;

  --container: 1120px;
  --gutter: 20px;
  --header-h: 56px;
  --sticky-h: 76px;
  --shadow-card: 0 18px 40px -18px rgba(0, 0, 0, .35), 0 1px 0 rgba(0, 0, 0, .05);
}
@media (min-width: 900px) { :root { --gutter: 40px; --header-h: 64px; } }

/* ---------- 리셋 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { overflow-x: clip; }
body {
  margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.6;
  color: var(--black); background: var(--white);
  word-break: keep-all; overflow-wrap: break-word; -webkit-font-smoothing: antialiased;
}
img, video, svg { display: block; max-width: 100%; }
img, video { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.br-desktop { display: none; }
@media (min-width: 900px) { .br-desktop { display: inline; } }
a:focus-visible, button:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }

/* 종이 느낌 점 그리드 (블랙 투명도만 사용) */
.paper {
  background-color: var(--white);
  background-image: radial-gradient(var(--ink-08) 1px, transparent 1.2px);
  background-size: 20px 20px;
}
.paper--gray { background-color: #f6f6f6; }

/* ---------- 타이포 ---------- */
.headline { font-size: clamp(30px, 5.4vw, 46px); font-weight: 800; line-height: 1.18; letter-spacing: -0.03em; }
.lede { font-size: clamp(16px, 2.2vw, 18px); line-height: 1.65; color: var(--ink-70); }
.dot { color: var(--orange); }

/* 형광펜 하이라이트 (오렌지 포인트) */
.hl { position: relative; display: inline-block; z-index: 0; white-space: nowrap; }
.hl::before {
  content: ""; position: absolute; z-index: -1; left: -.08em; right: -.08em; bottom: .04em; height: .46em;
  background: var(--orange); border-radius: .1em; transform: rotate(-1.4deg) skewX(-10deg);
}

/* 오렌지 낙서 밑줄 */
.scribble { position: relative; white-space: nowrap; }
.scribble svg { position: absolute; left: -.05em; width: calc(100% + .1em); height: .32em; bottom: -.2em; overflow: visible; }

/* ---------- 스티커 라벨 ---------- */
.tag {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 8px;
  background: var(--black); color: var(--white); font-size: 13px; font-weight: 800; letter-spacing: .02em;
  text-transform: lowercase; transform: rotate(var(--r, -2deg)); transform-origin: left center;
  box-shadow: 0 6px 14px -8px rgba(0, 0, 0, .4);
}
.tag::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); flex: none; }
.tag--outline { background: var(--white); color: var(--black); border: 1.5px solid var(--black); box-shadow: none; }
.tag--orange { background: var(--orange); color: var(--white); }
.tag--orange::before { background: var(--white); }
.tag--soon { background: var(--violet); color: var(--white); text-transform: none; }   /* 보라 사용 유일 지점 */
.tag--soon::before { background: var(--white); }

/* ---------- 헤더 ---------- */
.header { position: sticky; top: 0; z-index: 40; height: var(--header-h); background: rgba(255, 255, 255, .94); border-bottom: 1.5px solid var(--black); }
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.logo { display: inline-flex; align-items: center; }
.logo svg { height: 30px; width: auto; }
@media (min-width: 900px) { .logo svg { height: 34px; } }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 18px; border-radius: 999px; font-size: 15px; font-weight: 800; line-height: 1;
  background: var(--black); color: var(--white); border: 1.5px solid var(--black); transition: transform .12s ease;
}
.btn:hover { transform: translateY(-1px) rotate(-1deg); }
.btn--sm { height: 38px; padding: 0 14px; font-size: 14px; }
.btn--dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); flex: none; }
.header .btn { display: none; }
@media (min-width: 900px) { .header .btn { display: inline-flex; } }

/* ---------- 스토어 배지 (둘 다 공식 배지, 같은 높이) ---------- */
.stores { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 12px; }
.stores > a { display: inline-block; border-radius: 8px; order: 1; }
.stores > a.is-primary { order: 0; }            /* 방문자 OS와 같은 스토어를 앞으로 */
.badge-play img, .badge-app img { height: 48px; width: auto; }   /* Play PNG는 투명 여백을 잘라내(646×192) 두 배지 높이를 동일하게 */
@media (min-width: 900px) { .badge-play img, .badge-app img { height: 52px; } }
.tag-soon {
  display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 999px;
  font-size: 12px; font-weight: 800; color: var(--white); background: var(--violet);
}
.stores__note { width: 100%; order: 2; font-size: 14px; font-weight: 600; color: var(--ink-55); }

/* ---------- 단일 "앱 다운로드" 버튼 (2026-10-15) ----------
   모바일: <html class="os-android|os-ios"> 이면 js/main.js 가 버튼을 해당 스토어로 직행시킨다. 설치 섹션의 공식 배지 2개는 숨김.
   데스크톱·JS 없음(os-other): 버튼은 #install 로 스크롤, 설치 섹션에 공식 배지 2개 + QR 유지 */
.store-cta { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.store-cta .btn { height: 50px; padding: 0 26px; font-size: 16px; gap: 10px; }                               /* 글자 크기에 맞는 알약 (꽉 찬 바 금지) */
.store-cta .stores__note { width: auto; order: 0; font-size: 13px; padding-left: 4px; }                       /* 버튼 바로 아래, 왼쪽 맞춤 */
@media (min-width: 900px) {
  .store-cta { flex-direction: row; align-items: center; gap: 16px; }                                       /* 데스크톱: 버튼 옆 한 줄 */
  .store-cta .btn { height: 54px; padding: 0 30px; font-size: 17px; }
  .store-cta .stores__note { font-size: 14px; padding-left: 0; }
}
.install .store-cta .btn { background: var(--white); color: var(--black); border-color: var(--white); }
.install .store-cta { display: none; }
.os-android .install .store-cta, .os-ios .install .store-cta { display: flex; }
.os-android .install .stores, .os-ios .install .stores { display: none; }

/* =========================================================
   콜라주 부품
   ========================================================= */
.collage, .cluster { position: relative; width: 100%; container-type: inline-size; }

/* 폴라로이드 */
.pola {
  position: absolute; background: var(--white); padding: 3.2cqw 3.2cqw 8.5cqw; border-radius: 6px;
  box-shadow: var(--shadow-card); transform: rotate(var(--r, 0deg)); border: 1px solid var(--ink-06);
}
.pola > img, .pola video { width: 100%; height: auto; border-radius: 3px; aspect-ratio: var(--ar, 4 / 5); object-fit: cover; background: var(--ink-06); }
.pola__cap {
  position: absolute; left: 3.2cqw; right: 3.2cqw; bottom: 2.4cqw; display: flex; justify-content: space-between; gap: 8px;
  font-size: clamp(9px, 2.5cqw, 12px); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-40); white-space: nowrap;
}
.pola__cap b { color: var(--black); font-weight: 800; }

/* 테이프 */
.tape {
  position: absolute; z-index: 3; width: clamp(56px, 20cqw, 100px); height: clamp(18px, 5.6cqw, 28px);
  background: rgba(255, 90, 71, .9);
  background-image: repeating-linear-gradient(90deg, rgba(255, 255, 255, .22) 0 2px, transparent 2px 6px);
  transform: rotate(var(--tr, -8deg)); box-shadow: 0 1px 2px rgba(0, 0, 0, .1);
  clip-path: polygon(0 0, 100% 0, 98% 22%, 100% 45%, 97% 65%, 100% 82%, 98% 100%, 0 100%, 2% 80%, 0 60%, 3% 40%, 0 20%);
}
.tape--clear { background: rgba(0, 0, 0, .1); background-image: repeating-linear-gradient(90deg, rgba(255, 255, 255, .45) 0 2px, transparent 2px 6px); }

/* 말풍선 스티커 */
.bubble {
  position: absolute; z-index: 4; background: var(--white); color: var(--black); border: 1.5px solid var(--black); border-radius: 999px;
  padding: .55em 1em; font-size: clamp(12px, 3.6cqw, 17px); font-weight: 800; line-height: 1.2; white-space: nowrap;
  transform: rotate(var(--r, 0deg)); box-shadow: 0 10px 20px -12px rgba(0, 0, 0, .35);
}
.bubble::after {
  content: ""; position: absolute; left: 1.1em; bottom: -.5em; width: .8em; height: .8em; background: inherit;
  border-right: 1.5px solid var(--black); border-bottom: 1.5px solid var(--black); transform: rotate(45deg);
}
.bubble--orange { background: var(--orange); border-color: var(--orange); color: var(--white); }
.bubble--orange::after { border-color: var(--orange); }
.bubble--strike { color: var(--ink-40); }
.bubble--strike::before { content: ""; position: absolute; left: -4%; right: -4%; top: 50%; height: 3px; background: var(--orange); transform: rotate(-6deg); border-radius: 2px; }

/* 원형 스티커 */
.sticker {
  position: absolute; z-index: 4; display: flex; align-items: center; justify-content: center; text-align: center;
  width: clamp(68px, 21cqw, 104px); aspect-ratio: 1; border-radius: 50%; background: var(--black); color: var(--white);
  font-size: clamp(11px, 3cqw, 14px); font-weight: 800; line-height: 1.15; letter-spacing: -.01em;
  transform: rotate(var(--r, -10deg)); box-shadow: 0 10px 20px -12px rgba(0, 0, 0, .4); padding: 8px;
}
.sticker--orange { background: var(--orange); color: var(--white); }
.sticker--outline { background: var(--white); color: var(--black); border: 1.5px solid var(--black); }

/* 회전 텍스트 뱃지 */
.spin { position: absolute; z-index: 4; width: clamp(84px, 25cqw, 130px); aspect-ratio: 1; }
.spin svg { width: 100%; height: 100%; animation: spin 22s linear infinite; }
.spin text { font-family: var(--font); font-weight: 800; font-size: 12.5px; letter-spacing: 1.4px; fill: var(--white); }
@keyframes spin { to { transform: rotate(360deg); } }

/* 사진 위 핀 라벨 */
.pin {
  position: absolute; z-index: 4; left: var(--x); top: var(--y); transform: translate(-50%, -50%);
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border-radius: 999px;
  background: rgba(0, 0, 0, .82); color: var(--white); font-size: clamp(10px, 2.7cqw, 12px); font-weight: 800; white-space: nowrap;
}
.pin::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--orange); flex: none; }

/* ---------- 히어로 ---------- */
.hero { padding: 40px 0 56px; overflow: clip; }
.hero__inner { display: grid; gap: 40px; }
.hero__inner > * { min-width: 0; }
.hero__copy { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.hero__title { font-size: clamp(40px, 10vw, 70px); font-weight: 900; line-height: 1.04; letter-spacing: -0.045em; }
.hero__lede { font-size: clamp(17px, 2.4vw, 20px); color: var(--ink-70); font-weight: 500; line-height: 1.6; }
.hero__cta { margin-top: 6px; }

/* 히어로 콜라주: 영상 프레임 + 폴라로이드 + 말풍선 + 회전 뱃지 */
.collage { max-width: 460px; margin: 8px auto 0; aspect-ratio: 1 / 1.12; }
.reel { left: 2%; top: 4%; width: 72%; z-index: 2; }
.reel__media { position: relative; }
.reel video { display: block; }
.rec {
  position: absolute; left: 3cqw; top: 3cqw; z-index: 3; display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 8px; border-radius: 6px; background: rgba(0, 0, 0, .78); color: var(--white);
  font-size: clamp(10px, 2.6cqw, 12px); font-weight: 800; letter-spacing: .12em;
}
.rec::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); animation: blink 1.2s steps(1) infinite; }
@keyframes blink { 50% { opacity: .15; } }
.collage .pola--side { right: 0; bottom: 3%; width: 40%; z-index: 3; --ar: 1; }
.collage .bubble--a { right: 1%; top: 1%; }
.collage .bubble--b { right: -1%; top: 40%; }
.collage .spin { left: -4%; top: 38%; }

@media (min-width: 900px) {
  .hero { padding: 72px 0 96px; }
  .hero__inner { grid-template-columns: 1.02fr .98fr; align-items: center; gap: 48px; }
  .hero__copy { gap: 22px; }
  .collage { max-width: 540px; margin: 0 0 0 auto; }
}

/* ---------- 티커 (오렌지 띠) ---------- */
.ticker { background: var(--black); color: var(--white); overflow: hidden; }
.ticker__track { display: flex; width: max-content; animation: ticker 36s linear infinite; }
.ticker ul { display: flex; align-items: center; padding: 11px 0; margin: 0; }
.ticker li { display: inline-flex; align-items: center; gap: 28px; padding-right: 28px; font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
.ticker li::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--orange); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- 문제 공감: 포스트잇 벽 ---------- */
.pain { padding: 72px 0; overflow: clip; }
.pain__inner { display: grid; gap: 40px; }
.pain__inner > * { min-width: 0; }
.pain__copy { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.pain__answer { margin-top: 14px; font-size: clamp(18px, 3vw, 24px); font-weight: 800; line-height: 1.45; letter-spacing: -.02em; }
.notes { position: relative; display: grid; gap: 18px; padding: 8px 6px; }
.note {
  position: relative; background: var(--white); padding: 26px 22px 22px; border-radius: 4px; box-shadow: var(--shadow-card);
  transform: rotate(var(--r, 0deg)); border: 1px solid var(--ink-06);
}
.note .tape { left: 50%; top: -12px; margin-left: -40px; width: 80px; height: 24px; }
.note h3 { font-size: 17px; font-weight: 800; line-height: 1.35; }
.note p { margin-top: 6px; font-size: 16px; color: var(--ink-70); }
.note--quote { background: transparent; box-shadow: none; border: 0; padding: 18px 0 14px; min-height: 96px; }
.note--quote .bubble { position: relative; display: inline-block; font-size: 17px; }
.note--quote .sticker { right: 6%; top: -6px; width: 74px; font-size: 14px; }
@media (min-width: 900px) {
  .pain { padding: 120px 0; }
  .pain__inner { grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: center; }
  .notes { grid-template-columns: 1fr 1fr; gap: 26px 22px; padding: 12px; }
  .note { padding: 30px 26px 26px; }
  .note--quote { display: flex; align-items: center; justify-content: center; }
}

/* ---------- 기능 섹션 ---------- */
.feature { padding: 80px 0; overflow: clip; }
.feature__inner { display: grid; gap: 36px; align-items: center; }
.feature__inner > * { min-width: 0; }
.feature__copy { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.feature__copy .headline { margin-top: 4px; }
.ftags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.ftags li {
  padding: 7px 12px; border-radius: 999px; border: 1.5px solid var(--black); font-size: 13px; font-weight: 800; background: var(--white);
}
.ftags li:nth-child(odd) { transform: rotate(-2deg); }
.ftags li:nth-child(even) { transform: rotate(1.5deg); }
.ftags li.is-orange { border-color: var(--orange); box-shadow: 3px 3px 0 rgba(255, 90, 71, .35); }

.cluster { max-width: 440px; margin: 0 auto; aspect-ratio: 1 / 1.12; }
.cluster .pola--main { left: 6%; top: 5%; width: 76%; z-index: 2; }
.cluster .tape--tl { left: 6%; top: -10px; }
.cluster .tape--br { right: -6%; bottom: 10cqw; --tr: 10deg; }
/* 기능 1 미러링 */
.cluster--mirror .bubble--a { right: 0; top: 0; }
.cluster--mirror .sticker { right: 2%; bottom: 15%; }
/* 기능 2 포즈: 실제 앱 화면 목업 2대 (이미지에 기기 프레임 포함, 투명 배경) */
.shot { position: absolute; filter: drop-shadow(0 26px 28px rgba(0, 0, 0, .26)); transform: rotate(var(--r, 0deg)); }
.shot img { width: 100%; height: auto; }
.cluster--pose { aspect-ratio: 1 / 1.12; }
.cluster--pose .shot--main { right: 1%; top: 3%; width: 54%; z-index: 3; }
.cluster--pose .shot--sub { left: 1%; top: 9%; width: 46%; z-index: 2; }
.cluster--pose .bubble--a { left: 4%; top: 0; z-index: 4; }
.cluster--pose .sticker { right: -2%; bottom: 6%; z-index: 4; }
@media (min-width: 900px) {
  .feature { padding: 120px 0; }
  .feature__inner { grid-template-columns: 1fr 1fr; gap: 72px; }
  .feature--alt .cluster { order: 2; }
  .feature--alt .feature__copy { order: 1; }
  .feature__copy { max-width: 480px; }
  .cluster { max-width: 480px; }
}

/* ---------- 설치 CTA ---------- */
.install { background: var(--black); color: var(--white); padding: 84px 0; overflow: clip; scroll-margin-top: var(--header-h); }
.install__inner { display: grid; gap: 40px; align-items: center; }
.install__inner > * { min-width: 0; }
.install .headline { color: var(--white); }
.install .lede { color: rgba(255, 255, 255, .75); }
.install__copy { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.install .stores { margin-top: 8px; }
.install .stores__note { color: rgba(255, 255, 255, .6); }
.install__side { display: none; }
@media (min-width: 900px) {
  .install { padding: 128px 0; }
  .install__inner { grid-template-columns: 1.1fr .9fr; gap: 64px; }
  .install__side { display: block; position: relative; height: 380px; container-type: inline-size; }
  .install__side .pola { right: 8%; top: 40px; width: 250px; padding: 14px 14px 40px; --r: 4deg; }
  .install__side .pola img { --ar: 1; }
  .install__side .pola__cap { left: 14px; right: 14px; bottom: 12px; font-size: 11px; }
  .install__side .tape { left: 50%; top: -12px; margin-left: -44px; width: 88px; height: 26px; }
  .install__side .spin { left: 6%; bottom: 10px; width: 132px; }
  .install__side .bubble { left: 2%; top: 20px; font-size: 16px; }
}

/* ---------- 푸터 ---------- */
.footer { padding: 40px 0 calc(40px + var(--sticky-h)); font-size: 14px; color: var(--ink-55); border-top: 1.5px solid var(--black); }
.footer__inner { display: flex; flex-direction: column; gap: 20px; }
.footer .logo svg { height: 26px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 8px 20px; font-weight: 700; color: var(--ink-70); }
.footer__meta { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--ink-40); }
.footer a:hover { color: var(--black); }
@media (min-width: 900px) { .footer { padding: 56px 0; } .footer__inner { gap: 24px; } }

/* ---------- 모바일 고정 CTA ---------- */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .96); border-top: 1.5px solid var(--black);
  transform: translateY(110%); transition: transform .25s ease;
}
.sticky-cta.is-visible { transform: translateY(0); }
.sticky-cta .btn { width: 100%; height: 54px; font-size: 17px; gap: 10px; letter-spacing: -.01em; }   /* 점 + "앱 다운로드" 한 덩어리로 가운데 */
.sticky-cta .btn::before { margin-left: -18px; }                                                     /* 점 폭만큼 당겨 글자가 화면 정중앙에 오게 */
@media (min-width: 900px) { .sticky-cta { display: none; } }

/* ---------- 법적 문서 페이지 ---------- */
.legal { padding: 48px 0 96px; max-width: 760px; }
.legal h1 { font-size: clamp(26px, 5vw, 36px); font-weight: 800; letter-spacing: -0.02em; }
.legal h2 { font-size: 20px; font-weight: 700; margin-top: 40px; }
.legal p, .legal li { color: var(--ink-70); font-size: 16px; }
.legal p { margin-top: 12px; }
.legal ul { margin-top: 12px; padding-left: 20px; list-style: disc; }
.legal .updated { font-size: 14px; color: var(--ink-40); margin-top: 8px; }
.legal .todo { margin-top: 24px; padding: 16px 18px; border-radius: 12px; background: var(--ink-03); border: 1px dashed var(--ink-20); color: var(--ink-55); font-size: 15px; }

/* ---------- 모션 최소화 ---------- */
/* ---------- 히어로 모션 (2026-10-16): 영상이 오기 전까지 정적 콜라주에 리듬을 준다 ----------
   7초 루프: 말풍선 "조금만 왼쪽으로!" 팝업 → "지금이야, 찰칵" 팝업 → 영상 프레임 플래시 → 잠시 유지 → 사라짐.
   transform 은 각 부품의 기울기(rotate)에 쓰고 있으므로 모션은 개별 속성(scale·translate·rotate)으로만 건드린다 */
.hero__copy > * { animation: rise .6s cubic-bezier(.2, .8, .2, 1) both; }
.hero__copy > :nth-child(2) { animation-delay: .08s; }
.hero__copy > :nth-child(3) { animation-delay: .16s; }
.hero__copy > :nth-child(4) { animation-delay: .24s; }
@keyframes rise { from { opacity: 0; translate: 0 14px; } to { opacity: 1; translate: 0 0; } }

.collage .bubble--a, .collage .bubble--b { transform-origin: 1.3em 100%; animation: pop-a 7s cubic-bezier(.34, 1.56, .64, 1) infinite; }
.collage .bubble--b { animation-name: pop-b; }
@keyframes pop-a {
  0%, 9% { scale: 0; opacity: 0; }
  14% { scale: 1.08; opacity: 1; }
  17% { scale: 1; }
  40% { translate: 0 0; } 44% { translate: 0 -4px; } 48% { translate: 0 0; }   /* 살짝 끄덕 */
  90% { scale: 1; opacity: 1; }
  95%, 100% { scale: .6; opacity: 0; }
}
@keyframes pop-b {
  0%, 27% { scale: 0; opacity: 0; }
  32% { scale: 1.1; opacity: 1; }
  35% { scale: 1; }
  36% { rotate: 0deg; } 38% { rotate: 3deg; } 40% { rotate: -2deg; } 42% { rotate: 0deg; }   /* 찰칵 순간 흔들 */
  90% { scale: 1; opacity: 1; }
  95%, 100% { scale: .6; opacity: 0; }
}
.reel__media::after {                                   /* 셔터 플래시: "지금이야, 찰칵" 직후 */
  content: ""; position: absolute; inset: 0; z-index: 4; border-radius: 3px; background: var(--white); opacity: 0; pointer-events: none;
  animation: flash 7s linear infinite;
}
@keyframes flash { 0%, 34% { opacity: 0; } 35.5% { opacity: .9; } 39% { opacity: 0; } 100% { opacity: 0; } }
.collage .pola--side { animation: float 4.5s ease-in-out infinite; }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }
.collage .logo-sticker { animation: swing 3.6s ease-in-out infinite; }
@keyframes swing { 0%, 100% { rotate: -3deg; } 50% { rotate: 3deg; } }

/* ---------- 네컷 변형 my frame (/fourcut/): 프레임 3종 부채꼴 + 누끼 스티커 ----------
   뒤 두 장(빈 프레임)은 좌우로 기울여 깔고, 앞 프레임(사진 합성본)을 가운데 세운다 */
.cluster--frames { aspect-ratio: 1 / 1; }                      /* 1:1 이라 화살표 SVG(viewBox 100×100)가 왜곡 없이 겹친다 */
.frame-card { position: absolute; margin: 0; transform: rotate(var(--r, 0deg)); filter: drop-shadow(0 18px 22px rgba(0, 0, 0, .2)); }
.frame-card img { display: block; width: 100%; height: auto; border-radius: 4px; }
.frame-card .pin { --x: 50%; --y: 0; }                         /* 프레임 이름표는 위쪽 */
.frame-card--l { left: -1%; top: 16%; width: 41%; z-index: 1; }
.frame-card--r { right: -1%; top: 11%; width: 41%; z-index: 1; }
.frame-card--main { left: 27%; top: 2%; width: 46%; z-index: 2; }
/* 앞 프레임(1:1 클러스터 기준): 바깥 x 27~73%, y 2~66%. 칸은 비워 두고 스티커는 모서리·테두리에 걸쳐 붙인다 */
.cluster--frames .cut { z-index: 6; }
.cluster--frames .cut--1 { left: 20%; top: -3%; --r: -12deg; width: clamp(50px, 16cqw, 80px); }     /* 왼쪽 위 모서리 */
.cluster--frames .cut--2 { left: 64%; top: 35%; --r: 10deg; width: clamp(44px, 14cqw, 70px); }      /* 오른쪽 테두리 가운데 */
.cluster--frames .cut--paste { left: 21%; top: 49%; --r: -6deg; width: clamp(52px, 17cqw, 84px); z-index: 7; }   /* 왼쪽 아래 모서리: 화살표 도착점 */
.cluster--frames .deco--star { left: 68%; top: -1%; --r: 14deg; }                                     /* 오른쪽 위 모서리 */
.cluster--frames .deco--heart { left: 47%; top: 27.5%; --r: -12deg; }                                 /* 가운데 십자 테두리 */
.cluster--frames .cutout { left: 62%; right: auto; top: auto; bottom: -2%; width: 35%; z-index: 5; }
.cluster--frames .bubble--a { left: 16%; bottom: 3%; z-index: 7; }
.cluster--frames .sticker { left: -1%; right: auto; top: auto; bottom: 13%; z-index: 7; width: clamp(64px, 19cqw, 92px); }
.cut-arrow { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 6; overflow: visible; pointer-events: none; }
.cut-arrow path { fill: none; stroke: var(--orange); stroke-width: .9; stroke-linecap: round; stroke-linejoin: round; }
.cut-arrow__line { stroke-dasharray: 2.4 2; animation: march 1.2s linear infinite; }
@keyframes march { to { stroke-dashoffset: -8.8; } }
/* 6초 루프: 고양이 스티커가 칸에 "쏙" 붙고 유지 → 살짝 사라졌다 다시. 가위는 싹둑 */
.cluster--frames .cut--paste { animation: paste 6s cubic-bezier(.34, 1.56, .64, 1) infinite; }
@keyframes paste {
  0%, 12% { scale: 0; opacity: 0; translate: 40% 50%; }
  22% { scale: 1.15; opacity: 1; translate: 0 0; }
  27%, 88% { scale: 1; opacity: 1; translate: 0 0; }
  95%, 100% { scale: .4; opacity: 0; translate: 0 0; }
}
.cluster--frames .scissors { animation: snip 1.6s ease-in-out infinite; }
@keyframes snip { 0%, 60%, 100% { rotate: 0deg; } 70% { rotate: -18deg; } 80% { rotate: 6deg; } }

/* ---------- 네컷 변형 히어로 (/fourcut/): 친구들이 채우는 네컷 콜라주 ----------
   7초 루프: "너도 한 컷 올려!" → "올렸어, 완성!" → 빈 칸이 사진으로 채워지고 3/4 → 4/4 */
.collage--fourcut { aspect-ratio: 1 / 1.02; }                     /* 영상 프레임 콜라주보다 납작하게: 아래 빈 공간 제거 */
.collage--fourcut .fourcut--hero { left: 3%; top: 3%; width: 62%; overflow: visible; z-index: 2; }
.collage--fourcut .fourcut--hero img { border-radius: 10px; }
.collage--fourcut .fourcut--hero .pin { --x: 50%; --y: 0; }
.cell-empty {                                             /* 마지막 칸(우하단)을 덮는 빈 칸 */
  position: absolute; z-index: 3; left: 51.5%; top: 48%; width: 45.5%; height: 43%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .45em;
  background: rgba(255, 255, 255, .94); border: 2px dashed var(--orange); border-radius: 6px;
  color: var(--black); font-size: clamp(11px, 3.2cqw, 15px); font-weight: 800; letter-spacing: -.01em;
}
.cell-empty b { display: inline-flex; align-items: center; justify-content: center; width: 1.9em; height: 1.9em; border-radius: 50%; background: var(--orange); color: var(--white); font-size: 1.3em; line-height: 1; }
.collage--fourcut .cut { position: absolute; }
.collage--fourcut .cut--1 { left: 56%; top: -2%; --r: 10deg; width: clamp(60px, 20cqw, 96px); }
.collage--fourcut .cut--2 { left: 0; bottom: 1%; --r: -12deg; width: clamp(56px, 18cqw, 86px); }
.collage.collage--fourcut .logo-sticker { left: 34%; right: auto; top: auto; bottom: 0; --r: -8deg; width: clamp(72px, 25cqw, 120px); }   /* .collage .logo-sticker(아래쪽 선언)보다 우선 */
.collage.collage--fourcut .bubble--a { right: 0; top: 22%; }
.collage.collage--fourcut .bubble--b { right: -1%; top: 48%; }
.collage--fourcut .sticker { right: 2%; bottom: 9%; }
.collage.collage--fourcut .spin { left: -4%; top: 34%; }
.collage--fourcut .cell-empty { animation: cell-fill 7s linear infinite; }
@keyframes cell-fill { 0%, 33% { opacity: 1; } 38% { opacity: 0; } 92% { opacity: 0; } 97%, 100% { opacity: 1; } }
.collage--fourcut .pin--3 { animation: pin-out 7s linear infinite; }
.collage--fourcut .pin--4 { opacity: 0; animation: pin-in 7s linear infinite; }
@keyframes pin-out { 0%, 33% { opacity: 1; } 36% { opacity: 0; } 93% { opacity: 0; } 96%, 100% { opacity: 1; } }
@keyframes pin-in { 0%, 33% { opacity: 0; } 36% { opacity: 1; } 93% { opacity: 1; } 96%, 100% { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .spin svg, .rec::before, .ticker__track { animation: none; }
  .hero__copy > *, .collage .bubble--a, .collage .bubble--b, .reel__media::after, .collage .pola--side, .collage .logo-sticker,
  .collage--fourcut .cell-empty, .collage--fourcut .pin--3, .collage--fourcut .pin--4,
  .cut-arrow__line, .cluster--frames .cut--paste, .cluster--frames .scissors { animation: none; }
  .collage--fourcut .cell-empty { opacity: 0; } .collage--fourcut .pin--4 { opacity: 1; } .collage--fourcut .pin--3 { opacity: 0; }   /* 모션 없으면 완성 상태로 */
  .sticky-cta, .btn { transition: none; }
}

/* ---------- 로고 스티커 (디자이너 스티커 시트를 SVG로 재현) ---------- */
.logo-sticker { position: absolute; z-index: 5; width: clamp(76px, 28cqw, 150px); transform: rotate(var(--r, -8deg)); filter: drop-shadow(0 8px 12px rgba(0, 0, 0, .18)); pointer-events: none; }
.logo-sticker img { width: 100%; height: auto; }
.collage .logo-sticker { right: 34%; top: 51%; --r: -10deg; width: clamp(68px, 24cqw, 118px); }
.notes .logo-sticker { right: -2%; top: -22px; --r: 6deg; width: clamp(84px, 24cqw, 130px); }
.cluster--pose .logo-sticker { left: -3%; bottom: 3%; --r: -6deg; }
.install__side .logo-sticker { right: 0; bottom: 0; --r: 5deg; width: 140px; }

/* ---------- 기능 4: 나만의 프레임 (네컷 + 누끼 카드) ---------- */
.cluster--frame { aspect-ratio: 1 / 1.14; }
.fourcut {
  position: absolute; left: 2%; top: 4%; width: 58%; z-index: 2; border-radius: 10px; overflow: hidden;
  box-shadow: var(--shadow-card); transform: rotate(var(--r, -3deg)); background: var(--white);
}
.fourcut img { width: 100%; height: auto; }
.cutout { right: 0; top: 30%; width: 46%; z-index: 3; }
.cutout__media { position: relative; aspect-ratio: 4 / 5; border-radius: 3px; background: #f1f1f1; display: flex; align-items: center; justify-content: center; }
.cutout__media .cutout__char { width: 80%; height: auto; }
.scissors {
  position: absolute; z-index: 4; right: 4%; top: 15%; width: clamp(28px, 9cqw, 40px); aspect-ratio: 1; padding: 6px;
  display: flex; align-items: center; justify-content: center; background: var(--white); border: 1.5px solid var(--black); border-radius: 50%; transform: rotate(-20deg);
}
.scissors svg { width: 100%; height: 100%; }

/* 누끼 스티커: 사진을 덩어리 모양으로 오려 흰 테두리를 두른 것 (최종 투명 PNG로 교체 가능) */
.cut {
  position: absolute; z-index: 6; width: clamp(54px, 19cqw, 92px); aspect-ratio: 3 / 4; overflow: hidden; background: var(--white);
  border-radius: 48% 52% 46% 54% / 40% 40% 60% 60%;
  box-shadow: 0 0 0 3px var(--white), 0 10px 16px -8px rgba(0, 0, 0, .45);
  transform: rotate(var(--r, -8deg));
}
.cut img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 15%); }
.cut--b { border-radius: 52% 48% 55% 45% / 45% 55% 45% 55%; }
.cluster--frame .cut--1 { left: 46%; top: 1%; --r: 10deg; }
.cluster--frame .cut--2 { left: -4%; top: 33%; --r: -12deg; }
.cluster--frame .cut--3 { right: -3%; bottom: 13%; --r: 8deg; width: clamp(48px, 16cqw, 78px); }
/* 캐릭터 스티커(투명 SVG): 덩어리 크롭·흰 테두리 없이 그대로 */
.cut--svg { overflow: visible; background: none; box-shadow: none; border-radius: 0; aspect-ratio: 1; }
.cut--svg img { object-fit: contain; }
.cluster--frame .sticker { right: -2%; top: -3%; width: clamp(80px, 25cqw, 116px); }
.cluster--frame .bubble--a { left: 18%; bottom: 0; }
.cluster--frame .bubble--b { right: 0; top: 20%; }  /* 흰 말풍선(스티커 붙이기): 원형 스티커 아래, 누끼 카드 위 띠. 오렌지 bubble--a 는 네컷 아래 "너도 한 컷 올려!" */
.cluster--frame .logo-sticker { left: -4%; bottom: 12%; --r: -8deg; width: clamp(72px, 26cqw, 124px); }
.deco { position: absolute; z-index: 5; width: clamp(20px, 7cqw, 34px); transform: rotate(var(--r, 0deg)); filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .15)); }
.deco svg { width: 100%; height: auto; }
.cluster--frame .deco--star { left: -1%; top: 1%; --r: 12deg; }
.cluster--frame .deco--heart { left: 30%; top: 44%; --r: -14deg; }
