/* 원본은 tools/site_landing.css 다. python3 tools/gen_site.py 가 이 파일을
   web_site 아래로 구우면서 이름에 내용 해시를 박는다 —
   구워진 사본을 고치면 다음에 구울 때 사라진다. */

/* Rolls 랜딩 — 스크롤 한 번이 필름 한 통.
   글은 최소로, 화면이 대신 말하게 한다. 앱과 같은 먹색·종이색을 쓴다. */

:root {
  --void: #060607;
  --paper: #e8e2d6;
  --accent: #bfa88a;
  --line: #1f1f22;
  --mono: 'Sometype Mono', ui-monospace, monospace;
  --sans: Quicksand, 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
  --max: 1080px;
}

html[lang="ja"] {
  --sans: Quicksand, 'Noto Sans JP', 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;

}

/* 아래 body의 keep-all은 어절이 있는 한국어를 위한 것이다. 띄어쓰기가 없는
   일본어에 그대로 걸면 문장 하나가 통째로 한 단어가 돼서, 격자 열이 그 길이만큼
   벌어지고 칸마다 사진 크기가 달라진다. 일본어는 기본 금칙 처리에 맡긴다.
   (body가 값을 직접 갖고 있어 html에만 걸면 상속되지 않는다) */
html[lang="ja"] body {
  word-break: normal;
  line-break: strict;
}

body {
  background: var(--void);
  word-break: keep-all;
  overflow-x: hidden;
}
/* 스크롤바를 지우고, 대신 안내 풍선이 "내려 보세요"를 맡는다 */
html { scrollbar-width: none; }
html::-webkit-scrollbar { display: none; }

/* ── 헤더 ───────────────────────────────────────────────── */
/* 앱바는 늘 그 아래에 깔린 섹션과 같은 색이다. 투명하면 글자가 겹친다. */
header {
  background: var(--bar-bg, var(--void));
  color: var(--bar-fg, #f2f0ec);
  border-bottom: 1px solid var(--bar-line, rgba(255, 255, 255, 0.055));
  backdrop-filter: none;
  transition: opacity 0.45s ease, background 0.18s linear, color 0.18s linear;
}
/* 인화지 위에 올라앉을 때 — 흰 레터링과 흰 글씨는 그대로 두면 사라진다 */
.bar-light header img { filter: invert(1) hue-rotate(180deg); }
.bar-light {
  --bar-line: rgba(0, 0, 0, 0.09);
}
/* 연출이 도는 동안엔 헤더가 화면에서 빠진다 */
.hide-hd header { opacity: 0; pointer-events: none; }
/* 라틴 대문자 기준으로 잡아 둔 크기였는데, 한글·가나가 들어오면서 작아 보인다.
   같은 11px라도 CJK는 글자 속이 빽빽해 라틴보다 한 눈금 작게 읽힌다.
   자간도 줄인다 — 대문자를 벌리는 장치라 한글에서는 획만 성글어진다. */
header nav a {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: currentColor;
  opacity: 0.62;
}
header nav a:hover { opacity: 1; }

/* 언어 — 지금 언어만 라벨로 보이고, 누르면 나머지가 아래로 열린다 */
.langs { position: relative; display: inline-flex; }

/* 높이를 고정한다. 언어 이름은 한글·가나·라틴이 섞여 있어 글자에
   높이를 맡기면 언어마다 알약 크기가 달라진다. */
.langbtn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 29px;
  padding: 0 13px;
  border: 1px solid currentColor;
  border-radius: 999px;
  background: none;
  color: currentColor;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.02em;
  line-height: 1;
  cursor: pointer;
  opacity: 0.45;
  transition: opacity 0.2s ease;
}
.langbtn:hover,
.langs.open .langbtn { opacity: 0.95; }
.langbtn svg { width: 9px; transition: transform 0.2s ease; }
.langs.open .langbtn svg { transform: rotate(180deg); }

.langmenu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 148px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: #121214;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  box-shadow: 0 24px 52px -24px rgba(0, 0, 0, 0.85);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  z-index: 40;
}
.langs.open .langmenu { opacity: 1; visibility: visible; transform: none; }

.langmenu a {
  display: block;
  padding: 10px 13px;
  border-radius: 11px;
  font-family: var(--sans);
  font-size: 13.5px;
  letter-spacing: 0;
  text-transform: none;
  color: #f2f0ec;
  opacity: 0.6;
}
.langmenu a:hover { opacity: 1; background: rgba(255, 255, 255, 0.06); }
.langmenu a.on { opacity: 1; color: var(--accent); background: rgba(191, 168, 138, 0.1); }

/* 인화지 위에서는 헤더가 밝아진다. 메뉴도 같이 뒤집지 않으면 혼자 검게 뜬다 */
.bar-light .langmenu {
  background: #fbfaf7;
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 24px 52px -26px rgba(0, 0, 0, 0.35);
}
.bar-light .langmenu a { color: #17171a; }
.bar-light .langmenu a:hover { background: rgba(0, 0, 0, 0.05); }
.bar-light .langmenu a.on { color: #cc2e6e; background: rgba(191, 168, 138, 0.12); }

@media (max-width: 520px) {
  header .wrap { gap: 12px; }
  header nav { gap: 14px; }
  header nav a { font-size: 11.5px; letter-spacing: 0.07em; }
  .langbtn { height: 27px; padding: 0 11px; font-size: 11.5px; }
}

/* ══ 시네마틱 스테이지 ═════════════════════════════════════ */
.scene { height: 640vh; position: relative; }

.stage {
  --d: 0;    /* 현상 정도 0→1 */
  --in: 0;   /* 롤 등장 */
  --z: 0;    /* 마지막 한 장으로 좁혀 들어가기 */
  --bg: #060607;
  --fg: #f2f0ec;
  position: sticky;
  top: 0;
  height: 100svh;
  padding-bottom: 48px;
  background: var(--bg);
  color: var(--fg);
  display: grid;
  grid-template-rows: 1fr auto 1fr;
  align-items: center;
  justify-items: center;
  overflow: hidden;
  transition: background 0.18s linear, color 0.18s linear;
}

/* 셔터가 터지는 순간 — 필름 주변 어딘가에서 한 번 */
.flash {
  position: absolute;
  z-index: 4;
  width: 360px;
  height: 360px;
  margin: -180px 0 0 -180px;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  mix-blend-mode: screen;
  background: radial-gradient(circle,
    rgba(255, 253, 246, 0.95) 0%,
    rgba(255, 240, 214, 0.5) 24%,
    rgba(255, 212, 156, 0.16) 50%,
    transparent 72%);
}
@media (max-width: 640px) {
  .flash { width: 230px; height: 230px; margin: -115px 0 0 -115px; }
}

/* 현상될 때 옆으로 지나가는 빛 */
.sweep {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 43%, rgba(255, 226, 190, 0.42) 50%, transparent 57%);
  opacity: calc(var(--d) * (1 - var(--d)) * 0.95);
  transform: translateX(calc((var(--d) - 0.5) * 150%));
}

/* ── 자막 ───────────────────────────────────────────────── */
.caps {
  grid-row: 1;
  align-self: end;
  position: relative;
  width: 100%;
  height: 212px;
  padding-bottom: 26px;
  text-align: center;
}
.cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 30px;
  opacity: 0;
  padding: 0 24px;
}
.cap .line {
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(21px, 3.6vw, 38px);
  line-height: 1.45;
  letter-spacing: -0.02em;
}
.cap .sub {
  margin-top: 14px;
  font-size: clamp(13px, 1.7vw, 15px);
  opacity: 0.5;
  font-weight: 500;
}
.cap .mark {
  width: min(104px, 26vw);
  display: block;
  margin: 0 auto 20px;
}

/* ── 필름 한 통 ─────────────────────────────────────────── */
.roll {
  grid-row: 2;
  position: relative;
  display: flex;
  align-items: stretch;
  gap: 12px;
  transform: perspective(1400px)
    rotateX(calc((1 - var(--in)) * 16deg))
    scale(calc(0.9 + var(--in) * 0.1 + var(--z) * 0.16));
}

/* 마지막: 통 전체가 물러나고, 나온 사진이 노끈에 걸린다.
   앱에서 다 찍은 롤을 여는 그림과 같은 물건이라 웹에서도 같게 건다. */
.hang {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  width: min(720px, 88vw);
  opacity: var(--z);
  /* 이 자리의 transform은 --z가 쓴다. 흔들림은 안쪽 .line이 맡는다 —
     한 요소에 두 개를 겹치면 애니메이션이 확대를 덮어쓴다. */
  transform: translate(-50%, -50%) scale(calc(0.93 + var(--z) * 0.07));
  pointer-events: none;
}
/* 줄 하나가 통째로 아주 느리게 기운다. 회전축을 화면 위 멀리 두면
   양 끝이 번갈아 오르내리는, 걸려 있는 줄의 움직임이 된다. */
.rack {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 3.4%;
  padding-top: 20px;
  transform-origin: 50% -260px;
  animation: linesway 8.5s ease-in-out infinite;
}
/* 줄은 걸린 사진보다 양옆으로 더 나간다 — 잘라 보는 한 토막이 된다 */
.twine {
  position: absolute;
  left: -6%;
  width: 112%;
  top: 0;
  height: 24px;
  overflow: visible;
}
.cord {
  fill: none;
  stroke: #a98a62;
  stroke-width: 1.8;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  /* 처짐이 아주 조금 깊어졌다 얕아진다 */
  transform-box: fill-box;
  transform-origin: 50% 0;
  animation: slack 8.5s ease-in-out infinite;
}
.cord.shade { stroke: rgba(0, 0, 0, 0.4); stroke-width: 2.4; }

.pola { position: relative; flex: 1; min-width: 0; }
/* 집게는 줄을 물고 서 있고, 종이만 그 아래에서 흔들린다.
   --t = 그 자리의 줄 높이, --y = 종이가 더 내려앉은 만큼. */
.peg {
  position: absolute;
  left: 50%;
  z-index: 2;
  width: 8px;
  margin-left: -4px;
  top: calc(var(--t) - 20px);
  height: calc(27px - var(--t) + var(--y));
  border-radius: 2px;
  background: linear-gradient(#c9a579, #9c7a52);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.35);
}
.peg::after {
  content: '';
  position: absolute;
  left: 1px;
  right: 1px;
  top: 50%;
  height: 1.2px;
  background: rgba(255, 255, 255, 0.4);
}
.paper {
  display: block;
  margin: var(--y) 0 0;
  padding: 4% 4% 0;
  background: #fffdf9;
  box-shadow: 0 0 0 1px rgba(40, 32, 24, 0.07), 0 24px 52px -22px rgba(38, 30, 22, 0.55);
  transform-origin: 50% 0;
  transform: rotate(var(--tilt));
  animation: swing var(--dur) ease-in-out var(--lag) infinite;
}
.paper img {
  width: 100%;
  display: block;
  /* 감광면은 3:4다 — 인화지는 1:1·3:4 두 종류지만 촬영 기본이 3:4라,
     여기 걸린 한 장도 앱이 기본으로 찍고 거는 인화지와 같은 물건이어야 한다. */
  aspect-ratio: 3 / 4;
  object-fit: cover;
}
/* 인화지 아래 여백에 적는 한 줄. 두 줄로 접히면 여백 비율이 무너져
   폴라로이드로 안 읽힌다 — 좁아지면 접지 말고 같이 작아져야 한다.
   폭이 vw에 비례하니(92vw÷3) 글자 크기도 vw로 따라간다. */
.paper figcaption {
  font-family: var(--mono);
  font-size: clamp(6px, 1.65vw, 9px);
  letter-spacing: 0.12em;
  white-space: nowrap;
  overflow: hidden;
  color: #a09689;
  padding: 6% 1px 8%;
  text-align: center;
}
@keyframes linesway {
  0%, 100% { transform: rotate(-0.3deg); }
  50% { transform: rotate(0.3deg); }
}
@keyframes slack {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(1.14); }
}
/* 집게에 물린 자리를 축으로 좌우로 조금. 장마다 주기가 달라야 따로 논다. */
@keyframes swing {
  0%, 100% { transform: rotate(calc(var(--tilt) - 0.6deg)); }
  50% { transform: rotate(calc(var(--tilt) + 0.6deg)); }
}
.frames { opacity: calc((0.12 + var(--in) * 0.88) * (1 - var(--z))); }

.sprocket {
  width: 13px;
  border-radius: 2px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13' height='26'%3E%3Crect x='3' y='6' width='7' height='13' rx='2' fill='%23888' fill-opacity='0.5'/%3E%3C/svg%3E");
  background-repeat: repeat-y;
  background-position: center;
  /* 프레임보다 반쯤 흐리게. 마지막 한 장만 남는 구간에서는 같이 사라진다 —
     구멍 띠만 남아 인화지 옆에 서 있으면 통이 물러난 것처럼 보이지 않는다. */
  opacity: calc((0.12 + var(--in) * 0.88) * (1 - var(--z)) * 0.5);
}
/* 6×4 = 24컷. 화면 높이에 맞춰 통째로 줄인다 (세로가 넘치면 연출이 죽는다) */
.frames {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 7px;
  width: min(660px, 74vw, calc((100svh - 400px) * 1.45));
}
.fr {
  position: relative;
  /* 한 컷도 3:4다. 촬영 기본이 3:4라 통 안의 프레임도 그 모양이다.
     통 안의 원본(assets/roll)은 아직 정사각이라 object-fit: cover 가
     좌우를 잘라 채운다 — 원본이 다시 구워지면 잘림 없이 맞는다. */
  aspect-ratio: 3 / 4;
  border-radius: 2px;
  overflow: hidden;
  background: #0d0d0f;
  box-shadow: inset 0 0 0 1px rgba(128, 128, 128, 0.16);
}
.fr img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s ease;
}
/* 잠재 이미지 — 찍혔지만 아직 못 보는 상태. 필터는 고정이라 스크롤에 부담이 없다 */
.fr .latent { filter: blur(8px) brightness(0.62) saturate(0.24) contrast(1.05); transform: scale(1.25); }
.fr.on .latent { opacity: calc(1 - var(--d)); }
.fr.on .raw { opacity: var(--d); }
.fr.on { animation: pop 0.55s ease-out; }
@keyframes pop {
  0% { box-shadow: inset 0 0 0 1px var(--accent), 0 0 22px rgba(191, 168, 138, 0.55); }
  100% { box-shadow: inset 0 0 0 1px rgba(128, 128, 128, 0.16); }
}
.fr::after {
  content: attr(data-n);
  position: absolute;
  right: 4px;
  bottom: 3px;
  font-family: var(--mono);
  font-size: 8px;
  color: rgba(255, 255, 255, 0.2);
}

/* ── HUD ────────────────────────────────────────────────── */
.hud {
  grid-row: 3;
  align-self: start;
  padding-top: 30px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.26em;
  opacity: 0.55;
  white-space: nowrap;
}
.hud b { color: var(--accent); font-weight: 400; }

/* ── 스크롤 안내 풍선 ───────────────────────────────────── */
.cue {
  position: fixed;
  left: 50%;
  bottom: 20px;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 18px 11px 20px;
  border-radius: 999px;
  border: 1px solid rgba(191, 168, 138, 0.35);
  background: rgba(12, 12, 14, 0.72);
  backdrop-filter: blur(12px);
  color: #f0ece6;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
  opacity: 0;
  transform: translate(-50%, 14px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
  pointer-events: none;
}
.cue.show { opacity: 1; transform: translate(-50%, 0); }
.cue.gone { opacity: 0; transform: translate(-50%, 14px); }
.cue i {
  width: 9px;
  height: 9px;
  border-right: 1.6px solid var(--accent);
  border-bottom: 1.6px solid var(--accent);
  transform: rotate(45deg);
  animation: nudge 1.6s ease-in-out infinite;
}
@keyframes nudge {
  0%, 100% { transform: rotate(45deg) translate(0, 0); opacity: 0.5; }
  50% { transform: rotate(45deg) translate(2px, 2px); opacity: 1; }
}
.no-cine .cue { display: none; }


/* ── 동작 줄이기: 연출은 그대로, 움직임만 뺀다 ─────────── */
.still .stage { transition: none; }
.still .roll { transform: none; }
.still .hang { transform: translate(-50%, -50%); }
.still .rack,
.still .cord { animation: none; }
.still .paper { animation: none; transform: rotate(var(--tilt)); }
.still .fr img { transition: none; }
.still .fr.on { animation: none; }

/* ══ 2 · 필름 ══════════════════════════════════════════════ */
.out {
  position: relative;
  z-index: 2;
  background: var(--void);
  padding: 130px 0 0;
}
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 26px; }

.eyebrow {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #6b6b70;
}
.head {
  margin: 16px 0 0;
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(24px, 3.8vw, 36px);
  letter-spacing: -0.025em;
  line-height: 1.4;
  color: #f2f0ec;
}
.note {
  margin: 14px 0 0;
  color: #86858a;
  font-size: 14.5px;
  line-height: 1.85;
  max-width: 31em;
}

/* 필름 스트립 — 화면 끝까지 흐른다 */
.strip {
  display: flex;
  gap: 14px;
  margin-top: 46px;
  padding: 4px max(26px, calc((100vw - var(--max)) / 2 + 26px)) 4px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}
.strip::-webkit-scrollbar { display: none; }
.strip figure {
  margin: 0;
  flex: 0 0 auto;
  width: clamp(168px, 21vw, 224px);
  scroll-snap-align: center;
}
.strip img {
  width: 100%;
  display: block;
  /* 필름 이미지(assets/film)가 3:4로 구워진다. 촬영 기본과 같은 비율이다. */
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 2px;
  filter: brightness(0.93);
  transition: filter 0.5s ease;
}
.strip figure:hover img { filter: none; }
.strip figcaption { padding-top: 12px; }
.strip .name { font-size: 14px; font-weight: 700; color: #eceae6; }
.strip .tag { margin-top: 2px; font-size: 12.5px; color: #7f7e83; line-height: 1.5; }

/* 사진 위에 겹쳐 뜨는 필름 설명. 사진 자체가 배경이라 아래를 어둡게 깔고 올린다. */
.strip .shot { position: relative; overflow: hidden; border-radius: 2px; }
.strip .note {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 16px 15px;
  background: linear-gradient(to top, rgba(8, 8, 9, 0.92) 30%, rgba(8, 8, 9, 0.25));
  opacity: 0;
  transition: opacity 0.4s ease;
}
.strip .note p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.7;
  color: #d8d6d2;
  transform: translateY(6px);
  transition: transform 0.4s ease;
}
.strip figure:hover .note { opacity: 1; }
.strip figure:hover .note p { transform: none; }

/* 터치 기기는 hover가 없다 — 설명을 띄우지 않는다. */
@media (hover: none) {
  .strip .note { display: none; }
}

.more {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  margin-top: 30px;
  padding-bottom: 9px;
  border-bottom: 1px solid rgba(191, 168, 138, 0.4);
  color: var(--accent);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: gap 0.3s ease, border-color 0.3s ease;
}
.more:hover { gap: 18px; border-bottom-color: var(--accent); }

/* 실험실 바닥에 놓는 나가는 길. 화살표가 반대라 벌어지는 쪽도 반대다. */
.backrow { text-align: center; margin-bottom: 110px; }
.back {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding-bottom: 9px;
  border-bottom: 1px solid rgba(191, 168, 138, 0.4);
  color: var(--accent);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: gap 0.3s ease, border-color 0.3s ease;
}
.back:hover { gap: 18px; border-bottom-color: var(--accent); }

/* ══ 3 · 앱 소개 · 다운로드 ════════════════════════════════ */
.app {
  margin-top: 132px;
  padding: 96px 0 110px;
  border-top: 1px solid var(--line);
}
.app .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
  gap: 52px 60px;
  align-items: start;
}
.facts {
  list-style: none;
  margin: 30px 0 0;
  padding: 0;
}
.facts li {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 18px;
  padding: 15px 0;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: #b6b4b1;
  line-height: 1.7;
}
.facts .k {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.2em;
  color: #6b6b70;
  padding-top: 5px;
}

.get { padding-top: 6px; }
/* 두 배지는 같은 폭이어야 한 쌍으로 보인다. 글자 길이("App Store" vs
   "Google Play", 언어마다 다른 윗줄)에 폭을 맡기면 짝이 어긋난다.
   자동 열 1fr + max-content = 넓은 쪽에 맞춘 두 칸. */
.stores {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  width: max-content;
  gap: 12px;
}
.store {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  padding: 13px 22px 13px 18px;
  border: 1px solid #2b2b31;
  border-radius: 13px;
  background: #0e0e10;
  color: #f2f0ec;
  text-decoration: none;
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}
.store:hover { border-color: #4a4a53; background: #141418; }
.store:active { transform: scale(0.98); }
.store.knock { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(191, 168, 138, 0.12); }
.store svg { flex: 0 0 auto; }
.store .t { line-height: 1.25; text-align: left; }
.store .t small { display: block; font-size: 10.5px; color: #8b8a90; }
.store .t b { font-size: 17px; font-weight: 700; letter-spacing: -0.02em; }

/* 아직 문을 안 연 스토어의 뱃지(지금은 Play — gen_site.py의 PLAY_LIVE).
   감추지 않는 이유는 한 쪽만 서 있으면 그 기기를 쓰는 사람이 "이 앱은
   저쪽 전용"으로 읽기 때문이다. 자리와 크기는 그대로 두고, 누를 수 없다는
   것만 눈에 보이게 한다. 마크업은 <a>가 아니라 <span>이라 탭에도 안 잡힌다. */
.store--soon {
  cursor: default;
  /* 마우스·손가락이 비껴가서 hover/active가 뜨지 않는다 —
     누를 수 있는 것처럼 반응하면 안 눌리는 게 더 이상해 보인다. */
  pointer-events: none;
}
/* 흐리는 것은 속(마크와 이름)이고 테두리는 또렷하게 남긴다. 테두리까지
   흐리면 뱃지가 덜 그려진 것처럼 보인다. */
.store--soon svg,
.store--soon .t { opacity: 0.45; }

/* ══ Lab 페이지 ════════════════════════════════════════════ */
.lab { padding: 118px 0 40px; }
.lab .head { max-width: 14em; }
.grid {
  display: grid;
  /* minmax(0,…)이 없으면 일본어처럼 잘 접히지 않는 글이 열을 밀어내
     사진 크기가 칸마다 달라진다. */
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 30px 20px;
  margin: 56px 0 68px;
}
.grid figure { margin: 0; }
.grid img {
  width: 100%;
  display: block;
  /* 필름 이미지(assets/film)가 3:4로 구워진다. 촬영 기본과 같은 비율이다. */
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 2px;
}
/* ── 한 칸 안의 전후 비교 ────────────────────────────────
   사진 두 장을 겹쳐 놓은 것이다. 위에 깔린 필름 사진을 세로선까지만 잘라
   보이고(clip-path), 그 아래로 필터를 안 거친 원본이 드러난다. 두 장은 같은
   원본에서 같은 자르기로 나왔으므로(tools/gen_hero_samples.py) 화소가 정확히
   겹치고, 선을 끌어도 그림이 미끄러지지 않는다.

   나란히 두 장을 놓는 것보다 이쪽이 정확하다 — 같은 자리의 화소를 눈이 곧바로
   견주기 때문에, 색이 몇 도 돌았는지 입자가 얼마나 앉았는지가 한눈에 보인다. */
.cmp {
  position: relative;
  border-radius: 2px;
  overflow: hidden;
  /* 스크립트가 안 돌아도 필름 사진이 통째로 보인다 — 비교가 안 될 뿐이다. */
  --at: 62%;
}
.cmp .lut {
  position: absolute;
  inset: 0;
  clip-path: inset(0 calc(100% - var(--at)) 0 0);
}
/* 선은 흰 실 한 올에 검은 그늘. 그늘이 없으면 밝은 하늘 위에서 선이 사라진다. */
.cmp .bar {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--at);
  width: 1px;
  margin-left: -0.5px;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.32);
  /* 이 자리에서 시작한 손짓은 페이지를 굴리지 않는다. 사진 위의 다른 자리는
     그대로 스크롤이다 — 실험실은 열여섯 칸을 훑어 내려가는 페이지다. */
  touch-action: none;
  cursor: ew-resize;
}
.cmp .bar:focus-visible { outline: none; }
.cmp .bar:focus-visible .grip {
  border-color: #fff;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.28);
}
/* 손잡이. 실물 슬라이더처럼 선 위에 하나 앉아 있어야 끌 수 있다는 것이 보인다 —
   선만 있으면 사진에 그려진 줄로 읽힌다. */
.cmp .grip {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 26px;
  height: 26px;
  margin: -13px 0 0 -13px;
  border-radius: 50%;
  background: rgba(13, 12, 11, 0.78) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="14" height="10" viewBox="0 0 14 10"><path d="M5.2 2.2 2.4 5l2.8 2.8M8.8 2.2 11.6 5 8.8 7.8" fill="none" stroke="white" stroke-width="1.4" stroke-linecap="round" stroke-linejoin="round"/></svg>') center / 14px 10px no-repeat;
  border: 1px solid rgba(255, 255, 255, 0.5);
}
/* 손끝으로 집을 자리는 눈에 보이는 원보다 넓다. 원을 키우면 사진을 그만큼 덮는다. */
.cmp .grip::before {
  content: '';
  position: absolute;
  inset: -11px;
}
/* 어느 쪽이 필름을 거친 그림인지. 선을 따라 움직이지 않고 아래 두 모퉁이에
   붙는다 — 칸이 작아서 선 옆에 붙이면 글자가 서로 부딪친다. */
.cmp .tags {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 7px;
  display: flex;
  justify-content: space-between;
  padding: 0 9px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.95);
  pointer-events: none;
}
.cmp .tags b { font-weight: 700; color: #f6f4f0; }
.cmp .tags i { font-style: normal; color: rgba(246, 244, 240, 0.78); }
/* 끌어 보라는 한 마디. 손잡이가 사진 위에 있어도 처음 온 사람은 그 자리를
   눈으로 지나가므로, 그리드 위에 한 줄 적어 둔다.

   이름이 `cue`가 아닌 이유: 랜딩 첫 화면의 스크롤 안내가 그 이름을 쓰고 있고
   (position:fixed, opacity:0으로 숨어 있다가 떠오른다), 그 규칙을 물려받으면
   이 줄은 아예 안 보인다. 실제로 한 번 그렇게 사라졌다. */
.lab .dragcue {
  margin: 14px 0 0;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: #6f6e73;
}

/* 이름 → 한 줄 → 이야기. 셋의 크기와 간격으로 순서를 만든다.
   이름과 한 줄은 붙여 한 덩어리로 두고, 이야기만 떼어 놓는다. */
.grid .name {
  padding-top: 13px;
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.35;
  color: #f2f0ec;
}
.grid .tag { margin-top: 4px; font-size: 13px; line-height: 1.55; color: #8d8c92; }
.grid .blurb {
  margin: 13px 0 0;
  font-size: 12.5px;
  /* 칼럼이 좁아 한 줄에 예닐곱 단어뿐이다. 행간을 넓히면 줄이 서로 멀어져
     문단이 흩어진다 — 좁은 단은 오히려 붙여야 덩어리로 읽힌다. */
  line-height: 1.7;
  color: #6f6e73;
}
@media (max-width: 900px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 620px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 14px; } }

@media (max-width: 820px) {
  .app .wrap { grid-template-columns: 1fr; gap: 40px; }
  /* 한 열로 접히면 두 배지가 넓은 화면 왼쪽 끝에 몰려 허전해진다 */
  .stores { margin-inline: auto; }
}

/* 배지 두 개가 한 줄에 들어가지 못하는 폭에서는 위아래로 쌓는다.
   이때도 폭은 글자에 맞춘다 — 100%로 늘리면 배지 안이 텅 빈다. */
@media (max-width: 430px) {
  .stores { grid-auto-flow: row; width: max-content; margin-inline: auto; }
}

/* ── 모바일 ─────────────────────────────────────────────── */
@media (max-width: 640px) {
  .scene { height: 520vh; }
  .frames {
    grid-template-columns: repeat(4, 1fr);
    width: min(320px, 76vw, calc((100svh - 360px) * 0.65));
    gap: 6px;
  }
  .caps { height: 192px; }
  /* 좁은 폭에서는 집게가 인화지보다 커 보인다. 줄에 맞춰 같이 줄인다. */
  .hang { width: 92vw; }
  .rack { gap: 2.6%; }
  .peg { width: 7px; margin-left: -3.5px; }
  .hud { font-size: 10px; letter-spacing: 0.18em; }
  .out { padding-top: 92px; }
  .end { margin-top: 84px; padding: 76px 0 84px; }
}

/* ── 연출을 못 쓰는 환경: 그냥 다 보여준다 ──────────────── */
.no-cine .scene { height: auto; }
.no-cine .stage {
  position: static;
  height: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 124px 22px 100px;
  --d: 1;
  --in: 1;
  --z: 0;
  background: var(--void);
  color: #f2f0ec;
}
.no-cine .sweep,
.no-cine .scrollcue,
.no-cine .hang { display: none; }
.no-cine .caps { display: contents; }
.no-cine .cap { position: static; opacity: 1; padding: 0; }
.no-cine .cap.lead { order: 1; margin-bottom: 50px; }
.no-cine .cap.lead .mark { margin-bottom: 22px; }
.no-cine .roll { order: 2; transform: none; opacity: 1; }
.no-cine .hud { order: 3; padding-top: 28px; }
.no-cine .beats {
  order: 4;
  width: 100%;
  max-width: 940px;
  margin-top: 66px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}
.no-cine .beats .cap {
  text-align: left;
  border-top: 1px solid var(--line);
  padding-top: 17px;
}
.no-cine .beats .line { font-size: 15.5px; line-height: 1.55; }
.no-cine .beats .sub { margin-top: 8px; font-size: 12.5px; line-height: 1.75; }
.no-cine .fr .latent { opacity: 0; }
.no-cine .fr .raw { opacity: 1; }
.no-cine .fr { animation: none; }
@media (max-width: 820px) { .no-cine .beats { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .no-cine .beats { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fr img { transition: none; }
  .fr.on { animation: none; }
}

/* ══ 푸터 ═════════════════════════════════════════════════ */
footer {
  position: relative;
  z-index: 2;
  background: var(--void);
  border-top: 1px solid var(--line);
  padding: 58px 0 64px;
}
footer .wrap {
  display: block;
  max-width: var(--max);
}
.fmark {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  margin-bottom: 26px;
}
.fmark img { height: 22px; display: block; }
.biz {
  font-size: 13px;
  line-height: 2.05;
  color: #6f6e73;
}
.biz .who { color: #cfcdc9; font-weight: 700; margin-bottom: 2px; }
.biz a { color: inherit; text-decoration: none; }
.biz a:hover { color: #cfcdc9; }

.fdocs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  margin: 24px 0 0;
  font-size: 13.5px;
}
.fdocs a { color: #9b9a9d; text-decoration: none; }
.fdocs a:hover { color: #e9e7e3; }

.fbase {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  justify-content: space-between;
  align-items: center;
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 13px;
}
.made {
  color: #cfcdc9;
  font-weight: 700;
  text-decoration: none;
}
.made:hover { color: var(--accent); }
.rights { color: #55555b; }
