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

:root {
  --void: #060607;
  --paper: #e8e2d6;
  --amber: #ff7a2f;
  --line: #1f1f22;
  --mono: 'Space 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 {
  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; }
header nav a {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: currentColor;
  opacity: 0.55;
}
header nav a:hover { opacity: 1; }

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

.langbtn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border: 1px solid currentColor;
  border-radius: 999px;
  background: none;
  color: currentColor;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  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(--amber); background: rgba(255, 122, 47, 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: #d2510f; background: rgba(255, 122, 47, 0.12); }

@media (max-width: 520px) {
  header .wrap { gap: 12px; }
  header nav { gap: 14px; }
  header nav a { font-size: 10px; letter-spacing: 0.1em; }
  .langbtn { padding: 5px 10px; font-size: 10px; letter-spacing: 0.1em; }
}

/* ══ 시네마틱 스테이지 ═════════════════════════════════════ */
.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));
}

/* 마지막: 통 전체가 물러나고 한 장만 남는다 */
.print {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  margin: 0;
  width: min(298px, 58vw);
  padding: 12px 12px 0;
  background: #fffdf9;
  box-shadow: 0 0 0 1px rgba(40, 32, 24, 0.07), 0 30px 70px -26px rgba(38, 30, 22, 0.5);
  opacity: var(--z);
  transform: translate(-50%, -50%) scale(calc(0.93 + var(--z) * 0.07));
  pointer-events: none;
}
.print img {
  width: 100%;
  display: block;
  aspect-ratio: 330 / 412;
  object-fit: cover;
}
.print figcaption {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  color: #a09689;
  padding: 11px 1px 13px;
  text-align: center;
}
.frames,
.sprocket { 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: 0.5;
}
/* 6×4 = 24컷. 화면 높이에 맞춰 통째로 줄인다 (세로가 넘치면 연출이 죽는다) */
.frames {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 7px;
  width: min(660px, 74vw, calc((100svh - 400px) * 1.12));
}
.fr {
  position: relative;
  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(--amber), 0 0 22px rgba(255, 122, 47, 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(--amber); 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(255, 122, 47, 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(--amber);
  border-bottom: 1.6px solid var(--amber);
  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 .print { transform: translate(-50%, -50%); }
.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;
  aspect-ratio: 330 / 412;
  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: 5px; font-size: 12.5px; color: #7f7e83; line-height: 1.6; }

.more {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  margin-top: 30px;
  padding-bottom: 9px;
  border-bottom: 1px solid rgba(255, 122, 47, 0.4);
  color: var(--amber);
  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(--amber); }

/* ══ 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; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store {
  display: inline-flex;
  align-items: 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(--amber); box-shadow: 0 0 0 3px rgba(255, 122, 47, 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; }
.getnote {
  margin-top: 18px;
  font-size: 13px;
  color: #6b6b70;
  line-height: 1.9;
  transition: color 0.3s ease;
}
.getnote.alert { color: #b6b4b1; }
.getnote a {
  color: var(--amber);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 122, 47, 0.35);
}

/* ══ Lab 페이지 ════════════════════════════════════════════ */
.lab { padding: 118px 0 40px; }
.lab .head { max-width: 14em; }
.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px 20px;
  margin: 56px 0 110px;
}
.grid figure { margin: 0; }
.grid img {
  width: 100%;
  display: block;
  aspect-ratio: 330 / 412;
  object-fit: cover;
  border-radius: 2px;
}
.grid .name { padding-top: 13px; font-size: 14.5px; font-weight: 700; color: #f2f0ec; }
.grid .tag { margin-top: 5px; font-size: 12.5px; color: #86858a; line-height: 1.6; }
.grid .blurb {
  margin: 12px 0 0;
  font-size: 12.5px;
  line-height: 1.85;
  color: #6f6e73;
}
@media (max-width: 900px) { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 620px) { .grid { grid-template-columns: repeat(2, 1fr); gap: 24px 14px; } }

@media (max-width: 820px) {
  .app .wrap { grid-template-columns: 1fr; gap: 40px; }
}

/* ── 모바일 ─────────────────────────────────────────────── */
@media (max-width: 640px) {
  .scene { height: 520vh; }
  .frames {
    grid-template-columns: repeat(4, 1fr);
    width: min(320px, 76vw, calc((100svh - 360px) * 0.5));
    gap: 6px;
  }
  .caps { height: 192px; }
  .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 .print { 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, 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; }
.fmark span {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #e9e7e3;
}
.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(--amber); }
.rights { color: #55555b; }
