/* ============================================================
   labs-steve — 한 장짜리 글의 조판과 움직임
   표본 부품의 모양은 styles.css, 글의 흐름과 장면은 여기.
   흑백. 장식용 작은 글씨를 두지 않는다 — 크기와 굵기, 여백으로 위계를 만든다.
   ============================================================ */

:root {
  --measure: 680px;      /* 읽는 글의 폭 — 한 줄에 서른몇 자 */
  --plate-measure: 1080px;
}

html { scroll-behavior: smooth; }
html.is-reduced { scroll-behavior: auto; }

/* 한글 줄바꿈
   · 본문 문단은 한 칸 안에서 이어 흐른다. 끝 줄에 어절 하나만 떨어지지 않게 한다(pretty).
   · 도입 문장·맺는 말·설명문처럼 큰 글씨는 문장마다 새 줄에서 시작한다(.s — js/scroll.js가 나눈다).
   · 제목과 큰 글씨는 줄 길이를 고르게 나눈다(balance). 본문에는 쓰지 않는다 — 줄이 짧게 끊긴다. */
p, li, figcaption { text-wrap: pretty; }
h1, h2, h3, .hero__title .line > span, .opener__sub { text-wrap: balance; }
.opener__origin {
  font: var(--type-label);
  display: block;
  margin-top: var(--s-100);
  letter-spacing: -.01em;
  color: var(--ink-2);
}
.s { display: block; text-wrap: pretty; }
/* 마디 — 쉼표·줄표 단위. 넘칠 때 마디 경계에서 먼저 꺾인다 */
.c { display: inline-block; text-wrap: pretty; }
.nb { display: inline-block; }
/* 손으로 정한 줄 — 넓은 화면에서만 그 자리에서 꺾는다 */
@media (min-width: 861px) { .ln { display: block; text-wrap: balance; } }
/* 괄호와 뒤따르는 조사처럼 떨어지면 안 되는 묶음 */
.nw { white-space: nowrap; }
/* 좁은 화면에서는 거의 모든 문장이 두 줄 이상이 된다 — 줄 길이를 고르게 나눠
   한 어절이 다음 줄로 떨어지지 않게 한다 */
@media (max-width: 860px) {
  .s, .c, .prose .lede, .pull p, .opener__sub, .bigquote__line { text-wrap: balance; }
  .prose p:not(.lede) { text-wrap: pretty; }
}
/* 넓은 화면에서는 강조 구절이 줄 끝에서 갈라지지 않게 한다 */
@media (min-width: 861px) {
  .s strong, .s em, .c strong, .c em { white-space: nowrap; }
}

/* ---------- 언어 — 두 언어가 문서에 나란히 있고, 안 쓰는 쪽은 감춘다(js/i18n.js가 걷어 낸다) ---------- */
html[lang="en"] body [lang="ko"],
html[lang="ko"] body [lang="en"] { display: none !important; }
/* 영어는 강조 구절이 길다 — 줄 끝에서 꺾이게 둔다 */
html[lang="en"] .s strong, html[lang="en"] .s em,
html[lang="en"] .c strong, html[lang="en"] .c em { white-space: normal; }
/* 표본 속 창 제목 */
html[lang="en"] .figure .desk::before { content: "File Edit View Special"; }
html[lang="en"] .figure .doc::before { content: "Product notes"; }
html[lang="en"] .figure .paper::before { content: "About the Macintosh"; }
html[lang="en"] .figure .answer::before { content: "Chat"; }

/* 전환 단추 — 오른쪽 위에 떠 있다. 검정 구간과 흰 구간 어디서나 보이도록 어두운 바탕 */
#lang {
  position: fixed;
  z-index: 50;
  top: var(--s-200);
  right: var(--gut);
  display: flex;
  gap: var(--s-25);
  padding: var(--s-50);
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 9999px;
  background: rgba(24, 24, 24, .78);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transition: transform var(--t-move) var(--ease), opacity var(--t-color) var(--ease);
}
/* 아래로 읽어 내려가는 동안에는 물러난다 — 위로 올리면 돌아온다 */
#lang.is-away { transform: translateY(-160%); opacity: 0; pointer-events: none; }
@media (max-width: 600px) { #lang { right: var(--s-200); } }
#lang button {
  font: var(--button-sm);
  min-height: 32px;
  padding: 0 var(--s-100);
  border: 0;
  border-radius: 9999px;
  background: transparent;
  color: #A1A1A6;
  cursor: pointer;
  transition: background-color var(--t-color) var(--ease), color var(--t-color) var(--ease);
}
#lang button:hover { color: #FFFFFF; }
#lang button[aria-pressed="true"] { background: #F5F5F7; color: #1D1D1F; }
#lang button:focus-visible { outline-color: #FFFFFF; }

/* 알약 버튼 */
.pill {
  font: var(--button-md);
  display: inline-flex;
  align-items: center;
  gap: var(--s-75);
  padding: var(--s-75) var(--s-100);
  border-radius: 9999px;
  text-decoration: none;
  transition: background-color var(--t-color) var(--ease), color var(--t-color) var(--ease), transform var(--t-move) var(--ease);
}
.pill--solid { background: var(--ink); color: var(--ground); }
.pill--solid:hover { transform: scale(1.03); }

/* ============================================================
   표지 — 넓은 화면은 왼쪽 제목·오른쪽 글자 초상, 좁은 화면은 위아래
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--s-900) var(--gut) 0;
  text-align: center;
}
.hero__copy { position: relative; z-index: 1; max-width: 680px; }
.hero__title {
  font: var(--type-hero);
  letter-spacing: -.035em;
  text-wrap: initial;
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: .08em; }
/* 표지 제목만 글자에 그라데이션을 쓴다. 왼쪽에서 오른쪽으로 */
.hero__title .line > span {
  display: inline-block;
  padding-block: .06em;
  background: linear-gradient(90deg, #FFFFFF, #9B9B9B);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__title em { font-style: normal; }
.hero__dek {
  font: var(--type-dek);
  margin: var(--s-400) auto 0;
  letter-spacing: -.02em;
  color: var(--ink-2);
}

.hero__portrait {
  margin: var(--sp-400-700) 0 var(--sp-500-800);
  width: min(100vw, calc(82svh * 533 / 768));        /* 좁은 화면에서도 크게 — 폭을 다 쓴다 */
  flex: none;
}
.hero__portrait canvas {
  display: block;
  width: 100%;
  aspect-ratio: 533 / 768;
  cursor: crosshair;
  touch-action: pan-y;
}

/* 넓은 화면 — 왼쪽 제목, 오른쪽 초상 */
@media (min-width: 861px) {
  .hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: var(--sp-500-900);
    min-height: 100svh;
    /* 배경은 화면 끝까지, 내용은 1320px 안에 */
    padding: var(--s-300) max(var(--gut), calc((100% - 1320px) / 2));
    text-align: left;
  }
  .hero__dek { margin: var(--s-300) 0 0; }
  /* 초상은 화면 높이를 거의 다 쓰되, 내용 폭의 46%를 넘지 않는다 */
  .hero__portrait {
    margin: 0;
    width: min(calc((100svh - 48px) * 533 / 768), calc(min(100vw - 2 * var(--gut), 1320px) * .46));
    max-width: none;
    justify-self: end;
  }
}

/* 제목이 680px까지 쓰는 가장 넓은 화면 — 초상은 남은 칸을 채운다 */
@media (min-width: 1440px) {
  .hero { grid-template-columns: 680px minmax(0, 1fr); column-gap: var(--s-600); }
  .hero__portrait { width: min(calc((100svh - 48px) * 533 / 768), 100%); }
}

/* 첫 화면 — 제목 줄이 아래에서 올라온다 */
html.js .hero__title .line > span {
  transform: translateY(108%);
  transition: transform 800ms var(--ease);
}
html.js .hero__title .line:nth-child(2) > span { transition-delay: .1s; }
html.js [data-in] {
  opacity: 0;
  transform: translateY(var(--s-200));
  transition: opacity 700ms var(--ease) .3s, transform 700ms var(--ease) .3s;
}
html.is-ready .hero__title .line > span,
html.is-ready [data-in] { transform: none; opacity: 1; }

/* ============================================================
   장면 공통 — 화면에 고정된 채 스크롤로 재생된다
   ============================================================ */
.scene { position: relative; }
.scene__pin {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}

/* ---------- 인용 ---------- */
.scene--quote { height: 240vh; background: var(--page); }
.scene--quote .scene__pin { display: flex; align-items: center; justify-content: center; text-align: center; }
.bigquote {
  font: var(--type-quote);
  max-width: 680px;
  margin: 0 auto;
  letter-spacing: -.04em;
  color: var(--ink);
}
.bigquote__line { display: block; text-wrap: balance; }
.bigquote__line + .bigquote__line { margin-top: var(--s-200); }
.bigquote .w { transition: opacity var(--t-color) var(--ease); }
.bigquote__by {
  font: var(--type-label);
  display: block;
  margin-top: var(--s-500);
  color: var(--ink-2);
}

/* ---------- 목차 ---------- */
.contents {
  padding-top: var(--s-900);
  padding-bottom: var(--s-900);
  max-width: 1080px;
}
.contents__head { text-align: center; margin: 0 auto; }
.contents__title {
  font: var(--type-section);
  margin-top: var(--s-100);
  letter-spacing: -.04em;
}
.contents__dek {
  font: var(--type-dek);
  margin: var(--s-300) auto 0;
  letter-spacing: -.02em;
  color: var(--ink-2);
}
.contents__dek + .contents__dek { margin-top: var(--s-200); }
.toc {
  margin-top: var(--sp-700-900);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-300);
}
.toc__group {
  padding: var(--sp-400-600);
  border-radius: var(--plate-radius);
  background: var(--page);
}
.toc__head {
  font: var(--title-2);
  display: flex;
  justify-content: space-between;
  gap: var(--s-100);
  margin-bottom: var(--s-200);
  color: var(--ink);
}
.toc__head b { color: var(--ink-3); font-weight: 500; }
.toc__list { margin: 0; padding: 0; list-style: none; }
.toc__item {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: var(--s-100);
  padding: var(--s-200) 0;
  border-top: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
}
.toc__item b {
  font: var(--type-toc);
  letter-spacing: -.03em;
  transition: transform var(--t-move) var(--ease);
}
.toc__item em {
  font: var(--body-3);
  font-style: normal;
  color: var(--ink-3);
}
.toc__item:hover b { transform: translateX(8px); }
@media (max-width: 860px) { .toc { grid-template-columns: 1fr; } }

/* ---------- 1부 연표 ---------- */
.scene--timeline { height: 300vh; }
.scene--timeline .scene__pin {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.tl__head {
  position: relative;
  width: 100%;
  max-width: 1280px;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--s-75) var(--s-300);
}
.part__title {
  font: var(--type-part);
  letter-spacing: -.04em;
}
.tl__year {
  font: var(--type-tl-year);
  letter-spacing: -.05em;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.tl__decades {
  font: var(--type-decade);
  position: relative;
  height: 1em;
  margin-top: var(--s-500);
  white-space: nowrap;
  letter-spacing: -.05em;
  color: var(--surface);
  pointer-events: none;
}
.tl__decades span { position: absolute; left: 0; top: 0; will-change: transform; }
.tl__track {
  display: flex;
  margin: var(--s-200) 0 0;
  padding: 0 var(--gut);
  list-style: none;
  width: max-content;
  will-change: transform;
}
.tl__item {
  position: relative;
  width: clamp(230px, 22vw, 300px);
  padding: var(--s-300) var(--s-400) 0 var(--s-300);
  border-left: 1px solid var(--line-2);
  display: flex;
  flex-direction: column;
  gap: var(--s-75);
}
.tl__y {
  font: var(--type-tl-y);
  letter-spacing: -.04em;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}
.tl__n { font: var(--heading-6); letter-spacing: -.02em; }
.tl__d { font: var(--body-3); color: var(--ink-2); }
.tl__tag {
  font: var(--body-4);
  align-self: flex-start;
  margin-top: var(--s-100);
  padding: var(--s-50) var(--s-200);
  border-radius: 9999px;
  background: var(--ink);
  color: var(--ground);
}
.tl__item.is-featured .tl__y { color: var(--ink); }
.tl__item.is-featured { border-left-color: var(--ink); }
.tl__axis {
  margin: var(--s-500) var(--gut) 0;
  height: 2px;
  background: var(--line);
}
.tl__axis i {
  display: block;
  height: 2px;
  background: var(--ink);
  transform-origin: left;
  transform: scaleX(0);
}

/* ---------- 2부 전환 — 흰 화면에 큰 숫자 ---------- */
.scene--part2 { height: 260vh; }
.scene--part2 .scene__pin {
  display: flex;
  align-items: center;
  background: var(--page);
}
.p2 { width: 100%; max-width: 1280px; text-align: center; }
.p2__count {
  font: var(--type-count);
  margin-top: var(--s-75);
  letter-spacing: -.06em;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.p2__title { margin-top: var(--s-200); }
.p2__dek {
  font: var(--type-dek);
  margin: var(--s-300) auto 0;
  letter-spacing: -.02em;
  color: var(--ink-2);
}
.p2__line {
  display: block;
  width: 100%;
  height: 40px;
  margin-top: var(--s-600);
  overflow: visible;
}
.p2__solid { fill: none; stroke: var(--ink); stroke-width: 3; vector-effect: non-scaling-stroke; clip-path: inset(0 100% 0 0); }
.p2__dash {
  fill: none;
  stroke: var(--ink-3);
  stroke-width: 3;
  stroke-dasharray: 10 12;
  vector-effect: non-scaling-stroke;
  clip-path: inset(0 100% 0 0);
}
.p2__dot { fill: var(--ink); opacity: 0; }
.p2__ends {
  font: var(--body-2);
  display: flex;
  justify-content: space-between;
  margin-top: var(--s-200);
  color: var(--ink-2);
}

/* ============================================================
   표본 한 장 = 여는 장면(검정) + 본문(흰) + 만지는 표본 + 맺는 말
   ============================================================ */
.opener { position: relative; height: 190vh; }   /* 고정된 채 화면 한 장 가까이 재생된다 */
.opener__pin {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  justify-items: center;
  padding: var(--sp-800-900) var(--gut) var(--sp-300-600);
  text-align: center;
}
.opener__head { position: relative; z-index: 1; }
.opener__title {
  font: var(--type-opener);
  margin-top: var(--s-75);
  letter-spacing: -.045em;
}
.opener__sub {
  font: var(--type-sub);
  margin-top: var(--s-100);
  letter-spacing: -.025em;
  color: var(--ink-2);
}
.opener__art {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1040px;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-100-400) 0;
}
.art {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 100%;
  overflow: visible;
}
.opener__meter {
  font: var(--body-3);
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--s-75) var(--s-400);
  color: var(--ink-3);
  min-height: 1.6em;
}
.opener__meter b { color: var(--ink); font-weight: 600; }

/* 개념 그림은 크게 — 제목이 위로 물러나면서 그림이 화면 전체로 커진다.
   --p는 장면 진행도(0–1), --e는 앞 22% 구간을 0→1로 편 값 */
.opener__pin { --e: clamp(0, calc(var(--p, 0) / .22), 1); }
.opener__head {
  transform: translateY(calc(var(--e) * -42px));
  opacity: calc(1 - var(--e) * 1.15);
}
.opener__art {
  position: absolute;
  inset: var(--sp-500-700) var(--gut) var(--sp-700-900);
  width: auto;
  max-width: none;
  padding: 0;
  transform: translateY(calc((1 - var(--e)) * 22vh)) scale(calc(.72 + var(--e) * .28));
  transform-origin: 50% 50%;
  will-change: transform;
}
.opener__meter { position: relative; z-index: 1; grid-row: 3; }
html.is-reduced .opener__head { transform: none; opacity: 1; }
html.is-reduced .opener__art { position: relative; inset: auto; transform: none; width: 100%; height: 70vh; }

@media (max-width: 860px) {
  .opener { height: 180vh; }
  .opener__pin { padding-top: var(--s-800); }
  /* 세로 화면용 도면(js/scroll.js)이 폭을 다 쓰도록 — 위아래 여백도 줄인다 */
  .opener__art { inset: var(--s-700) var(--s-100) var(--s-800); }
}

/* ---------- 본문 ---------- */
.article {
  position: relative;
  background: var(--page);
  padding: var(--sp-800-900) var(--gut) var(--s-900);
}
.prose { max-width: var(--measure); margin: 0 auto; }
/* 읽는 글은 검정. 회색은 눈썹 글씨·계측 같은 보조 정보에만 쓴다 —
   이 글에서 흐린 글자는 "확신이 낮다"는 뜻(FIG.09)이라 본문을 흐리게 두지 않는다 */
.prose p {
  font: var(--body-7);
  letter-spacing: -.01em;
  color: var(--ink);
}
.prose p + p { margin-top: var(--s-300); }
.prose strong { color: var(--ink); font-weight: 600; }
/* 도입 문단 — 가는 글씨에 핵심만 굵게 */
.prose .lede {
  font: var(--type-lede);
  font-weight: 400;
  letter-spacing: -.03em;
  color: var(--ink);
}
.prose .lede strong { color: var(--ink); font-weight: 600; }
/* 2부 — 이 표본이 1부의 어느 원칙을 잇는지 */
.prose .lineage {
  font: var(--type-label);
  margin-bottom: var(--s-300);
  color: var(--ink-2);
}
.prose .lineage a { color: var(--ink); font-weight: 600; }

/* ---------- 만지는 표본 ---------- */
.figure {
  max-width: var(--plate-measure);
  margin: var(--sp-700-900) auto;
}
.figure .plate { margin: 0; }
/* 모든 표본판 공통 — 읽는 그림이 아니라 만지는 판이라는 표시 */
.plate__try {
  font: var(--button-sm);
  display: inline-flex;
  align-items: center;
  gap: var(--s-75);
  height: 34px;
  padding: 0 var(--s-200) 0 var(--s-100);
  border-radius: 9999px;
  background: var(--ink);
  color: var(--page);
  letter-spacing: -.01em;
  white-space: nowrap;
}
.plate__try i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
/* ---------- FIG.01 — 오리지널 iPod(2001) 모양과 배치 ----------
   본체 61.8 × 102mm 비율, 위에 흑백 LCD, 아래에 휠과 테두리의 네 버튼.
   제품이라 화면 테마와 무관하게 흰 앞판과 회색 LCD를 쓴다. */
.figure .wheelrig {
  --lcd: #CDCFC9;
  --lcd-ink: #1D1D1F;
  flex-direction: column;
  flex-wrap: nowrap;
  justify-content: space-between;
  gap: 0;
  width: min(320px, 100%);
  aspect-ratio: 61.8 / 102;
  padding: 28px 0 34px;
  border-radius: 34px;
  background: linear-gradient(180deg, #FFFFFF 0%, #F7F7F8 55%, #ECECEF 100%);
  border: 1px solid rgba(0, 0, 0, .10);
  box-shadow:
    inset 0 0 0 3px #FFFFFF,
    inset 0 0 0 4px rgba(0, 0, 0, .06),
    0 1px 2px rgba(0, 0, 0, .08),
    0 30px 60px -28px rgba(0, 0, 0, .45);
}
/* LCD — 검은 테 안의 5:4 화면, 선택 줄은 반전 */
.figure .wheelrig .screen {
  order: -1;                       /* 마크업은 휠이 먼저, 제품은 화면이 위 */
  flex: none;
  width: 78%;
  max-width: none;
  border: 7px solid #2A2A2C;
  border-radius: 6px;
  background: var(--lcd);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .12);
}
.figure .wheelrig .screen__head {
  padding: 5px 9px;
  background: var(--lcd);
  border-bottom: 1px solid rgba(29, 29, 31, .55);
  color: var(--lcd-ink);
  font-size: 12px;
  font-weight: 600;
}
.figure .wheelrig .screen__view { height: calc(var(--row-h) * 5); }
.figure .wheelrig .screen__band { top: calc(var(--row-h) * 2); opacity: 1; background: var(--lcd-ink); border: 0; }
.figure .wheelrig .screen__list { padding-top: calc(var(--row-h) * 2); position: relative; }
.figure .wheelrig .row { padding: 0 9px; color: var(--lcd-ink); font-size: 14px; }
.figure .wheelrig .row__a { color: rgba(29, 29, 31, .7); font-size: 12px; }
.figure .wheelrig .row.is-sel,
.figure .wheelrig .row.is-sel .row__a { color: var(--lcd); }
.figure .wheelrig .row.is-sel .eq i { background: var(--lcd); }
/* 휠 — 흰 앞판 위의 회색 링 */
.figure .wheelrig .ipod {
  width: 70%;
  height: auto;
  aspect-ratio: 1;
  background: radial-gradient(circle at 50% 30%, #F4F4F6, #E3E3E7 75%);
  border: 1px solid rgba(0, 0, 0, .14);
  box-shadow: inset 0 1px 0 #FFFFFF, inset 0 -2px 6px rgba(0, 0, 0, .06);
}
.figure .wheelrig .ipod__label { color: #6E6E73; font-size: 10px; }
.figure .wheelrig .ipod__center { background: #FFFFFF; color: #6E6E73; border-color: rgba(0, 0, 0, .12); }
.figure .wheelrig .ipod__center.is-playing { background: #1D1D1F; color: #FFFFFF; border-color: #1D1D1F; }
.figure .wheelrig .ipod__needle i { background: #1D1D1F; }

/* ---------- FIG.03 — 1984년 책상처럼: 메뉴 막대, 점무늬 바탕, 오른쪽에 폴더와 휴지통 ---------- */
.figure .desk {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 132px;
  gap: 0;
  max-width: 680px;
  padding: 0;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  overflow: hidden;
  background-color: var(--surface);
  background-image: radial-gradient(var(--line) 1px, transparent 1.2px);
  background-size: 8px 8px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 26px 50px -30px rgba(0, 0, 0, .35);
}
.figure .desk::before {
  content: "파일 편집 보기 특수";
  word-spacing: 1.4em;
  grid-column: 1 / -1;
  height: 34px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line-2);
  background: var(--surface);
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
}
.figure .desk__loose {
  gap: 18px 10px;
  min-height: 300px;
  padding: 26px 22px;
}
/* 아이콘 — 카드가 아니라 그림과 이름표. 집으면 이름표가 반전된다 */
.figure .icon {
  width: 92px;
  padding: 6px 4px;
  border: 0;
  background: transparent;
  box-shadow: none;
  gap: 8px;
}
.figure .icon:hover { border: 0; }
.figure .icon__glyph svg { width: 40px; height: 40px; }
.figure .icon__glyph { color: var(--ink); }
.figure .icon__name {
  padding: 2px 7px;
  border-radius: 5px;
  background: var(--surface);
  color: var(--ink);
  font-size: 12px;
}
.figure .icon:hover .icon__name,
.figure .icon:focus-visible .icon__name,
.figure .icon.is-lifted .icon__name { background: var(--ink); color: var(--surface); }
.figure .icon.is-lifted { box-shadow: none; filter: drop-shadow(0 12px 18px rgba(0, 0, 0, .22)); }
/* 폴더와 휴지통 — 책상 오른쪽 세로 줄, 휴지통은 맨 아래 */
.figure .desk__targets {
  grid-template-columns: 1fr;
  grid-template-rows: auto 1fr auto;
  gap: 0;
  padding: 22px 14px;
  border-top: 0;
  border-left: 1px solid var(--line);
}
.figure .drop--bin { grid-row: 3; }
.figure .drop {
  gap: 6px;
  padding: 14px 8px;
  border: 0;
  border-radius: 12px;
}
.figure .drop__glyph { color: var(--ink); }
.figure .drop__glyph svg { width: 44px; height: 44px; }
.figure .drop__name {
  padding: 2px 7px;
  border-radius: 5px;
  background: var(--surface);
  color: var(--ink);
  font-size: 12px;
}
.figure .drop__num {
  min-width: 24px;
  padding: 1px 7px;
  border-radius: 980px;
  background: var(--ground-2);
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  text-align: center;
}
.figure .drop.is-over { background: var(--accent-wash); border: 0; }
.figure .drop.is-over .drop__name { background: var(--ink); color: var(--surface); }
.figure .drop--bin.is-over .drop__glyph { color: var(--ink); }
/* 안 쳐도 되는 문장 — 책상 폭에 맞춘 한 줄 */
.figure .deadbox {
  margin-top: var(--s-200);
  padding: var(--s-100) var(--s-200);
  border: 0;
  border-radius: 12px;
  background: var(--ground-2);
  align-items: center;
}
.figure .deadbox--wide { max-width: 680px; }
.figure .deadbox__tag { margin-top: 0; border-radius: 9999px; padding: var(--s-25) var(--s-75); }
@media (max-width: 560px) {
  .figure .desk { grid-template-columns: 1fr; }
  .figure .desk__loose { min-height: 220px; padding: 20px 14px; }
  .figure .icon { width: 30%; }
  .figure .desk__targets { grid-template-columns: 1fr 1fr; grid-template-rows: auto; border-left: 0; border-top: 1px solid var(--line); padding: 12px; }
  .figure .drop--bin { grid-row: auto; }
}

/* ---------- FIG.06 — Xerox Star(1981)의 문서 창: 제목 막대, 흰 종이, 고르면 네 모서리 손잡이 ---------- */
.figure .doc {
  position: relative;
  max-width: 680px;
  padding: 0 0 28px;
  gap: 22px;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 26px 50px -30px rgba(0, 0, 0, .35);
}
.figure .doc::before {
  content: "제품 노트";
  height: 36px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--line-2);
  border-radius: 14px 14px 0 0;
  background: var(--ground-2);
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
}
.figure .doc .obj { margin: 0 28px; padding: 8px; border: 1.5px solid transparent; border-radius: 4px; }
.figure .doc .obj:hover { border-color: var(--line-2); }
.figure .doc .obj.is-sel { border-color: var(--ink); }
/* 첫 대상(사진) 위에도 동사 띠가 들어갈 자리 — 창 제목을 가리지 않는다 */
.figure .doc .obj:first-of-type { margin-top: 36px; }
.figure .doc .obj.is-sel::after {
  content: "";
  position: absolute;
  inset: -5px;
  pointer-events: none;
  background:
    linear-gradient(var(--ink), var(--ink)) left top / 8px 8px no-repeat,
    linear-gradient(var(--ink), var(--ink)) right top / 8px 8px no-repeat,
    linear-gradient(var(--ink), var(--ink)) left bottom / 8px 8px no-repeat,
    linear-gradient(var(--ink), var(--ink)) right bottom / 8px 8px no-repeat;
}
.figure .doc .photo { border-radius: 2px; }
.figure .doc .para { font-size: 16px; color: var(--ink-2); }
/* 고른 대상이 할 수 있는 일 — 진한 띠 위의 동사들 */
.figure .obj__verbs {
  left: -2px;
  bottom: calc(100% + 12px);
  gap: 2px;
  padding: 5px;
  border: 0;
  border-radius: 12px;
  background: var(--ink);
  box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .45);
}
.figure .verb {
  font: var(--body-4);
  padding: var(--s-75) var(--s-100);
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--surface);
  letter-spacing: -.01em;
  opacity: .78;
}
.figure .verb:hover { opacity: 1; background: rgba(127, 127, 127, .22); color: var(--surface); }
.figure .verb.is-on { opacity: 1; background: var(--surface); color: var(--ink); }

/* ---------- FIG.04 — 2007년 iPhone: 검은 앞판, 은색 테, 위 스피커·아래 홈 버튼 ----------
   본체 61 × 115mm 비율, 화면 2:3. 화면 위는 시계 띠, 바닥은 밀어서 잠금 해제 띠. */
.figure .lockrig { max-width: 420px; align-items: center; }
.phone {
  position: relative;
  width: min(300px, 100%);
  aspect-ratio: 61 / 115;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 0;
  container-type: inline-size;     /* 안쪽 치수는 전화기 폭(cqi) 기준 — %는 바깥 판 폭을 따라간다 */
  border-radius: 46px;
  background: linear-gradient(180deg, #1C1C1E 0%, #0A0A0B 100%);
  box-shadow:
    0 0 0 3px #C7C7CC,
    0 0 0 4px #8E8E93,
    inset 0 1px 0 rgba(255, 255, 255, .14),
    0 34px 60px -30px rgba(0, 0, 0, .55);
}
.phone__speaker {
  flex: none;
  width: 22cqi;
  height: 6px;
  margin-top: 13cqi;
  border-radius: 3px;
  background: #2C2C2E;
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, .8);
}
.phone__home {
  flex: none;
  width: 17cqi;
  aspect-ratio: 1;
  margin-bottom: 7cqi;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 35%, #1F1F21, #0B0B0C 70%);
  box-shadow: 0 0 0 1px #3A3A3C, inset 0 1px 2px rgba(0, 0, 0, .9);
}
.phone__home::after {
  content: "";
  display: block;
  width: 36%;
  aspect-ratio: 1;
  margin: 32% auto 0;
  border: 1.5px solid #5A5A5E;
  border-radius: 4px;
}
/* 화면 — 시계 띠와 잠금 띠 사이에 흑백 벽지 */
.figure .lockface {
  flex: none;
  width: 86cqi;
  max-width: none;
  min-height: 0;
  aspect-ratio: 2 / 3;
  padding: 0;
  gap: 0;
  justify-content: space-between;
  border: 0;
  border-radius: 2px;
  overflow: hidden;
  background: radial-gradient(120% 70% at 50% 45%, #48484A 0%, #1C1C1E 60%, #000 100%);
}
.lockface__top,
.lockface__bottom { width: 100%; display: flex; flex-direction: column; align-items: center; }
.lockface__top {
  padding: 14px 0 12px;
  background: linear-gradient(180deg, rgba(0, 0, 0, .78), rgba(0, 0, 0, .55));
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.figure .lockface__clock { color: #FFFFFF; font-size: 48px; font-weight: 200; }
.figure .lockface__date { margin-top: 4px; color: rgba(255, 255, 255, .8); font-size: 12px; }
.lockface__bottom {
  padding: 16px 14px;
  background: linear-gradient(180deg, rgba(0, 0, 0, .55), rgba(0, 0, 0, .85));
  border-top: 1px solid rgba(255, 255, 255, .12);
}
/* 잠금 띠 — 어두운 홈 안에서 회색 손잡이를 민다. 글자 위로 빛이 지나간다 */
.figure .lock {
  margin-top: 0;
  height: 52px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 12px;
  background: linear-gradient(180deg, #111112, #232325);
}
.figure .lock__hint {
  padding-left: 58px;
  font-size: 16px;
  background-image: linear-gradient(100deg, #6E6E73 30%, #FFFFFF 42%, #6E6E73 54%);
}
.figure .lock__knob {
  width: 58px;
  height: 44px;
  border-radius: 9px;
  border: 0;
  background: linear-gradient(180deg, #F5F5F7, #C7C7CC);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .6);
  color: #48484A;
}
.figure .lock.is-open .lock__knob { background: #FFFFFF; color: #1D1D1F; }
.figure .lock__fill { background: rgba(255, 255, 255, .08); }
/* 잠금 해제 — 시계 띠는 위로, 잠금 띠는 아래로 빠지고 홈 화면이 떠오른다 */
.figure .lockface { position: relative; }
.lockface__top,
.lockface__bottom { position: relative; z-index: 2; transition: transform .5s var(--ease); }
.lockface:has(.lock.is-open) .lockface__top { transform: translateY(-101%); }
.lockface:has(.lock.is-open) .lockface__bottom { transform: translateY(101%); }
.homescreen {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  background: radial-gradient(120% 80% at 50% 30%, #3A3A3C 0%, #161617 70%, #000 100%);
  opacity: 0;
  transform: scale(1.08);
  pointer-events: none;
  transition: opacity .45s var(--ease), transform .6s var(--ease);
}
.lockface:has(.lock.is-open) .homescreen { opacity: 1; transform: none; transition-delay: .18s; }
.homescreen__bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 18px;
  padding: 0 7px;
  background: rgba(0, 0, 0, .6);
  color: #FFFFFF;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: -.02em;
}
.homescreen__bar span:first-child { font-size: 6px; letter-spacing: 1px; }
.homescreen__batt {
  width: 20px;
  height: 9px;
  border: 1px solid #FFFFFF;
  border-radius: 2px;
  background: linear-gradient(90deg, #FFFFFF 80%, transparent 80%) 1px 1px / calc(100% - 2px) calc(100% - 2px) no-repeat;
}
.homescreen__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px 0;
  padding: 14px 6px 0;
}
.homescreen__dock {
  margin-top: auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 10px 6px 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .04));
  border-top: 1px solid rgba(255, 255, 255, .2);
}
.app {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: #FFFFFF;
  font-size: 9.5px;
  letter-spacing: -.02em;
}
.app i {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(180deg, #F5F5F7 0%, #AEAEB2 100%);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .8);
  color: #1D1D1F;
}
.homescreen__dock .app i { background: linear-gradient(180deg, #E5E5EA 0%, #8E8E93 100%); }
.app svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
button.phone__home { padding: 0; border: 0; cursor: pointer; }
button.phone__home:active { box-shadow: 0 0 0 1px #5A5A5E, inset 0 2px 4px rgba(0, 0, 0, .95); }
html.is-reduced .homescreen,
html.is-reduced .lockface__top,
html.is-reduced .lockface__bottom { transition: none 300ms var(--ease); }

/* 상태 문장 — 다른 표본의 설명 띠와 같은 모양 */
.figure .lockstate {
  width: 100%;
  margin-top: var(--s-100);
  border: 0;
  border-radius: 12px;
  background: var(--ground-2);
  padding: var(--s-100) var(--s-200);
}

/* ============================================================
   표본판 공용 — 견고하게: 같은 계기판, 같은 명령줄, 같은 창, 같은 전화기
   ============================================================ */

/* 계기판 — 칸마다 이름과 값, 칸 사이는 가는 선 */
.figure .readout,
.figure .kbdswap {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
  margin-top: 28px;
  padding: 0;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 1px 0 var(--line), 0 10px 24px -18px rgba(0, 0, 0, .35);
  overflow: hidden;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink-3);
}
.figure .readout > span,
.figure .kbdswap > span {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 12px 22px;
  box-shadow: -1px -1px 0 var(--line);   /* 칸 사이 선 — 바깥쪽은 상자가 잘라 낸다. 줄이 접혀도 그대로 */
  white-space: nowrap;
}
@media (max-width: 560px) {
  .figure .readout { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .figure .readout > span:last-child:nth-child(odd) { grid-column: 1 / -1; }   /* 홀수 칸이면 마지막 칸을 한 줄로 */
  .figure .readout > span { justify-content: center; padding: var(--s-100) var(--s-100); }
}
.figure .readout b,
.figure .kbdswap b {
  color: var(--ink);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}
.figure .kbdswap { align-self: center; }

/* 명령줄 — "안 쳐도 되는 말"은 검은 단말 위에 그어진 글자로 */
.figure .deadbox {
  margin-top: var(--s-200);
  padding: var(--s-200) var(--s-200);
  border: 1px solid #000;
  border-radius: 12px;
  background: #181818;
  color: #8E8E93;
  align-items: center;
}
.figure .deadbox__tag {
  font: var(--caption-3);
  margin-top: 0;
  padding: var(--s-50) var(--s-100);
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 9999px;
  color: #C7C7CC;
}
.figure .deadbox__txt {
  font: var(--body-6);
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  color: #8E8E93;
  text-decoration-color: rgba(255, 255, 255, .45);
}
.figure .deadbox__txt::before { content: "› "; color: #FFFFFF; text-decoration: none; display: inline-block; margin-right: var(--s-50); }
.figure .handleblock .deadbox { max-width: none; }

/* 창 — 제목 막대, 흰 본문, 겹 그림자. FIG.07·08·09 */
.figure .paper,
.figure .ghostwrap,
.figure .answer {
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 26px 50px -30px rgba(0, 0, 0, .35);
}
.figure .paper::before,
.figure .answer::before,
.figure .ghostwrap__head {
  font: var(--caption-3);
  display: flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  padding: 0 var(--s-200);
  border-bottom: 1px solid var(--line-2);
  border-radius: 12px 12px 0 0;
  background: var(--ground-2);
  color: var(--ink);
}
/* FIG.07 — 설명 한 장, 모서리 손잡이로 늘이고 줄인다 */
.figure .handleblock { max-width: 560px; margin-bottom: 0; }
.figure .paper { padding: 0 0 var(--s-600); }
.figure .paper::before { content: "매킨토시 설명"; margin-bottom: var(--s-300); }
.figure .paper__text { font: var(--body-3); padding: 0 var(--s-300);}
.figure .handle {
  right: 10px;
  bottom: 10px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: var(--ink);
  color: var(--surface);
  box-shadow: 0 8px 18px -8px rgba(0, 0, 0, .5);
}
.figure .handle:hover,
.figure .handle.is-drag { background: var(--ink); color: var(--surface); transform: scale(1.06); }
.figure .ladder { margin-top: var(--s-200); gap: var(--s-75); }
.figure .ladder i { width: 36px; height: 4px; }
.figure .ladder i.is-on { background: var(--ink); height: 4px; }
/* FIG.08 — 보고서 초안 창 */
.figure .ghostwrap { max-width: 600px; overflow: visible; }
.figure .ghostwrap__head { justify-content: space-between; color: var(--ink-3); font-weight: 500; }
.figure .ghostwrap__head > span:first-child { color: var(--ink); font-weight: 600; }
.figure .ghostwrap__head b { color: var(--ink); }
.figure .ghostdoc { font: var(--body-3); min-height: 240px; padding: var(--s-300) var(--s-400);}
/* FIG.09 — 대화 창 */
.figure .answer { max-width: 600px; padding: 0 0 var(--s-300); gap: var(--s-200); }
.figure .answer::before { content: "대화"; margin-bottom: var(--s-75); }
.figure .answer .chatline { margin: 0 var(--s-300); }
.figure .answer .chatline--me { background: var(--ink); color: var(--surface); }
.figure .answer .chatline--ai { background: var(--ground-2); border: 0; }
.figure .answer__why {
  max-width: 600px;
  margin-top: var(--s-200);
  border: 0;
  border-radius: 12px;
  background: var(--ground-2);
}

/* ---------- 전화기 공용 화면 (FIG.02 · FIG.05) ---------- */
.phone__screen {
  flex: none;
  width: 86cqi;
  aspect-ratio: 2 / 3;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 2px;
  background: var(--surface);
}
.phone__status {
  flex: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 18px;
  padding: 0 7px;
  background: #000;
  color: #FFFFFF;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: -.02em;
}
.phone__status span:first-child { font-size: 6px; letter-spacing: 1px; }
/* 2007년 iPhone의 제목 막대 — 위가 밝은 금속 띠 */
.phone__nav,
.figure .abpair--phones .scroller__head {
  flex: none;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 12px;
  border-bottom: 1px solid #2C2C2E;
  background: linear-gradient(180deg, #8E8E93 0%, #636366 50%, #48484A 51%, #3A3A3C 100%);
  color: #FFFFFF;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
  text-shadow: 0 -1px 0 rgba(0, 0, 0, .5);
}

/* FIG.02 — 두 대가 나란히, 휴대폰 화면에서는 위아래 */
.figure .abpair--phones {
  display: flex;
  justify-content: center;
  gap: clamp(28px, 5vw, 72px);
  flex-wrap: wrap;
}
.figure .abpair--phones .scroller {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  border: 0;
  border-radius: 0;
  background: var(--surface);
}
.figure .abpair--phones .scroller__head > span {
  padding: 1px 7px;
  border-radius: 5px;
  background: rgba(255, 255, 255, .2);
  font-size: 12px;
}
.figure .abpair--phones .scroller__head b { color: #FFFFFF; }
.figure .abpair--phones .scroller__view { flex: 1; height: auto; min-height: 0; }
.figure .abpair--phones .item { height: 48px; padding: 0 12px; }
/* 좁은 화면 — 위아래로 쌓으면 같은 세기로 견줄 수 없다. 작게라도 나란히 둔다 */
@media (max-width: 560px) {
  .figure .abpair--phones { flex-wrap: nowrap; gap: var(--s-100); width: 100%; }
  .figure .abpair--phones .phone { flex: 1 1 0; width: auto; min-width: 0; border-radius: 26px; }
  .figure .abpair--phones .phone--pda { border-radius: 12px 12px 16px 16px; }
  .figure .abpair--phones .item,
  .figure .abpair--phones .phone--pda .item { height: 40px; padding: 0 var(--s-75); gap: var(--s-75); }
  .figure .abpair--phones .item__d { display: none; }      /* 연도와 이름만 — 설명 줄은 넓은 화면에서 */
  .figure .abpair--phones .scroller__head { height: 32px; padding: 0 var(--s-75); gap: var(--s-50); font-size: 12px; }
  .figure .abpair--phones .phone--pda .scroller__head { height: 24px; }
}

/* FIG.02 A — 2006년 무렵의 스타일러스 스마트폰. 상표 없는 일반형.
   iPhone과 갈리는 곳: 각진 회색 본체, 작은 4:3 화면, 창 제목·스크롤 막대·소프트키, 방향키와 통화 단추. */
.phone--pda {
  aspect-ratio: 61 / 115;
  justify-content: flex-start;
  border-radius: 20px 20px 26px 26px;
  background: linear-gradient(180deg, #4A4D52 0%, #34363A 46%, #26282B 100%);
  box-shadow:
    0 0 0 2px #1A1B1D,
    inset 0 0 0 1px rgba(255, 255, 255, .10),
    inset 0 2px 0 rgba(255, 255, 255, .16),
    0 34px 60px -30px rgba(0, 0, 0, .55);
}
.pda__stylus {
  position: absolute;
  top: -13px;
  right: 11%;
  width: 7px;
  height: 14px;
  border-radius: 3px 3px 1px 1px;
  background: linear-gradient(90deg, #8E9096, #E4E5E8 45%, #9A9CA2);
}
.pda__top {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  height: 13cqi;
}
.pda__led { width: 5px; height: 5px; border-radius: 50%; background: #5FB65A; box-shadow: 0 0 4px rgba(95, 182, 90, .7); }
.pda__grille {
  width: 26cqi;
  height: 7px;
  border-radius: 2px;
  background: repeating-linear-gradient(90deg, #17181A 0 2px, #3E4045 2px 4px);
}
.pda__cam { width: 7px; height: 7px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #4B5B7A, #0C0D10 65%); }

.pda__screen {
  width: 82cqi;
  aspect-ratio: 3 / 4;
  border-radius: 0;
  box-shadow: 0 0 0 4px #111214, 0 0 0 5px #55585E;   /* 화면을 두른 검은 테 */
}
.pda__status {
  flex: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 18px;
  padding: 0 6px;
  background: linear-gradient(180deg, #3D5F95, #1F3A66);
  color: #FFFFFF;
  font-size: 10px;
  font-weight: 600;
}
.pda__sig { display: flex; align-items: flex-end; gap: 1px; height: 9px; }
.pda__sig i { width: 2px; background: #FFFFFF; }
.pda__sig i:nth-child(1) { height: 3px; }
.pda__sig i:nth-child(2) { height: 5px; }
.pda__sig i:nth-child(3) { height: 7px; }
.pda__sig i:nth-child(4) { height: 9px; }
/* 창 제목 — 밝은 회색 띠, 왼쪽 정렬 */
.figure .abpair--phones .phone--pda .scroller__head {
  height: 24px;
  justify-content: flex-start;
  gap: 6px;
  padding: 0 7px;
  border-bottom: 1px solid #8A8C90;
  background: linear-gradient(180deg, #F4F4F5, #D6D7DA);
  color: #1A1A1A;
  font-size: 12px;
  text-shadow: none;
}
.figure .abpair--phones .phone--pda .scroller__head > span {
  padding: 0 4px;
  border: 1px solid #6E7075;
  border-radius: 0;
  background: #FFFFFF;
  color: #1A1A1A;
  font-size: .625rem;
}
.figure .abpair--phones .phone--pda .scroller__head b { color: #1A1A1A; font-weight: 600; }
.pda__body { flex: 1; min-height: 0; display: flex; }
.pda__body .scroller__view { flex: 1; }
.figure .abpair--phones .phone--pda .item { height: 40px; padding: 0 8px; gap: 8px; font-size: 12px; }
.figure .abpair--phones .phone--pda .item__y,
.figure .abpair--phones .phone--pda .item__d { font-size: .6875rem; }
/* 스크롤 막대 — 화살표 둘과 길이가 변하는 손잡이 */
.pda__sbar {
  flex: none;
  width: 11px;
  display: flex;
  flex-direction: column;
  border-left: 1px solid #A4A6AA;
  background: #E6E7E9;
}
.pda__arrow {
  flex: none;
  height: 11px;
  display: grid;
  place-items: center;
  border-bottom: 1px solid #A4A6AA;
  background: linear-gradient(180deg, #FAFAFB, #D2D3D6);
  color: #4A4C50;
  font-size: 5px;
  line-height: 1;
}
.pda__arrow:last-child { border-top: 1px solid #A4A6AA; border-bottom: 0; }
.pda__track { position: relative; flex: 1; }
.pda__thumb {
  position: absolute;
  left: 1px;
  right: 1px;
  top: 0;
  min-height: 12px;
  border: 1px solid #6E7075;
  background: linear-gradient(90deg, #C8CACE, #F2F2F4 50%, #C2C4C8);
}
.pda__soft {
  flex: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 22px;
  padding: 0 10px;
  border-top: 1px solid #0E1A2E;
  background: linear-gradient(180deg, #2B4A7C, #172C50);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 600;
}
/* 아래 단추 — 소프트키 둘, 통화·종료, 가운데 방향키 */
.pda__keys {
  flex: 1;
  width: 86cqi;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.pda__col { display: flex; flex-direction: column; gap: 4cqi; }
.pda__key {
  display: block;
  width: 17cqi;
  height: 7cqi;
  border-radius: 3cqi;
  background: linear-gradient(180deg, #5A5D63, #3A3C40);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .14) inset, 0 2px 3px rgba(0, 0, 0, .5);
}
.pda__key--call { background: linear-gradient(180deg, #4E8F4A, #2F5E2C); }
.pda__key--end  { background: linear-gradient(180deg, #A14A44, #6A2A26); }
.pda__dpad {
  width: 30cqi;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle, transparent 54%, rgba(0, 0, 0, .35) 55%, transparent 57%),
    linear-gradient(180deg, #6A6D73, #3C3E43);
  box-shadow: 0 0 0 1px #1A1B1D, inset 0 1px 0 rgba(255, 255, 255, .2), 0 3px 5px rgba(0, 0, 0, .5);
}
.pda__dpad i {
  display: block;
  width: 38%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: linear-gradient(180deg, #8A8D93, #55585E);
  box-shadow: 0 0 0 1px #2A2B2E, inset 0 1px 0 rgba(255, 255, 255, .3);
}

/* FIG.05 — 줄무늬 바탕 위의 입력 묶음과 회색 자판 */
.figure .formrig { max-width: 420px; align-items: center; }
.phone--form { width: min(340px, 100%); }
.phone--form .phone__screen {
  background: repeating-linear-gradient(90deg, #D1D1D6 0 4px, #DCDCE0 4px 8px);
}
.figure .phone--form .fields {
  gap: 0;
  margin: 12px 10px 0;
  border: 1px solid #AEAEB2;
  border-radius: 9px;
  overflow: hidden;
  background: #FFFFFF;
}
.figure .phone--form .field {
  grid-template-columns: 3.4em 1fr;
  gap: 8px;
  padding: 10px 12px;
  border: 0;
  border-top: 1px solid #D1D1D6;
  border-radius: 0;
  background: #FFFFFF;
}
.figure .phone--form .field:first-child { border-top: 0; }
.figure .phone--form .field.is-active { background: #F2F2F7; }
.figure .phone--form .field__label { color: #6E6E73; font-size: 12px; }
.figure .phone--form .field.is-active .field__label { color: #1D1D1F; }
.figure .phone--form .field__value { font-size: 14px; color: #1D1D1F; }
.figure .phone--form .field__caret { background: #1D1D1F; }
.figure .phone--form .kbd {
  margin-top: auto;
  min-height: 0;
  gap: 9px;
  padding: 9px 3px 8px;
  border: 0;
  border-top: 1px solid #8E8E93;
  border-radius: 0;
  background: linear-gradient(180deg, #D8D9DD, #BFC2C8);
}
.figure .phone--form .kbd__row { gap: 4px; }
.figure .phone--form .key {
  height: 34px;
  border: 0;
  border-radius: 5px;
  background: linear-gradient(180deg, #FFFFFF, #ECECEF);
  box-shadow: 0 1px 0 #7C7C80;
  color: #1D1D1F;
  font-size: 14px;
  font-weight: 500;
}
.figure .phone--form .key:hover { background: linear-gradient(180deg, #FFFFFF, #ECECEF); }
.figure .phone--form .key:active { background: #1D1D1F; color: #FFFFFF; transform: translateY(1px); }
.figure .phone--form .key--util { background: linear-gradient(180deg, #B8BBC2, #A4A8B0); color: #1D1D1F; font-size: 11px; }
.figure .phone--form .key--ctx { background: linear-gradient(180deg, #FFFFFF, #ECECEF); color: #1D1D1F; font-weight: 700; box-shadow: 0 1px 0 #7C7C80, inset 0 0 0 1.5px #1D1D1F; }
.figure .phone--form .key--go { background: linear-gradient(180deg, #48484A, #1D1D1F); color: #FFFFFF; }

/* 오른쪽 조작 안내도 본문 색으로 */
.plate__bar-spacer + .plate__spec { color: var(--ink-2); }
.plate__bar-spacer + .plate__spec b { color: var(--ink); font-weight: 600; }
.figure .plate__stage {
  padding: var(--sp-400-800) var(--sp-200-700) var(--sp-500-800);
}
.figure .readout { font: var(--body-3); gap: var(--s-100) var(--s-300); }
.figure .readout b { color: var(--ink); }

/* ---------- 맺는 말 — 가운데 큰 문장 ---------- */
.pull {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}
.pull__label {
  font: var(--type-label);
  display: block;
  color: var(--ink-3);
}
.pull p {
  font: var(--type-pull);
  font-weight: 400;
  margin-top: var(--s-200);
  letter-spacing: -.04em;
  color: var(--ink);
}
.pull em { font-style: normal; font-weight: 600; color: var(--ink); }

/* 2부 표본판 — 추정이라는 표시로 테두리가 점선 (2부 전환 장면의 점선과 같은 뜻) */
.chapter--future .plate { border: 2px dashed var(--line-2); }

/* "안 쳐도 됨" 칸의 빈 상태 — 안내문에는 취소선을 긋지 않는다 */
.figure .deadbox__txt.is-hint { text-decoration: none; }

/* ---------- 드러남 ---------- */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(var(--s-400));
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
}
html.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ============================================================
   장면 도면 — SVG 요소 공통 (선은 굵게, 글자는 읽히는 크기로)
   ============================================================ */
.art text { font-family: var(--sans); }
.a-line   { fill: none; stroke: var(--line-2); stroke-width: 1.6; }
.a-faint  { fill: none; stroke: var(--line); stroke-width: 1; stroke-dasharray: 3 6; }
.a-sep    { fill: none; stroke: var(--line); stroke-width: 1; }
.a-tick   { fill: none; stroke: var(--ink-3); stroke-width: 1.4; transition: opacity .35s var(--ease); }
.a-trail  { fill: none; stroke: var(--ink); stroke-width: 4; stroke-linecap: round; opacity: 0; }
.a-trail-thin { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; }
.a-dim    { fill: none; stroke: var(--ink); stroke-width: 1.6; }
.a-panel  { fill: var(--surface); stroke: none; }
.a-desk   { fill: var(--surface-2); stroke: var(--line-2); stroke-width: 1.2; stroke-dasharray: 6 6; }
.a-card   { fill: var(--surface); stroke: var(--line-2); stroke-width: 1.4; }
.a-shadow { fill: #000; opacity: 0; }
.a-band   { fill: var(--accent-wash); stroke: none; }
.a-wash   { fill: var(--accent-wash); transition: fill .3s var(--ease); }
.a-wash--on { fill: rgba(255, 255, 255, .2); }
.a-fill-acc  { fill: var(--ink); }
.a-wall   { fill: none; stroke: var(--ink-3); stroke-width: 4; opacity: 0; transition: opacity .2s var(--ease); }
.a-strike { fill: none; stroke: var(--ink); stroke-width: 2.4; }
.a-icon   { fill: none; stroke: var(--ink-3); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: stroke .3s var(--ease); }
.a-icon--on { stroke: var(--ink); }
.a-cursor { fill: var(--ink); stroke: var(--ground); stroke-width: 1.4; stroke-linejoin: round; opacity: 0; }
.a-sel    { fill: none; stroke: var(--ink); stroke-width: 2; }
.a-handle-sq { fill: var(--ground); stroke: var(--ink); stroke-width: 1.6; }
.a-pop    { fill: var(--surface); stroke: none; opacity: 0; }
.a-chip   { fill: transparent; stroke: var(--line-2); stroke-width: 1.2; transition: fill .2s var(--ease), stroke .2s var(--ease); }
.a-chip.is-on { fill: var(--ink); stroke: var(--ink); }
.a-chip-t { font-size: 13px; fill: var(--ink-2); font-weight: 500; transition: fill .2s var(--ease); }
.a-chip-t.is-on { fill: var(--on-accent); }
.a-leader { fill: none; stroke: var(--ink-3); stroke-width: 1; stroke-dasharray: 2 4; }
.a-note   { font-size: 15px; fill: var(--ink-2); font-weight: 600; }
.a-bar    { fill: var(--ink-3); opacity: .7; }
.a-handle { fill: var(--ink); }
.a-handle-mark { fill: none; stroke: var(--on-accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.a-rung   { fill: var(--line-2); transition: fill .25s var(--ease); }
.a-rung.is-on { fill: var(--ink); }

.a-label  { font-size: 12px; font-weight: 500; fill: var(--ink-3); }
.a-text   { font-size: 15px; fill: var(--ink-2); }
.a-text--acc { fill: var(--ink); font-weight: 600; }
.a-small  { font-size: 12.5px; fill: var(--ink-3); }
.a-small-acc  { font-size: 14px; fill: var(--ink); font-weight: 600; }
.a-small-fric { font-size: 12.5px; fill: var(--ink-3); font-weight: 500; }
.a-tag-acc  { font-size: 15px; fill: var(--ink); font-weight: 600; }
.a-tag-fric { font-size: 15px; fill: var(--ink-3); font-weight: 600; }
.a-tagbox-fric { fill: none; stroke: var(--ink-3); stroke-width: 1.2; }
.a-row    { font-size: 13.5px; fill: var(--ink-2); }
.a-list .is-sel .a-row { fill: var(--ink); font-weight: 600; }
.a-list   { transition: transform .14s var(--ease); }
.a-year   { font-size: 13px; fill: var(--ink-3); font-weight: 600; font-variant-numeric: tabular-nums; }
.a-term   { font-size: 19px; fill: var(--ink); letter-spacing: -.01em; }
.a-term-prompt { font-size: 19px; fill: var(--ink-3); font-weight: 600; }
.a-clock  { font-size: 84px; font-weight: 300; letter-spacing: -.04em; fill: var(--ink); font-variant-numeric: tabular-nums; }
.a-hint   { font-size: 19px; font-weight: 500; }
.a-stop-dim { stop-color: var(--ink-3); }
.a-stop-hi  { stop-color: var(--ink); }
.a-knob   { fill: var(--ink); stroke: none; transition: fill .25s var(--ease); }
.is-open .a-knob { fill: var(--ink); }
.a-knob-mark { fill: none; stroke: var(--ground); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.a-field  { fill: var(--surface); stroke: none; transition: fill .3s var(--ease), stroke .3s var(--ease); }
.a-field.is-on { fill: var(--surface); stroke: var(--ink); stroke-width: 2; }
.a-field-label { font-size: 14px; font-weight: 600; fill: var(--ink-3); }
.a-field-ph    { font-size: 14px; fill: var(--ink-2); }
.a-key    { fill: var(--surface); stroke: none; }
.a-key--ctx { fill: var(--surface); stroke: var(--ink); stroke-width: 1.6; }
.a-key--go  { fill: var(--ink); }
.a-key-t  { font-size: 15px; fill: var(--ink); }
.a-key-t--ctx { fill: var(--ink); font-weight: 700; }
.a-key-t--go  { fill: var(--on-accent); font-weight: 700; font-size: 14px; }
.a-dead   { font-size: 14px; fill: var(--ink-3); }
.a-dead-line { fill: none; stroke: var(--ink-3); stroke-width: 1.2; }
.a-big-num { font-size: 30px; font-weight: 700; letter-spacing: -.04em; fill: var(--ink); font-variant-numeric: tabular-nums; }

/* 좁은 화면 — 세로로 다시 짠 도면(js/scroll.js의 NARROW)은 화면 폭에 거의 1:1로 그려진다.
   작은 글자만 14px 아래로 내려가지 않게 한 단계 키운다 */
@media (max-width: 640px) {
  .a-label, .a-small, .a-small-fric { font-size: 15px; }
  .a-small-acc { font-size: 16px; }
  .a-text  { font-size: 16px; }
  .a-row   { font-size: 15px; }
  .a-year  { font-size: 14.5px; }
  .a-note  { font-size: 16px; }
  .a-chip-t { font-size: 14px; }
  .a-tag-acc, .a-tag-fric { font-size: 16px; }
  .a-field-label, .a-field-ph { font-size: 15px; }
  .a-key-t { font-size: 17px; }
  .a-key-t--go { font-size: 15px; }
  .a-dead  { font-size: 15px; }
}
.a-dead--strike { text-decoration: line-through; }

/* ---------- 글자로 된 장면 (FIG.08 · FIG.09) ---------- */
.opener__art--text { flex-direction: column; text-align: center; }   /* 글자 장면도 가운데에 */
.opener__art--text > * { max-width: 980px; }
@media (max-width: 860px) { .opener__art--text { padding-inline: var(--gut); } }
.ghostline,
.densline {
  font: var(--type-stage);
  line-height: 1.55;
  letter-spacing: -.035em;
  color: var(--ink);
}
.g__was {
  color: var(--ink-3);
  background-image: linear-gradient(var(--ink), var(--ink));
  background-repeat: no-repeat;
  background-position: 0 58%;
  background-size: calc(var(--s, 0) * 100%) 3px;
}
.g__now {
  display: inline-block;
  max-width: 0;
  overflow: hidden;
  vertical-align: bottom;
  opacity: 0;
  white-space: nowrap;
}
.g__now > span {
  display: inline-block;
  margin: 0 .08em 0 .3em;
  padding: 0 .45em;
  line-height: 1.2;
  border-radius: 9999px;
  background: var(--ink);
  color: var(--on-accent);
  font-weight: 600;
}
/* FIG.09는 줄을 손으로 정했다 — 가장 긴 줄이 26.7em이라 폭에 맞춰 글자를 줄인다 */
.opener__art--text > .densline {
  font: var(--type-dens);
  max-width: none;
}
.densline [data-g] {
  text-decoration: underline dotted transparent;
  text-decoration-thickness: 3px;
  text-underline-offset: 6px;
  transition: text-decoration-color var(--t-color) var(--ease);
}
.densline .is-marked { text-decoration-color: var(--ink-3); }
.denslegend {
  font: var(--body-2);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--s-100) var(--s-400);
  margin-top: var(--s-400);
  color: var(--ink-2);
  opacity: 0;
}
.denslegend span { display: inline-flex; align-items: center; gap: var(--s-100); }
.dl { width: 34px; height: 8px; border-radius: 4px; background: var(--ink); }
.dl--soft { opacity: .5; }
.dl--weak { opacity: .24; }

/* ---------- 맺음 — 한 문장 ---------- */
.closing {
  max-width: 1080px;
  padding-top: var(--s-900);
  padding-bottom: var(--s-900);
}
/* 아홉 표본을 묶는 단락 — 본문과 같은 조판 */
.closing__sum { margin-bottom: var(--s-900); }
.coda {
  font: var(--type-coda);
  font-weight: 400;
  text-align: center;
  letter-spacing: -.045em;
  color: var(--ink);
}
.coda em { font-style: normal; font-weight: 600; color: var(--ink); }

/* ---------- 출처 — 기록에서 온 것 / 이 페이지가 정한 것 ---------- */
.sources {
  /* 맺음과 같은 바탕 위에 이어진다 */
  padding: 0 var(--gut) var(--s-900);
}
.sources__in {
  max-width: var(--plate-measure);
  margin: 0 auto;
  padding-top: var(--s-600);
  border-top: 1px solid var(--line);
}
.sources__title { font: var(--heading-5); letter-spacing: -.03em; }
.sources__cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-400) var(--s-700);
  margin-top: var(--s-400);
}
.sources__head { font: var(--body-1); color: var(--ink); }
.sources__list { margin-top: var(--s-100); }
.sources__list li {
  font: var(--body-3);
  padding: var(--s-100) 0;
  border-top: 1px solid var(--line);
  color: var(--ink-2);
}
.sources__list b { display: block; color: var(--ink); font-weight: 600; }
@media (max-width: 860px) { .sources__cols { grid-template-columns: 1fr; } }

/* ---------- 후기 — 본문과 같은 칸·같은 글자. 행간만 한 단계 넓다 ---------- */
.afterword {
  padding: var(--s-900) var(--gut) var(--sp-800-900);
}
.afterword__in { max-width: var(--measure); margin: 0 auto; }
.afterword__text {
  font: var(--body-7);
  line-height: 32px;
  letter-spacing: -.01em;
  color: var(--ink);
}
.afterword__text + .afterword__text { margin-top: var(--s-300); }
.afterword__cta { margin-top: var(--s-400); }

.signature { border-top: 1px solid var(--line); padding: var(--s-300) 0 var(--s-400); }
/* 서명 한 줄 — 가운데 */
.signature__in { max-width: 1080px; text-align: center; }
.signature .mono { font: var(--body-6); text-transform: none; color: var(--ink-2); }
.signature b { font-weight: 600; }

/* ============================================================
   움직임 줄이기 — 장면을 고정하지 않고 다 그려진 상태로 보여준다
   ============================================================ */
html.is-reduced .opener,
html.is-reduced .scene--quote,
html.is-reduced .scene--part2 { height: auto; }
html.is-reduced .scene__pin { position: relative; height: auto; min-height: 80vh; }
html.is-reduced .scene--timeline { height: auto; }
html.is-reduced .scene--timeline .scene__pin { padding: var(--s-900) 0; }
html.is-reduced .tl__track { overflow-x: auto; width: auto; }

/* ============================================================
   상태 — 눌림과 키보드
   ============================================================ */
.pill:active,
.chip:active,
.verb:active,
.ghost__now:active,
.ghost__no:active,
.toc__item:active { transform: scale(.98); }

.skip {
  position: fixed;
  z-index: 70;
  left: var(--s-200);
  top: var(--s-200);
  padding: var(--s-75) var(--s-100);
  border-radius: 9999px;
  font: var(--button-sm);
  color: var(--ground);
  background: var(--ink);
  text-decoration: none;
  transform: translateY(-200%);
  transition: transform var(--t-move) var(--ease);
}
.skip:focus { transform: none; }
.contents:focus { outline: none; }   /* 건너뛰기 도착점 — 조작 대상이 아니다 */
