/* CELLOGRAM — 모바일 '배율 여행' 스크롤 장면 (≤768px 전용 · <link media="(max-width: 768px)">)
   한 화면을 고정 무대로, 엄지 스크롤 = 시간. 페이지마다 <section class="sj" data-sj="…"> 하나 · 동작은 js/journey.js.
   표시 여부는 <head> 의 짧은 인라인 규칙이 정한다: html.sj-on 일 때만 .sj 를 보이고 [data-sj-replaced] 를 숨김.
   문법: 한 화면에 사물 하나 · 입자 사진은 '한 알'만 · 어둠 = 미시 세계, 크림 = 사람의 세계 · 수치는 사물로 · 글은 장면마다 한 줄. */
.sj {
  --sj-ink: #0A0A09; --sj-cream: #F0EFED; --sj-mauve: #947F82; --sj-mauve-deep: #6F5D60; --sj-mauve-light: #C4B5B7;
  --sj-pearl: #F5F0EE; --sj-text-dark: #1F1A1B;
  --sj-display: "Outfit", "Pretendard", "Hiragino Sans", "PingFang SC", "Apple SD Gothic Neo", system-ui, sans-serif;
  --sj-ko: "Pretendard", "Hiragino Sans", "PingFang SC", "Apple SD Gothic Neo", "Noto Sans KR", system-ui, sans-serif;
  --sj-ease: cubic-bezier(.2,0,0,1);
  position: relative; background: var(--sj-ink); color: var(--sj-pearl);
  font-family: var(--sj-ko); letter-spacing: -0.011em; word-break: keep-all; -webkit-font-smoothing: antialiased;
}
.sj *, .sj *::before, .sj *::after { box-sizing: border-box; }
.sj a { color: inherit; }
.sj-track { position: relative; }
.sj-stage { position: sticky; top: 0; height: 100svh; overflow: hidden; background: var(--sj-ink); }
.sj .sj-layer { position: absolute; inset: 0; will-change: transform, opacity; }
.sj .sj-layer > img { position: absolute; display: block; max-width: none; }
.sj canvas.sj-cv { position: absolute; inset: 0; width: 100%; height: 100%; }

/* 무대 계기: 배율·장면 이름(왼쪽 위) · 진행(오른쪽) · 시작 안내(아래) */
.sj-hud { position: absolute; top: 70px; left: 20px; z-index: 6; font: 500 12px/1.5 var(--sj-display); letter-spacing: .1em; color: rgba(245,240,238,.7); text-shadow: 0 1px 8px rgba(0,0,0,.55); pointer-events: none; transition: opacity .35s var(--sj-ease); }
.sj-hud b { display: block; font-weight: 600; color: var(--sj-pearl); letter-spacing: .06em; }
.sj.is-light .sj-hud { color: var(--sj-mauve-deep); text-shadow: none; } .sj.is-light .sj-hud b { color: var(--sj-text-dark); }
.sj-hud.is-empty { display: none; } /* 11-06 대표: 왼쪽 위 장면 표시 숨김(현미경 장면 설명만 남김) */
.sj-rail { position: absolute; right: 7px; top: 50%; transform: translateY(-50%); z-index: 6; display: grid; gap: 10px; pointer-events: none; transition: opacity .35s var(--sj-ease); }
.sj-rail i { display: block; width: 4px; height: 4px; border-radius: 4px; background: rgba(245,240,238,.35); transition: height .32s var(--sj-ease), background .32s; }
.sj-rail i.on { height: 18px; background: var(--sj-pearl); }
.sj.is-light .sj-rail i { background: rgba(111,93,96,.35); } .sj.is-light .sj-rail i.on { background: var(--sj-mauve-deep); }
.sj-hint { position: absolute; left: 0; right: 0; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 6; text-align: center; font: 500 12px/1 var(--sj-display); letter-spacing: .18em; color: rgba(245,240,238,.75); pointer-events: none; animation: sj-bob 2.6s ease-in-out infinite; }
@keyframes sj-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(4px); } }

/* 글 */
.sj .sj-txt { position: absolute; left: 24px; right: 24px; z-index: 4; text-align: center; opacity: 0; will-change: transform, opacity; }
.sj .sj-txt.sj-left { text-align: left; }
.sj .sj-eyebrow { font: 500 12px/1.4 var(--sj-display); letter-spacing: .18em; text-indent: .18em; text-transform: uppercase; color: var(--sj-mauve-light); }
.sj .sj-txt.sj-left .sj-eyebrow { text-indent: 0; }
.sj .sj-h1 { margin: 12px 0 0; font-size: clamp(32px, 9.2vw, 38px); line-height: 1.18; font-weight: 300; letter-spacing: -0.02em; text-wrap: balance; }
.sj .sj-h1 strong, .sj .sj-h2 strong { font-weight: 700; }
.sj .sj-h2 { margin: 10px 0 0; font-size: clamp(26px, 7.6vw, 30px); line-height: 1.25; font-weight: 300; letter-spacing: -0.02em; text-wrap: balance; }
.sj .sj-en-h { margin: 12px 0 0; font: 300 clamp(34px, 10vw, 42px)/1.12 var(--sj-display); letter-spacing: -0.02em; }
.sj .sj-big { font: 200 clamp(64px, 22vw, 96px)/1 var(--sj-display); letter-spacing: -0.03em; }
.sj .sj-big sup { font-size: .32em; font-weight: 300; vertical-align: .95em; margin-left: 4px; }
.sj .sj-cap { margin-top: 12px; font: 400 12px/1.6 var(--sj-display); letter-spacing: .12em; color: var(--sj-mauve-light); }
.sj .sj-title { margin-top: 10px; font: 300 clamp(40px, 12vw, 52px)/1.1 var(--sj-ko); letter-spacing: -0.03em; }
.sj .sj-name { margin-top: 8px; font: 500 20px/1.3 var(--sj-display); letter-spacing: -0.01em; }
.sj .sj-body { margin-top: 10px; font-size: 15px; line-height: 1.7; color: rgba(245,240,238,.78); text-wrap: pretty; }
.sj .sj-body b { color: var(--sj-pearl); font-weight: 600; }
.sj .sj-quote { margin-top: 12px; font: 400 15px/1.6 var(--sj-ko); color: rgba(245,240,238,.7); }
.sj .sj-phase { margin-top: 14px; font: 500 12px/1.4 var(--sj-display); letter-spacing: .14em; text-transform: uppercase; color: var(--sj-pearl); min-height: 1.4em; }
.sj .sj-phase em { font-style: normal; color: var(--sj-mauve-light); text-transform: none; letter-spacing: .02em; }
.sj .sj-stack { position: relative; min-height: 3em; }
.sj .sj-stack > span { position: absolute; left: 0; right: 0; top: 0; opacity: 0; }
.sj .sj-on-cream .sj-h1, .sj .sj-on-cream .sj-h2 { color: var(--sj-text-dark); }
.sj .sj-on-cream .sj-eyebrow { color: var(--sj-mauve-deep); }
.sj .sj-on-cream .sj-body { color: rgba(31,26,27,.72); }
.sj .sj-disc { font-size: 13px; color: rgba(31,26,27,.6); }
.sj .sj-refs { margin: 14px 0 0; padding-left: 1.2em; display: grid; gap: 10px; font: 400 14px/1.6 var(--sj-ko); color: rgba(31,26,27,.8); text-align: left; }

/* 버튼: 큰 버튼 1 + 보조 링크 1 */
.sj .sj-cta-row { display: flex; flex-direction: column; align-items: center; gap: 2px; margin-top: 22px; }
.sj .sj-txt.sj-left .sj-cta-row { align-items: flex-start; }
.sj .sj-cta { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 28px; border: 0; border-radius: 999px; background: var(--sj-mauve-deep); color: #fff; font: 600 13px/1 var(--sj-display); letter-spacing: .14em; text-indent: .14em; text-transform: uppercase; text-decoration: none; cursor: pointer; box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 10px 24px rgba(111,93,96,.28); pointer-events: auto; -webkit-tap-highlight-color: transparent; transition: transform .18s var(--sj-ease), box-shadow .18s var(--sj-ease); }
.sj .sj-cta:active { transform: scale(.97); box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 4px 12px rgba(111,93,96,.24); }
.sj .sj-cta.sj-loc { font: 600 15px/1 var(--sj-ko); letter-spacing: .02em; text-indent: 0; text-transform: none; }
.sj .sj-cta.sj-ghost { background: rgba(245,240,238,.08); box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 0 0 1px rgba(245,240,238,.18); }
.sj .sj-sub { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; font: 500 14px/1 var(--sj-ko); letter-spacing: .01em; color: var(--sj-mauve-deep); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; pointer-events: auto; -webkit-tap-highlight-color: transparent; transition: opacity .16s; }
.sj .sj-sub:active { opacity: .55; }
.sj .sj-sub.sj-dark { color: rgba(245,240,238,.82); }

/* 크림 시트: 사람의 세계 */
.sj .sj-l-cream { z-index: 5; background: var(--sj-cream); border-radius: 28px 28px 0 0; box-shadow: inset 0 1px 0 rgba(255,255,255,.8); transform: translateY(100%); }
.sj .sj-l-cream .sj-photo { position: absolute; left: 0; right: 0; top: 18%; height: 34%; overflow: hidden; }
.sj .sj-l-cream .sj-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* 홈 */
.sj .sj-h-face img { inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; transform-origin: 58% 47%; }
.sj .sj-scrim { position: absolute; inset: auto 0 0 0; height: 55%; background: linear-gradient(to top, rgba(10,10,9,.72), rgba(10,10,9,0)); }
.sj .sj-shade { background: var(--sj-ink); opacity: 0; }
.sj .sj-wm-l { display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; z-index: 3; }
.sj .sj-wm { display: flex; align-items: baseline; font-family: var(--sj-display); font-size: min(13vw, 56px); line-height: 1; letter-spacing: -0.01em; color: var(--sj-pearl); white-space: nowrap; }
.sj .sj-wm span { display: inline-block; will-change: transform, opacity; }
.sj .sj-wm .sj-c { font-weight: 700; } .sj .sj-wm .sj-b, .sj .sj-wm .sj-o { font-weight: 500; } .sj .sj-wm .sj-g { font-weight: 300; }
.sj .sj-lens { clip-path: circle(0px at 50% 50%); background: radial-gradient(60% 45% at 50% 42%, #2A2022, #0A0A09 75%); }
.sj .sj-sph { position: absolute; left: 0; top: 0; max-width: none; transform-origin: 50% 50%; will-change: transform, opacity; }
.sj .sj-sweep { position: absolute; border-radius: 50%; overflow: hidden; pointer-events: none; }
.sj .sj-sweep i { position: absolute; top: -20%; bottom: -20%; width: 40%; background: linear-gradient(90deg, rgba(255,247,240,0), rgba(255,247,240,.28), rgba(255,247,240,0)); transform: skewX(-12deg); }
.sj .sj-ruler { position: absolute; width: 1px; background: var(--sj-pearl); transform-origin: 50% 100%; opacity: 0; }
.sj .sj-ruler i { position: absolute; left: -6px; width: 13px; height: 1px; background: var(--sj-pearl); }
.sj .sj-ruler b { position: absolute; left: 12px; top: -6px; font: 500 12px/1 var(--sj-display); letter-spacing: .12em; white-space: nowrap; color: var(--sj-pearl); text-shadow: 0 1px 6px rgba(0,0,0,.6); }
.sj .sj-vials { pointer-events: none; z-index: 2; }
.sj .sj-vials img { height: 34%; bottom: 7%; left: 50%; transform: translateX(-50%); filter: drop-shadow(0 18px 30px rgba(0,0,0,.45)); opacity: 0; }

/* 제품·과학: 수치 표식(지시선 + 라벨) */
.sj .sj-tag { position: absolute; z-index: 4; font: 500 12px/1.3 var(--sj-display); letter-spacing: .08em; color: var(--sj-pearl); white-space: nowrap; opacity: 0; }
.sj .sj-tag small { display: block; font-weight: 400; color: var(--sj-mauve-light); letter-spacing: .12em; text-transform: uppercase; font-size: 12px; }
.sj .sj-tag.sj-r { text-align: right; }
.sj .sj-tag.sj-wrap { white-space: normal; }
.sj .sj-tag .sj-sw { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: 0; }
.sj .sj-spot { background: radial-gradient(48% 34% at 50% 62%, rgba(196,181,183,.16), rgba(10,10,9,0) 70%); }

@media (prefers-reduced-motion: reduce) {
  .sj-hint { animation: none; }
  .sj .sj-cta, .sj-rail i, .sj-hud, .sj-rail { transition: none; }
}

/* 장면이 켜진 페이지: 홈 마지막 장면은 고지 문구·약관·바로가기 링크만 남긴다(제목·버튼·고리는 장면이 대신함) */
html.sj-on #main-content [data-sj-trim] { min-height: 0 !important; height: auto !important; padding: 44px 20px calc(28px + env(safe-area-inset-bottom, 0px)) !important; }
html.sj-on #main-content [data-sj-trim] > .merge, html.sj-on #main-content [data-sj-trim] > .s5-head,
html.sj-on #main-content [data-sj-trim] .s5-actions > .btn { display: none !important; }
html.sj-on #main-content [data-sj-trim] .s5-actions, html.sj-on #main-content [data-sj-trim] .footer-inline { opacity: 1 !important; transform: none !important; visibility: visible !important; }
/* 섹션 바로가기 줄은 장면이 대신한 섹션을 가리키므로 장면 페이지에서는 숨김 */
html.sj-on .cg-secnav { display: none !important; }

/* 일본어·중국어: 띄어쓰기가 없으므로 단어 단위 줄바꿈(keep-all) 대신 각 언어의 금칙 줄바꿈 + 균형 잡힌 줄 나눔 */
html:lang(ja) .sj, html:lang(zh) .sj { word-break: normal; line-break: strict; overflow-wrap: anywhere; }
html:lang(ja) .sj .sj-h1 { font-size: clamp(28px, 8.2vw, 34px); }
html:lang(ja) .sj .sj-h2 { font-size: clamp(24px, 7vw, 28px); }
html:lang(ja) .sj .sj-title { font-size: clamp(36px, 10.5vw, 46px); }
/* 구절 묶음(일본어 등): 구절 안에서는 줄을 바꾸지 않음 */
.sj .sj-nb { display: inline-block; }
