/* 앱 진열대: 흰 타공판에 고리로 건 봉지들.
   벽에서 길이의 단위는 타공판 구멍 간격(--p)이고, 고리는 실제 구멍 자리에 꽂힌다.
   봉지의 뒷면(앱 페이지)은 앱 장터의 앱 화면처럼 짠다. 그 안의 길이는 rem 이다. */

@font-face {
  font-family: "Do Hyeon";
  src: url("fonts/DoHyeon.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "Mark PocketPet";
  src: url("fonts/mark-pocketpet.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Mark Closet";
  src: url("fonts/mark-mylittlecloset.woff2") format("woff2");
  font-weight: 800;
  font-display: swap;
}
@font-face {
  font-family: "Mark Scorelab";
  src: url("fonts/mark-scorelab.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Mark Moacam";
  src: url("fonts/mark-moacam.woff2") format("woff2");
  font-display: swap;
}

:root {
  color-scheme: light;

  --p: clamp(24px, min(calc((100vw - 48px) / 37), calc((100vh - 16px) / 24)), 40px);

  --board: #fafaf6;
  --hole: #dddbd2;
  --wire: #8b8a82;
  --wire-deep: #6a6962;
  --paper: #ffffff;
  --ink: #17171a;
  --sub: #55554f;
  --rule: #d9d8d0;
  --mute: #efeee8;
  --hole-deep: #ccc9be;
  --lamp: 260px;

  --pink: #ff6196;
  --pink-light: #ff86ae;
  --pink-ink: #3d0a1e;
  --lilac: #d9d2ff;
  --lilac-light: #f1eeff;
  --navy: #1f1b4d;
  --lemon: #ffe55c;
  --red: #e8112d;

  --shop: "Do Hyeon", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR",
    "Malgun Gothic", sans-serif;

  --slot: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 56 18'%3E%3Crect y='4' width='56' height='10' rx='5'/%3E%3Ccircle cx='28' cy='9' r='9'/%3E%3C/svg%3E");
  --hang-shadow: 0 calc(var(--p) * 0.8) calc(var(--p) * 1.3) calc(var(--p) * -0.25) rgb(52 48 70 / 0.34);
  --out: cubic-bezier(0.16, 1, 0.3, 1);

  /* 커서: 사이트 스티커처럼 그린 레몬 화살표·손(쥐면 분홍)·돋보기. 원본은 tool/cursor/*.svg, 그림은 assets/cursor/.
     누르는 자리는 화살표 끝 5,4 · 검지 끝 12,4 · 손바닥 16,18 · 유리 가운데 13,13. 그림을 못 쓰면 뒤의 기본 커서. */
  --cur: url("/assets/cursor/arrow.png") 5 4, default;
  --cur-point: url("/assets/cursor/point.png") 12 4, pointer;
  --cur-grab: url("/assets/cursor/open.png") 16 18, grab;
  --cur-grabbing: url("/assets/cursor/fist.png") 16 18, grabbing;
  --cur-zoom: url("/assets/cursor/zoom.png") 13 13, zoom-in;
}
/* 레티나 화면에는 두 배 그림을 쓴다(image-set 을 커서에 쓸 수 있는 브라우저만) */
@supports (cursor: -webkit-image-set(url("/assets/cursor/arrow.png") 1x) 5 4, default) {
  :root {
    --cur: -webkit-image-set(url("/assets/cursor/arrow.png") 1x, url("/assets/cursor/arrow@2x.png") 2x) 5 4, default;
    --cur-point: -webkit-image-set(url("/assets/cursor/point.png") 1x, url("/assets/cursor/point@2x.png") 2x) 12 4, pointer;
    --cur-grab: -webkit-image-set(url("/assets/cursor/open.png") 1x, url("/assets/cursor/open@2x.png") 2x) 16 18, grab;
    --cur-grabbing: -webkit-image-set(url("/assets/cursor/fist.png") 1x, url("/assets/cursor/fist@2x.png") 2x) 16 18, grabbing;
    --cur-zoom: -webkit-image-set(url("/assets/cursor/zoom.png") 1x, url("/assets/cursor/zoom@2x.png") 2x) 13 13, zoom-in;
  }
}
@supports (cursor: image-set(url("/assets/cursor/arrow.png") 1x) 5 4, default) {
  :root {
    --cur: image-set(url("/assets/cursor/arrow.png") 1x, url("/assets/cursor/arrow@2x.png") 2x) 5 4, default;
    --cur-point: image-set(url("/assets/cursor/point.png") 1x, url("/assets/cursor/point@2x.png") 2x) 12 4, pointer;
    --cur-grab: image-set(url("/assets/cursor/open.png") 1x, url("/assets/cursor/open@2x.png") 2x) 16 18, grab;
    --cur-grabbing: image-set(url("/assets/cursor/fist.png") 1x, url("/assets/cursor/fist@2x.png") 2x) 16 18, grabbing;
    --cur-zoom: image-set(url("/assets/cursor/zoom.png") 1x, url("/assets/cursor/zoom@2x.png") 2x) 13 13, zoom-in;
  }
}
/* 마우스가 있는 화면만: 기본은 레몬 화살표, 누르는 것 위에서는 가리키는 손, 글을 쓰는 칸은 원래 커서 */
@media (hover: hover) and (pointer: fine) {
  html {
    cursor: var(--cur);
  }
  :where(a:any-link, button:not(:disabled), summary, label[for], select, [role="button"]) {
    cursor: var(--cur-point);
  }
  :where(input:not([type="button"], [type="submit"], [type="reset"], [type="checkbox"], [type="radio"], [type="range"]), textarea, [contenteditable]) {
    cursor: text;
  }
}

@media (max-width: 935px) {
  :root {
    --p: min(32px, calc((100vw - 32px) / 10.75));
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* 흔들리는 봉지가 좁은 화면 밖으로 나가도 가로 스크롤은 생기지 않게 한다. */
html {
  overflow-x: hidden;
  overflow-x: clip;
  background: var(--board);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scrollbar-color: var(--wire) var(--board);
}

/* body 도 가로로 잘라 낸다. html 의 값은 화면(뷰포트)으로 넘어가 '숨김'으로 바뀌므로,
   흔들리는 봉지가 잠깐 화면 밖으로 나가는 순간 옆으로 밀리는 것까지 막으려면 body 에서 한 번 더 자른다. */
body {
  position: relative;
  overflow-x: clip;
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  word-break: keep-all;
  overflow-wrap: anywhere;
  accent-color: var(--ink);
  background:
    radial-gradient(
        circle at center,
        var(--hole) 0 calc(var(--p) * 0.1),
        transparent calc(var(--p) * 0.1 + 0.75px)
      )
      calc(50% + var(--p) / 2) 0 / var(--p) var(--p),
    var(--board);
}

::selection {
  background: var(--lemon);
  color: var(--ink);
}

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  border-radius: 4px;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-underline-offset: 0.22em;
  text-decoration-thickness: 0.09em;
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--shop);
  text-decoration: none;
  border-radius: 4px;
}
.skip:focus {
  top: 12px;
}

/* ── 등빛: 마우스는 벽 앞에 든 작은 등이다 ──────
   등 가까이의 구멍은 깊어 보이고(그림자가 든다), 등이 닿는 자리는 조금 밝아진다.
   등은 light.js 가 넣는 등 크기의 층(.lamp__light)이다. 마우스를 따라갈 때 다시 그리지 않고 자리만 옮긴다.
   깊은 구멍 무늬(.lamp__holes)는 등과 함께 끌려가지 않게 반대로 옮겨 늘 벽의 구멍 자리에 둔다. */

.lamp {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  overflow: clip;
  pointer-events: none;
}
.lamp__light {
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0;
  will-change: transform, opacity;
}
.lamp__pit,
.lamp__glow {
  position: absolute;
  left: calc(var(--r) * -1);
  top: calc(var(--r) * -1);
  width: calc(var(--r) * 2);
  height: calc(var(--r) * 2);
}
.lamp__pit {
  --r: var(--lamp);
  overflow: hidden;
  -webkit-mask: radial-gradient(circle var(--lamp) at center, #000 0, rgb(0 0 0 / 0.7) 35%, transparent 100%);
  mask: radial-gradient(circle var(--lamp) at center, #000 0, rgb(0 0 0 / 0.7) 35%, transparent 100%);
}
.lamp__holes {
  width: calc(var(--lamp) * 2 + var(--p));
  height: calc(var(--lamp) * 2 + var(--p));
  background: radial-gradient(
      circle at center,
      var(--hole-deep) 0 calc(var(--p) * 0.14),
      transparent calc(var(--p) * 0.14 + 0.75px)
    )
    0 0 / var(--p) var(--p);
  will-change: transform;
}
.lamp__glow {
  --r: calc(var(--lamp) * 1.4);
  background: radial-gradient(
    circle var(--r) at center,
    rgb(255 246 220 / 0.38),
    rgb(255 246 220 / 0.12) 45%,
    rgb(255 246 220 / 0) 72%
  );
}

/* ── 벽과 팻말 ─────────────────────────────── */

.wall {
  position: relative;
  z-index: 1;
  width: calc(var(--p) * 36);
  max-width: calc(100% - 32px);
  margin-inline: auto;
  padding-top: var(--p);
}

/* 첫 줄에 이름과 버튼, 둘째 줄에 소개 한 줄. 높이는 구멍 세 칸으로 고정이다. */
.sign {
  height: calc(var(--p) * 3);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-content: start;
  align-items: start;
  column-gap: var(--p);
}

.sign__name {
  margin: 0;
  width: fit-content;
  font: 400 calc(var(--p) * 1.375) / 1 var(--shop);
  letter-spacing: -0.01em;
}
.sign__name a {
  text-decoration: none;
}
.sign__line {
  grid-column: 1 / -1;
  margin: calc(var(--p) * 0.28) 0 0;
  width: fit-content;
  font-size: max(0.9375rem, calc(var(--p) * 0.53));
  font-weight: 600;
  line-height: 1.3;
  color: var(--sub);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  min-height: 44px;
  padding: 0.3em 0.85em 0.22em;
  font: 400 max(1.0625rem, calc(var(--p) * 0.62)) / 1 var(--shop);
  color: var(--ink);
  text-decoration: none;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 4px;
  cursor: var(--cur-point);
  transition: background-color 0.18s var(--out), transform 0.18s var(--out);
}
.btn svg {
  width: 0.72em;
  height: 0.72em;
  flex: none;
}
.btn:hover {
  background: var(--lemon);
}
.btn:active {
  transform: translateY(1px);
}

/* ── 만든 사람: 진열대 벽에 붙인 스티커 묶음 ──────────
   사진 스티커, 이름표, 학력·자격 딱지. 모두 흰 테두리로 오려 낸 스티커처럼 붙인다.
   아래 칸의 고리가 구멍에 맞도록 묶음의 높이는 구멍 간격의 정수배다. */

/* 묶음 안의 길이 단위(--P)는 벽 칸(--p)에 묶음 비(--mk)를 곱한 것이다. 진열대의 카드(물건 비 0.7)에 맞춰 스티커도
   1.2배로 키운다. 넓은 화면 1200px 아래는 한 줄에 들어가는 1.15배다. 묶음의 높이와 아래 여백은 벽 칸의 정수배라
   아래 줄의 고리가 구멍에 서고, 높이는 화면 폭마다 스티커가 들어가는 칸 수로 잡았다(여러 폭에서 잼). */
.maker {
  --mk: 1.15;
  --P: calc(var(--p) * var(--mk));
  display: flex;
  align-items: center;
  gap: calc(var(--P) * 0.75);
  height: calc(var(--p) * 9);
  margin: 0 0 var(--p);
  padding: 0 calc(var(--P) * 0.4);
}
@media (min-width: 1200px) {
  .maker {
    --mk: 1.2;
  }
}
.maker__card,
.pop {
  border: calc(var(--P) * 0.13) solid #fff;
  box-shadow:
    0 1px 2px rgb(52 48 70 / 0.22),
    0 calc(var(--P) * 0.3) calc(var(--P) * 0.6) calc(var(--P) * -0.2) rgb(52 48 70 / 0.32);
}
/* 폴라로이드 사진: 흰 테두리에 아래 여백이 넓고, 위에 마스킹 테이프 한 조각으로 벽에 붙였다.
   사진 칸은 증명사진 비율(3.5×4.5)의 세로 칸이다. 정사각형으로 자르면 얼굴만 꽉 차 보여서, 어깨까지 그대로 담는다.
   크기는 폭(--pw, 구멍 간격의 몇 배) 하나로 정한다. 테두리·아래 여백·글자·테이프는 폭을 따라 함께 큰다. */
.maker__photo {
  --pw: 4.4;
  --edge: calc(var(--P) * var(--pw) * 0.06);
  --tilt: -4deg;
  position: relative;
  flex: none;
  display: grid;
  grid-template-rows: auto 1fr;
  width: calc(var(--P) * var(--pw));
  padding: var(--edge) var(--edge) 0;
  color: var(--ink);
  text-decoration: none;
  background: #fffefa;
  border-radius: 2px;
  box-shadow:
    0 1px 1px rgb(52 48 70 / calc(0.16 - var(--lift) * 0.12)),
    calc(var(--shx) * 0.5) calc(var(--P) * 0.32 + var(--shy) * 0.5 + var(--lift) * 6px)
      calc(var(--P) * 0.55 + var(--lift) * 8px) calc(var(--P) * -0.2) rgb(52 48 70 / 0.34);
}
.maker__photo::before {
  content: "";
  position: absolute;
  z-index: 1;
  top: calc(var(--P) * -0.28);
  left: 50%;
  width: calc(var(--P) * var(--pw) * 0.42);
  height: calc(var(--P) * 0.6);
  margin-left: calc(var(--P) * var(--pw) * -0.21);
  background: rgb(240 228 190 / 0.78);
  box-shadow: 0 1px 1px rgb(52 48 70 / 0.12);
  transform: rotate(5deg);
}
/* 사진 면의 반사. 손이 닿은 자리에 부드러운 빛만 서고, 인화지라 봉지 같은 무지개 결은 없다. */
.maker__photo::after {
  --lift: inherit;
  --gx: inherit;
  --gy: inherit;
  content: "";
  position: absolute;
  top: var(--edge);
  left: var(--edge);
  right: var(--edge);
  aspect-ratio: 35 / 45;
  pointer-events: none;
  background: radial-gradient(
    farthest-corner circle at var(--gx) var(--gy),
    rgb(255 255 255 / 0.55) 0%,
    rgb(255 255 255 / 0.16) 26%,
    rgb(255 255 255 / 0) 60%
  );
  mix-blend-mode: soft-light;
  opacity: calc(var(--lift) * 0.8);
}
/* 사진과 포스트잇도 걸린 봉지처럼 움직인다. 축은 벽에 붙인 윗변(테이프·접착 띠)이고, 붙어 있어 봉지의 반만 흔들린다.
   화면을 굴리면 조금 흔들리고(--sway, wall.js), 마우스를 대면 손이 가까운 쪽이 벽에서 살짝 들린다(--rx·--ry·--lift, light.js).
   그림자는 등(마우스) 반대쪽으로 지고 들릴수록 길어지며, 벽에 닿아 생긴 짧은 그림자는 옅어진다. */
.maker__photo,
.note {
  transform-origin: 50% 0;
  transform: perspective(1400px) rotate(calc(var(--tilt, 0deg) + var(--sway) * 0.5)) rotateX(var(--rx))
    rotateY(var(--ry)) translateZ(calc(var(--lift) * 8px));
}
.polaroid__pic {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 35 / 45;
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 26%, rgb(255 255 255 / 0.65), transparent 46%),
    linear-gradient(160deg, #ffe98a, #ffcf9e 55%, #f4b7c8);
}
/* 사진 둘레의 옅은 선. 사진 위에 덧대야 흰 바탕 사진(증명사진)도 폴라로이드 틀과 경계가 보인다. */
.polaroid__pic::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 1px rgb(52 48 70 / 0.1);
  pointer-events: none;
}
.polaroid__pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.polaroid__cap {
  display: grid;
  place-items: center;
  height: calc(var(--P) * var(--pw) * 0.23);
  font: 400 max(0.8125rem, calc(var(--P) * var(--pw) * 0.09)) / 1 var(--shop);
  color: color-mix(in srgb, var(--ink) 78%, transparent);
}
.maker__mono {
  font: 400 calc(var(--P) * var(--pw) * 0.37) / 1 var(--shop);
  letter-spacing: -0.03em;
  color: rgb(23 23 26 / 0.82);
}
.maker__card {
  position: relative;
  flex: none;
  display: grid;
  justify-items: start;
  padding: calc(var(--P) * 0.4) calc(var(--P) * 0.8) calc(var(--P) * 0.45);
  color: var(--ink);
  text-decoration: none;
  background: var(--paper);
  border-radius: calc(var(--P) * 0.35);
  box-shadow:
    inset 0 0 0 2px var(--ink),
    0 1px 2px rgb(52 48 70 / 0.22),
    0 calc(var(--P) * 0.3) calc(var(--P) * 0.6) calc(var(--P) * -0.2) rgb(52 48 70 / 0.32);
  transform: rotate(1.4deg);
  transition: background-color 0.18s var(--out);
}
.maker__card:hover {
  background: #fffbe0;
}
.maker__tag {
  margin-bottom: calc(var(--P) * 0.14);
  padding: 0.32em 0.55em 0.24em;
  font: 400 max(0.75rem, calc(var(--P) * 0.34)) / 1 var(--shop);
  color: var(--paper);
  background: var(--ink);
  border-radius: 3px;
}
.maker__role {
  font: 400 calc(var(--P) * 0.92) / 1.05 var(--shop);
  letter-spacing: -0.01em;
}
.maker__org {
  margin-top: calc(var(--P) * 0.08);
  font-size: max(0.875rem, calc(var(--P) * 0.4));
  font-weight: 700;
  line-height: 1.35;
}
.maker__line {
  font-size: max(0.875rem, calc(var(--P) * 0.4));
  line-height: 1.35;
  color: var(--sub);
}
.maker__go {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  margin-top: calc(var(--P) * 0.1);
  font: 400 max(0.8125rem, calc(var(--P) * 0.4)) / 1.2 var(--shop);
  text-decoration: underline transparent;
  text-underline-offset: 0.22em;
  transition: text-decoration-color 0.18s var(--out);
}
.maker__go svg {
  width: 0.7em;
  height: 0.7em;
}
.maker__card:hover .maker__go,
.maker__card:focus-visible .maker__go {
  text-decoration-color: currentColor;
}
.maker__stickers {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: calc(var(--P) * 0.5) calc(var(--P) * 0.8);
  margin: 0;
  padding: 0;
  list-style: none;
}
/* 포스트잇: 흰 테두리 없이 종이 한 장. 위쪽 접착 띠가 조금 진하고, 아래 모서리가 들려 그림자가 진다.
   한 장에 제목(학력·경력)과 줄 몇 개: 학교 마크, 이름과 기간, 한 줄. */
.note {
  display: grid;
  align-content: start;
  width: calc(var(--P) * 7.8);
  padding: calc(var(--P) * 0.5) calc(var(--P) * 0.6) calc(var(--P) * 0.55);
  color: var(--ink);
  background:
    linear-gradient(to bottom, rgb(0 0 0 / 0.06), transparent calc(var(--P) * 0.7)),
    linear-gradient(165deg, var(--tone) 72%, color-mix(in srgb, var(--tone) 90%, #6a5a20) 100%);
  border-radius: 2px 2px 3px 3px;
  box-shadow:
    0 1px 1px rgb(52 48 70 / calc(0.12 - var(--lift) * 0.09)),
    calc(var(--P) * 0.1 + var(--shx) * 0.5) calc(var(--P) * 0.34 + var(--shy) * 0.5 + var(--lift) * 6px)
      calc(var(--P) * 0.42 + var(--lift) * 8px) calc(var(--P) * -0.2) rgb(52 48 70 / 0.38);
}
.note__title {
  margin: 0 0 calc(var(--P) * 0.22);
  padding-bottom: calc(var(--P) * 0.1);
  font: 400 max(0.9375rem, calc(var(--P) * 0.46)) / 1 var(--shop);
  letter-spacing: 0.04em;
  border-bottom: 1.5px solid color-mix(in srgb, var(--ink) 28%, transparent);
}
.note__rows {
  display: grid;
  gap: calc(var(--P) * 0.2);
  margin: 0;
  padding: 0;
  list-style: none;
}
.note__rows li {
  display: flex;
  align-items: center;
  gap: calc(var(--P) * 0.3);
}
.note__logo {
  flex: none;
  width: calc(var(--P) * 1.1);
  height: calc(var(--P) * 1.1);
  object-fit: contain;
}
.note__text {
  display: grid;
  min-width: 0;
  flex: 1;
}
.note__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  column-gap: 0.5em;
}
.note__head b {
  font: 400 max(0.875rem, calc(var(--P) * 0.4)) / 1.2 var(--shop);
}
.note__head small {
  font-size: max(0.625rem, calc(var(--P) * 0.26));
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: color-mix(in srgb, var(--ink) 68%, transparent);
}
.note__text > span:last-child {
  font-size: max(0.6875rem, calc(var(--P) * 0.29));
  font-weight: 600;
  line-height: 1.3;
}
/* 정보처리기사: 소개 묶음 맨 끝, 마지막 포스트잇의 오른쪽 아래 모서리에 붙인 작은 알약 딱지. 크게 내세우지 않는다. */
.note {
  position: relative;
}
.note:has(.seal) {
  padding-bottom: max(calc(var(--P) * 0.95), 1.9rem);
}
.seal {
  position: absolute;
  right: calc(var(--P) * 0.3);
  bottom: calc(var(--P) * -0.45);
  width: max-content;
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.32em 0.75em 0.3em 0.6em;
  white-space: nowrap;
  color: var(--ink);
  background: var(--tone);
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  box-shadow:
    0 1px 2px rgb(52 48 70 / 0.18),
    0 4px 8px -4px rgb(52 48 70 / 0.32);
  transform: rotate(var(--tilt, 0deg));
}
.seal__logo {
  height: 0.7rem;
  width: auto;
}
.seal b {
  font: 400 0.8125rem / 1 var(--shop);
}
.seal small {
  font-size: 0.6875rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: color-mix(in srgb, var(--ink) 65%, transparent);
}

/* 칸 이름 띠에 붙인 판촉 스티커(예: 모두의 창업). 띠 위로 조금 삐져나오게 붙인다. */
.aisle {
  position: relative;
}
.pop {
  position: absolute;
  z-index: 2;
  top: calc(var(--P) * -0.7);
  right: calc(var(--P) * 1.4);
  display: grid;
  place-items: center;
  align-content: center;
  gap: 0.05em;
  width: max(calc(var(--P) * 2.5), 4.6rem);
  height: max(calc(var(--P) * 2.5), 4.6rem);
  color: var(--ink);
  text-align: center;
  text-decoration: none;
  background: var(--lemon);
  border-radius: 50%;
  transform: rotate(8deg);
  transition: transform 0.18s var(--out);
}
.pop:hover {
  transform: rotate(8deg) scale(1.05);
}
.pop b {
  font: 400 max(0.75rem, calc(var(--P) * 0.36)) / 1.1 var(--shop);
}
.pop span {
  font-size: max(0.625rem, calc(var(--P) * 0.27));
  font-weight: 700;
}

/* ── 진열대의 칸: 벽에 박은 이름 띠 아래로 옆으로 미는 고리 줄 ──────────
   길이의 단위는 벽의 구멍 간격(--P)이다. 봉지는 원래 크기 그대로 걸고(--s 는 작은 봉지만 다르다),
   고리는 봉지와 상관없이 벽의 크기다. 물건은 줄 왼쪽에서 정수 칸만큼 떨어져 놓이고 밀다가 물건의 시작에서 멈추므로,
   멈추면 고리의 두 다리가 늘 벽의 구멍에 꽂힌다. 물건의 폭(--w)과 줄 높이(--h)는 build.py 가 넣는다. */

.aisles {
  --P: var(--p);
  margin-top: var(--P);
}
.aisle + .aisle {
  margin-top: var(--P);
}
.aisle__name {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.45em;
  height: var(--P);
  margin: 0;
  padding: 0 calc(var(--P) * 0.9);
  font: 400 calc(var(--P) * 0.66) / 1 var(--shop);
  background: var(--paper);
  border-radius: 3px;
  box-shadow:
    0 1px 0 #d4d2c9,
    0 calc(var(--P) * 0.25) calc(var(--P) * 0.5) calc(var(--P) * -0.3) rgb(52 48 70 / 0.3);
}
/* 띠를 벽에 박은 나사. 양 끝 칸의 구멍 자리다. */
.aisle__name::before,
.aisle__name::after {
  content: "";
  position: absolute;
  top: calc(var(--P) * 0.5);
  width: calc(var(--P) * 0.2);
  height: calc(var(--P) * 0.2);
  margin: calc(var(--P) * -0.1) 0 0 calc(var(--P) * -0.1);
  border-radius: 50%;
  background: var(--hole-deep);
}
.aisle__name::before {
  left: calc(var(--P) * 0.5);
}
.aisle__name::after {
  left: calc(100% - var(--P) * 0.5);
}
.aisle__count {
  display: inline-grid;
  place-items: center;
  min-width: 1.6em;
  height: 1.6em;
  padding: 0 0.35em;
  font: 700 0.55em / 1 var(--body);
  font-variant-numeric: tabular-nums;
  color: var(--paper);
  background: var(--ink);
  border-radius: 999px;
}
.line {
  position: relative;
  margin-top: var(--P);
}
/* 옆으로 미는 줄의 위치 막대(aisle.js): 줄 아래 가운데, 봉지 그림자 칸 안. 짙은 칸의 길이가 보이는 몫, 자리가 민 정도다. */
.line__track {
  position: absolute;
  left: 50%;
  bottom: calc(var(--P) * 0.3);
  width: min(8rem, 30%);
  height: 4px;
  overflow: hidden;
  transform: translateX(-50%);
  border-radius: 2px;
  background: color-mix(in srgb, var(--ink) 10%, transparent);
  pointer-events: none;
}
.line__thumb {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: color-mix(in srgb, var(--ink) 42%, transparent);
}
/* 줄 양 끝은 한 칸 반쯤 비운다(흔들리는 봉지 모서리가 잘리지 않게). 다 들어가는 줄은 build.py 가 준 --lead 만큼 들여 가운데 가까이 둔다. */
.hooks {
  display: flex;
  gap: calc(var(--P) * 2);
  height: calc(var(--P) * var(--h));
  margin: 0;
  padding: 0 calc(var(--P) * 1.5) 0 calc(var(--P) * var(--lead));
  list-style: none;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: calc(var(--P) * 1.5);
  scrollbar-width: none;
}
.hooks::-webkit-scrollbar {
  display: none;
}
.aisle .peg {
  --p: calc(var(--P) * var(--s));
  flex: none;
  width: calc(var(--P) * var(--w));
  scroll-snap-align: start;
}
/* 작게 건 봉지의 둥근 딱지는 글씨가 원 안에 들어가는 크기 아래로 줄이지 않는다 */
.aisle .tag {
  top: min(calc(var(--p) * -0.75), -1.6rem);
  right: min(calc(var(--p) * -0.7), -1.7rem);
  width: max(calc(var(--p) * 2.6), 3.4rem);
  height: max(calc(var(--p) * 2.6), 3.4rem);
  font-size: max(0.6875rem, calc(var(--p) * 0.5));
}
/* 작게 건 큰 봉지의 딱지에는 바코드와 「뒷면 보기」만 둔다 */
.aisle .pack:not(.pack--mini) .label__id,
.aisle .pack:not(.pack--mini) .label__ver {
  display: none;
}
.aisle .pack:not(.pack--mini) .label {
  grid-template-columns: 1fr;
  justify-items: end;
}
.aisle .hook {
  top: 0;
  width: calc(var(--P) * 2);
  height: calc(var(--P) * 2.5);
  margin-left: calc(var(--P) * -1);
}
/* 고리 끝(꼭대기에서 2칸)에 봉지 구멍이 걸린다 */
.aisle .hook-tip {
  top: calc(var(--P) * 2);
  width: calc(var(--P) * 0.4);
  height: calc(var(--P) * 0.4);
  margin: calc(var(--P) * -0.2) 0 0 calc(var(--P) * -0.2);
  box-shadow: inset calc(var(--P) * 0.06) calc(var(--P) * 0.06) 0 var(--wire);
}
.aisle .pack {
  margin-top: calc(var(--P) * 2 - var(--p) * 0.5625);
}

/* 한 줄을 나눈 칸(bay). 칸마다 띠를 따로 박고, 띠도 물건과 함께 옆으로 밀린다.
   띠 폭(--bw), 칸 안에서 첫 물건까지 들인 칸(--bo), 띠 사이(--g)는 build.py 가 넣는다(태블릿은 --t…, 폰은 --n…).
   띠는 정수 칸에서 시작하고 끝나서, 밀다가 멈추면 띠 양 끝 나사도 구멍에 박힌다. */
/* 띠 위의 판촉 스티커가 잘리지 않게, 줄 사이 한 칸을 밀리는 줄 안(위 여백)으로 옮긴다. 쌓인 높이는 그대로다. */
.aisle--bays {
  margin-top: calc(var(--P) * -1);
}
.aisle + .aisle--bays {
  margin-top: 0;
}
.line--bays {
  margin-top: 0;
}
.line--bays .hooks {
  gap: calc(var(--P) * var(--g));
  height: calc(var(--P) * (var(--h) + 3));
  padding: var(--P) 0 0;
}
.bay {
  position: relative;
  flex: none;
  width: calc(var(--P) * var(--bw));
}
.bay > .pop {
  top: calc(var(--P) * -0.7);
  right: calc(var(--P) * 0.9);
}
.bay__pegs {
  display: flex;
  gap: calc(var(--P) * 2);
  margin: var(--P) 0 0;
  padding: 0 0 0 calc(var(--P) * var(--bo));
  list-style: none;
}
/* 한 갈래를 나눈 줄은 띠마다 줄 이름을 작게 앞에 적는다(개인 프로젝트 › 앱) */
.aisle__kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  margin-right: 0.1em;
  font: 400 max(0.8125rem, 0.78em) / 1 var(--shop);
  color: var(--sub);
}
.aisle__kicker::after {
  content: "";
  width: 0.42em;
  height: 0.42em;
  margin-left: -0.1em;
  border: solid currentColor;
  border-width: 0.14em 0.14em 0 0;
  transform: rotate(45deg);
}
.line--bays .line__go {
  top: calc(var(--P) * (var(--h) + 4) / 2 - 22px);
}
.vh {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* 마우스로 미는 단추. 줄 양 끝에 붙고, 더 갈 곳이 없으면 숨는다. 손가락이 닿는 화면에는 두지 않는다. */
.line__go {
  position: absolute;
  z-index: 5;
  top: calc(var(--P) * (var(--h) - 2) / 2 - 22px);
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  color: var(--ink);
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 50%;
  box-shadow: 0 8px 16px -10px rgb(52 48 70 / 0.6);
  cursor: var(--cur-point);
  transition: background-color 0.18s var(--out), transform 0.18s var(--out);
}
.line__go:hover {
  background: var(--lemon);
}
.line__go:active {
  transform: translateY(1px);
}
.line__go svg {
  width: 16px;
  height: 16px;
}
.line__go--prev {
  left: calc(var(--P) * -0.6);
}
.line__go--next {
  right: calc(var(--P) * -0.6);
}
.line__go[hidden] {
  display: none;
}
@media (hover: none), (pointer: coarse) {
  .line__go {
    display: none;
  }
}
/* 마우스로 잡아 옆으로 끄는 줄(grab.js): 진열대 줄과 앱 화면 줄. 넘치는 줄에서만 편 손이고, 끄는 동안은 쥔 손이다.
   줄 안의 봉지·화면 그림 위에서도 같은 손이다(끌지 않고 누르면 원래대로 열린다).
   손은 맨 위 :root 의 커서 변수(--cur-grab 편 레몬 손, --cur-grabbing 쥔 분홍 손)다. */
@media (hover: hover) and (pointer: fine) {
  :is(.hooks, .shots).is-grabbable,
  :is(.hooks, .shots).is-grabbable * {
    cursor: var(--cur-grab);
  }
  :is(.hooks, .shots).is-grabbable {
    -webkit-user-select: none;
    user-select: none;
  }
  :is(.hooks, .shots).is-grabbable :is(a, img) {
    -webkit-user-drag: none;
  }
  .is-grabbing,
  .is-grabbing * {
    cursor: var(--cur-grabbing) !important;
  }
  /* 끄는 중·관성으로 미끄러지는 중에는 줄 안의 봉지·그림이 누르기를 받지 않는다(던지고 손을 떼도 카드가 열리지 않게) */
  .is-moving * {
    pointer-events: none;
  }
}
/* 큰 봉지의 한 줄 소개는 한 줄까지만 둔다. 전체 문구는 앱 페이지에 있다. */
.aisle .pack:not(.pack--mini) .card__line {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  line-clamp: 1;
}

.peg {
  position: relative;
  width: calc(var(--p) * 10);
}

.hook {
  position: absolute;
  left: 50%;
  top: calc(var(--p) * -1.4375);
  width: calc(var(--p) * 2);
  height: calc(var(--p) * 2.5);
  margin-left: calc(var(--p) * -1);
  pointer-events: none;
}
.hook-tip {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: calc(var(--p) * 0.5625);
  width: calc(var(--p) * 0.4);
  height: calc(var(--p) * 0.4);
  margin: calc(var(--p) * -0.2) 0 0 calc(var(--p) * -0.2);
  border-radius: 50%;
  background: var(--wire-deep);
  box-shadow: inset calc(var(--p) * 0.06) calc(var(--p) * 0.06) 0 var(--wire);
  pointer-events: none;
}

/* 흔들림·마우스·기울기가 프레임마다 바꾸는 봉지 값. 물려주지 않는 값으로 등록해서, 바뀔 때마다
   봉지 속 글씨와 바코드까지 스타일을 다시 계산하지 않게 한다. 그림자(::before)만 봉지의 값을 받아 쓴다. */
@property --sway {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}
@property --rx {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}
@property --ry {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}
@property --shx {
  syntax: "<length>";
  inherits: false;
  initial-value: 0px;
}
@property --shy {
  syntax: "<length>";
  inherits: false;
  initial-value: 0px;
}
@property --lift {
  syntax: "<number>";
  inherits: false;
  initial-value: 0;
}
@property --gx {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 50%;
}
@property --gy {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 50%;
}
@property --hx {
  syntax: "<number>";
  inherits: false;
  initial-value: 50;
}
@property --hy {
  syntax: "<number>";
  inherits: false;
  initial-value: 50;
}

/* 봉지의 색과 이름 글씨는 앱마다 --tone, --tone-ink, --mark 로 넘겨받는다. */
.pack {
  position: relative;
  display: block;
  transform-origin: 50% calc(var(--p) * 0.5625);
  transform: perspective(1400px) rotate(calc(var(--rest, 0deg) + var(--sway, 0deg)))
    rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateZ(calc(var(--lift, 0) * 14px));
}
.pack::before {
  --shx: inherit;
  --shy: inherit;
  --lift: inherit;
  box-shadow:
    var(--shx, 0px) calc(var(--p) * 0.8 + var(--shy, 0px) + var(--lift, 0) * 6px)
    calc(var(--p) * 1.3 + var(--lift, 0) * 8px) calc(var(--p) * -0.25)
    rgb(52 48 70 / calc(0.34 - var(--lift, 0) * 0.06));
}
/* 벽에 지는 그림자. 걸린 것 뒤에 한 장 깔아 둔다. */
.pack::before,
.listing::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  border-radius: calc(var(--p) * 0.44);
  box-shadow: var(--hang-shadow);
}
.pack:has(.pack__link:focus-visible) {
  outline: 3px solid var(--ink);
  outline-offset: 6px;
  border-radius: calc(var(--p) * 0.44);
}
.pack__link {
  color: inherit;
  text-decoration: none;
  outline: none;
}
/* 빛. 손이 닿은 자리에 부드러운 반사가 서고, 봉지 전체에 옅은 무지개 결이 흐른다.
   눈이 아프지 않게 줄무늬 없이 넓은 띠만 쓰고, soft-light 로 얹어 사진의 색을 크게 바꾸지 않는다. */
.pack__holo,
.pack__glare {
  --lift: inherit;
  --gx: inherit;
  --gy: inherit;
  --hx: inherit;
  --hy: inherit;
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  border-radius: calc(var(--p) * 0.44);
  -webkit-mask:
    var(--slot) 50% calc(var(--p) * 0.28) / calc(var(--p) * 1.75) calc(var(--p) * 0.5625) no-repeat,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask:
    var(--slot) 50% calc(var(--p) * 0.28) / calc(var(--p) * 1.75) calc(var(--p) * 0.5625) no-repeat,
    linear-gradient(#000 0 0);
  mask-composite: exclude;
}
.pack__holo {
  background-image: linear-gradient(
    118deg,
    #ff8fb8 0%,
    #ffe08a 16%,
    #b4f5a0 32%,
    #8fdfff 48%,
    #c3a8ff 64%,
    #ff8fb8 80%,
    #ffe08a 100%
  );
  background-size: 260% 260%;
  background-position: calc(var(--hx, 50) * 1%) calc(var(--hy, 50) * 1%);
  mix-blend-mode: soft-light;
  opacity: calc(var(--lift, 0) * 0.55);
}
.pack__glare {
  background: radial-gradient(
    farthest-corner circle at var(--gx, 50%) var(--gy, 50%),
    rgb(255 255 255 / 0.5) 0%,
    rgb(255 255 255 / 0.16) 26%,
    rgb(255 255 255 / 0) 60%
  );
  mix-blend-mode: soft-light;
  opacity: calc(var(--lift, 0) * 0.8);
}

/* 봉지 어디를 눌러도 앱 페이지로 간다. 이름의 링크와 같은 곳을 가리키는 덮개다. */
.pack__cover {
  position: absolute;
  inset: 0;
  z-index: 5;
  border-radius: calc(var(--p) * 0.44);
}

.card {
  position: relative;
  display: block;
  height: calc(var(--p) * 7);
  padding: calc(var(--p) * 1.5) calc(var(--p) * 0.75) 0;
  color: var(--tone-ink, var(--ink));
  background: var(--tone, var(--paper));
  border-radius: calc(var(--p) * 0.44) calc(var(--p) * 0.44) 0 0;
  -webkit-mask:
    var(--slot) 50% calc(var(--p) * 0.28) / calc(var(--p) * 1.75) calc(var(--p) * 0.5625) no-repeat,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask:
    var(--slot) 50% calc(var(--p) * 0.28) / calc(var(--p) * 1.75) calc(var(--p) * 0.5625) no-repeat,
    linear-gradient(#000 0 0);
  mask-composite: exclude;
}
.card__name {
  margin: 0;
  font-family: var(--mark, "Do Hyeon"), var(--body);
  font-weight: var(--mark-weight, 400);
  font-size: calc(var(--p) * var(--mark-size, 2.4));
  line-height: 1.02;
  letter-spacing: var(--mark-tracking, -0.02em);
}
.card__line {
  margin: calc(var(--p) * 0.3) 0 0;
  font-size: max(0.8125rem, calc(var(--p) * 0.5));
  font-weight: 600;
  line-height: 1.4;
}
.dot {
  display: inline-block;
  width: 0.2em;
  height: 0.2em;
  margin: 0.12em 0 0 0.06em;
  vertical-align: top;
  border-radius: 50%;
  background: var(--red);
}

.bag {
  position: relative;
  margin-top: -1px;
  height: calc(var(--p) * 10.5 + 1px);
  border-radius: 0 0 calc(var(--p) * 0.44) calc(var(--p) * 0.44);
  overflow: hidden;
}
/* 한 장짜리 색 판(pack--card)과, 헤더 카드를 철심으로 박은 봉지(pack--bag) */
.pack--card .bag {
  color: var(--tone-ink);
  background: var(--tone);
}
.pack--bag .bag {
  background: var(--bag, var(--paper));
  box-shadow: inset 0 0 0 2px rgb(20 20 30 / 0.13);
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--tone-ink) 14%, transparent);
}
.pack--bag .card::after {
  content: "";
  position: absolute;
  left: calc(var(--p) * 1.1);
  bottom: calc(var(--p) * 0.3);
  width: calc(var(--p) * 0.7);
  height: calc(var(--p) * 0.13);
  border-radius: calc(var(--p) * 0.07);
  background: var(--wire-deep);
  box-shadow: calc(var(--p) * 7.1) 0 0 var(--wire-deep);
}

.tag {
  position: absolute;
  z-index: 4;
  right: calc(var(--p) * -0.7);
  top: calc(var(--p) * -0.75);
  width: calc(var(--p) * 2.6);
  height: calc(var(--p) * 2.6);
  margin: 0;
  display: grid;
  place-items: center;
  text-align: center;
  font: 400 max(0.75rem, calc(var(--p) * 0.5)) / 1.1 var(--shop);
  color: var(--ink);
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 50%;
  transform: rotate(9deg);
}

.label {
  position: absolute;
  left: calc(var(--p) * 0.5);
  right: calc(var(--p) * 0.5);
  bottom: calc(var(--p) * 0.5);
  padding: calc(var(--p) * 0.3) calc(var(--p) * 0.4) calc(var(--p) * 0.25);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: calc(var(--p) * 0.3);
  align-items: end;
  color: var(--ink);
  background: var(--paper);
  border-radius: calc(var(--p) * 0.19);
  font-size: max(0.6875rem, calc(var(--p) * 0.375));
  font-weight: 600;
  line-height: 1.4;
  font-variant-numeric: tabular-nums;
}
.pack--bag .label--sticker {
  box-shadow: 0 0 0 2px rgb(20 20 30 / 0.13);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--tone-ink) 14%, transparent);
}
/* 흰 봉지에는 흰 딱지를 한 겹 더 두지 않고 바로 찍는다. */
.label--printed {
  background: none;
  padding-inline: calc(var(--p) * 0.25);
}
.label > svg {
  grid-column: 1 / -1;
  width: 100%;
  height: calc(var(--p) * 0.8);
  margin-bottom: calc(var(--p) * 0.16);
}
.label__id {
  grid-column: 1 / -1;
}
.label__ver {
  color: var(--sub);
}
/* 봉지가 눌린다는 단서. 딱지에 찍힌 한마디다. */
.label__go {
  grid-column: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  font: 400 max(0.8125rem, calc(var(--p) * 0.5)) / 1.2 var(--shop);
  text-decoration: underline transparent;
  text-underline-offset: 0.22em;
  transition: text-decoration-color 0.18s var(--out);
}
.label__go svg {
  width: 0.7em;
  height: 0.7em;
  flex: none;
}
.pack:hover .label__go,
.pack:has(.pack__link:focus-visible) .label__go {
  text-decoration-color: currentColor;
}

/* 봉지 속 물건 ─ 앱마다 다르다 */

/* 따로 꾸미지 않은 앱: 화면 한 장을 창에 넣는다 */
.window {
  position: absolute;
  left: calc(var(--p) * 1.25);
  right: calc(var(--p) * 1.25);
  top: calc(var(--p) * 0.5);
  height: calc(var(--p) * 6.6);
  overflow: hidden;
  border-radius: calc(var(--p) * 0.4);
  box-shadow: 0 0 0 1px var(--rule);
}
.window img {
  width: 100%;
  height: auto;
}

/* 세로로 긴 물건 하나(휴대폰 화면 등)를 봉지에 꽂아 둔다. 아래쪽은 딱지 뒤로 들어간다. */
.showcase {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(var(--p) * 0.5);
  height: calc(var(--p) * 6.7);
  overflow: hidden;
}
.showcase img {
  width: calc(var(--p) * 5.4);
  height: auto;
  margin-inline: auto;
}

/* 가나디야: 컵케이크를 든 시바 한 마리 */
.mascot {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(var(--p) * 0.55);
  display: grid;
  justify-items: center;
}
.mascot img {
  width: calc(var(--p) * 6.5);
  height: auto;
}

/* 작은 봉지: 이름 카드 아래에 실제 화면이나 하는 일을 보여 주는 도식 한 장과 한 줄.
   도구·회사 프로젝트처럼 뒷면이 따로 없는 물건이라 바코드 딱지 대신 갈 곳만 적는다. */
.pack--mini .card {
  height: calc(var(--p) * 5.6);
  padding-top: calc(var(--p) * 1.45);
}
.pack--mini .card__line {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  line-clamp: 1;
}
.pack--mini .bag {
  height: calc(var(--p) * 8);
}
.pack--wide .bag {
  height: calc(var(--p) * 9.4);
}
.mini__art {
  margin: calc(var(--p) * 0.15) calc(var(--p) * 0.6) 0;
  aspect-ratio: 120 / 64;
  overflow: hidden;
  color: var(--tone-ink);
  background: rgb(255 255 255 / 0.55);
  border-radius: calc(var(--p) * 0.3);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--tone-ink) 16%, transparent);
}
.mini__art img,
.mini__art svg {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* 그림 카드(회사 프로젝트·논문): 그림이 주인공이라 카드를 넓히고 그림을 카드 폭에 가깝게 3:2 로 둔다.
   넓은 카드라 이름이 한 줄이어서 이름 칸이 낮다. 그림 높이(--pi, 폰은 --npi)는 build.py 가 카드 폭에서 계산해 넣고,
   그 아래는 한 줄(두 줄까지)과 「보기」 칸이다(글씨의 px 하한까지 셈해 build.py 의 PHOTO 와 같은 값). */
.pack--photo .card {
  height: calc(var(--p) * 4.6);
}
.pack--photo .bag {
  height: calc(var(--p) * (1.35 + var(--pi)) + max(33.6px, var(--p) * 1.4) + max(15.6px, var(--p) * 0.6));
}
.pack--photo .mini__art {
  margin: calc(var(--p) * 0.15) calc(var(--p) * 0.35) 0;
  aspect-ratio: var(--ar, 1.5);
  border-radius: calc(var(--p) * 0.26);
}
.pack--photo .mini__line {
  margin-inline: calc(var(--p) * 0.5);
}
.mini__line {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  margin: calc(var(--p) * 0.35) calc(var(--p) * 0.6) 0;
  font-size: max(0.75rem, calc(var(--p) * 0.5));
  font-weight: 600;
  line-height: 1.4;
}
.mini__go {
  position: absolute;
  right: calc(var(--p) * 0.6);
  bottom: calc(var(--p) * 0.45);
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  font: 400 max(0.8125rem, calc(var(--p) * 0.5)) / 1.2 var(--shop);
  text-decoration: underline transparent;
  text-underline-offset: 0.22em;
  transition: text-decoration-color 0.18s var(--out);
}
.mini__go svg {
  width: 0.7em;
  height: 0.7em;
  flex: none;
}
.pack:hover .mini__go,
.pack:has(.pack__link:focus-visible) .mini__go {
  text-decoration-color: currentColor;
}

/* 소개: 흰 헤더 카드에 먹 테두리, 비닐 봉지에 든 명함. 아래 한 장이 더 비친다. */
.pack--about .card {
  box-shadow: inset 0 0 0 2px var(--ink);
}
.pack--about .bag {
  box-shadow: inset 0 0 0 2px var(--ink);
}
.namecards {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(var(--p) * 0.85);
  height: calc(var(--p) * 6);
}
.namecard {
  position: absolute;
  left: 50%;
  top: 0;
  width: calc(var(--p) * 8.4);
  height: calc(var(--p) * 4.9);
  margin-left: calc(var(--p) * -4.2);
  padding: calc(var(--p) * 0.55) calc(var(--p) * 0.6);
  color: var(--ink);
  background: var(--paper);
  border-radius: calc(var(--p) * 0.12);
  box-shadow: 0 0 0 1px var(--rule), 0 calc(var(--p) * 0.12) calc(var(--p) * 0.3) rgb(52 48 70 / 0.12);
  transform: rotate(-2deg);
}
.namecard--under {
  top: calc(var(--p) * 0.9);
  background: var(--lemon);
  box-shadow: 0 0 0 1px rgb(23 23 26 / 0.08);
  transform: rotate(3.5deg);
}
.namecard p {
  margin: 0;
}
.namecard__name {
  font: 400 calc(var(--p) * 0.95) / 1 var(--shop);
  letter-spacing: -0.01em;
}
.namecard .namecard__role {
  margin-top: calc(var(--p) * 0.2);
  font-size: calc(var(--p) * 0.36);
  font-weight: 700;
  line-height: 1.35;
  color: var(--sub);
}
.namecard .namecard__org {
  margin-top: calc(var(--p) * 0.45);
  padding-top: calc(var(--p) * 0.32);
  border-top: 1px solid var(--rule);
  font-size: calc(var(--p) * 0.36);
  font-weight: 600;
  line-height: 1.45;
}

/* 스크린펫: 분홍 판에 투명 덮개 */
.bubble {
  position: absolute;
  left: calc(var(--p) * 1);
  right: calc(var(--p) * 1);
  top: 0;
  height: calc(var(--p) * 5.5);
  border-radius: calc(var(--p) * 4) calc(var(--p) * 4) calc(var(--p) * 0.8) calc(var(--p) * 0.8);
  background: var(--pink-light);
  box-shadow: inset 0 0 0 2px rgb(255 255 255 / 0.7);
}
.bubble img {
  position: absolute;
  left: 50%;
  bottom: calc(var(--p) * 0.15);
  height: calc(var(--p) * 5.6);
  width: auto;
  max-width: none;
  transform: translateX(-50%);
}
.litter {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(var(--p) * 5.75);
  display: flex;
  justify-content: center;
  gap: calc(var(--p) * 0.06);
}
.litter img {
  height: calc(var(--p) * 1.5);
  width: auto;
}

/* 마이리틀클로젯: 투명 봉지에 든 스티커 시트 */
.stickers {
  position: absolute;
  left: calc(var(--p) * 0.5);
  right: calc(var(--p) * 0.5);
  top: calc(var(--p) * 0.5);
  height: calc(var(--p) * 6.5);
  padding: calc(var(--p) * 0.2);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  place-items: center;
  background: var(--lilac);
  border-radius: calc(var(--p) * 0.19);
}
.stickers img {
  max-width: calc(var(--p) * 2.7);
  max-height: calc(var(--p) * 2.9);
  width: auto;
  height: auto;
}

/* 모아캠: 흰 봉지에 든 라이브 판 두 장 */
.plates {
  position: absolute;
  left: calc(var(--p) * 1.25);
  right: calc(var(--p) * 1.25);
  top: calc(var(--p) * 0.5);
  display: grid;
  gap: calc(var(--p) * 0.25);
}
.plates img {
  width: 100%;
  height: auto;
}

/* ── 발치 ─────────────────────────────────── */

.foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--p);
  margin-top: calc(var(--p) * 3);
  padding-bottom: calc(var(--p) * 1.5);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--sub);
}
.foot p {
  margin: 0;
}
.foot a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

/* ── 앱 페이지: 고리에서 뗀 봉지의 뒷면 ─────────
   흰 판 한 장이 고리 둘에 걸려 있고, 그 위는 앱 장터의 앱 화면처럼 짠다. */

.back {
  position: relative;
  width: calc(var(--p) * 30);
  max-width: 100%;
  margin: calc(var(--p) * 1.4375) auto 0;
}
.back .hook,
.back .hook-tip {
  left: calc(50% + var(--hx, 0) * var(--p));
}
.listing {
  position: relative;
  isolation: isolate;
  border-radius: calc(var(--p) * 0.44);
}
.listing__paper {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--paper);
  -webkit-mask:
    var(--slot) calc(50% - var(--p) * 7) calc(var(--p) * 0.28) / calc(var(--p) * 1.75) calc(var(--p) * 0.5625) no-repeat,
    var(--slot) calc(50% + var(--p) * 7) calc(var(--p) * 0.28) / calc(var(--p) * 1.75) calc(var(--p) * 0.5625) no-repeat,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask:
    var(--slot) calc(50% - var(--p) * 7) calc(var(--p) * 0.28) / calc(var(--p) * 1.75) calc(var(--p) * 0.5625) no-repeat,
    var(--slot) calc(50% + var(--p) * 7) calc(var(--p) * 0.28) / calc(var(--p) * 1.75) calc(var(--p) * 0.5625) no-repeat,
    linear-gradient(#000 0 0);
  mask-composite: exclude;
}
.listing__in {
  position: relative;
  padding: calc(var(--p) * 1.4 + 1.25rem) 2.5rem 2rem;
  font-size: 1rem;
  line-height: 1.7;
}

/* 머리: 아이콘, 이름, 받기 */
.app-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1.75rem;
  align-items: center;
}
.app-icon {
  width: 8.5rem;
  height: 8.5rem;
  border-radius: 22.5%;
  box-shadow: 0 0 0 1px var(--rule);
}
/* 소개 머리의 사진: 증명사진(세로)을 자르지 않고 작게 둔다(정사각형으로 자르면 얼굴만 크게 보였다) */
.app-icon.app-icon--photo {
  width: 5.75rem;
  height: auto;
  aspect-ratio: 35 / 45;
  object-fit: cover;
  border-radius: 0.85rem;
  background: #fff;
}
/* 회사 프로젝트 페이지: 앱 아이콘 자리에 하는 일을 보여 주는 도식을 크게 */
.work-art,
.work-thumb {
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--tone-ink);
  background: var(--tone);
  box-shadow: 0 0 0 1px var(--rule);
}
.work-art {
  width: 16rem;
  aspect-ratio: 120 / 64;
  padding: 0.6rem;
  border-radius: 1.1rem;
}
.work-art svg {
  width: 100%;
  height: 100%;
}
.work-thumb {
  width: 4rem;
  height: 4rem;
  border-radius: 22.5%;
}
.work-thumb svg {
  width: 150%;
  height: auto;
}
/* 대표 그림이 사진이면 칸을 꽉 채운다(진열대 그림 카드와 같은 3:2) */
.work-art--photo {
  aspect-ratio: 3 / 2;
  padding: 0;
}
.work-art--photo img,
.work-thumb--photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.app-name {
  margin: 0;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.app-sub {
  margin: 0.15rem 0 0;
  font-size: 1.0625rem;
  line-height: 1.45;
  color: var(--sub);
}
.app-dev {
  margin: 0.2rem 0 0;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.45;
}
.app-dev a {
  display: inline-block;
  /* 줄 높이는 그대로 두고 누르는 자리만 44px 로 넓힌다 */
  padding-block: 0.7rem;
  margin-block: -0.5rem;
  color: var(--accent, var(--ink));
  text-decoration: none;
}
.app-dev a:hover {
  text-decoration: underline;
}
.app-get {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.7rem 0 0;
}
.get {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0 1.5rem;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  color: var(--tone-ink, var(--ink));
  text-decoration: none;
  background: var(--tone, var(--mute));
  border-radius: 999px;
  transition: filter 0.18s var(--out);
}
a.get:hover {
  filter: brightness(0.95);
}
.get--wait {
  color: var(--sub);
  background: var(--mute);
}
/* 소개 머리의 메일·이력서 단추: GitHub 옆에 테두리만 있는 단추로 */
.get--line {
  padding: 0 1.15rem;
  color: var(--ink);
  background: var(--paper);
  box-shadow: inset 0 0 0 2px var(--ink);
}
a.get--line:hover {
  filter: none;
  background: var(--lemon);
}

/* Google Play 배지. 구글이 주는 그림을 그대로 쓰고, 주소가 없으면 옆에 상태만 적는다. */
.store-badge {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.8rem;
  border-radius: 0.55rem;
}
.badge-play {
  height: 3rem;
  width: auto;
}
.store-badge--wait {
  cursor: var(--cur);
}
.store-badge__note {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--sub);
}
.get--small {
  min-height: 2rem;
  padding: 0 1.1rem;
  font-size: 0.875rem;
  color: var(--ink);
  background: var(--mute);
}

/* 한눈에 보기 띠 */
.app-facts {
  display: flex;
  margin: 1.75rem 0 0;
  padding: 0.9rem 0;
  list-style: none;
  border-block: 1px solid var(--rule);
  overflow-x: auto;
  scrollbar-width: none;
}
.app-facts::-webkit-scrollbar {
  display: none;
}
.app-facts li {
  flex: 1 0 auto;
  min-width: 6.25rem;
  padding: 0 1.1rem;
  text-align: center;
  border-left: 1px solid var(--rule);
}
.app-facts li:first-child {
  border-left: 0;
}
.fact__label,
.fact__value,
.fact__note {
  display: block;
}
.fact__label {
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--sub);
}
.fact__value {
  margin: 0.2rem 0 0.05rem;
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.25;
  font-variant-numeric: tabular-nums;
  color: var(--sub);
}
.fact__note {
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--sub);
}
.nobr {
  white-space: nowrap;
}
/* 아주 좁은 폰: 한눈에 보기 값을 조금 작게, 그래도 넘치면 묶음도 끊는다(칸 밖으로 나가지 않게) */
@media (max-width: 359px) {
  .app-facts .fact__value {
    font-size: 1.0625rem;
  }
  .app-facts .nobr {
    white-space: normal;
  }
}

/* 구역 */
.sec {
  margin-top: 2rem;
}
.sec + .sec {
  padding-top: 1.75rem;
  border-top: 1px solid var(--rule);
}
.sec h2 {
  margin: 0 0 0.9rem;
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.sec p {
  margin: 0;
  max-width: 40rem;
}
.sec p + p {
  margin-top: 0.6rem;
}
.sec .sec__note {
  margin-top: 0.8rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--sub);
}
.desc__lead {
  font-weight: 700;
}
.desc ul {
  margin: 0.9rem 0 0;
  padding: 0;
  max-width: 40rem;
  list-style: none;
}
.desc li {
  position: relative;
  padding: 0.15rem 0 0.15rem 1.1rem;
}
.desc li::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 0.95em;
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 50%;
  background: var(--tone-ink, var(--ink));
}
.news__ver {
  font-size: 0.9375rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--sub);
}

/* 버전 기록: 접어 두었다가 펼쳐 본다 */
.history {
  margin-top: 0.9rem;
}
.history summary {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 44px;
  font-weight: 700;
  color: var(--accent, var(--ink));
  cursor: var(--cur-point);
  list-style: none;
}
.history summary::-webkit-details-marker {
  display: none;
}
.history summary span {
  font-weight: 600;
  color: var(--sub);
}
.history summary::after {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  margin: -0.2rem 0 0 0.1rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.2s var(--out);
}
.history[open] summary::after {
  margin-top: 0.25rem;
  transform: rotate(-135deg);
}
.history__list {
  max-width: 40rem;
  margin: 0.25rem 0 0;
  padding: 0;
  list-style: none;
}
.history__list li {
  padding: 0.8rem 0;
  border-top: 1px solid var(--rule);
}
.history__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}
.history__head time {
  flex: none;
  font-size: 0.875rem;
  color: var(--sub);
  font-variant-numeric: tabular-nums;
}
.sec .history__list p {
  margin-top: 0.2rem;
}

/* 미리보기: 앱 화면을 옆으로 넘겨 보고, 누르면 크게 본다 */
.shots__open {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 1.1rem;
  background: none;
  cursor: var(--cur-zoom);
}
.shots--wide .shots__open {
  border-radius: 0.7rem;
}
.shots__open:hover img {
  box-shadow: 0 0 0 1px var(--rule), 0 0.6rem 1.4rem -0.6rem rgb(52 48 70 / 0.35);
}

/* 크게 보기 */
.zoom {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
}
.zoom::backdrop {
  background: var(--board);
}
.zoom__stage {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 4.75rem 5.5rem 4.25rem;
  touch-action: pan-y;
}
/* 그림은 위 막대와 아래 설명을 뺀 자리 안에 들어온다 */
.zoom__img {
  max-width: calc(100vw - 11rem);
  max-height: calc(100vh - 9rem);
  max-height: calc(100dvh - 9rem);
  width: auto;
  height: auto;
  border-radius: 1rem;
  box-shadow: 0 0 0 1px var(--rule), 0 1.5rem 3rem -1.2rem rgb(52 48 70 / 0.4);
}
.zoom__bar {
  position: fixed;
  top: 1rem;
  left: 1.25rem;
  right: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1;
}
.zoom__count {
  margin: 0;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--sub);
}
.zoom__caption {
  position: fixed;
  left: 1.25rem;
  right: 1.25rem;
  bottom: 1rem;
  margin: 0 auto;
  max-width: 40rem;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  text-align: center;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--sub);
}
.zoom__prev,
.zoom__next {
  position: fixed;
  top: 50%;
  z-index: 1;
  width: 44px;
  justify-content: center;
  padding: 0;
  transform: translateY(-50%);
}
.zoom__prev {
  left: 1.25rem;
}
.zoom__next {
  right: 1.25rem;
}
.zoom__prev:active,
.zoom__next:active {
  transform: translateY(calc(-50% + 1px));
}
.zoom__prev[hidden],
.zoom__next[hidden] {
  display: none;
}
.shots {
  display: flex;
  gap: 0.875rem;
  margin: 0 -2.5rem;
  padding: 0.25rem 2.5rem 0.75rem;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scroll-padding-inline: 2.5rem;
  scrollbar-width: thin;
  scrollbar-color: var(--rule) transparent;
}
/* 폰 화면 그림은 보통 720×1560 이다. 비율이 다른 그림은 --k(보통 그림보다 몇 배 넓은가)를 받아
   폭만 늘리고 높이는 옆 그림과 같게 선다. 예: 720×1440 이면 --k:calc(1560 / 1440). */
.shots li {
  flex: 0 0 auto;
  width: calc(13.75rem * var(--k, 1));
  scroll-snap-align: start;
}
.shots img {
  width: 100%;
  height: auto;
  border-radius: 1.1rem;
  box-shadow: 0 0 0 1px var(--rule);
}
/* 앱 화면을 녹화한 영상. 옆의 화면 그림과 비율이 같아(영상 540×1170, 그림 720×1560) 폭도 같다. */
.shots video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 1.1rem;
  background: #111;
  box-shadow: 0 0 0 1px var(--rule);
}

/* PC 화면처럼 가로로 긴 그림 */
.shots--wide li {
  width: 27rem;
}
.shots--wide img {
  border-radius: 0.7rem;
}
/* 회사 프로젝트 자료: 그림 비율이 제각각(화면 캡처·CCTV·지도)이라 높이를 맞추고, 폭은 그림 비율대로 둔다.
   칸 폭은 그림 폭(min-content)이라 아래 설명은 그림 폭 안에서 줄바뀜한다. */
.shots.shots--work li {
  width: min-content;
}
.shots.shots--work img {
  width: auto;
  max-width: none;
  height: 16.875rem;
}
@media (max-width: 640px) {
  .shots.shots--work img {
    height: calc((100vw - 2.5rem) * 0.5);
  }
}
/* 그림 아래 짧은 설명. 실제 자료가 없어 만든 그림에는 「생성 이미지」 딱지를 붙인다. */
.shots__cap {
  margin: 0.55rem 0.15rem 0;
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--sub);
}
.shots__note {
  display: inline-block;
  margin-left: 0.45em;
  padding: 0.12em 0.55em 0.08em;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.3;
  vertical-align: 0.08em;
  color: var(--ink);
  background: var(--mute);
  border-radius: 999px;
  white-space: nowrap;
}

/* 스크린펫: 꺼내 보기 */
.demo--pet {
  padding: 1.5rem;
  color: var(--pink-ink);
  background: var(--pink);
  border-radius: 1.25rem;
}
.petbox {
  display: grid;
  grid-template-columns: 13rem minmax(0, 1fr);
  gap: 1.75rem;
  align-items: center;
}
.petbox__stage {
  position: relative;
  height: 15rem;
  display: grid;
  place-items: end center;
  padding-bottom: 0.75rem;
  overflow: hidden;
  border-radius: 6.5rem 6.5rem 1.25rem 1.25rem;
  background: var(--pink-light);
  box-shadow: inset 0 0 0 2px rgb(255 255 255 / 0.7);
}
.petbox__stage img {
  max-height: 12.5rem;
  width: auto;
}
.petbox__stage img[data-style="pixel"] {
  width: 192px;
  height: 208px;
  max-height: none;
  image-rendering: pixelated;
}
.demo--pet .petbox__name {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.demo--pet .petbox__kind {
  margin: 0.1rem 0 0;
  font-size: 0.9375rem;
  font-weight: 600;
}
.petbox__go {
  margin-top: 0.9rem;
}
.demo--pet .petbox__hint {
  margin: 0.7rem 0 0;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.5;
}
.roster {
  margin: 1.5rem 0 0;
  padding: 0;
  border: 0;
  min-width: 0;
}
.roster legend {
  padding: 0;
  font-size: 1.0625rem;
  font-weight: 700;
}
.roster__group {
  margin-top: 0.6rem;
}
.demo--pet .roster__kind {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 700;
}
.roster__row {
  display: flex;
  gap: 2px;
}
/* 줄이 좁으면 단추가 같이 줄어 한 줄을 지킨다 */
.pick {
  flex: 0 1 52px;
  min-width: 0;
  aspect-ratio: 52 / 56;
  padding: 2px;
  background: transparent;
  border: 2px solid transparent;
  border-radius: 8px;
  cursor: var(--cur-point);
}
.pick img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.pick:hover {
  background: rgb(255 255 255 / 0.35);
}
.pick[aria-pressed="true"] {
  background: var(--paper);
  border-color: var(--pink-ink);
}
/* 스크린펫: 사진으로 새 펫 만들기(시연). 사진이 도트로 바뀐 뒤 「사진으로 만든 펫」 줄에 더해진다 */
.petmake {
  margin-top: 1.25rem;
  padding: 1rem 1.1rem 1.1rem;
  background: rgb(255 255 255 / 0.2);
  border: 2px dashed rgb(61 10 30 / 0.45);
  border-radius: 1rem;
}
.demo--pet .petmake__title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.5rem;
  margin: 0 0 0.75rem;
  font-size: 1.0625rem;
  font-weight: 700;
}
.petmake__title svg {
  width: 1rem;
  height: 1rem;
}
.petmake__tag {
  padding: 0.15rem 0.55rem 0.1rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--pink-ink);
  background: var(--lemon);
  border-radius: 999px;
}
.petmake__photos {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 6.25rem));
  gap: 0.6rem;
}
.petmake__photo {
  display: grid;
  justify-items: center;
  gap: 0.3rem;
  min-width: 0;
  padding: 0.3rem 0.3rem 0.4rem;
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--pink-ink);
  background: var(--paper);
  border: 2px solid transparent;
  border-radius: 0.8rem;
  cursor: var(--cur-point);
  transition: border-color 0.15s var(--out), background-color 0.15s var(--out);
}
.petmake__photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 0.5rem;
}
.petmake__photo:hover:not(:disabled) {
  border-color: rgb(61 10 30 / 0.5);
}
.petmake__photo[aria-pressed="true"] {
  background: #fff6c4;
  border-color: var(--pink-ink);
}
.petmake__photo:disabled {
  opacity: 0.65;
  cursor: progress;
}
.petmake__go {
  margin-top: 0.85rem;
}
.btn.petmake__go:disabled {
  color: rgb(61 10 30 / 0.55);
  background: rgb(255 255 255 / 0.5);
  border-color: rgb(61 10 30 / 0.35);
  cursor: not-allowed;
}
.demo--pet .petmake__note {
  margin: 0.65rem 0 0;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.5;
}
/* 만드는 장면: 무대 위에 사진을 덮고 칸 수를 줄여 가며 도트로, 끝나면 걷어 낸다 */
.petbox__make {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transition: opacity 0.45s var(--out);
}
.petbox__make.is-done {
  opacity: 0;
}
.petbox__busy {
  position: absolute;
  left: 50%;
  bottom: 0.7rem;
  padding: 0.35rem 0.8rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--paper);
  white-space: nowrap;
  background: var(--pink-ink);
  border-radius: 999px;
  transform: translateX(-50%);
}
/* 사진으로 만든 펫 단추: 모서리에 레몬 점 */
.pick--new {
  position: relative;
}
.pick--new::after {
  content: "";
  position: absolute;
  top: 1px;
  right: 1px;
  width: 10px;
  height: 10px;
  background: var(--lemon);
  border: 2px solid var(--pink-ink);
  border-radius: 50%;
}
.roamer {
  position: fixed;
  z-index: 60;
  left: 0;
  bottom: 0;
  width: 96px;
  height: 104px;
  background-repeat: no-repeat;
  background-size: 768px 520px;
  cursor: var(--cur-grab);
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  will-change: transform;
}
.roamer:active {
  cursor: var(--cur-grabbing);
}

/* 소개 페이지 */
svg.app-icon {
  box-shadow: none;
}
.app-dev--plain {
  color: var(--sub);
}
.cv {
  max-width: 40rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.cv li {
  padding: 0.85rem 0;
  border-top: 1px solid var(--rule);
}
.cv li:first-child {
  border-top: 0;
  padding-top: 0;
}
.cv__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.6rem;
}
.cv__head b {
  font-size: 1.125rem;
}
.cv__head span {
  font-weight: 600;
}
.cv__head time {
  margin-left: auto;
  font-size: 0.875rem;
  color: var(--sub);
  font-variant-numeric: tabular-nums;
}
.sec .cv p {
  margin-top: 0.35rem;
  color: #33333a;
}
/* 개인 프로젝트 아래의 작은 목록(그 밖의 앱·도구) 제목 */
.sec h3.sec__sub {
  margin: 1.75rem 0 0.75rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--sub);
}

/* 회사 프로젝트 구성도: 넓은 화면은 왼쪽→오른쪽, 좁은 화면은 위→아래. 노드는 사이트 스티커처럼 진한 테두리,
   모델·AI 단계는 레몬, 결과는 연보라, 함께 쓰는 것끼리는 점선 묶음. 화살표는 그림(--arrow). */
.flow {
  --arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14' fill='none' stroke='%2317171a' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 7h9.5M7.5 3l4 4-4 4'/%3E%3C/svg%3E");
}
.flow + .flow {
  margin-top: 1.6rem;
}
.flow__title {
  margin: 0 0 0.6rem;
  font: 400 1.125rem / 1.1 var(--shop);
}
.flow__steps {
  display: grid;
  grid-template-columns: repeat(var(--n), minmax(0, 1fr));
  gap: 0 1.75rem;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}
.flow__step {
  position: relative;
}
.flow__step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -1.4rem;
  width: 1rem;
  height: 1rem;
  background: var(--arrow) center / contain no-repeat;
  transform: translateY(-50%);
}
.flow__node {
  padding: 0.6rem 0.7rem 0.65rem;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 0.75rem;
  box-shadow: 0 6px 12px -10px rgb(52 48 70 / 0.6);
}
.flow__node b {
  display: block;
  font-size: 0.9375rem;
  line-height: 1.3;
}
.flow__node > span {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--sub);
}
.flow__node--model {
  background: var(--lemon);
}
.flow__node--model > span {
  color: #4a4528;
}
.flow__node--out {
  background: var(--lilac-light);
}
.flow__step--group {
  padding: 0.5rem;
  border: 2px dashed var(--wire);
  border-radius: 0.95rem;
}
.flow__label {
  margin: 0 0 0.45rem 0.15rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--sub);
}
.flow__nodes {
  display: grid;
  gap: 0.45rem;
}
.flow__note {
  margin: 0.7rem 0 0;
  font-size: 0.8125rem;
  color: var(--sub);
}
@media (max-width: 860px) {
  .flow__steps {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem 0;
  }
  .flow__step:not(:last-child)::after {
    top: auto;
    right: auto;
    bottom: -1.25rem;
    left: 50%;
    transform: translateX(-50%) rotate(90deg);
  }
  .flow__nodes {
    grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr));
  }
}

/* 풀어야 했던 문제 → 해결. 한 줄씩 짧게. 넓은 화면은 두 칸, 좁은 화면은 위아래 */
.solve {
  display: grid;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.solve li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.4rem 1.75rem;
  padding: 0.75rem 1rem;
  border-radius: 0.85rem;
  background: var(--mute);
}
.solve__q,
.solve__a {
  display: block;
  line-height: 1.55;
}
.solve__a {
  position: relative;
}
.solve__a::before {
  content: "";
  position: absolute;
  top: 0.3rem;
  left: -1.35rem;
  width: 0.95rem;
  height: 0.95rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14' fill='none' stroke='%2317171a' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 7h9.5M7.5 3l4 4-4 4'/%3E%3C/svg%3E") center / contain no-repeat;
}
.solve__tag {
  display: inline-block;
  margin-right: 0.5rem;
  padding: 0.15rem 0.5rem 0.1rem;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--paper);
  vertical-align: 0.1em;
  background: var(--ink);
  border-radius: 999px;
}
.solve__tag--a {
  color: var(--ink);
  background: var(--lemon);
}

/* 마이리틀클로젯 체험 칸: 옷 고르기 → 배경 지우기 → 내 사진 고르기 → AI로 입혀 보기(시연, 미리 만든 견본) */
.try {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 1.25rem 1.5rem;
  align-items: start;
}
.try__stage {
  margin: 0;
}
.try__frame {
  --split: 50%;
  position: relative;
  aspect-ratio: 2 / 3;
  max-height: 36rem;
  margin-inline: auto;
  overflow: hidden;
  background: #e9e6e0;
  border-radius: 1rem;
  box-shadow: 0 0 0 2px var(--ink), 0 12px 20px -16px rgb(52 48 70 / 0.7);
}
.try__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.try__img[hidden],
.try__sheet[hidden] {
  display: none;
}
/* 배경을 지운 옷은 스티커 시트(연보라) 위에 흰 테두리 스티커로 */
.try__sheet {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 1px 1px, rgb(31 27 77 / 0.12) 1px, transparent 1.5px) 0 0 / 14px 14px, var(--tone, #d9d2ff);
}
.try__img--cut {
  position: static;
  width: 80%;
  height: 80%;
  object-fit: contain;
  filter: drop-shadow(2px 0 0 #fff) drop-shadow(-2px 0 0 #fff) drop-shadow(0 2px 0 #fff) drop-shadow(0 -2px 0 #fff)
    drop-shadow(0 8px 10px rgb(31 27 77 / 0.22));
}
/* 배경 지우기: 레몬 선이 위에서 아래로 쓸고 지나간 자리부터 스티커가 드러난다 */
.try__sweep {
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: var(--lemon);
  box-shadow: 0 0 0 1px var(--ink), 0 0 18px 6px rgb(255 229 92 / 0.65);
  opacity: 0;
  pointer-events: none;
}
.try__frame.is-cutting .try__sheet {
  animation: try-reveal 1.2s cubic-bezier(0.45, 0, 0.25, 1) both;
}
.try__frame.is-cutting .try__sweep {
  animation: try-sweep 1.2s cubic-bezier(0.45, 0, 0.25, 1) both;
}
@keyframes try-reveal {
  from {
    clip-path: inset(0 0 100% 0);
  }
  to {
    clip-path: inset(0 0 0 0);
  }
}
@keyframes try-sweep {
  from {
    top: 0;
    opacity: 1;
  }
  92% {
    opacity: 1;
  }
  to {
    top: 100%;
    opacity: 0;
  }
}
/* 입혀 보기 기다림: 밝은 띠가 사람 위를 훑는다 */
.try__busy {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: end center;
  padding-bottom: 1.1rem;
  background: rgb(31 27 77 / 0.12);
}
.try__busy[hidden] {
  display: none;
}
.try__busy::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgb(255 255 255 / 0.6), transparent) 0 -40% / 100% 40% no-repeat;
  animation: try-scan 1.1s linear infinite;
}
@keyframes try-scan {
  to {
    background-position: 0 140%;
  }
}
.try__busy span {
  position: relative;
  padding: 0.45rem 0.95rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--paper);
  background: var(--ink);
  border-radius: 999px;
}
/* 인물 위 모서리의 작은 스티커: 이 옷을 입혀 본다 */
.try__mini {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  display: grid;
  place-items: center;
  width: 30%;
  aspect-ratio: 3 / 4;
  padding: 0.35rem;
  background: var(--tone, #d9d2ff);
  border-radius: 0.8rem;
  box-shadow: 0 0 0 2px var(--ink), 0 8px 14px -10px rgb(52 48 70 / 0.6);
}
.try__mini[hidden] {
  display: none;
}
.try__mini img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(1px 0 0 #fff) drop-shadow(-1px 0 0 #fff) drop-shadow(0 1px 0 #fff) drop-shadow(0 -1px 0 #fff);
}
/* 결과 비교: 막대 오른쪽이 입힌 결과 */
.try__img--result {
  clip-path: inset(0 0 0 var(--split));
}
.try__compare {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
}
.try__compare[hidden] {
  display: none;
}
.try__frame:has(.try__compare:not([hidden]))::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--split);
  width: 3px;
  background: var(--paper);
  box-shadow: 0 0 0 1px var(--ink);
  transform: translateX(-50%);
  pointer-events: none;
}
.try__frame:has(.try__compare:not([hidden]))::before {
  content: "";
  position: absolute;
  z-index: 1;
  top: 50%;
  left: var(--split);
  width: 2.6rem;
  height: 2.6rem;
  background: var(--lemon)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2317171a' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6 3 12l6 6M15 6l6 6-6 6'/%3E%3C/svg%3E")
    center / 1.25rem no-repeat;
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--ink), 0 6px 12px -6px rgb(23 23 26 / 0.5);
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.try__frame:has(.try__compare:focus-visible) {
  outline: 3px solid var(--ink);
  outline-offset: 4px;
}
.try__labels {
  position: absolute;
  inset: auto 0.75rem 0.75rem;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}
.try__labels[hidden] {
  display: none;
}
.try__labels span {
  padding: 0.25rem 0.6rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--ink);
  background: rgb(255 255 255 / 0.88);
  border-radius: 999px;
}
.try__labels span:last-child {
  background: var(--lemon);
}
.try__cap {
  min-height: 2.9em;
  margin-top: 0.7rem;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--sub);
  text-align: center;
}
/* 단계 칸: 지금 할 단계는 흰 바탕에 먹 테두리, 끝난 단계는 레몬 번호 */
.try__steps {
  display: grid;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.try__step {
  padding: 0.8rem 1rem 0.9rem;
  background: var(--mute);
  border: 2px solid transparent;
  border-radius: 0.9rem;
  transition: background-color 0.2s var(--out), border-color 0.2s var(--out);
}
.try__step.is-now {
  background: var(--paper);
  border-color: var(--ink);
}
.sec .try__title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.6rem;
  font-weight: 700;
}
.try__num {
  display: inline-grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  font-size: 0.8125rem;
  color: var(--paper);
  background: var(--ink);
  border-radius: 50%;
}
.try__step.is-done .try__num {
  color: var(--ink);
  background: var(--lemon);
  box-shadow: inset 0 0 0 2px var(--ink);
}
.try__picks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.try__pick {
  display: grid;
  justify-items: center;
  gap: 0.3rem;
  width: 5.4rem;
  padding: 0.3rem 0.3rem 0.4rem;
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--ink);
  background: var(--paper);
  border: 2px solid var(--rule);
  border-radius: 0.8rem;
  transition: border-color 0.15s var(--out), background-color 0.15s var(--out);
}
.try__pick img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 0.5rem;
}
.try__picks--people .try__pick img {
  aspect-ratio: 2 / 3;
}
.try__pick:hover:not(:disabled) {
  border-color: var(--ink);
}
.try__pick[aria-pressed="true"] {
  background: #fff6c4;
  border-color: var(--ink);
}
.try__pick:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.btn.try__go {
  background: var(--lemon);
}
.btn.try__go:hover:not(:disabled) {
  background: #ffd92e;
}
.btn.try__go:disabled {
  color: var(--sub);
  background: var(--paper);
  border-color: var(--rule);
  cursor: not-allowed;
}
.try__reset {
  margin-left: 0.6rem;
  padding: 0.3rem 0.2rem;
  font: inherit;
  font-size: 0.9375rem;
  color: var(--sub);
  text-decoration: underline;
  text-underline-offset: 3px;
  background: none;
  border: 0;
}
@media (max-width: 760px) {
  .try {
    grid-template-columns: minmax(0, 1fr);
  }
  .try__frame {
    max-height: none;
    max-width: 24rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  .try__frame.is-cutting .try__sheet,
  .try__frame.is-cutting .try__sweep,
  .try__busy::before {
    animation: none;
  }
}

/* 처음 보는 낱말 풀이(회사 프로젝트 설명 아래): 왼쪽에 작은 도식, 오른쪽에 풀이 */
.term {
  display: grid;
  grid-template-columns: 9.5rem minmax(0, 1fr);
  gap: 0.75rem 1.25rem;
  align-items: center;
  max-width: 44rem;
  margin-top: 1.1rem;
  padding: 0.9rem 1.1rem;
  border-radius: 0.9rem;
  background: var(--mute);
}
.term__fig {
  display: block;
  width: 100%;
  height: auto;
}
.sec .term p {
  margin: 0;
}
.term__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.2rem 0.5rem;
}
.term__head .solve__tag {
  margin-right: 0;
}
.term__head b {
  font-size: 1.0625rem;
}
.term__full {
  font-size: 0.875rem;
  color: var(--sub);
}
.sec .term .term__desc {
  margin-top: 0.4rem;
  line-height: 1.6;
}
.sec .term .term__more {
  margin-top: 0.75rem;
}
.term__go {
  min-height: 2.25rem;
  padding: 0 1rem;
  font-size: 0.9375rem;
}
@media (max-width: 640px) {
  .term {
    grid-template-columns: minmax(0, 1fr);
  }
  .term__fig {
    max-width: 11rem;
  }
}

/* 설명 영상과 장(章) 목록: 넓은 화면은 영상 옆에, 좁은 화면은 영상 아래에. 지금 장의 줄은 흰 바탕에 먹 테두리 */
.clip {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
}
.clip__frame {
  position: relative;
  border-radius: 0.9rem;
  overflow: hidden;
  box-shadow: 0 0 0 2px var(--ink), 0 12px 20px -16px rgb(52 48 70 / 0.7);
}
.clip__video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  background: var(--mute);
}
.clip__toggle {
  position: absolute;
  right: 0.6rem;
  bottom: 0.6rem;
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  color: var(--paper);
  background: rgb(23 23 26 / 0.74);
  border: 0;
  border-radius: 50%;
}
.clip__toggle svg {
  width: 0.95rem;
  height: 0.95rem;
}
.solve--clip {
  gap: 0.5rem;
}
.solve--clip li {
  display: block;
  padding: 0;
  background: none;
}
.solve__go {
  display: grid;
  gap: 0.25rem;
  width: 100%;
  padding: 0.6rem 0.8rem 0.65rem;
  font: inherit;
  font-size: 0.9375rem;
  text-align: left;
  color: inherit;
  background: var(--mute);
  border: 2px solid transparent;
  border-radius: 0.8rem;
  transition: background-color 0.2s var(--out), border-color 0.2s var(--out);
}
.solve__go:hover {
  background: #e6e4da;
}
.solve--clip .is-on .solve__go {
  background: var(--paper);
  border-color: var(--ink);
}
.solve--clip .solve__a::before {
  display: none;
}
@media (max-width: 860px) {
  .clip {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 640px) {
  .solve li {
    grid-template-columns: minmax(0, 1fr);
  }
  .solve__a::before {
    display: none;
  }
}

/* 회사·개인 프로젝트와 논문 줄: 앞에 작은 그림(진열대 카드 그림·앱 화면)을 둔다 */
.cv:has(.cv__row) {
  max-width: 44rem;
}
.cv li.cv__row {
  display: grid;
  grid-template-columns: 9.5rem minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  grid-template-areas: "art head" "art notes";
  gap: 0 1.25rem;
  align-items: start;
}
.cv__row > .cv__art {
  grid-area: art;
}
.cv__row > .cv__head {
  grid-area: head;
}
.cv__row > p {
  grid-area: notes;
}
.cv__art {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  margin-top: 0.2rem;
  border-radius: 0.7rem;
  background: var(--tone);
  box-shadow: 0 0 0 1px var(--rule);
  transition: transform 0.2s var(--out), box-shadow 0.2s var(--out);
}
a.cv__art:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px var(--rule), 0 10px 18px -12px rgb(52 48 70 / 0.55);
}
.cv__art img {
  display: block;
}
.cv__art--cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cv__art--phones {
  display: flex;
  justify-content: center;
  gap: 7%;
  padding-top: 9%;
}
.cv__art--phones img {
  flex: none;
  width: 31%;
  height: auto;
  border-radius: 0.4rem;
  box-shadow: 0 0 0 1px rgb(23 23 26 / 0.08), 0 6px 14px -6px rgb(52 48 70 / 0.5);
}
.cv__art--stack img {
  position: absolute;
  width: 76%;
  height: auto;
  border-radius: 0.35rem;
  box-shadow: 0 0 0 1px rgb(23 23 26 / 0.08), 0 6px 14px -6px rgb(52 48 70 / 0.45);
}
.cv__art--stack img:first-child {
  left: 6%;
  top: 9%;
}
.cv__art--stack img:first-child {
  width: 80%;
}
.cv__art--stack img:last-child {
  right: 5%;
  bottom: 8%;
  width: 58%;
}
/* 폰: 그림 옆에는 이름·소속·기간만, 설명은 그 아래 온 폭으로 */
@media (max-width: 560px) {
  .cv li.cv__row {
    grid-template-columns: 6rem minmax(0, 1fr);
    grid-template-rows: auto;
    grid-template-areas: "art head" "notes notes";
    gap: 0 0.9rem;
    align-items: center;
  }
  .cv__row > .cv__art {
    margin-top: 0;
  }
  .sec .cv .cv__row > p {
    margin-top: 0.6rem;
  }
}
.skills {
  margin: 0;
}
.skills div {
  display: grid;
  grid-template-columns: 6.5rem minmax(0, 1fr);
  gap: 0.75rem;
  align-items: start;
  padding: 0.7rem 0;
  border-top: 1px solid var(--rule);
}
.skills div:first-child {
  border-top: 0;
  padding-top: 0.1rem;
}
.skills dt {
  padding-top: 0.3rem;
  font-weight: 700;
}
.skills dd {
  margin: 0;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.chips li {
  padding: 0.3rem 0.75rem;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.4;
  background: var(--mute);
  border-radius: 999px;
}
/* 주로 쓰는 기술: 노란 칩으로 한 단계 크게 */
.skills__main dt {
  padding-top: 0.4rem;
}
.skills__main .chips li {
  padding: 0.38rem 0.95rem;
  font-size: 1rem;
  font-weight: 700;
  background: var(--lemon);
}

/* 정보 */
.info {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 2.5rem;
  margin: 0;
}
.info div {
  display: flex;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--rule);
}
.info dt {
  flex: none;
  color: var(--sub);
}
.info dd {
  margin: 0;
  font-weight: 600;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
/* 정보 맨 끝의 「개인정보처리방침」: 줄 전체가 눌린다 */
.info .info__more {
  position: relative;
}
.info__more a {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  color: var(--accent, var(--ink));
  text-decoration: none;
}
.info__more a::after {
  content: "";
  position: absolute;
  inset: 0;
}
.info__more a svg {
  width: 0.75em;
  height: 0.75em;
}
.info__more:hover a {
  text-decoration: underline;
}

/* 같은 사람이 만든 다른 앱 */
.others {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(18rem, 100%), 1fr));
  gap: 0 2.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.others a {
  display: grid;
  grid-template-columns: 4rem minmax(0, 1fr) auto;
  gap: 0.9rem;
  align-items: center;
  padding: 0.65rem 0;
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
}
.others img {
  width: 4rem;
  height: 4rem;
  border-radius: 22.5%;
  box-shadow: 0 0 0 1px var(--rule);
}
.others b {
  display: block;
  font-size: 1.0625rem;
  line-height: 1.35;
}
.others b + span {
  display: block;
  font-size: 0.875rem;
  line-height: 1.4;
  color: var(--sub);
}
.others a:hover .get--small {
  background: var(--lemon);
}

/* 공개한 도구: 아이콘 없이 이름, 종류, 한 줄 */
.others.tools a {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  padding-block: 0.85rem;
}
.tool__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.1rem 0.55rem;
}
.others .tool__head b {
  display: inline;
}
.others .tool__head .tool__kind {
  display: inline;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--sub);
}
.others .tool__line {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--sub);
}
.others.tools .get--small {
  margin-top: 0.1rem;
}

/* 뒷면 맨 아래에 찍힌 바코드 */
.imprint {
  display: grid;
  justify-items: center;
  gap: 0.35rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.4;
  font-variant-numeric: tabular-nums;
  color: var(--sub);
}
.imprint svg {
  width: min(100%, 17rem);
  height: 2.25rem;
  color: var(--ink);
}
.imprint__legal {
  margin-top: 0.6rem;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 400;
}

/* ── 문서: 벽에 붙인 흰 종이 한 장 ─────────────
   개인정보처리방침처럼 읽기만 하는 글. 고리·등빛·흔들림 없이 글만 둔다. */

.doc {
  width: 46rem;
  max-width: 100%;
  margin: var(--p) auto 0;
  padding: 2.5rem 3rem 2.75rem;
  font-size: 1rem;
  line-height: 1.75;
  background: var(--paper);
  border-radius: calc(var(--p) * 0.44);
  box-shadow: 0 calc(var(--p) * 0.35) calc(var(--p) * 0.9) calc(var(--p) * -0.35) rgb(52 48 70 / 0.24);
}
.doc__head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--rule);
}
.doc__icon {
  width: 3.75rem;
  height: 3.75rem;
  border-radius: 22.5%;
  box-shadow: 0 0 0 1px var(--rule);
}
.doc h1 {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.doc__meta {
  margin: 0.3rem 0 0;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.4;
  font-variant-numeric: tabular-nums;
  color: var(--sub);
}
.doc .doc__lead {
  margin-top: 1.5rem;
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.65;
}
.doc h2 {
  margin: 2.25rem 0 0.55rem;
  font-size: 1.1875rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.01em;
}
.doc p {
  margin: 0;
  max-width: 40rem;
}
.doc p + p,
.doc ul + p,
.doc dl + p {
  margin-top: 0.65rem;
}
.doc ul {
  margin: 0.6rem 0 0;
  padding: 0;
  max-width: 40rem;
  list-style: none;
}
.doc li {
  position: relative;
  padding: 0.1rem 0 0.1rem 1.1rem;
}
.doc li::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 0.95em;
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 50%;
  background: var(--tone-ink, var(--ink));
}
.doc__list {
  margin: 0.7rem 0 0;
  max-width: 40rem;
  border-top: 1px solid var(--rule);
}
.doc__list div {
  display: grid;
  grid-template-columns: 10.5rem minmax(0, 1fr);
  gap: 0.2rem 1.25rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--rule);
}
.doc__list dt {
  font-weight: 700;
}
.doc__list dd {
  margin: 0;
}
.doc a {
  font-weight: 600;
  color: var(--accent, var(--ink));
}

/* ── 빈 고리: 고리에 꼬리표 한 장만 걸려 있다 ───── */

.empty {
  margin-top: calc(var(--p) * 1.4375);
  display: grid;
  justify-items: center;
}
.pack--note .card {
  height: auto;
  padding: calc(var(--p) * 1.6) calc(var(--p) * 0.75) calc(var(--p) * 1);
  text-align: center;
  border: 2px solid var(--ink);
  border-radius: calc(var(--p) * 0.44);
}
.pack--note h1 {
  margin: 0;
  font: 400 calc(var(--p) * 1.375) / 1.2 var(--shop);
}
.pack--note p {
  margin: 0.6em 0 1.2em;
  font-size: 1rem;
  line-height: 1.6;
}

/* ── 좁은 화면 ─────────────────────────────── */

/* 폰의 첫 화면: 봉지를 반만 한 크기로 두 줄씩 건다. 구멍 간격째 줄이므로 고리는 그대로 구멍에 꽂힌다.
   작은 봉지에는 이름, 물건, 바코드와 「뒷면 보기」만 남긴다. */
@media (min-width: 360px) and (max-width: 735px) {
  .home {
    --p: min(32px, calc((100vw - 32px) / 22));
  }
  .home .sign {
    height: calc(var(--p) * 6);
  }
  .home .sign__name {
    font-size: calc(var(--p) * 2.75);
  }
  .home .sign__line {
    margin-top: calc(var(--p) * 0.5);
  }
  .home .card__line,
  .home .label__id,
  .home .label__ver {
    display: none;
  }
  .home .label {
    grid-template-columns: 1fr;
    justify-items: end;
  }
  /* 작은 봉지는 반쯤 줄이지 않으므로 어디 것인지 한 줄을 남긴다 */
  .home .pack--mini .card__line {
    display: block;
  }
}

/* 좁은 화면의 진열대: 벽은 22칸. 스티커 묶음은 사진·이름표 한 줄, 딱지 한 줄 */
@media (max-width: 935px) {
  .home {
    --p: min(32px, calc((100vw - 32px) / 22));
  }
  .home .wall {
    width: calc(var(--p) * 22);
  }
  .maker {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas:
      "photo card"
      "stickers stickers";
    align-content: center;
    --mk: 1.2;
    gap: calc(var(--P) * 0.7) calc(var(--P) * 0.8);
    height: calc(var(--p) * 15);
    padding: 0;
  }
  .maker__photo {
    grid-area: photo;
  }
  .maker__card {
    grid-area: card;
    justify-self: start;
    min-width: 0;
  }
  .maker__stickers {
    grid-area: stickers;
    flex-wrap: nowrap;
  }
  .note {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
  }
  .hooks {
    padding-left: calc(var(--P) * var(--tlead));
  }
  .line--bays .hooks {
    gap: calc(var(--P) * var(--tg));
    padding-left: 0;
  }
  .bay {
    width: calc(var(--P) * var(--tbw));
  }
  .bay__pegs {
    padding-left: calc(var(--P) * var(--tbo));
  }
}
@media (max-width: 735px) {
  .maker {
    height: calc(var(--p) * 18);
  }
}
/* 좁은 폰은 포스트잇 글씨가 px 하한에 걸려 더 줄바뀜하므로 묶음을 몇 칸 더 높게(칸의 정수배라 고리 맞춤은 그대로).
   폭마다 스티커가 들어가는 가장 낮은 칸 수다(320~735px 를 잘게 나눠 잼). */
@media (max-width: 519px) {
  .maker {
    height: calc(var(--p) * 19);
  }
}
@media (max-width: 479px) {
  .maker {
    height: calc(var(--p) * 20);
  }
}
@media (max-width: 399px) {
  .maker {
    height: calc(var(--p) * 22);
  }
}
@media (max-width: 380px) {
  .maker {
    height: calc(var(--p) * 24);
  }
}
@media (max-width: 359px) {
  .maker {
    height: calc(var(--p) * 26);
  }
}
@media (max-width: 340px) {
  .maker {
    height: calc(var(--p) * 27);
  }
}
@media (max-width: 735px) {
  .maker__photo {
    --pw: 5.1;
  }
  .note__logo {
    width: calc(var(--P) * 1.7);
    height: calc(var(--P) * 1.7);
  }
  .maker__role {
    font-size: calc(var(--P) * 1.3);
  }
}
/* 폰: 이름 띠는 두 칸 높이(네 귀퉁이에 나사), 봉지는 원래 크기로 걸고 줄마다 옆으로 민다 */
@media (max-width: 735px) {
  .aisle__name {
    height: calc(var(--P) * 2);
    padding: 0 calc(var(--P) * 1.1);
    font-size: calc(var(--P) * 1.05);
  }
  .aisle__name::before,
  .aisle__name::after {
    box-shadow: 0 var(--P) 0 var(--hole-deep);
  }
  .hooks {
    height: calc(var(--P) * var(--nh));
    padding: 0 var(--P);
    scroll-padding-inline: var(--P);
  }
  /* 폰은 봉지가 원래 크기라 둥근 딱지를 원래 자리에 둔다(줄 끝 밖으로 삐져나가 밀리는 길이를 바꾸지 않게) */
  .aisle .tag {
    top: calc(var(--p) * -0.75);
    right: calc(var(--p) * -0.7);
  }
  .line__go {
    top: calc(var(--P) * (var(--nh) - 2) / 2 - 22px);
  }
  .aisle .peg {
    --p: calc(var(--P) * var(--ns));
    width: calc(var(--P) * var(--nw));
  }
  .pack--photo .bag {
    height: calc(var(--p) * (1.35 + var(--npi)) + max(33.6px, var(--p) * 1.4) + max(15.6px, var(--p) * 0.6));
  }
  /* 나눈 칸: 띠가 두 칸 높이라 고리 줄은 위 여백 한 칸, 띠 두 칸, 사이 한 칸 아래에서 시작한다 */
  .line--bays .hooks {
    gap: calc(var(--P) * var(--ng));
    height: calc(var(--P) * (var(--nh) + 4));
    padding: var(--P) 0 0;
  }
  .line--bays .line__go {
    top: calc(var(--P) * (var(--nh) + 6) / 2 - 22px);
  }
  /* 폰은 칸이 좁아 둥근 스티커가 고리와 봉지 딱지에 닿으므로, 띠 오른쪽 끝 안에 길쭉하게 붙인다 */
  .bay > .pop {
    top: calc(var(--P) * 0.35);
    grid-auto-flow: column;
    gap: 0.45em;
    width: auto;
    height: calc(var(--P) * 1.3);
    padding: 0 0.75em;
    border-width: 2px;
    border-radius: 999px;
    transform: rotate(-1.5deg);
  }
  .bay > .pop:hover {
    transform: rotate(-1.5deg) scale(1.04);
  }
  .bay {
    width: calc(var(--P) * var(--nbw));
  }
  .bay__pegs {
    padding-left: calc(var(--P) * var(--nbo));
  }
}

@media (max-width: 935px) {
  .back {
    width: auto;
  }
  .back .hook,
  .back .hook-tip {
    left: 50%;
  }
  .back .hook + .hook-tip + .hook,
  .back .hook + .hook-tip + .hook + .hook-tip {
    display: none;
  }
  .listing__paper {
    -webkit-mask:
      var(--slot) 50% calc(var(--p) * 0.28) / calc(var(--p) * 1.75) calc(var(--p) * 0.5625) no-repeat,
      linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask:
      var(--slot) 50% calc(var(--p) * 0.28) / calc(var(--p) * 1.75) calc(var(--p) * 0.5625) no-repeat,
      linear-gradient(#000 0 0);
    mask-composite: exclude;
  }
}

@media (max-width: 640px) {
  .zoom__stage {
    padding: 4.25rem 0.75rem 4.75rem;
  }
  .zoom__img {
    max-width: calc(100vw - 1.5rem);
    max-height: calc(100vh - 9rem);
    max-height: calc(100dvh - 9rem);
  }
  .zoom__prev,
  .zoom__next {
    top: auto;
    bottom: 0.75rem;
    transform: none;
  }
  .zoom__prev:active,
  .zoom__next:active {
    transform: translateY(1px);
  }
  .zoom__caption {
    left: 4.25rem;
    right: 4.25rem;
    bottom: 1rem;
  }
  .listing__in {
    padding: calc(var(--p) * 1.4 + 0.75rem) 1.25rem 1.5rem;
  }
  .app-head {
    gap: 1rem;
    align-items: start;
  }
  .app-icon {
    width: 6.25rem;
    height: 6.25rem;
  }
  .app-icon.app-icon--photo {
    width: 4.75rem;
    height: auto;
  }
  .work-head {
    grid-template-columns: minmax(0, 1fr);
  }
  .work-art {
    width: 100%;
    max-width: 22rem;
  }
  .app-name {
    font-size: 1.5rem;
  }
  .app-sub {
    font-size: 0.9375rem;
  }
  .app-get {
    margin-top: 0.5rem;
  }
  .get {
    min-height: 2.75rem;
    padding: 0 1.25rem;
    font-size: 0.9375rem;
  }
  .get--small {
    min-height: 2rem;
    padding: 0 1rem;
  }
  .badge-play {
    height: 2.75rem;
  }
  /* 한눈에 보기: 폰에서는 옆으로 밀지 않고 칸에 나눠 담는다(끝 칸이 잘려 보이지 않게).
     셋이면 세 칸(앞 두 칸은 글만큼, 마지막 칸이 나머지), 둘·넷이면 두 칸씩, 다섯 이상은 세 칸씩 줄을 바꾼다.
     줄의 첫 칸은 왼쪽 선이 없다. */
  .app-facts {
    display: grid;
    grid-template-columns: minmax(0, auto) minmax(0, auto) minmax(0, 1fr);
    row-gap: 0.95rem;
    overflow: visible;
  }
  .app-facts:has(> li:nth-child(2):last-child),
  .app-facts:has(> li:nth-child(4):last-child) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .app-facts li {
    min-width: 0;
    padding: 0 0.6rem;
  }
  .app-facts li:nth-child(3n + 1) {
    border-left: 0;
  }
  .app-facts:has(> li:nth-child(2):last-child) li,
  .app-facts:has(> li:nth-child(4):last-child) li {
    border-left: 1px solid var(--rule);
  }
  .app-facts:has(> li:nth-child(2):last-child) li:nth-child(2n + 1),
  .app-facts:has(> li:nth-child(4):last-child) li:nth-child(2n + 1) {
    border-left: 0;
  }
  .fact__value {
    font-size: 1.1875rem;
    overflow-wrap: break-word;
    text-wrap: balance;
  }
  .shots {
    margin-inline: -1.25rem;
    padding-inline: 1.25rem;
    scroll-padding-inline: 1.25rem;
  }
  .shots li {
    width: calc(58% * var(--k, 1));
  }
  .shots--wide li {
    width: 88%;
  }
  .demo--pet {
    padding: 1.1rem;
  }
  .petbox {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.9rem;
  }
  .petbox > div:last-child {
    text-align: center;
  }
  .petbox__stage {
    width: 12rem;
    height: 13.5rem;
    margin-inline: auto;
  }
  .petbox__stage img {
    max-height: 11rem;
  }
  .petmake__photo {
    width: auto;
  }
  .info {
    grid-template-columns: minmax(0, 1fr);
  }
  .doc {
    margin-top: calc(var(--p) * 0.5);
    padding: 1.5rem 1.25rem 2rem;
  }
  .doc__icon {
    width: 3rem;
    height: 3rem;
  }
  .doc h1 {
    font-size: 1.375rem;
  }
  .doc h2 {
    margin-top: 2rem;
  }
  .doc__list div {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.1rem;
  }
  .skills div {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.45rem;
  }
  .skills dt {
    padding-top: 0;
  }
  .foot {
    margin-top: calc(var(--p) * 2.5);
  }
}

/* ── 움직임: 걸린 봉지(와 벽에 붙인 사진·포스트잇)의 흔들림과 고리에서 떼기, 둘뿐이다 ── */

@media (prefers-reduced-motion: no-preference) {
  @view-transition {
    navigation: auto;
  }
  ::view-transition-group(*) {
    animation-duration: 0.5s;
    animation-timing-function: var(--out);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
