/* 서체: 사이트 공통 Helvetica Neue LT Std("HN", @font-face 는 frame.css — assets/fonts/HelveticaNeue/ 의 OTF 세 가지).
   한글은 Pretendard. About 과 같은 묶음 */
:root {
  --face: "HN", "Pretendard", Arial, sans-serif;
}

#intro {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  pointer-events: none;
  text-align: center;
  padding: 0 6vw;
  font-family: var(--face);
  font-weight: 500;
  font-size: 48px; /* 46 → 48: About 1장 큰 선언과 같은 크기 */
  line-height: 1.5;
  letter-spacing: 0.2em;
  color: #fff;
  transition: opacity 0.9s ease;
}

#intro.gone {
  opacity: 0;
}

#introHint {
  position: fixed;
  left: 50%;
  bottom: calc(30px + env(safe-area-inset-bottom, 0px)); /* 하단 한 줄(푸터)과 같은 바닥선 */
  transform: translateX(-50%);
  z-index: 3;
  font: 400 12px/1 var(--face); /* 푸터와 같다: 55 Roman 12px */
  letter-spacing: 0.01em;
  color: #5a5955; /* 푸터와 같은 사이트 공통 회색 */
  transition: opacity 0.6s;
}
@media (max-width: 620px) {
  #introHint {
    bottom: calc(54px + env(safe-area-inset-bottom, 0px)); /* 모바일: 하단 줄(카피라이트)과 겹치지 않게 위로 */
  }
}

#introHint.gone {
  opacity: 0;
}

#axis {
  position: fixed;
  left: 30px;
  right: 30px;
  bottom: calc(54px + env(safe-area-inset-bottom, 0px)); /* 푸터(하단 30px) 위 */
  top: auto;
  transform: none;
  max-height: none;
  overflow: visible;
  z-index: 6;
  width: auto;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-end;
  font-family: var(--face);
  font-size: 10px;
  letter-spacing: 0;
  transition: opacity 0.6s;
}

#axis.gone {
  opacity: 0;
  pointer-events: none;
}

#axis button {
  padding: 7px 0 4px;
  color: rgba(255, 255, 255, 0.24);
  cursor: pointer;
  font: inherit;
  letter-spacing: 0;
  border-bottom: 1px solid transparent;
  transition:
    color 0.2s,
    border-color 0.2s;
}

#axis button:hover {
  color: rgba(255, 255, 255, 0.7);
}

#axis button.on {
  color: #fff;
  border-bottom-color: #fff;
}

@media (max-width: 900px) {
  #axis {
    left: 14px;
    right: 14px;
  }

  #axis button {
    font-size: 8px;
  }
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: #030305;
  color: #ddd;
  font-family: var(--face);
}

canvas {
  display: block;
  touch-action: none;
}

small {
  display: block;
  color: #676771;
  font: 9px var(--face);
  letter-spacing: 0.15em;
  margin-top: 9px;
}

button {
  font: 12px var(--face);
  background: none;
  color: #72727c;
  border: 0;
  cursor: pointer;
}

footer {
  position: fixed;
  bottom: 20px;
  left: 32px;
  right: 32px;
  display: flex;
  justify-content: space-between;
  font: 8px var(--face);
  letter-spacing: 0.13em;
  color: #53535e;
}

#error {
  position: fixed;
  top: 45%;
  width: 100%;
  text-align: center;
  color: #bbb;
  font: 12px var(--face);
}

@media (max-width: 650px) {
  header {
    left: 18px;
    right: 18px;
  }

  footer {
    left: 18px;
    right: 18px;
  }

  footer span:last-child {
    display: none;
  }
}

#projects {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

.project-name {
  position: absolute;
  left: 0;
  top: 0;
  margin: 0;
  padding: 6px 8px;
  color: #fff;
  font:
    500 10px/14px var(--face); /* 구에 나오는 이름은 모두 10px · 65 Medium (잔디 #tTags .tag와 같은 규칙) */
  letter-spacing: 0;
  white-space: nowrap;
  pointer-events: auto;
  cursor: default;
  text-shadow:
    0 1px 5px #000,
    0 0 12px #030305;
  will-change: transform, opacity;
  outline: none;
}

.project-name:hover,
.project-name:focus-visible {
  color: #fff;
  text-shadow:
    0 1px 5px #000,
    0 0 8px #000;
}

nav {
  z-index: 2;
}

@media (max-width: 650px) {
  .project-name {
    font-size: 10px;
    letter-spacing: 0.03em;
    max-width: 185px;
    white-space: normal;
    text-align: center;
  }
}
#sidecap {
  position: fixed;
  left: 30px;
  bottom: calc(116px + env(safe-area-inset-bottom, 0px)); /* 연도 막대 위 */
  z-index: 8;
  pointer-events: none;
  font-family: var(--face);
  font-weight: 500; /* 예전 HNM(65 Medium) 그대로 */
  opacity: 0;
  transition: opacity 0.9s ease;
}

#sidecap.on {
  opacity: 1;
}

#sidecap .t {
  font-size: 10px;
  font-weight: 700; /* 75 Bold — 잔디 범례와 같은 규칙: 10px · 자간 0.1em · 흰색(하이라이트) / #5a5955(나머지) */
  letter-spacing: 0;
  line-height: 20px;
  color: #fff;
}

#sidecap .t em {
  font-style: normal;
  color: #5a5955;
}

/* 크로노그래피 범례 — 44칸 바코드. 자리는 고정, 그해 켜진 분야만 제 색 */
#cbar {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 32px;
  margin: 32px 0 12px; /* 2단(그해 현황)은 범례와 32px 띄운다 */
  pointer-events: auto;
}

#cbar i {
  display: block;
  width: 4px;
  height: 100%;
  background: rgba(255, 255, 255, 0.07);
  transition: background 0.5s ease;
}

#cbar i.g {
  margin-left: 5px;
}

#cbar i:hover {
  box-shadow: 0 0 0 1px #fff;
}

#sidecap .now {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0;
  color: #fff;
}

@media (max-width: 820px) {
  #sidecap {
    display: none;
  }
}

/* INTRO — 상태는 전부 클래스 하나로 결정된다. 타이밍은 CSS가, 순서는 컨트롤러가 */
#ov {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #05060a;
  font-family: var(--face);
  font-weight: 700;
  color: #fff;
  transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

#ov.out {
  opacity: 0;
  pointer-events: none;
}

#ov .st {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
}

#ov .st.on {
  opacity: 1;
}

/* 첫 문장: 앞부분은 한 번 계산된 자리에 고정, 단어만 그 오른쪽에서 바뀐다 */
#ovq {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  font-size: var(--qs, 40px);
  font-weight: 700;
  line-height: 1.3;
  line-height: round(up, 1.3em, 1px); /* 정수 px */
  letter-spacing: -0.008em;
  word-spacing: 0.16em;
  white-space: pre;
  margin: 0;
  transition: left 1.1s cubic-bezier(0.65, 0, 0.35, 1) 0.15s;
}

#ovq.still {
  transition: none;
}

#ovw {
  position: absolute;
  left: 100%;
  top: 0;
  white-space: pre;
  transition: opacity 0.3s ease;
}

#ovm {
  position: absolute;
  visibility: hidden;
  white-space: pre;
  left: -9999px;
  top: 0;
}

/* 조작법 그림 — 첫 질문 아래. Insight와 같은 자리·크기·선·커서, 글 없음.
원(구)을 끌어 좌우·위아래로 돌리면 핵이 표면을 따라 돌고, 아래 연도 점을 훑어도 돈다 */
#howto {
  position: absolute;
  left: 50%;
  top: calc(50% + var(--qs, 40px) * 0.65 + 22px);
  width: clamp(112px, 30vw, 160px);
  height: auto;
  aspect-ratio: 8/3;
  transform: translateX(-50%);
  overflow: visible;
  opacity: 0;
  transition: opacity 0.6s ease;
}

#howto.on {
  opacity: 1;
}

#ov .sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* 화면낭독기 문장 — 틀(frame.css) 없이 열어도 숨긴다 */
#howto .mem {
  fill: none;
  stroke: rgba(255, 255, 255, 0.62);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

#howto .nuc {
  fill: #fff;
}

#howto .yd {
  fill: rgba(255, 255, 255, 0.62);
}

#howto .yd.on {
  fill: #fff;
}

#howto .cur {
  fill: #05060a;
  stroke: #fff;
  stroke-width: 1;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

#howto .fin {
  fill: #fff;
  display: none;
}

@media (hover: none) {
  #howto .cur {
    display: none;
  }

  #howto .fin {
    display: inline;
  }
}

/* 세 문장 */
#ov2 {
  display: flex;
  align-items: center;
  justify-content: center;
}

#ovs {
  text-align: center;
  padding: 0 7vw;
}

#ovs i {
  display: block;
  font-style: normal;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.012em;
  word-spacing: 0.2em;
  line-height: 2.05;
  opacity: 0;
  transition: opacity 0.5s ease 0s;
}

#ov2.on #ovs i {
  opacity: 1;
  transition: opacity 0.8s ease var(--d);
}

#ovc {
  transition: color 0.4s ease 0s;
}

#ov2.on #ovc {
  color: #7fd4c8;
  transition: color 1.8s ease 2.2s;
}

#ovh {
  position: fixed;
  left: 50%;
  bottom: calc(30px + env(safe-area-inset-bottom, 0px)); /* 하단 한 줄(푸터)과 같은 바닥선 — About·메인과 같다 */
  transform: translateX(-50%);
  z-index: 10000;
  font: 400 12px/1 var(--face); /* 푸터와 같다: 55 Roman 12px */
  letter-spacing: 0.01em;
  color: #5a5955; /* 푸터와 같은 사이트 공통 회색 */
  opacity: 0;
  transition: opacity 0.8s;
  pointer-events: none;
}
@media (max-width: 620px) {
  #ovh {
    bottom: calc(54px + env(safe-area-inset-bottom, 0px)); /* 모바일: 하단 줄(카피라이트)과 겹치지 않게 위로 */
  }
}

#ovh.on {
  opacity: 1;
}

@media (max-width: 900px) {
  #ovs i {
    font-size: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #ov,
  #ov .st,
  #ovw,
  #ovs i,
  #ov2.on #ovs i,
  #ovc {
    transition-duration: 0.01s !important;
    transition-delay: 0s !important;
  }
}
/* 두 번째 질문과 세 문장 — 첫 장과 같은 문법 */
#ovB {
  position: fixed;
  inset: 0;
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  font-family: var(--face);
  font-weight: 700;
  color: #fff;
  transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

#ovB.in {
  opacity: 1;
}

#ovB .st {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
}

#ovB .st.on {
  opacity: 1;
  transition: opacity 0.8s ease 0.4s;
}

#q2 p,
#q3 p,
#q4 p,
#q5 p {
  margin: 0;
  font-size: min(40px, 4.4vw);
  font-size: round(down, min(40px, 4.4vw), 2px); /* 정수(짝수) px */
  line-height: 1.3;
  line-height: round(up, 1.3em, 1px); /* 정수 px */
  letter-spacing: -0.008em;
  word-spacing: 0.16em;
  white-space: nowrap;
  text-align: center;
}
/* 질문 = 장 제목(두 줄): 첫 줄은 장의 의도, 둘째 줄은 "A — B". 큰 한 줄 규칙: 48px · 65 · 순백, 자간 0.06em, 행간 72px.
   크로마틱 인트로(자간 0.2em)만 넓은 자간의 대표 타이틀이다. 900px 이하는 예전 값 */
@media (min-width: 901px) {
  #q2 p,
  #q3 p,
  #q4 p,
  #q5 p {
    font-weight: 500;
    font-size: 48px;
    line-height: 72px;
    letter-spacing: 0.06em;
    word-spacing: 0;
    color: #fff;
  }
}

#s2 .ls {
  text-align: center;
  padding: 0 7vw;
}

#s3 .ls,
#e3 .ls,
#s4 .ls,
#e4 .ls,
#s5 .ls {
  text-align: center;
  padding: 0 7vw;
}

#s2 i,
#s3 i,
#e3 i,
#s4 i,
#e4 i,
#s5 i {
  display: block;
  font-style: normal;
  font-size: 24px;
  letter-spacing: 0.012em;
  word-spacing: 0.2em;
  line-height: 2.05;
  opacity: 0;
  transition: opacity 0.5s ease 0s;
}

#s2.on i,
#s3.on i,
#e3.on i,
#s4.on i,
#e4.on i,
#s5.on i {
  opacity: 1;
  transition: opacity 0.8s ease var(--d);
}

#s2 .tint,
#s3 .tint,
#s4 .tint,
#s5 .tint {
  transition: color 0.4s ease 0s;
}

#s2.on .tint,
#s3.on .tint,
#s4.on .tint,
#s5.on .tint {
  color: #7fd4c8;
  transition: color 1.8s ease 2.2s;
}

@media (max-width: 900px) {
  #s2 i,
  #s3 i,
  #e3 i,
  #s4 i,
  #e4 i,
  #s5 i {
    font-size: 16px;
  }
}

/* 시계 — 04. THE WORLD OUTSIDE */
#wclock {
  position: fixed;
  inset: 0;
  z-index: 55;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.6s ease;
}

#wclock.on {
  opacity: 1;
}

#wclock:not(.on) #wAxis {
  pointer-events: none;
}

#wclock canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  transition: opacity 0.9s ease;
}

#wclock.rest #wcv {
  opacity: 0.16;
}

#wclock.rest #wAxis {
  pointer-events: none;
}

#wAxis {
  position: fixed;
  left: 30px;
  right: 30px;
  bottom: calc(54px + env(safe-area-inset-bottom, 0px)); /* 푸터(하단 30px) 위 */
  z-index: 6;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  pointer-events: auto;
  font:
    700 10px/1 var(--face);
  letter-spacing: 0;
}

#wAxis button {
  padding: 7px 0 4px;
  background: none;
  border: 0;
  border-bottom: 1px solid transparent;
  color: #5a5955;
  cursor: pointer;
  font: inherit;
  letter-spacing: 0;
  transition:
    color 0.2s,
    border-color 0.2s;
}

#wAxis button:hover {
  color: rgba(255, 255, 255, 0.7);
}

#wAxis button.on {
  color: #fff;
  border-bottom-color: #fff;
}

@media (max-width: 900px) {
  #wAxis {
    left: 14px;
    right: 14px;
  }

  #wAxis button {
    font-size: 8px;
  }
}

#wSide {
  position: fixed;
  left: 30px;
  bottom: calc(116px + env(safe-area-inset-bottom, 0px)); /* 연도 막대 위 */
  z-index: 8;
  font-family: var(--face);
  font-weight: 500; /* 예전 HNM(65 Medium) 그대로 */
}

#wSide .t {
  font-size: 10px;
  font-weight: 700; /* 75 Bold — 잔디 범례와 같은 규칙: 10px · 자간 0.1em · 흰색(하이라이트) / #5a5955(나머지) */
  letter-spacing: 0;
  line-height: 20px;
  color: #fff;
}

#wSide .t em {
  font-style: normal;
  color: #5a5955;
}

#wKey {
  margin: 14px 0 0;
  display: grid;
  grid-template-columns: 30px auto;
  gap: 6px 10px;
  align-items: center;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0;
  color: #5a5955;
}

#wKey svg {
  display: block;
  overflow: visible;
}

#wFams {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 10px;
  width: 440px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0;
  margin: 12px 0 0;
}

#wCap {
  margin-top: 32px; /* 2단(그해 현황) */
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0;
  color: #fff;
}

#wSide,
#wAxis {
  transition: opacity 0.8s ease;
}

#wclock.rest #wSide,
#wclock.rest #wAxis {
  opacity: 0;
}

@media (max-width: 820px) {
  #wSide {
    display: none;
  }
}

/* 지형 */
#terrain {
  position: fixed;
  inset: 0;
  z-index: 50;
  visibility: hidden;
}

#terrain.on {
  visibility: visible;
}

#tSide,
#tAxis {
  opacity: 0;
  transition: opacity 0.8s ease;
}

#terrain.ready #tSide,
#terrain.ready #tAxis {
  opacity: 1;
}

#tCw {
  position: absolute;
  inset: 0;
  cursor: grab;
}

#tCw.dragging {
  cursor: grabbing;
}

#tCw canvas {
  display: block;
}

#tTags {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 5;
}

#tTags .tag {
  position: absolute;
  left: 0;
  top: 0;
  white-space: nowrap;
  font:
    500 10px/14px var(--face); /* 구에 나오는 프로젝트 이름: 모든 장 10px · 65 Medium */
  padding: 2px 8px;
  will-change: transform, opacity;
  display: flex;
  align-items: center;
  gap: 6px;
  opacity: 0;
}

#tTags .tag i {
  display: inline-block;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
  flex: none;
}

#tTags .tag.left {
  flex-direction: row-reverse;
}

#tAxis {
  position: fixed;
  left: 30px;
  right: 30px;
  bottom: calc(54px + env(safe-area-inset-bottom, 0px)); /* 푸터(하단 30px) 위 */
  z-index: 6;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  font-family: var(--face);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0;
}

#tAxis button {
  padding: 7px 0 4px;
  background: none;
  border: 0;
  border-bottom: 1px solid transparent;
  color: #5a5955; /* 작은 글: 하이라이트는 흰색, 나머지는 이 회색 하나 */
  cursor: pointer;
  font: inherit;
  letter-spacing: 0;
  transition:
    color 0.2s,
    border-color 0.2s;
}

#tAxis button:hover {
  color: rgba(255, 255, 255, 0.7);
}

#tAxis button.on {
  color: #fff;
  border-bottom-color: #fff;
}

@media (max-width: 900px) {
  #tAxis {
    left: 14px;
    right: 14px;
  }

  #tAxis button {
    font-size: 8px;
  }
}

#tSide {
  position: fixed;
  left: 30px;
  bottom: calc(116px + env(safe-area-inset-bottom, 0px)); /* 연도 막대 위 */
  z-index: 8;
  pointer-events: none;
  font-family: var(--face);
  font-weight: 500; /* 예전 HNM(65 Medium) 그대로 */
}

#tSide .t {
  font-size: 10px;
  font-weight: 700; /* 75 Bold: 작은 회색 글이 검은 바탕에서 가늘어 보이지 않게 */
  letter-spacing: 0;
  line-height: 20px;
  color: #fff;
}

#tSide .t em {
  font-style: normal;
  color: rgba(255, 255, 255, 0.32);
}

#tKey {
  margin: 14px 0 0;
  display: grid;
  grid-template-columns: 30px auto;
  gap: 6px 10px;
  align-items: center;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0;
  color: #5a5955;
}

#tKey svg {
  display: block;
  overflow: visible;
}

/* 그해 현황 = 막대 · 막대 설명 · 연도 숫자(#tCap). 위의 범례(기호 설명)와 따로 묶는다 */
#tSkyRow {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin: 32px 0 12px;
}

#tSky {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 40px;
  min-width: 40px;
  pointer-events: auto;
}

#tSky i {
  display: block;
  width: 4px;
  height: 0;
  transition: height 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

#tSky i:hover {
  box-shadow: 0 0 0 1px #fff;
}

#tSkyRow small {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0;
  color: #5a5955;
  white-space: nowrap;
  margin-top: 0;
}

#tCap {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0;
  color: #fff;
}

@media (max-width: 820px) {
  #tSide {
    display: none;
  }
}

/* 05. WHO WAS INSIDE — 지구본 그물 */
#people {
  position: fixed;
  inset: 0;
  z-index: 54;
  pointer-events: none;
  visibility: hidden;
  font-family: var(--face);
}

#people.on {
  visibility: visible;
}

#people canvas {
  position: absolute;
  inset: 0;
  display: block;
}

#pAxis {
  position: fixed;
  left: 30px;
  right: 30px;
  bottom: calc(54px + env(safe-area-inset-bottom, 0px)); /* 푸터(하단 30px) 위 */
  z-index: 6;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  pointer-events: none;
  font:
    700 10px/1 var(--face);
  letter-spacing: 0;
}

#pAxis button {
  padding: 7px 0 4px;
  background: none;
  border: 0;
  border-bottom: 1px solid transparent;
  color: #5a5955;
  cursor: pointer;
  font: inherit;
  letter-spacing: 0;
  transition:
    color 0.2s,
    border-color 0.2s;
}

#pAxis button:hover {
  color: rgba(255, 255, 255, 0.7);
}

#pAxis button.on {
  color: #fff;
  border-bottom-color: #fff;
}

@media (max-width: 900px) {
  #pAxis {
    left: 14px;
    right: 14px;
  }

  #pAxis button {
    font-size: 8px;
  }
}

#pSide {
  position: fixed;
  left: 30px;
  bottom: calc(116px + env(safe-area-inset-bottom, 0px)); /* 연도 막대 위 */
  z-index: 8;
  pointer-events: none;
  font-weight: 500;
}

#pSide .t {
  font-size: 10px;
  font-weight: 700; /* 75 Bold — 잔디 범례와 같은 규칙: 10px · 자간 0.1em · 흰색(하이라이트) / #5a5955(나머지) */
  letter-spacing: 0;
  line-height: 20px;
  color: #fff;
}

#pSide .t em {
  font-style: normal;
  color: #5a5955;
}

#pKey {
  margin: 14px 0 0;
  display: grid;
  grid-template-columns: 30px auto;
  gap: 6px 10px;
  align-items: center;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0;
  color: #5a5955;
}

#pKey svg {
  display: block;
  overflow: visible;
}

#pKey .yrs {
  font:
    700 10px/1 var(--face);
  letter-spacing: 0;
  fill: #fff;
}

#pGrad {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 10px;
  align-items: center;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0;
  color: #5a5955;
  margin-top: 12px;
  width: 270px;
}

#pGrad .bar {
  height: 4px;
  border-radius: 2px;
}

#pGrad .ends {
  grid-column: 2;
  display: flex;
  justify-content: space-between;
}

#pCap {
  margin-top: 32px; /* 2단(그해 현황) */
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0;
  color: #fff;
}

#pMs {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 7;
  overflow: hidden;
}

#pMs span {
  position: absolute;
  left: 0;
  top: 0;
  font:
    700 10px/1 var(--face);
  letter-spacing: 0;
  color: #fff;
  white-space: nowrap;
  text-shadow:
    0 0 6px #030305,
    0 0 2px #030305;
  will-change: transform, opacity;
}

#pMs span::before {
  content: "";
  display: inline-block;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #fff;
  margin-right: 6px;
  vertical-align: 1px;
}

#pSide,
#pAxis {
  transition: opacity 0.8s ease;
  opacity: 0;
}

body[data-stage="14"] #pSide,
body[data-stage="14"] #pAxis {
  opacity: 1;
}

body[data-stage="14"] #pAxis {
  pointer-events: auto;
}

@media (max-width: 820px) {
  #pSide {
    display: none;
  }
}

/* 06. WORK INDEX — 카드 (스크롤은 이 상자 안에서만) */
#cards {
  position: fixed;
  inset: 0;
  z-index: 60;
  overflow-y: auto;
  overflow-x: hidden;
  background: #030305;
  color: #fff;
  font-family: var(--face);
  -webkit-font-smoothing: antialiased;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 1s ease,
    visibility 1s;
  outline: none;
  overscroll-behavior: contain;
}

#cards.on {
  opacity: 1;
  visibility: visible;
}

#cEnd {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 7vw;
}

#cEnd i {
  display: block;
  font-style: normal;
  font-family: var(--face);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: 0.012em;
  word-spacing: 0.2em;
  line-height: 48px; /* 정수 px(2.05배는 49.2px 로 줄마다 화소에 걸린다) */
  color: #fff;
  opacity: 0;
  transition: opacity 0.5s ease 0s;
}

#cEnd.on i {
  opacity: 1;
  transition: opacity 0.8s ease var(--d);
}

#cEnd .tint {
  transition: color 0.4s ease 0s;
}

#cEnd.on .tint {
  color: #7fd4c8;
  transition: color 1.8s ease 2.2s;
}

@media (max-width: 900px) {
  #cEnd i {
    font-size: 16px;
    line-height: 32px;
  }
}

/* 장 건너뛰기 — 오른쪽 끝의 점. 지금 장은 채워진 점, 나머지는 선만 */
#dots {
  position: fixed;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10003;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

#dots button {
  position: relative;
  width: 7px;
  height: 7px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: none;
  cursor: pointer;
  transition:
    background 0.3s,
    border-color 0.3s;
}

#dots button::after {
  content: "";
  position: absolute;
  inset: -9px;
}

/* 점은 작아도 누르는 자리는 25px */
#dots button:hover {
  border-color: #fff;
}

body.menuOpen #dots {
  visibility: hidden;
}

#dots button.on {
  background: #fff;
  border-color: #fff;
}

#dots button span {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  white-space: nowrap;
  pointer-events: none;
  font:
    700 10px/1 var(--face);
  letter-spacing: 0;
  color: #5a5955;
  opacity: 0;
  transition: opacity 0.2s;
}

#dots button.on span {
  color: #fff;
  opacity: 1; /* 지금 장의 이름은 항상 보인다. 다른 장은 마우스를 올릴 때만 */
}
/* 첫 장 이름(CHROMATIC YEARS)은 흰 구가 나올 때 처음 나타난다 — 그 앞 질문·세 문장 화면(0~3단계)에서는 숨긴다 */
body[data-stage="0"] #dots button.on span,
body[data-stage="1"] #dots button.on span,
body[data-stage="2"] #dots button.on span,
body[data-stage="3"] #dots button.on span {
  opacity: 0;
}

#dots button:hover span,
#dots button:focus-visible span {
  opacity: 1;
}

#dots button:focus-visible {
  outline: 1px solid #7fd4c8;
  outline-offset: 3px;
}

#veil {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: #030305;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s ease;
}

#veil.on {
  opacity: 1;
  pointer-events: auto;
}

html.back #veil {
  opacity: 1;
  transition: none;
  pointer-events: auto;
}

html.back #ov,
html.back #ovh {
  visibility: hidden;
}

/* 돌아온 경우: 막부터 */
@media (max-width: 620px) {
  #dots {
    right: 10px;
    gap: 17px;
  }
}

#cards * {
  margin: 0;
  padding: 0;
}

#cTop {
  padding: 26px 30px 16px;
  position: sticky;
  top: 0;
  z-index: 5;
  background: #030305;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

#cTools {
  display: flex;
  gap: 7px;
}

#cTools button {
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.34;
  transition: opacity 0.18s;
}

#cTools button:hover {
  opacity: 0.7;
}

#cTools button.on {
  opacity: 1;
}

#cTools svg {
  display: block;
}

#cTools rect {
  fill: #fff;
}

#cGrid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 30px 20px;
  padding: 26px 30px 90px;
}

#cards .card {
  min-width: 0;
}

/* 카드 글자 규칙: 전부 10px. 제목·상태·눈금 75 Bold / 분야 정보·설명 65 Medium.
   색은 흰색(제목)과 회색 #5a5955 하나뿐. 설명만 자간 0.02em으로 숨을 준다 */
#cards .ttl {
  font-size: 10px;
  font-weight: 700;
  line-height: 14px;
  height: 28px;
  overflow: hidden;
  word-break: break-word;
  color: #fff;
}

#cards .tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0;
  margin-top: 3px;
  color: #5a5955;
}

#cards .meta {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0;
  color: #5a5955;
  line-height: 14px;
  margin-top: 1px;
  height: 14px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

#cards .desc {
  font-size: 10px;
  font-weight: 500;
  line-height: 16px;
  letter-spacing: 0.02em;
  color: #5a5955;
  margin-top: 9px;
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

#cards canvas {
  display: block;
  margin-top: 8px;
  image-rendering: pixelated;
  touch-action: pan-y;
}

#cards .ax {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  font-weight: 700;
  color: #5a5955;
  letter-spacing: 0;
  margin-top: 3px;
}

@media (max-width: 1400px) {
  #cGrid {
    grid-template-columns: repeat(6, 1fr);
  }
}

@media (max-width: 1000px) {
  #cGrid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 620px) {
  #cGrid {
    grid-template-columns: repeat(2, 1fr);
    padding: 20px;
  }

  #cTop {
    padding: 28px 20px 14px;
  }
}
/* 공통 틀(frame.css·peek.css)을 이 페이지에 맞춘다 — 장면들의 z-index가 높아서(최대 10001) 틀을 그 위로 올린다 */
body[data-page="work"] .chrome {
  z-index: 10004;
}

body[data-page="work"] #menu {
  z-index: 10003;
}

body[data-page="work"] #peek {
  z-index: 10002;
}

/* 푸터(카피라이트 · 하단 링크)는 모든 장면에서 같은 자리에 고정 — 연도 막대와 범례를 푸터 위로 올렸다 */
#copy {
  transition: opacity 0.6s ease;
}

/* 카드 장: 도구 버튼을 로고 오른쪽, 로고와 같은 높이에 */
#cTop {
  padding-left: 160px;
}

@media (max-width: 620px) {
  #cTop {
    padding-left: 124px;
  }
}

/* 장면 왼쪽 글 — 구·시계가 도는 동안 "무엇을 보고 있는지" 한 번 더. 세 문장의 마지막 줄을 짧게 남긴 것.
본문 폰트(HN Medium) 18px, 장 이름은 흰색, 읽는 법은 한 단계 낮은 회색. 카드 장에는 없다 */
#chap {
  position: fixed;
  left: 30px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10001;
  pointer-events: none;
  font:
    500 18px/2.05 var(--face);
  letter-spacing: 0.012em;
  word-spacing: 0.2em;
  color: #fff;
  text-shadow:
    0 0 16px #05060a,
    0 0 5px #05060a;
  opacity: 0;
  transition: opacity 0.6s ease;
}

#chap.on {
  opacity: 1;
  transition: opacity 0.8s ease 0.4s;
}

#chap .k {
  color: #5a5955;
}

/* 왼쪽 타이틀 = 모든 장 같은 값, 3줄: 장 이름(대문자) 1줄 + 설명 2줄. 65 Medium 24/32, 자간 0.02em.
   장 이름은 크림색, 설명은 사이트 공통 회색(#5a5955). 900px 이하(태블릿·모바일)는 아직 예전 값 */
@media (min-width: 901px) {
  #chap {
    font: 500 24px/32px var(--face);
    letter-spacing: 0.02em;
    word-spacing: 0.06em;
  }
  #chap .k {
    white-space: nowrap; /* 제목·설명 모두 행간 32px 하나로(사이 추가 간격 없음) */
    color: #5a5955;
  }
}
/* 1장: 구 위에 큰 "CHROMATIC YEARS 1998 — NOW"가 나오는 동안은 왼쪽 타이틀을 숨긴다.
   색이 나타나는 순간(스크롤 여행이 시작되어 body.traveled)부터 보인다 */
body:not(.traveled) #chap[data-st="4"] {
  opacity: 0 !important;
}

body.menuOpen #chap {
  visibility: hidden;
}

@media (max-width: 900px) {
  #chap {
    font-size: 14px;
  }
}

@media (max-width: 620px) {
  #chap {
    left: 20px;
    top: calc(76px + env(safe-area-inset-top, 0px));
    transform: none;
    font-size: 13px;
    line-height: 1.7;
  }
}

@media (prefers-reduced-motion: reduce) {
  #chap,
  #chap.on {
    transition-duration: 0.01s;
    transition-delay: 0s;
  }
}

/* 선언 문장(진입 전 세 문장 · 목록 끝 문장): 24px / 75 Bold 그대로, 행간만 정수 48px(= 24px × 2). 900px 이하는 예전 값 */
@media (min-width: 901px) {
  #ovs i,
  #s2 i,
  #s3 i,
  #e3 i,
  #s4 i,
  #e4 i,
  #s5 i,
  #cEnd i {
    line-height: 48px;
  }
}

/* ── 하단 연도 축 (모든 장 공통) ──
   선·점 없이 숫자만. 지금 위치는 지금 해 숫자만 흰색(나머지는 회색 #5a5955)으로 알린다.
   글자는 작은 글 규칙: 10px · 75 Bold. 눌러서 이동하는 동작은 그대로 */
#axis button,
#tAxis button,
#wAxis button,
#pAxis button {
  font-weight: 700;
  color: #5a5955;
  border-bottom-color: transparent;
}
#axis button:hover,
#tAxis button:hover,
#wAxis button:hover,
#pAxis button:hover {
  color: #fff;
}
#axis button.on,
#tAxis button.on,
#wAxis button.on,
#pAxis button.on {
  color: #fff;
  border-bottom-color: transparent;
}
/* 모바일: 짝수 해(98, 00, 02…)만 숫자를 보이고, 사이의 해는 눌리기만 한다 */
@media (max-width: 900px) {
  #axis button:nth-of-type(even),
  #tAxis button:nth-of-type(even),
  #wAxis button:nth-of-type(even),
  #pAxis button:nth-of-type(even) {
    color: transparent;
  }
}

/* ── 카드 화면(18단계) 하단: 푸터 글자가 카드 글자와 겹쳐 읽히지 않던 것 ──
   푸터(z-index 10004)는 카드 층(60) 위에 있어서 카드 글자가 푸터 글자 뒤로 비쳤다.
   카드 화면에서만 그 사이(65)에 맨 아래 170px 검은 그라데이션을 깐다
   (푸터 줄 높이에서는 완전한 검정 — 카드는 어둠으로 사라지고 푸터는 또렷하게 읽힌다) */
body[data-stage="18"]::after {
  content: "";
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 170px;
  pointer-events: none;
  z-index: 65;
  background: linear-gradient(to bottom, rgba(3, 3, 5, 0) 0%, rgba(3, 3, 5, 0.78) 42%, #030305 68%, #030305 100%);
}

/* 구 위 프로젝트 이름: 두 줄, 가운데 정렬(긴 이름은 두 줄로 균형 있게 나눈다) */
#tTags .tag > span {
  white-space: normal;
  width: max-content;
  max-width: 190px;
  text-align: center;
  text-wrap: balance;
}

/* 카드 정렬 "By year": 기본은 최신순(내림차순)이라 막대가 오른쪽으로 낮아지는 그림, 한 번 더 누르면 오래된 순(오름차순)으로 그림도 뒤집힌다 */
#cTools button[data-s="year"] svg {
  transform: scaleX(-1);
}
#cTools button[data-s="year"].asc svg {
  transform: none;
}

/* 카드 화면의 윗단: 넓은 화면에서는 상단 격자(슬로건 두 줄 · 메뉴 네 줄, 아래 끝 110px)가 가리지 않게 134px 까지 내린다 */
@media (min-width: 1024px) {
  #cTop {
    min-height: 134px;
    box-sizing: border-box;
  }
}

/* ── 카드 정렬: 넓은 화면에서는 그림 단추 대신 글자로, 상단 격자의 3번 열에 세로로 (메뉴와 같은 14px · 65). 고른 것 앞에 동그라미 ── */
#cTools button span {
  display: none;
}
@media (min-width: 1024px) {
  #cTools {
    position: absolute;
    left: calc(30px + var(--col) * 2);
    top: 30px;
    display: block;
  }
  #cTools button {
    position: relative;
    display: block;
    width: auto;
    height: auto;
    opacity: 1;
    color: #fff;
    font: 500 14px/20px var(--face);
    letter-spacing: 0.012em;
    word-spacing: 0.04em;
    white-space: nowrap;
  }
  #cTools button svg {
    display: none;
  }
  #cTools button span {
    display: inline;
  }
  #cTools button.on::before {
    content: "";
    position: absolute;
    left: -14px;
    top: 4.5px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #fff;
  }
  #cTools button[data-s="year"] span::after {
    content: " \2193"; /* 최신순 ↓ */
  }
  #cTools button[data-s="year"].asc span::after {
    content: " \2191"; /* 오래된 순 ↑ */
  }
}

/* ── 장면 왼쪽 글: 장 이름 대신 "그해가 무엇이었나" 네 줄. 로고 아래 슬로건과 같은 14px · 65 · 행간 20px, 첫 줄(연도)만 흰색 ── */
@media (min-width: 901px) {
  #chap,
  #chap .k {
    font: 500 14px/20px var(--face);
    letter-spacing: 0.012em;
    word-spacing: 0.04em;
  }
}

/* ── 모바일(900px 이하) ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  /* 하단 연도: 4년마다만 쓰고(.tk), 지금 해(.on)는 항상 흰색으로. 지금 해 바로 옆(.nr)은 겹치므로 숨긴다 */
  #axis button, #tAxis button, #wAxis button, #pAxis button { color: transparent !important; transition: none; }
  #axis button.tk, #tAxis button.tk, #wAxis button.tk, #pAxis button.tk { color: #5a5955 !important; }
  #axis button.nr, #tAxis button.nr, #wAxis button.nr, #pAxis button.nr { color: transparent !important; }
  #axis button.on, #tAxis button.on, #wAxis button.on, #pAxis button.on { color: #fff !important; }
  /* 카드: 그래프는 카드 폭에 맞추고, 정렬 단추는 상단 줄 아래로, 카드 위를 덮는 인디케이터는 숨긴다 */
  #cards canvas { width: 100% !important; height: auto !important; }
  #cTop { padding-top: 76px; }
  body[data-stage="18"] #dots { display: none; }
}
@media (max-width: 650px) {
  /* 첫 질문: 두 줄, 가운데 정렬(윗줄은 고정, 아랫줄 단어가 바뀐다) */
  #ovq { left: 0 !important; right: 0; width: 100%; text-align: center; white-space: normal; }
  #ovq #ovw { display: block; position: static; }   /* 데스크톱에서는 문장 오른쪽에 붙지만, 모바일에서는 아랫줄 가운데 */
  /* 크로마틱 제목: 두 줄로 들어오게 작게, 자간 좁게 */
  #intro { font-size: 24px; letter-spacing: 0.1em; padding: 0 20px; }
  /* 구 위 이름은 12px 이상 */
  #tTags .tag { font-size: 12px; line-height: 16px; }
  #tTags .tag > span { max-width: 150px; }
  .project-name { font-size: 12px !important; }
  /* 지금 장 이름은 구와 겹치므로 숨기고 점만 */
  #dots button.on span { opacity: 0 !important; }
}

/* ── 모바일 이름 목록(#mlist): 화면 아래 · 왼쪽 정렬 · 12px. 구 주변 이름표는 숨긴다 ── */
#mlist {
  display: none;
}
@media (max-width: 650px) {
  #mlist {
    display: block;
    position: fixed;
    left: 20px;
    right: 20px;
    bottom: calc(124px + env(safe-area-inset-bottom, 0px));
    z-index: 10003;
    pointer-events: none;
    font: 500 12px/19px var(--face);
    letter-spacing: 0.012em;
    word-spacing: 0.04em;
    text-transform: uppercase;
    color: #fff;
    opacity: 0;
    transition: opacity 0.4s ease;
  }
  #mlist.on {
    opacity: 1;
  }
  #mlist div {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    overflow: hidden;
  }
  #mlist i {
    flex: none;
    width: 5px;
    height: 5px;
    border-radius: 50%;
  }
  #mlist span {
    overflow: hidden;
    text-overflow: ellipsis;
  }
  #mlist .more {
    color: #5a5955;
    padding-left: 13px;
  }
  body.menuOpen #mlist {
    visibility: hidden;
  }
  #tTags,
  .project-name {
    visibility: hidden;
  }
  /* (잔디·시계 장에서 구를 어둡게 하던 brightness(0.6) 은 뺐다 — 분야 색이 회색으로 죽는다. 구는 데스크톱과 같은 색) */
}

/* ── 시험: 첫 질문(한 줄 제목)과 모든 장의 세 문장(1장 #ovs, 2~5장 #s2~#s5, 맺음 #e3 · #e4, 카드 끝 #cEnd)의 굵기를 75 Bold → 65 Medium. 되돌리려면 이 묶음만 지우면 된다 ── */
#ovq,
#ovs i,
#s2 i,
#s3 i,
#e3 i,
#s4 i,
#e4 i,
#s5 i,
#cEnd i,
.sent i {
  font-weight: 500;
}

/* ── 세 문장(1장 #ovs · 2~5장 #s2~#s5): 읽는 속도로 차오른다 ──
   글은 회색(#5a5955)으로 한꺼번에 나타나고, 한 줄에 1.2초씩 왼쪽에서 오른쪽으로 흰색이 된다. 다 차면 1초 머문 뒤 다음 화면으로 넘어간다.
   차오르는 것이 곧 남은 시간이다(시간 값은 work_index.html 의 READ_LEAD · READ_LINE · READ_HOLD 와 한 쌍).
   민트 강조 낱말은 처음부터 민트로 또렷하게 둔다 — 나머지 글자만 차오른다.
   .read 는 저절로 넘어가는 화면에만 붙는다. 되돌아온 화면·움직임을 줄인 환경은 처음부터 전부 흰색.
   .rd = 줄 안쪽의 글(스크립트가 감싼다). 줄이 두 줄로 접혀도 읽는 순서대로 찬다 */
#ov2.on #ovs i,
#ovB .st.on .ls i {
  transition: opacity 0.5s ease 0s; /* 세 줄이 차례로 뜨지 않고 함께 나타난다(차오르는 것이 순서를 알린다) */
}
#ovB #s2.on,
#ovB #s3.on,
#ovB #s4.on,
#ovB #s5.on {
  transition: opacity 0.5s ease 0.3s; /* 제목이 물러난 자리로 0.8초 안에 들어온다 */
}
#ov2 #ovc,
#ov2.on #ovc,
#ovB .st .ls .tint,
#ovB .st.on .ls .tint {
  color: #7fd4c8;
  transition: none;
}
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .st.read .rd {
    /* 그림 폭 206%: 왼쪽 100%는 흰색, 오른쪽 100%는 회색, 그 사이 6%가 좁은 경계 */
    background: linear-gradient(90deg, #fff 48.54%, var(--unread, #363532) 51.46%) 100% 0 / 206% 100% no-repeat;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    -webkit-box-decoration-break: slice;
    box-decoration-break: slice;
    /* 색은 글자 상자 안에만 칠해진다. HN 은 상자 높이가 대문자 높이에 딱 맞춰져 있어(frame.css 의 ascent-override 71.4%)
       그대로 두면 글자 윗부분이 잘린다 — 위아래로 상자를 넓힌다(줄 간격은 바뀌지 않는다) */
    padding: 0.3em 0;
    animation: rdFill 1.2s linear calc(0.8s + var(--n, 0) * 1.2s) both;
  }
  .st.read .rd .tint,
  .st.read .rd #ovc {
    -webkit-text-fill-color: #7fd4c8;
  }
}
@keyframes rdFill {
  from {
    background-position: 100% 0;
  }
  to {
    background-position: 0 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .st.read .rd {
    animation: none;
    background: none;
    -webkit-text-fill-color: currentColor;
  }
}

/* ── 카드 화면 BY FIELD: 카드 목록 대신 분야 45개의 등고선 그림만 나온다(스스로 숨 쉬듯 움직인다. 눌리지 않는다). 그리는 법은 work_index.html 의 FP ──
   카드와 같은 격자(8 · 6 · 3 · 2칸, 좌우 30px). 그림 118px, 이름은 카드 제목 규칙(10px · 75 · 흰색), 기간·프로젝트 수는 회색.
   맨 위 한 줄은 읽는 법("기호 · 뜻"). BY FIELD 를 골랐을 때만 보인다 */
#cFields {
  display: none;
}
#cards.byField #cFields {
  display: block;
}
#cards.byField #cGrid {
  display: none; /* BY FIELD 에서는 카드 목록을 내지 않는다 */
}
#cards #cFKey {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 26px;
  padding: 26px 30px 0;
  font-size: 10px;
  font-weight: 700;
  line-height: 14px;
  letter-spacing: 0;
  color: #5a5955;
}
#cards #cFGrid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 30px 20px;
  padding: 22px 30px 90px;
}
#cards .fp {
  min-width: 0;
}
/* 그림 둘레에 연도 눈금 넷(위 98 · 오른쪽 05 · 아래 12 · 왼쪽 20): 작은 글 규칙 10px · 75 · 회색. 눈금 자리만큼 그림을 안으로 들인다 */
#cards .fp .pic {
  position: relative;
  width: 118px;
  height: 118px;
  margin: 20px 0 30px 24px;
}
#cards .fp .pic span {
  position: absolute;
  transform: translate(-50%, -50%);
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
  color: #5a5955;
  white-space: nowrap;
  pointer-events: none;
}
#cards .fp canvas {
  width: 118px !important;
  height: 118px !important;
  margin-top: 0;
  image-rendering: auto;
}
#cards .fp .ttl {
  height: auto;
  margin-top: 6px;
  text-transform: uppercase;
}
@media (max-width: 1400px) {
  #cards #cFGrid {
    grid-template-columns: repeat(6, 1fr);
  }
}
@media (max-width: 1000px) {
  #cards #cFGrid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 620px) {
  #cards #cFKey {
    padding: 20px 20px 0;
  }
  #cards #cFGrid {
    grid-template-columns: repeat(2, 1fr);
    padding: 18px 20px 90px;
  }
}

/* ── 모바일(620px 이하): 세 문장(1장 #ovs · 2~5장 #s2~#s5 · 맺음 #e3 · #e4)은 왼쪽 정렬, 18px / 32px ──
   메인 · About 모바일과 같은 규칙: 왼쪽 끝 24px, 오른쪽은 점(장 표시) 자리만큼 40px 비운다.
   첫 질문과 장 제목은 저절로 넘어가는 제목이라 가운데 그대로. 구는 화면 가운데 그대로 */
@media (max-width: 620px) {
  #ov2,
  #ovB #s2,
  #ovB #s3,
  #ovB #e3,
  #ovB #s4,
  #ovB #e4,
  #ovB #s5 {
    justify-content: flex-start;
  }
  #ovs,
  #s2 .ls,
  #s3 .ls,
  #e3 .ls,
  #s4 .ls,
  #e4 .ls,
  #s5 .ls {
    text-align: left;
    padding: 0 40px 0 24px;
    text-wrap: wrap;
  }
  #ovs i,
  #s2 i,
  #s3 i,
  #e3 i,
  #s4 i,
  #e4 i,
  #s5 i {
    font-size: 18px;
    line-height: 32px;
    white-space: normal;
  }
  /* 저절로 넘어가는 제목(크로마틱 인트로 · 첫 질문 · 장 제목 #q2~#q5): 24px / 34px · 65 · 자간 0.06em · 가운데 — 메인 시작 제목과 같은 값 */
  #intro,
  #ovq,
  #q2 p,
  #q3 p,
  #q4 p,
  #q5 p {
    font-weight: 500;
    font-size: 24px;
    line-height: 34px;
    letter-spacing: 0.06em;
    word-spacing: 0;
  }
  #intro {
    padding: 0 24px;
  }
  #q2 p,
  #q3 p,
  #q4 p,
  #q5 p {
    white-space: normal; /* 폭이 좁으면 낱말 단위로 접힌다(화면 밖으로 넘치지 않게) */
    padding: 0 24px;
    text-wrap: balance;
  }
}

/* ── 한글(html.ko — 주소의 ?lang=ko) ──
   세 문장 · 맺음 글 · 카드 설명: Pretendard Bold(frame.css 의 "Pretendard KR Bold"), 자간·낱말 간격 0, 낱말 단위로만 줄이 바뀐다.
   크기 · 행간 · 차오르는 방식은 영어와 같다(차오르는 동안과 다 찬 뒤를 같은 방식으로 그려 글자가 흔들리지 않는다) */
html.ko #ovs i.k,
html.ko #ovs i.k *,
html.ko #ovB .ls i.k,
html.ko #ovB .ls i.k *,
html.ko #cEnd i.k,
html.ko #cEnd i.k *,
html.ko #cards .desc.k {
  font-family: "Pretendard KR Bold", "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  font-weight: 700;
  letter-spacing: 0;
  word-spacing: 0;
  word-break: keep-all;
}
/* 세 문장 안의 <br class="m"> = 모바일에서만 줄을 바꾸는 자리(뜻 단위로 끊기게) */
#ovs br.m,
#ovB .ls br.m {
  display: none;
}
@media (max-width: 620px) {
  #ovs br.m,
  #ovB .ls br.m {
    display: inline;
  }
}

/* 태블릿 폭(621~900px)의 세 문장: 16px 에 행간 2.05배는 32.8px 로 줄마다 화소에 걸린다 → 32px(정수) */
@media (min-width: 621px) and (max-width: 900px) {
  #ovs i,
  #s2 i,
  #s3 i,
  #e3 i,
  #s4 i,
  #e4 i,
  #s5 i {
    line-height: 32px;
  }
}

/* ── 장 제목 아래 한글 한 줄(.kq) — 한글(html.ko)일 때만 ──
   Work Index 의 제목(CHROMATIC YEARS · 장 제목 넷)은 다음 장면을 예고하는 글이라, 한글에서는 뜻을 한 줄로 덧붙인다.
   (메인 · About · Contact 의 제목은 구호 · 이름이라 영어만 둔다.) 14px / 20px · Pretendard Bold · 흰색 · 가운데.
   제목 화면이 머무는 시간도 한글에서는 2초 → 3초(work_index.html 의 ASK_MS · AUTO_INTRO) */
.kq {
  display: none;
}
html.ko #intro .kq,
html.ko #ovB .st p .kq {
  display: block;
  margin-top: 16px;
  font-family: "Pretendard KR Bold", "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  font-weight: 700;
  font-size: 14px;
  line-height: 20px;
  letter-spacing: 0;
  word-spacing: 0;
  word-break: keep-all;
  white-space: nowrap;
  text-transform: none;
  color: #fff;
}
@media (max-width: 620px) {
  html.ko #intro .kq,
  html.ko #ovB .st p .kq {
    margin-top: 12px;
    white-space: normal;
  }
}
