/* ─────────────────────────────────────────────
   하예지 포트폴리오 — "작은 전시회"
   밝은 회색 바탕 · 쨍한 원색 큰 도형 · 얇은 선 그림 · 짧고 가벼운 말
   ───────────────────────────────────────────── */
:root {
  --bg: #f0f0ee;
  --paper: #ffffff;
  --ink: #111111;
  --ink-2: #555555;
  --ink-3: #8e8e8e;
  --line: #dcdcd8;
  --yellow: #ffdb24;
  --blue: #3d9aee;
  --green: #52ce55;
  --orange: #f48230;
  --pink: #ff8fb8;
  --max: 1280px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Pretendard", -apple-system, sans-serif;
  font-size: 17px; line-height: 1.7; letter-spacing: -0.015em;
  color: var(--ink); background: var(--bg);
  word-break: keep-all; overflow-wrap: break-word; overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
b, strong { font-weight: 700; }
::selection { background: var(--yellow); }
.wrap { max-width: var(--max); margin: 0 auto; padding-left: 40px; padding-right: 40px; }
@media (max-width: 640px) { .wrap { padding-left: 18px; padding-right: 18px; } body { font-size: 16px; } }

/* 확인이 필요한 값 — 형광펜 (확인되면 class="tbd" 를 지운다) */
.tbd { background: #fff07a; border-radius: 3px; padding: 0 4px; outline: 1.5px dashed #111; }

/* 선 아이콘 원 (Diana 의 ⓞ 아이콘 느낌) */
.ring-ic { display: inline-grid; place-items: center; width: 24px; height: 24px; border: 1.6px solid var(--ink); border-radius: 50%; font-size: 11px; font-weight: 700; line-height: 1; }

/* ───────── 커서 ───────── */
.cursor, .cursor-dot { position: fixed; top: 0; left: 0; pointer-events: none; z-index: 100; display: none; border-radius: 50%; }
.cursor { width: 34px; height: 34px; margin: -17px 0 0 -17px; border: 1.6px solid var(--ink); transition: width .35s var(--spring), height .35s var(--spring), margin .35s var(--spring), background .25s, border-color .25s; }
.cursor-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--ink); }
.cursor.big { width: 78px; height: 78px; margin: -39px 0 0 -39px; background: var(--yellow); border-color: var(--yellow); }
.cursor .label { position: absolute; inset: 0; display: grid; place-items: center; font-size: 12px; font-weight: 700; opacity: 0; transition: opacity .2s; }
.cursor.big .label { opacity: 1; }
@media (hover: hover) and (pointer: fine) { .cursor, .cursor-dot { display: block; } body, a, button { cursor: none; } }
.progress { position: fixed; top: 0; left: 0; height: 4px; width: 100%; background: var(--blue); transform-origin: 0 50%; transform: scaleX(0); z-index: 60; }

/* ───────── 오른쪽 위 메뉴 카드 ───────── */
.menu { position: fixed; top: 0; right: 40px; z-index: 50; width: 300px; background: var(--paper); border-radius: 0 0 16px 16px; padding: 10px 22px 6px; box-shadow: 0 10px 30px rgba(0,0,0,.05); }
.menu a { display: block; padding: 14px 0 12px; border-bottom: 1px solid var(--line); }
.menu a:last-child { border-bottom: none; }
.menu .row { display: flex; justify-content: space-between; align-items: center; font-size: 21px; font-weight: 500; letter-spacing: -0.02em; }
.menu .row .arr { transition: transform .35s var(--spring); }
.menu a:hover .arr { transform: translateX(6px); }
.menu .ics { display: flex; gap: 6px; margin-top: 6px; }
.menu-mini { display: none; }
@media (max-width: 860px) {
  .menu { right: 12px; left: 12px; width: auto; border-radius: 0 0 14px 14px; padding: 4px 16px; display: flex; gap: 16px; justify-content: space-between; }
  .menu a { border: none; padding: 12px 0; }
  .menu .row { font-size: 16px; gap: 6px; }
  .menu .ics { display: none; }
}

/* ───────── 히어로 ───────── */
.hero { position: relative; min-height: 100svh; overflow: hidden; }
.hero-top { display: flex; align-items: flex-end; align-items: last baseline; gap: 64px; padding-top: 56px; }
.hero-name { font-size: clamp(64px, 11vw, 168px); font-weight: 600; letter-spacing: -0.06em; line-height: .95; white-space: nowrap; }
.hero-name .dot { color: var(--orange); }
.hero-desc { max-width: none; white-space: nowrap; padding-top: 0; padding-bottom: 0; font-size: 20px; line-height: 1.4; color: var(--ink-3); letter-spacing: -0.02em; }
.hero-desc b { color: var(--ink); font-weight: 500; }
.hero-art { position: absolute; left: 0; right: 0; bottom: 0; height: 74svh; pointer-events: none; }
.hero-art svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.hero-art .shape { transition: transform .9s var(--ease); }
.hero-go { position: absolute; right: 40px; bottom: 40px; display: flex; align-items: center; gap: 40px; font-size: clamp(32px, 3.6vw, 52px); line-height: 1.05; letter-spacing: -0.04em; z-index: 3; }
.hero-go .arr { transition: transform .4s var(--spring); }
.hero-go:hover .arr { transform: translateX(14px); }
@media (max-width: 860px) {
  .hero-top { flex-direction: column; gap: 16px; padding-top: 96px; }
  .hero-desc { padding-top: 0; font-size: 17px; white-space: normal; }
  .hero-art { height: 56svh; }
  .hero-go { right: 18px; bottom: 24px; gap: 16px; }
}

/* 들어올 때 */
.in-up { opacity: 0; transform: translateY(24px); animation: inup 1s var(--ease) forwards; }
.in-up.d1 { animation-delay: .1s; } .in-up.d2 { animation-delay: .2s; } .in-up.d3 { animation-delay: .35s; }
@keyframes inup { to { opacity: 1; transform: none; } }
.grow { transform-box: fill-box; transform-origin: center; animation: grow 1.1s var(--spring) both; }
.grow.d1 { animation-delay: .15s; } .grow.d2 { animation-delay: .3s; } .grow.d3 { animation-delay: .45s; } .grow.d4 { animation-delay: .6s; }
@keyframes grow { from { transform: scale(0); } to { transform: scale(1); } }
.draw { stroke-dasharray: var(--len, 1200); stroke-dashoffset: var(--len, 1200); animation: draw 1.4s .5s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.reveal { opacity: 0; transform: translateY(30px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; }

/* ───────── 가로 스크롤 전시장 ───────── */
.hs { position: relative; background: var(--bg); }
.hs-sticky { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.hs-head { position: absolute; top: 48px; left: 40px; z-index: 3; }
.hs-head h2 { font-size: clamp(40px, 5vw, 72px); font-weight: 600; letter-spacing: -0.05em; line-height: 1; }
.hs-head p { margin-top: 10px; color: var(--ink-3); font-size: 18px; }
.hs-count { position: absolute; top: 56px; right: 40px; font-size: 18px; color: var(--ink-3); z-index: 3; font-variant-numeric: tabular-nums; }
.hs-count b { color: var(--ink); font-weight: 600; }
.hs-track { position: absolute; top: 0; left: 0; height: 100%; display: flex; align-items: flex-end; padding-bottom: 14svh; gap: 12vw; padding-left: 44vw; padding-right: 30vw; will-change: transform; }
.hs-floor { position: absolute; left: 0; right: 0; bottom: 14svh; height: 1.6px; background: var(--ink); opacity: .9; z-index: 1; }
.walker { position: absolute; left: 18vw; bottom: calc(14svh - 2px); width: 92px; z-index: 4; pointer-events: none; transition: transform .3s; }
.walker svg { width: 100%; height: auto; overflow: visible; }
.walker.flip { transform: scaleX(-1); }
.walker .leg, .walker .arm { transform-box: fill-box; transform-origin: top center; }
.walker.walking .leg.l { animation: legL .5s ease-in-out infinite alternate; }
.walker.walking .leg.r { animation: legR .5s ease-in-out infinite alternate; }
.walker.walking .arm.l { animation: legR .5s ease-in-out infinite alternate; }
.walker.walking .arm.r { animation: legL .5s ease-in-out infinite alternate; }
.walker.walking .body { animation: bounce .25s ease-in-out infinite alternate; }
@keyframes legL { from { transform: rotate(16deg); } to { transform: rotate(-16deg); } }
@keyframes legR { from { transform: rotate(-16deg); } to { transform: rotate(16deg); } }
@keyframes bounce { to { transform: translateY(-3px); } }

.art { position: relative; flex: none; width: min(560px, 46vw); display: block; }
.art .frame { position: relative; aspect-ratio: 1 / 1; display: grid; place-items: center; }
.art .frame svg { width: 100%; height: 100%; overflow: visible; }
.art .frame svg .s { transition: transform .6s var(--spring); transform-box: fill-box; transform-origin: center; }
.art:hover .frame svg .s1 { transform: rotate(-8deg) scale(1.04); }
.art:hover .frame svg .s2 { transform: translateY(-14px); }
.art:hover .frame svg .s3 { transform: rotate(10deg) scale(1.06); }
.label-card { position: absolute; right: -34%; bottom: 8%; width: 250px; background: var(--paper); border-radius: 12px; padding: 16px 18px 14px; box-shadow: 0 10px 30px rgba(0,0,0,.06); transition: transform .45s var(--spring); }
.art:hover .label-card { transform: translateY(-8px) rotate(-1.5deg); }
.label-card .no { font-size: 13px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.label-card h3 { margin-top: 2px; font-size: 22px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.25; }
.label-card p { margin-top: 6px; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.label-card .num { margin-top: 10px; font-size: 26px; font-weight: 700; letter-spacing: -0.04em; }
.label-card .num small { font-size: 13px; font-weight: 500; color: var(--ink-3); margin-left: 4px; letter-spacing: 0; }
.label-card .go { margin-top: 10px; display: flex; justify-content: space-between; font-size: 14px; font-weight: 600; border-top: 1px solid var(--line); padding-top: 10px; }
.hs-end { flex: none; width: 360px; }
.hs-end h3 { font-size: clamp(32px, 3.4vw, 48px); font-weight: 600; letter-spacing: -0.04em; line-height: 1.1; }
.hs-end p { margin-top: 12px; color: var(--ink-3); }

@media (max-width: 860px), (prefers-reduced-motion: reduce) {
  .hs { height: auto !important; }
  .hs-sticky { position: static; height: auto; overflow: visible; padding: 110px 0 40px; }
  .hs-head, .hs-count { position: static; padding: 0 18px; }
  .hs-count, .walker, .hs-floor { display: none; }
  .hs-track { position: static; flex-direction: column; gap: 72px; padding: 48px 18px 0; transform: none !important; }
  .art { width: 100%; }
  .label-card { position: relative; right: auto; bottom: auto; width: 100%; margin-top: -10%; }
  .hs-end { width: 100%; }
}

/* ───────── Me ───────── */
section { padding-top: 140px; padding-bottom: 140px; }
.big-title { font-size: clamp(44px, 6vw, 88px); font-weight: 600; letter-spacing: -0.055em; line-height: 1; }
.me-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; margin-top: 56px; align-items: start; }
.me-intro { font-size: clamp(22px, 2.3vw, 30px); line-height: 1.45; letter-spacing: -0.03em; }
.me-intro .hl { background-image: linear-gradient(transparent 58%, var(--yellow) 58%); }
.me-intro .hl.b { background-image: linear-gradient(transparent 58%, color-mix(in srgb, var(--blue) 45%, white) 58%); }
.me-intro .hl.g { background-image: linear-gradient(transparent 58%, color-mix(in srgb, var(--green) 45%, white) 58%); }
.facts { display: grid; gap: 0; }
.fact { display: grid; grid-template-columns: 120px 1fr; gap: 20px; padding: 18px 0; border-top: 1px solid var(--line); }
.fact:last-child { border-bottom: 1px solid var(--line); }
.fact dt { color: var(--ink-3); font-size: 15px; padding-top: 2px; }
.fact dd { font-size: 16px; }
.fact dd .sub { display: block; color: var(--ink-3); font-size: 14px; }
.chip { display: inline-block; padding: 4px 12px; line-height: 1.4; border-radius: 99px; font-size: 13px; font-weight: 600; background: var(--yellow); margin-top: 6px; }
@media (max-width: 860px) { .me-grid { grid-template-columns: 1fr; gap: 40px; } .fact { grid-template-columns: 90px 1fr; } }

/* 그 밖에 한 일들 — 줄 목록, 지나가면 색 도형이 튀어나옴 */
.also { margin-top: 48px; border-top: 1.6px solid var(--ink); }
.also-row { position: relative; display: grid; grid-template-columns: 70px 1fr 1.2fr; gap: 24px; align-items: baseline; padding: 26px 0; border-bottom: 1px solid var(--line); }
.also-row .n { font-size: 15px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.also-row h3 { font-size: clamp(22px, 2.2vw, 30px); font-weight: 600; letter-spacing: -0.035em; line-height: 1.2; transition: transform .45s var(--ease); }
.also-row p { color: var(--ink-2); font-size: 16px; }
.also-row .blob { position: absolute; left: 40px; top: 50%; width: 26px; height: 26px; border-radius: 50%; transform: translate(-50%, -50%) scale(0); transition: transform .45s var(--spring); }
.also-row:hover .blob { transform: translate(-50%, -50%) scale(1); }
.also-row:hover h3 { transform: translateX(10px); }
@media (max-width: 760px) { .also-row { grid-template-columns: 40px 1fr; } .also-row p { grid-column: 2; } .also-row .blob { left: 14px; } }

.skills-line { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 18px; color: var(--ink-2); }
.skills-line span { position: relative; }
.skills-line span:not(:last-child)::after { content: "·"; position: absolute; right: -14px; color: var(--ink-3); }

/* ───────── 끝 ───────── */
.bye { position: relative; min-height: 90svh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.bye h2 { font-size: clamp(52px, 8.4vw, 132px); font-weight: 600; letter-spacing: -0.06em; line-height: .92; position: relative; z-index: 2; }
.bye .links { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 14px; position: relative; z-index: 2; }
.pill-link { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 99px; background: var(--paper); font-size: 17px; font-weight: 500; transition: background .25s, transform .35s var(--spring); }
.pill-link:hover { background: var(--yellow); transform: translateY(-3px); }
.pill-link.dark { background: var(--ink); color: #fff; }
.pill-link.dark:hover { background: var(--blue); }
.bye-art { position: absolute; right: -6vw; bottom: -4vw; width: min(640px, 60vw); z-index: 1; pointer-events: none; }
.bye-art svg { width: 100%; height: auto; overflow: visible; }
.copy { padding-top: 28px; padding-bottom: 40px; font-size: 14px; color: var(--ink-3); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

/* ═════════════════ 상세 페이지 ═════════════════ */
.d-top { display: flex; justify-content: space-between; align-items: center; padding-top: 28px; }
.back { display: inline-flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 500; }
.back .arr { transition: transform .35s var(--spring); }
.back:hover .arr { transform: translateX(-6px); }
.d-hero { position: relative; padding-top: 120px; padding-bottom: 40px; }
@media (max-width: 860px) { .d-hero { padding-top: 48px; } }
.d-hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.d-hero .kicker { font-size: 15px; color: var(--ink-3); }
.d-hero h1 { margin-top: 10px; font-size: clamp(48px, 7vw, 108px); font-weight: 600; letter-spacing: -0.06em; line-height: .98; }
.d-hero h1 .line { display: block; }
.d-hero h1 .line > span { display: inline-block; opacity: 0; transform: translateY(26px); animation: inup 1s var(--ease) forwards; }
.d-hero h1 .line:nth-child(2) > span { animation-delay: .1s; }
.d-hero .real { margin-top: 18px; display: inline-block; font-size: 15px; font-weight: 600; padding: 4px 12px; border-radius: 99px; background: var(--paper); }
.d-hero .lede { margin-top: 22px; max-width: 560px; font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; color: var(--ink-2); letter-spacing: -0.02em; }
.d-hero .illo { aspect-ratio: 1; width: 100%; max-width: 520px; justify-self: center; }
.d-hero .illo svg { width: 100%; height: 100%; overflow: visible; }
@media (max-width: 860px) { .d-hero-grid { grid-template-columns: 1fr; } .d-hero .illo { max-width: 340px; order: -1; } }

.d-meta { margin-top: 40px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1.6px solid var(--ink); }
.d-meta > div { padding: 16px 20px 18px 0; }
.d-meta dt { font-size: 13px; color: var(--ink-3); }
.d-meta dd { margin-top: 4px; font-size: 15px; font-weight: 500; line-height: 1.5; }
.d-meta dd a { border-bottom: 1.5px solid var(--ink); }
@media (max-width: 760px) { .d-meta { grid-template-columns: 1fr 1fr; } }

.d-stats { margin-top: 16px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.d-stats > div { position: relative; padding: 22px 22px 20px; border-radius: 16px; background: var(--paper); overflow: hidden; }
.d-stats > div::before { content: ""; position: absolute; right: -18px; top: -18px; width: 64px; height: 64px; border-radius: 50%; background: var(--yellow); }
.d-stats > div:nth-child(4n+2)::before { background: var(--blue); }
.d-stats > div:nth-child(4n+3)::before { background: var(--green); }
.d-stats > div:nth-child(4n)::before { background: var(--orange); }
.d-stats .stat-num { position: relative; font-size: clamp(34px, 3.8vw, 54px); font-weight: 700; letter-spacing: -0.05em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.d-stats .stat-num small { font-size: 16px; font-weight: 600; letter-spacing: -0.02em; margin-left: 2px; }
.d-stats .stat-cap { margin-top: 6px; font-size: 13.5px; color: var(--ink-2); }
@media (max-width: 760px) { .d-stats { grid-template-columns: 1fr 1fr; } }

.d-body { margin-top: 80px; padding-bottom: 40px; }
.d-sec { display: grid; grid-template-columns: 220px minmax(0, 700px); gap: 56px; justify-content: center; padding: 44px 0; }
.d-sec > h2 { position: sticky; top: 40px; align-self: start; font-size: 22px; font-weight: 600; letter-spacing: -0.03em; display: flex; align-items: center; gap: 10px; }
.d-sec > h2 b { display: inline-block; width: 14px; height: 14px; border-radius: 50%; background: var(--c, var(--yellow)); font-size: 0; }
.d-sec p { font-size: 17.5px; line-height: 1.85; color: #2b2b2b; }
.d-sec p + p, .d-sec p + ul, .d-sec ul + p, .d-sec .flow + p { margin-top: 18px; }
.d-sec h3 { font-size: clamp(25px, 2.5vw, 32px); font-weight: 600; letter-spacing: -0.04em; line-height: 1.3; margin-bottom: 16px; }
.d-sec h3:not(:first-child) { margin-top: 44px; }
.d-sec ul { list-style: none; display: grid; gap: 14px; font-size: 17px; color: #2b2b2b; }
.d-sec li { position: relative; padding-left: 24px; }
.d-sec li::before { content: ""; position: absolute; left: 0; top: .62em; width: 9px; height: 9px; border-radius: 50%; border: 1.6px solid var(--ink); }
.d-sec li .k { display: block; font-weight: 700; color: var(--ink); margin-bottom: 2px; }
@media (max-width: 960px) { .d-sec { grid-template-columns: 1fr; gap: 12px; padding: 32px 0; } .d-sec > h2 { position: static; } }

.learning { font-size: clamp(20px, 2vw, 25px) !important; line-height: 1.55 !important; letter-spacing: -0.03em; color: var(--ink) !important; padding-left: 22px; border-left: 4px solid var(--c, var(--yellow)); }

.flow { position: relative; display: grid; margin-top: 4px; }
/* 선은 첫 점 가운데에서 마지막 점 가운데까지만 (--flow-top · --flow-span 은 site.js 가 잰다) */
.flow::before { content: ""; position: absolute; left: 19px; top: var(--flow-top, 32px); height: var(--flow-span, 0px); width: 1.6px; background: var(--line); }
.flow .fill { position: absolute; left: 19px; top: var(--flow-top, 32px); width: 1.6px; height: 0; background: var(--ink); transition: height .2s linear; }
.fstep { position: relative; display: grid; grid-template-columns: 40px 1fr; gap: 18px; padding: 12px 0; }
.fstep .dot { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-size: 14px; font-weight: 700; background: var(--bg); border: 1.6px solid var(--line); color: var(--ink-3); transition: background .4s, color .4s, border-color .4s, transform .5s var(--spring); z-index: 1; }
.fstep.on .dot { background: var(--c, var(--yellow)); border-color: var(--ink); color: var(--ink); transform: scale(1.1); }
.fstep .t { font-size: 20px; font-weight: 600; letter-spacing: -0.03em; color: var(--ink-3); padding-top: 5px; transition: color .4s; }
.fstep .d { font-size: 15.5px; color: var(--ink-3); margin-top: 2px; transition: color .4s; }
.fstep.on .t { color: var(--ink); } .fstep.on .d { color: var(--ink-2); }

.shot { margin: 40px auto; max-width: 1000px; }
.shot.wide { max-width: none; }
.shot img { display: block; width: 100%; border-radius: 16px; }
.shot figcaption { margin-top: 12px; font-size: 14px; color: var(--ink-3); text-align: center; }
.shots { display: grid; grid-template-columns: repeat(var(--n, 3), 1fr); gap: 20px; margin: 40px auto; max-width: 1000px; }
.shots[style*="--n:2"] { max-width: 760px; }
.shots .shot { margin: 0; }
@media (max-width: 760px) { .shots { grid-template-columns: 1fr 1fr; } }
.ph { position: relative; aspect-ratio: var(--ratio, 16 / 9); border-radius: 16px; border: 1.6px dashed #9a9a96; background: var(--paper); display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; gap: 8px; padding: 28px; }
.ph .tagx { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 99px; background: #fff07a; }
.ph b { font-size: clamp(18px, 1.8vw, 22px); font-weight: 600; letter-spacing: -0.03em; max-width: 560px; }
.ph p { font-size: 14.5px; color: var(--ink-3); max-width: 560px; line-height: 1.6; }
.ph small { font-size: 13px; font-weight: 600; color: var(--orange); max-width: 560px; }

.next { display: block; margin-top: 80px; padding-top: 72px; padding-bottom: 96px; border-top: 1.6px solid var(--ink); }
.next .lbl { font-size: 16px; color: var(--ink-3); }
.next-row { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-top: 10px; }
.next .ttl { font-size: clamp(44px, 8vw, 120px); font-weight: 600; letter-spacing: -0.06em; line-height: .95; transition: color .3s; }
.next:hover .ttl { color: var(--c2, var(--blue)); }
.next .arr { font-size: clamp(44px, 7vw, 100px); transition: transform .5s var(--spring); }
.next:hover .arr { transform: translateX(20px); }

/* ───────── 그림 속 작은 움직임 ───────── */
.bob { animation: bob 3.2s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.bob.d1 { animation-delay: -1s; } .bob.d2 { animation-delay: -2s; }
@keyframes bob { 50% { transform: translateY(-10px); } }
.spin { animation: spin 14s linear infinite; transform-box: fill-box; transform-origin: center; }
@keyframes spin { to { transform: rotate(360deg); } }
.breathe { animation: breathe 3.6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.breathe.d1 { animation-delay: -1.2s; } .breathe.d2 { animation-delay: -2.4s; }
@keyframes breathe { 50% { transform: scale(1.06); } }
.flash { animation: flash 3.2s infinite; }
@keyframes flash { 0%, 72%, 100% { opacity: 0; } 76% { opacity: 1; } 84% { opacity: 0; } }
.drop { animation: drop 2.6s cubic-bezier(.55, 0, .45, 1) infinite; transform-box: fill-box; }
.drop.d1 { animation-delay: .9s; } .drop.d2 { animation-delay: 1.8s; }
@keyframes drop { 0% { transform: translateY(-90px); opacity: 0; } 15% { opacity: 1; } 70% { transform: none; opacity: 1; } 85%, 100% { opacity: 0; } }
.slide { animation: slide 3s var(--ease) infinite; transform-box: fill-box; }
.slide.d1 { animation-delay: 1s; } .slide.d2 { animation-delay: 2s; }
@keyframes slide { 0% { transform: translateX(-40px); opacity: 0; } 25%, 70% { transform: none; opacity: 1; } 100% { transform: translateX(40px); opacity: 0; } }
.hopx { animation: hopx 2.6s var(--spring) infinite; transform-box: fill-box; transform-origin: bottom center; }
.hopx.d1 { animation-delay: .25s; } .hopx.d2 { animation-delay: .5s; }
@keyframes hopx { 0%, 55%, 100% { transform: none; } 66% { transform: translateY(-22px) rotate(-6deg); } 78% { transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .in-up, .d-hero h1 .line > span { opacity: 1 !important; transform: none !important; }
  .draw { stroke-dashoffset: 0 !important; }
}

/* 실타래 — 누르면 풀리고, 다시 누르면 엉킨다 */
#tangleHit { pointer-events: stroke; cursor: pointer; }
.tangle-hint {
  position: absolute; z-index: 3; left: max(40px, 6vw); bottom: calc(74svh * 0.62);
  border: none; background: var(--paper); color: var(--ink); font: 600 15px "Pretendard", sans-serif;
  padding: 8px 14px; border-radius: 99px; box-shadow: 0 6px 20px rgba(0,0,0,.06);
  animation: hintbob 2.2s ease-in-out infinite; cursor: pointer;
}
.tangle-hint .a { display: inline-block; margin-left: 2px; }
@keyframes hintbob { 50% { transform: translateY(-6px); } }
.hero.untied .tangle-hint { background: transparent; box-shadow: none; color: var(--ink-3); font-weight: 500; animation: none; }
.bead { transform-box: fill-box; transform-origin: center bottom; }
.bead.cheer { animation: cheer .7s var(--spring) both !important; }
@keyframes cheer { 0% { transform: none; } 40% { transform: translateY(-34px) scale(1.06); } 100% { transform: none; } }
.hero .yay { transform-box: fill-box; transform-origin: bottom center; }
.hero .yay.cheer { animation: cheer .6s var(--spring) both; }
@media (max-width: 860px) { .tangle-hint { left: 18px; bottom: calc(56svh * 0.62); font-size: 14px; } }

/* 캐릭터 — 깜빡임 · 숨쉬기 · 당기기 · 폴짝 */
.eyes { transform-box: fill-box; transform-origin: center; animation: blinkeye 4.2s infinite; }
@keyframes blinkeye { 0%, 93%, 100% { transform: scaleY(1); } 96% { transform: scaleY(.1); } }
.happy { display: none; }
.hero.untied .me .eyes { display: none; }
.hero.untied .me .happy { display: inline; }
.sway { transform-box: fill-box; transform-origin: 50% 100%; }
.me.sway { animation: sway 4s ease-in-out infinite; }
@keyframes sway { 0%, 100% { transform: rotate(-1.2deg); } 50% { transform: rotate(1.2deg); } }
.me.sway.tug { animation: tug .55s var(--ease); }
@keyframes tug { 30% { transform: rotate(7deg) translateX(6px); } 100% { transform: none; } }
.hop { transform-box: fill-box; transform-origin: 50% 100%; }
.me .hop.cheer { animation: cheer .65s var(--spring); }

/* ── 히어로 v3: 앉아서 실타래 → 벌떡 만세 ── */
.hero .pose-stand { opacity: 0; transform: translateY(30px); transform-box: fill-box; transform-origin: 50% 100%; transition: opacity .25s, transform .5s var(--spring); }
.hero .pose-sit { transform-box: fill-box; transform-origin: 50% 100%; transition: opacity .25s, transform .4s var(--spring); }
.hero.untied .pose-stand { opacity: 1; transform: none; }
.hero.untied .pose-sit { opacity: 0; transform: translateY(20px) scale(.96); }
.hero.untied .pose-stand .eyes { display: none; }
.hero.untied .pose-stand .happy { display: inline; }
.mouth-open { display: none; }
.hero.untied .pose-stand .mouth { display: none; }
.hero.untied .pose-stand .mouth-open { display: inline; }
.hero.untied .pose-stand .arm { animation: cheerArm .5s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: 50% 100%; }
.hero.untied .pose-stand .arm.r { animation-delay: -.25s; }
@keyframes cheerArm { from { transform: rotate(-6deg); } to { transform: rotate(6deg); } }
.tip { transform-box: fill-box; }
.tip.l { transform-origin: 100% 0; animation: breezeL 2.8s ease-in-out infinite; }
.tip.r { transform-origin: 0 0; animation: breezeR 2.8s ease-in-out infinite; }
.fringe { transform-box: fill-box; transform-origin: 50% 0; animation: breezeF 3.4s ease-in-out infinite; }
@keyframes breezeL { 50% { transform: rotate(9deg); } }
@keyframes breezeR { 50% { transform: rotate(-9deg); } }
@keyframes breezeF { 50% { transform: skewX(-4deg); } }
.hero .sit-tug { animation: sitTug .45s var(--ease); }
@keyframes sitTug { 35% { transform: rotate(-5deg) translateX(-4px); } }
#arrowHead { transition: opacity .3s; }
.hero-go .arr { display: inline-block; }
.hero.untied .hero-go { animation: goPulse 1.4s ease-in-out 2; }
@keyframes goPulse { 50% { transform: translateX(10px); } }
.tangle-hint { left: auto; }

/* 불편한 표정은 앉아 있을 때만 */
.fret { display: none; }
.hero .pose-sit .fret { display: inline; }
.hero .pose-sit .mouth { display: none; }
/* 아래로 내려가라는 안내 — 실이 풀리면 통통 튄다 */
.scroll-cue { position: absolute; left: 0; right: 0; margin: 0 auto; width: max-content; bottom: 36px; z-index: 3; display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 500; color: var(--ink-2); padding: 8px 14px; border-radius: 99px; background: var(--paper); box-shadow: 0 6px 20px rgba(0,0,0,.06); }
.scroll-cue .arr { display: inline-block; }
.hero.untied .scroll-cue { color: var(--ink); background: var(--yellow); font-weight: 700; }
.hero.untied .scroll-cue .arr { animation: cueBob .8s ease-in-out infinite; }
@keyframes cueBob { 50% { transform: translateY(5px); } }
/* 소개 두 줄 — 메뉴 카드와 부딪힐 만큼 좁아지면 자연스럽게 줄바꿈 */
@media (max-width: 1240px) and (min-width: 861px) { .hero-desc { white-space: normal; max-width: 380px; } }

/* Me 소개 — 문장마다 문단, 의미 단위로 줄바꿈 */
.me-intro p + p { margin-top: .85em; }
.me-intro p:first-child { color: var(--ink); }
.me-intro p:not(:first-child) { color: #333; }

/* 마지막 — 떠오르는 물음표 */
.qmark { font: 800 64px "Pretendard", sans-serif; transform-box: fill-box; transform-origin: center; opacity: 0; animation: qfloat 3.3s ease-out infinite; }
.qmark.q2 { animation-delay: 1.1s; font-size: 52px; }
.qmark.q3 { animation-delay: 2.2s; font-size: 44px; }
@keyframes qfloat { 0% { opacity: 0; transform: translateY(26px) scale(.5) rotate(-12deg); } 18% { opacity: 1; transform: translateY(0) scale(1.05) rotate(6deg); } 30% { transform: translateY(-6px) scale(1) rotate(-4deg); } 75% { opacity: 1; } 100% { opacity: 0; transform: translateY(-46px) scale(.95) rotate(8deg); } }
.curious-me.sway { animation: curious 3.6s ease-in-out infinite; }
@keyframes curious { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-2.5deg); } }
@media (prefers-reduced-motion: reduce) { .qmark { opacity: 1; } }
/* 마지막 화면 — 문구는 다른 섹션처럼 왼쪽 정렬, 그림은 잘리지 않게 */
.bye .wrap { width: 100%; }
.bye-art { right: -2vw; bottom: 0; width: min(600px, 52vw); }
@media (max-width: 860px) { .bye-art { width: 70vw; right: -8vw; opacity: .9; } }

/* 액자 — 누를 수 있게, 바로잡힐 때 「탁!」 */
.hero-art .frame { pointer-events: all; cursor: pointer; }
.tak { font: 800 30px "Pretendard", sans-serif; fill: #111; transform-box: fill-box; transform-origin: center; animation: tak .9s var(--spring) forwards; }
@keyframes tak { 0% { opacity: 0; transform: scale(.4) rotate(-12deg); } 25% { opacity: 1; transform: scale(1.15) rotate(4deg); } 60% { opacity: 1; transform: translateY(-10px) scale(1); } 100% { opacity: 0; transform: translateY(-26px); } }
.hero .pose-sit .fret { display: inline; }

.tangle-hint[hidden] { display: none; }
/* 걷는 사람은 작품·이름표 뒤로 지나간다 (이름표 글자를 가리지 않게) */
.walker { z-index: 2; }
.hs-track { z-index: 3; }
/* 걷는 사람 — 작품 앞으로, 더 빠른 걸음 */
.walker { z-index: 5; }
.hs-track { z-index: 3; }
.walker.walking .leg.l, .walker.walking .arm.r { animation-duration: .28s; }
.walker.walking .leg.r, .walker.walking .arm.l { animation-duration: .28s; }
.walker.walking .body { animation-duration: .14s; }
.walker { left: 4vw; }
.walker.walking .leg.l, .walker.walking .arm.r, .walker.walking .leg.r, .walker.walking .arm.l { animation-duration: .22s; }
.walker.walking .body { animation-duration: .11s; }
/* 옆모습 걷기 — 걸을 땐 살짝 앞으로 기울이고, 다리는 크게 교차 */
.walker .lean { transform-box: fill-box; transform-origin: 50% 100%; transition: transform .25s var(--ease); }
.walker.walking .lean { transform: rotate(4deg); }
.walker.walking .leg.l { animation-name: stepA; }
.walker.walking .leg.r { animation-name: stepB; }
.walker.walking .arm.l { animation-name: stepB; }
.walker.walking .arm.r { animation-name: stepA; }
@keyframes stepA { from { transform: rotate(24deg); } to { transform: rotate(-24deg); } }
@keyframes stepB { from { transform: rotate(-24deg); } to { transform: rotate(24deg); } }
.walker { transition: none; }
/* 살짝 옆을 보며 걷기 — 보폭·기울기를 조금 줄인다 */
.walker.walking .lean { transform: rotate(2.5deg); }
@keyframes stepA { from { transform: rotate(16deg); } to { transform: rotate(-16deg); } }
@keyframes stepB { from { transform: rotate(-16deg); } to { transform: rotate(16deg); } }
/* 중간 너비 — 메뉴 카드와 겹치지 않게 소개를 이름 아래로 */
@media (max-width: 1240px) and (min-width: 861px) {
  .hero-top { flex-direction: column; align-items: flex-start; gap: 18px; }
  .hero-desc { white-space: normal; max-width: min(460px, calc(100vw - 420px)); }
}

/* 첫 화면 표정 3단계: 울상(기본) → 고민(fixing) → 기쁨(untied) */
.upset, .ponder { display: none; }
.hero .pose-sit .upset { display: inline; }
.hero .pose-sit .fret { display: none; }
.hero.fixing .pose-sit .upset { display: none; }
.hero.fixing .pose-sit .ponder { display: inline; }
.hero.fixing .pose-sit .eyes { display: none; }
.hero.fixing .pose-sit .sway { animation: ponder 1.2s ease-in-out infinite; }
@keyframes ponder { 0%, 100% { transform: rotate(-1deg); } 50% { transform: rotate(2.5deg); } }
/* 「그 밖에도요」 — 상세 페이지가 있는 줄 */
a.also-row { color: inherit; }
.also-row .go { display: inline-block; font-weight: 500; color: var(--ink-3); margin-left: 6px; transition: transform .35s var(--spring), color .2s; }
a.also-row:hover .go { transform: translateX(8px); color: var(--ink); }
/* 「그 밖에도요」 — 선 그림 칸 + 제목 + 설명 */
.also-row { grid-template-columns: 96px 1fr 1.2fr; align-items: center; }
.also-row .blob { display: none; }
.glyph { width: 80px; height: 80px; background: var(--paper); border-radius: 18px; overflow: visible; }
.glyph .d { stroke-dasharray: 1; stroke-dashoffset: 1; }
.also-row.in .glyph .d, .also-row .glyph.again .d { animation: drawg 1s var(--ease) forwards; }
.also-row .glyph.again .d { animation-name: drawg2; }
@keyframes drawg { to { stroke-dashoffset: 0; } }
@keyframes drawg2 { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.also-row .ttl .n { display: block; font-size: 13px; color: var(--ink-3); font-variant-numeric: tabular-nums; margin-bottom: 2px; }
.also-row:hover h3 { transform: translateX(6px); }
@media (max-width: 760px) { .also-row { grid-template-columns: 80px 1fr; } .also-row p { grid-column: 1 / -1; } }
@media (prefers-reduced-motion: reduce) { .glyph .d { stroke-dashoffset: 0; } }
/* 「그 밖에도요」 — 선으로 그린 손이 마우스를 올린 줄을 가리킨다 */
.also-row { grid-template-columns: 1fr 1.2fr; }
.also-wrap { position: relative; padding-left: 150px; }
.pointer-hand { position: absolute; left: -6px; top: 0; width: 140px; pointer-events: none; transition: top .55s var(--spring); }
.pointer-hand svg { display: block; width: 100%; height: auto; overflow: visible; }
.pointer-hand .inner { transform-box: fill-box; }
.pointer-hand.idle svg { animation: handNod 1.6s ease-in-out infinite; }
@keyframes handNod { 50% { transform: translateX(6px) rotate(-2deg); } }
.pointer-hand.poke svg { animation: handPoke .45s var(--ease); }
@keyframes handPoke { 40% { transform: translateX(16px); } 100% { transform: none; } }
@media (max-width: 860px) { .also-wrap { padding-left: 0; } .pointer-hand { display: none; } }
/* 쓰는 도구 — 떨어지고 던질 수 있는 알약 */
.tool-hint { margin-top: 10px; color: var(--ink-3); font-size: 17px; }
.toolbox { position: relative; margin-top: 28px; height: 440px; border-radius: 24px; background: var(--paper); overflow: hidden; touch-action: pan-y; user-select: none; }
.tool { position: absolute; left: 0; top: 0; display: inline-flex; align-items: center; justify-content: center; white-space: nowrap;
  padding: 16px 28px; border-radius: 999px; font-size: clamp(17px, 1.6vw, 22px); font-weight: 600; letter-spacing: -0.02em; color: #111;
  border: 2px solid #111; will-change: transform; cursor: grab; }
.tool.y { background: var(--yellow); } .tool.b { background: var(--blue); color: #fff; } .tool.g { background: var(--green); }
.tool.o { background: var(--orange); color: #fff; } .tool.w { background: #fff; }
.toolbox.dragging .tool { cursor: grabbing; }
/* 물리 효과가 없을 때(모바일·동작 줄이기·불러오기 실패): 가지런히 */
.toolbox.static { height: auto; padding: 24px; display: flex; flex-wrap: wrap; gap: 10px; align-content: flex-end; }
.toolbox.static .tool { position: static; transform: none !important; }
/* Me — 영역이 보이면 형광펜이 차례로 쫙 그어진다 */
.me-intro .hl { background-repeat: no-repeat; background-position: 0 0; background-size: 0% 100%; -webkit-box-decoration-break: clone; box-decoration-break: clone;
  transition: background-size .8s var(--ease); }
.me-intro.in .hl { background-size: 100% 100%; }
.me-intro.in .hl { transition-delay: .35s; }
.me-intro.in .hl.b { transition-delay: 1s; }
.me-intro.in .hl.g { transition-delay: 1.55s; }
@media (prefers-reduced-motion: reduce) { .me-intro .hl { background-size: 100% 100%; } }
/* 공구함 — 바닥 가운데. 앞판이 알약보다 위에 있어서 안에서 튀어나오는 것처럼 보인다 */
.chest { position: absolute; left: 50%; bottom: 0; width: 280px; height: 130px; margin-left: -140px; z-index: 2; pointer-events: none; }
.chest-body { position: absolute; inset: 0; background: var(--orange); border: 2px solid #111; border-bottom: none; border-radius: 14px 14px 0 0; }
.chest-body .band { position: absolute; left: 0; right: 0; top: 42px; height: 2px; background: #111; opacity: .8; }
.chest-body .handle { position: absolute; left: 50%; top: 58px; width: 64px; height: 14px; margin-left: -32px; border: 2px solid #111; border-radius: 8px; background: #fff; }
.chest-lid { position: absolute; left: -4px; right: -4px; top: -24px; height: 28px; background: #ff9a52; border: 2px solid #111; border-radius: 12px 12px 4px 4px;
  transform-origin: 6px 100%; transition: transform .7s var(--spring); }
.chest-lid .latch { position: absolute; right: 22px; top: 18px; width: 18px; height: 16px; background: #fff; border: 2px solid #111; border-radius: 4px; }
.toolbox.open .chest-lid { transform: rotate(-118deg); }
.tool { z-index: 1; }
.toolbox.static .chest { display: none; }

/* ── 공구판: 공구함에서 튀어나와 분류별 자리에 착착 걸린다 ── */
.toolbox { height: auto !important; padding: 44px 44px 190px; touch-action: auto; user-select: auto;
  background-color: var(--paper); background-image: radial-gradient(#d9d9d4 2.6px, transparent 3px); background-size: 28px 28px; background-position: 14px 14px; }
.toolbox.static { padding: 44px 44px 44px; display: block; }
.peg { display: grid; gap: 30px; position: relative; z-index: 1; }
.peg-row { display: grid; grid-template-columns: 150px 1fr; gap: 20px; align-items: center; }
.peg-label { font-size: 15px; font-weight: 700; color: var(--ink-2); background: var(--paper); padding: 4px 10px; border-radius: 8px; justify-self: start; }
.peg-items { display: flex; flex-wrap: wrap; gap: 22px 14px; }
.toolbox .tool { position: relative; left: auto; top: auto; z-index: auto; cursor: default; transform-origin: 50% -14px;
  padding: 12px 22px; font-size: clamp(16px, 1.4vw, 19px); transition: transform .5s var(--spring); }
.toolbox .tool::before { content: ""; position: absolute; left: 50%; top: -15px; width: 2px; height: 14px; margin-left: -1px; background: #111; }
.toolbox .tool::after { content: ""; position: absolute; left: 50%; top: -21px; width: 8px; height: 8px; margin-left: -5px; border: 2px solid #111; border-radius: 50%; background: var(--paper); }
.toolbox.fly .tool { opacity: 0; }
.toolbox .tool.hung { opacity: 1; transition: transform .75s var(--spring), opacity .2s; }
.toolbox .tool.hung:hover { animation: swing 1s ease-in-out; }
@keyframes swing { 20% { transform: rotate(9deg); } 45% { transform: rotate(-6deg); } 70% { transform: rotate(3deg); } 100% { transform: rotate(0); } }
.toolbox .chest { z-index: 2; }
.toolbox.static .chest { display: none; }
@media (max-width: 760px) { .toolbox { padding: 28px 18px 28px; } .peg-row { grid-template-columns: 1fr; gap: 10px; } }
/* 마지막 화면 그림 — 오른쪽 끝에서 안쪽으로 */
.bye-art { right: 7vw; }
@media (max-width: 1240px) { .bye-art { right: 2vw; } }
/* 공구함 뚜껑 — 비스듬히 솟지 않고 뒤로 완전히 젖혀져 옆에 눕는다 (알약을 가리지 않게) */
.toolbox.open .chest-lid { transform: rotate(-178deg); }
.d-sec code { font: 600 .88em ui-monospace, Menlo, monospace; background: var(--paper); padding: 1px 6px; border-radius: 5px; }
.d-sec p.learning + * { margin-top: 0; }
/* 02 간편 로그인 목업 — 실제 화면 구성 그대로 */
.mock-wrap { max-width: 720px; }
.phones { display: flex; justify-content: center; gap: 28px; flex-wrap: wrap; }
.phone { width: 260px; height: 500px; border-radius: 30px; background: #fff; border: 2px solid #111; padding: 14px 16px; position: relative; text-align: left; box-shadow: 0 14px 40px rgba(0,0,0,.08); }
.phone .status { font-size: 11px; font-weight: 600; color: #333; }
.phone h4 { margin-top: 18px; font-size: 18px; font-weight: 700; letter-spacing: -0.03em; }
.phone .mock-search { margin-top: 16px; display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 10px; background: #f3f4f6; font-size: 13px; }
.phone .mock-search .ic { color: #9aa0a6; font-size: 15px; }
.phone .mock-search .hint { color: #9aa0a6; }
.phone .caret { display: inline-block; width: 1.5px; height: 14px; margin-left: 1px; background: #1a73e8; vertical-align: -2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.phone ul { list-style: none; margin-top: 10px; }
.phone li { display: flex; justify-content: space-between; align-items: center; padding: 13px 4px; font-size: 13px; color: #222; }
.phone li .chk { color: #34c759; font-weight: 800; opacity: 0; }
.phone li.on .chk { opacity: 1; }
.phone .login { position: absolute; left: 16px; right: 16px; bottom: 18px; padding: 12px; border-radius: 10px; text-align: center; font-size: 14px; font-weight: 700; color: #fff; background: #b8ecc4; }
.phone .login.on { background: #34c759; }
.phone-cap { margin-top: 10px; font-size: 13px; color: var(--ink-3); text-align: center; }
.d-sec > figure.shot, .d-body > figure.mock-wrap { margin: 24px auto 40px; }

/* 웹뷰 스와이프 백 판정 도식 */
.sw-fig { width: 100%; box-sizing: border-box; background: var(--paper); border-radius: 16px; padding: clamp(18px, 3vw, 32px); }
.sw-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(10px, 2.4vw, 28px); }
.sw-col { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; }
.sw-col svg { width: 100%; max-width: 200px; height: auto; margin-bottom: 10px; }
.sw-col b { font-size: clamp(13px, 1.4vw, 16px); font-weight: 700; letter-spacing: -0.02em; }
.sw-col span { font-size: clamp(12px, 1.2vw, 14px); color: var(--ink-2); line-height: 1.5; }
.sw-tl { display: flex; margin-top: 36px; border-radius: 99px; overflow: visible; font-size: clamp(12px, 1.2vw, 14px); font-weight: 600; }
.sw-seg { position: relative; padding: 12px 16px; }
.sw-seg.on { flex: 3; background: var(--blue); color: #fff; border-radius: 99px 0 0 99px; }
.sw-seg.off { flex: 1.3; background: var(--bg); color: var(--ink-2); border-radius: 0 99px 99px 0; }
.sw-pin { position: absolute; top: -22px; left: 0; font-size: 12px; font-weight: 700; color: var(--ink); white-space: nowrap; }
.sw-pin::after { content: ""; position: absolute; left: 0; top: 18px; width: 1.6px; height: 10px; background: var(--ink); }
.sw-fig figcaption { margin-top: 20px; }
@media (max-width: 560px) { .sw-tl { flex-direction: column; border-radius: 14px; } .sw-seg.on, .sw-seg.off { border-radius: 0; } .sw-seg.on { border-radius: 14px 14px 0 0; } .sw-seg.off { border-radius: 0 0 14px 14px; } .sw-pin { position: static; display: block; color: inherit; opacity: .8; margin-bottom: 2px; } .sw-pin::after { display: none; } .sw-tl { margin-top: 24px; } }

/* 웹뷰 신분증 지표 비교 */
.mt-fig { margin: 0; }
.mt-card { height: 100%; box-sizing: border-box; background: var(--paper); border-radius: 16px; padding: clamp(20px, 3vw, 32px); display: flex; flex-direction: column; justify-content: center; gap: 28px; }
.mt-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.mt-head b { font-size: clamp(15px, 1.5vw, 18px); font-weight: 700; letter-spacing: -0.02em; }
.mt-delta { font-size: 13px; font-weight: 800; color: var(--green); }
.mt-bar { position: relative; display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 10px; margin-top: 6px; }
.mt-bar i { grid-column: 1; height: 14px; border-radius: 99px; background: var(--line); width: 0; max-width: var(--v); transition: width 1.1s var(--ease); }
.mt-bar.after i { height: 22px; background: var(--blue); transition-delay: .25s; }
.mt-bar.after.low i { background: var(--orange); }
.in .mt-bar i { width: var(--v); }
.mt-bar em { font-style: normal; font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
.mt-bar.after em { font-size: 17px; }
.mt-bar small { grid-column: 1 / -1; font-size: 11.5px; color: var(--ink-3); margin-top: 3px; font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: reduce) { .mt-bar i { width: var(--v); transition: none; } }
@media (max-width: 560px) { .shots:has(.mt-fig) { grid-template-columns: 1fr; } .shots:has(.mt-fig) .ph { aspect-ratio: 4 / 3; } }

/* 모노레포 구조도 */
.ms-fig, .mc-fig, .mg-fig { background: var(--paper); border-radius: 16px; padding: clamp(18px, 3vw, 36px); box-sizing: border-box; }
.ms-grid { display: grid; grid-template-columns: 1fr auto 1.25fr; gap: clamp(12px, 2.4vw, 32px); align-items: start; }
.ms-tag { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .04em; padding: 3px 10px; border-radius: 99px; background: var(--bg); margin-bottom: 12px; }
.ms-box { border: 2px solid var(--ink); border-radius: 14px; padding: 16px; }
.ms-box h4 { font-size: 18px; font-weight: 800; margin: 0 0 12px; } .ms-box h4 small { font-size: 12px; font-weight: 600; color: var(--ink-3); margin-left: 6px; }
.ms-routes { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.ms-routes li { font-size: 12.5px; padding: 5px 9px; border-radius: 8px; background: var(--bg); }
.ms-box.old p { margin: 14px 0 0; font-size: 12.5px; color: var(--orange); font-weight: 700; }
.ms-arrow { align-self: center; font-size: 34px; font-weight: 300; }
.ms-ingress { font-size: 12.5px; font-weight: 700; padding: 9px 12px; border-radius: 10px; background: var(--ink); color: #fff; text-align: center; }
.ms-apps { list-style: none; padding: 0; margin: 10px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ms-apps li { border-radius: 12px; padding: 12px; background: var(--bg); border-top: 5px solid var(--c); display: flex; flex-direction: column; gap: 3px; }
.ms-apps b { font-size: 15px; } .ms-apps span { font-size: 12.5px; color: var(--ink-2); } .ms-apps code { font-size: 11.5px; color: var(--ink-3); }
.ms-box.rest { border-style: dashed; border-color: var(--ink-3); padding: 10px 12px; font-size: 12.5px; color: var(--ink-2); }
@media (max-width: 640px) { .ms-grid { grid-template-columns: 1fr; } .ms-arrow { transform: rotate(90deg); justify-self: center; } }
/* 투자 컷오버 타임라인 */
.mc-line { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(6, 1fr); position: relative; }
.mc-line::before { content: ""; position: absolute; left: 8px; right: 8px; top: 14px; height: 2px; background: var(--line); }
.mc-line li { position: relative; padding: 0 8px; display: flex; flex-direction: column; gap: 4px; }
.mc-line time { font-size: 13px; font-weight: 800; font-variant-numeric: tabular-nums; }
.mc-line li::before { content: ""; width: 16px; height: 16px; border-radius: 50%; background: var(--blue); border: 3px solid var(--paper); box-shadow: 0 0 0 2px var(--blue); margin: 4px 0 8px; position: relative; z-index: 1; }
.mc-line li.mc-plan::before { background: var(--yellow); box-shadow: 0 0 0 2px var(--yellow); }
.mc-line li.mc-back::before { background: var(--orange); box-shadow: 0 0 0 2px var(--orange); }
.mc-line li.mc-done::before { background: var(--green); box-shadow: 0 0 0 2px var(--green); }
.mc-line b { font-size: 14.5px; } .mc-line span { font-size: 12.5px; color: var(--ink-2); line-height: 1.5; }
.mc-line li.mc-back b::after { content: " ↺"; color: var(--orange); }
@media (max-width: 760px) { .mc-line { grid-template-columns: 1fr; gap: 14px; } .mc-line::before { left: 17px; right: auto; top: 8px; bottom: 8px; width: 2px; height: auto; } .mc-line li { padding-left: 40px; } .mc-line li::before { position: absolute; left: 7px; top: 0; margin: 0; } }
/* 도메인별 이관 연대기 */
.mg-head, .mg-row { display: grid; grid-template-columns: 110px 1fr 240px; gap: 14px; align-items: center; }
.mg-months { position: relative; height: 18px; } .mg-months span { position: absolute; font-size: 11.5px; color: var(--ink-3); transform: translateX(-2px); }
.mg-row { padding: 10px 0; border-top: 1px solid var(--line); }
.mg-name { font-size: 14px; font-weight: 700; }
.mg-track { position: relative; height: 16px; border-radius: 99px; background: var(--bg); }
.mg-track i { position: absolute; top: 0; bottom: 0; border-radius: 99px; }
.mg-desc { font-size: 12.5px; color: var(--ink-2); line-height: 1.45; }
@media (max-width: 760px) { .mg-head, .mg-row { grid-template-columns: 74px 1fr; } .mg-head > div:last-child { display: none; } .mg-desc { grid-column: 1 / -1; margin-top: -4px; } .mg-name { font-size: 12.5px; } }

/* Orval 코드 비교 · 파이프라인 */
.oc-fig, .op-fig { background: var(--paper); border-radius: 16px; padding: clamp(16px, 3vw, 32px); box-sizing: border-box; }
.oc-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 16px; }
.oc-pane { border-radius: 12px; background: #1d1d1f; color: #e8e8e6; overflow: hidden; min-width: 0; }
.oc-pane.after { background: #12263a; }
.oc-head { display: flex; align-items: baseline; gap: 10px; padding: 12px 16px; border-bottom: 1px solid rgba(255,255,255,.1); }
.oc-head b { font-size: 13px; padding: 2px 9px; border-radius: 99px; background: var(--orange); color: #111; }
.oc-pane.after .oc-head b { background: var(--green); }
.oc-head span { font-size: 12.5px; color: #b9b9b6; }
.oc-pane pre { margin: 0; padding: 14px 16px; overflow-x: auto; font: 12.5px/1.65 ui-monospace, SFMono-Regular, Menlo, monospace; }
.oc-pane .cm { color: #8a8f98; } .oc-pane .kw { color: #ff8fb8; } .oc-pane .ty { color: #7cc7ff; } .oc-pane .st { color: #ffdb24; } .oc-pane .er { color: #ff9b5e; }
@media (max-width: 760px) { .oc-grid { grid-template-columns: 1fr; } }
.op-row { display: grid; grid-template-columns: 1fr auto 1fr auto 1.1fr auto 1.2fr; align-items: center; gap: 10px; }
.op-box { border-radius: 14px; padding: 16px; background: var(--bg); display: flex; flex-direction: column; gap: 4px; }
.op-box small { font-size: 11.5px; font-weight: 700; color: var(--ink-3); } .op-box b { font-size: 16px; } .op-box span { font-size: 12.5px; color: var(--ink-2); line-height: 1.45; }
.op-box.src { border: 2px solid var(--ink); background: var(--paper); } .op-box.gen { background: var(--ink); } .op-box.gen b, .op-box.gen span { color: #fff; } .op-box.gen small { color: #b9b9b6; }
.op-arrow { font-size: 24px; color: var(--ink-3); }
.op-outs { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.op-outs li { border-radius: 10px; padding: 8px 12px; background: var(--bg); border-left: 5px solid var(--c); display: flex; flex-direction: column; }
.op-outs b { font-size: 14px; } .op-outs span { font-size: 12px; color: var(--ink-2); }
@media (max-width: 860px) { .op-row { grid-template-columns: 1fr; } .op-arrow { transform: rotate(90deg); justify-self: center; } }

/* 비교표 */
table.cmp { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 14.5px; background: var(--paper); border-radius: 14px; overflow: hidden; }
table.cmp th { white-space: nowrap; text-align: left; font-size: 12.5px; color: var(--ink-3); font-weight: 700; padding: 12px 14px; border-bottom: 1px solid var(--line); }
table.cmp td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; line-height: 1.5; color: var(--ink-2); }
table.cmp td:first-child { font-weight: 700; color: var(--ink); white-space: nowrap; } table.cmp td:nth-child(2) { text-align: center; font-weight: 700; }
table.cmp td small { font-weight: 500; color: var(--ink-3); font-size: 12px; }
table.cmp tr:last-child td { border-bottom: 0; } table.cmp tr.pick td { background: #eaf4fd; }
@media (max-width: 560px) { table.cmp { font-size: 13px; } table.cmp td:first-child { white-space: normal; } table.cmp th, table.cmp td { padding: 10px; } }

/* 웹뷰 화면 전환 영상 */
.tv-fig { display: flex; justify-content: center; gap: clamp(16px, 5vw, 72px); flex-wrap: wrap; }
.tv-phone { margin: 0; width: min(280px, 42vw); display: flex; flex-direction: column; align-items: center; gap: 12px; }
.tv-frame { width: 100%; border-radius: 30px; padding: 8px; background: var(--ink); box-shadow: 0 18px 40px rgba(0,0,0,.12); }
.tv-frame video { display: block; width: 100%; border-radius: 23px; background: #fff; }
.tv-phone figcaption { text-align: center; font-size: 13px; color: var(--ink-2); line-height: 1.5; }
.tv-phone figcaption b { display: block; font-size: 15px; color: var(--ink); margin-bottom: 2px; }

/* 프로덕트 맵 */
.shot figcaption a.src { color: var(--ink-3); text-decoration: underline; text-underline-offset: 2px; white-space: nowrap; }
.shots.pm-shots { grid-template-columns: 1.136fr 2.537fr; max-width: 1000px; align-items: start; }
@media (max-width: 760px) { .shots.pm-shots { grid-template-columns: 1fr; } }
.pp-fig, .pd-fig { background: var(--paper); border-radius: 16px; padding: clamp(18px, 3vw, 34px); box-sizing: border-box; }
.pp-row { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; counter-reset: s; }
.pp-row li { position: relative; border-radius: 14px; background: var(--bg); padding: 16px 14px 14px; display: flex; flex-direction: column; gap: 6px; border-top: 5px solid var(--c); }
.pp-row li:not(:last-child)::after { content: "→"; position: absolute; right: -13px; top: 50%; transform: translateY(-50%); font-size: 16px; color: var(--ink-3); z-index: 1; }
.pp-row i { font-style: normal; font-size: 12px; font-weight: 800; color: var(--ink-3); }
.pp-row b { font-size: 16px; } .pp-row span { font-size: 12.5px; color: var(--ink-2); line-height: 1.5; flex: 1; }
.pp-row em { font-style: normal; align-self: flex-start; font-size: 11.5px; font-weight: 700; padding: 2px 8px; border-radius: 99px; background: var(--paper); }
.pp-note { margin: 16px 0 0; font-size: 13.5px; color: var(--ink-2); text-align: center; }
@media (max-width: 760px) { .pp-row { grid-template-columns: 1fr; } .pp-row li:not(:last-child)::after { content: "↓"; right: auto; left: 50%; top: auto; bottom: -15px; transform: translateX(-50%); } }
.pd-fig { display: grid; gap: 14px; }
.pd-flow { display: grid; grid-template-columns: 80px 1fr 60px; align-items: center; gap: 12px; }
.pd-flow > b { font-size: 15px; padding: 6px 0; border-left: 5px solid var(--c); padding-left: 10px; }
.pd-flow ol { list-style: none; padding: 0; margin: 0; display: flex; gap: 8px; }
.pd-flow li { flex: 1; text-align: center; font-size: 13px; padding: 14px 8px; border-radius: 10px; background: var(--bg); border: 1.6px solid var(--line); }
.pd-flow > span { font-size: 14px; font-weight: 800; text-align: right; }
.pd-fig figcaption { margin-top: 6px; }
@media (max-width: 560px) { .pd-flow { grid-template-columns: 1fr; } .pd-flow ol { flex-direction: column; } .pd-flow > span { text-align: left; } }

/* ───────── 모바일 간격 다듬기 ───────── */
.gap-top { margin-top: 140px; }
@media (max-width: 640px) {
  section { padding-top: 72px; padding-bottom: 72px; }
  .gap-top { margin-top: 88px; }
  .me-grid { margin-top: 32px; gap: 32px; }
  .hs-sticky { padding-top: 80px; padding-bottom: 24px; }
  .hs-track { gap: 56px; padding-top: 32px; }
  .bye { min-height: 0; justify-content: flex-start; padding-top: 24px; padding-bottom: 78vw; }
  .bye .links { margin-top: 28px; }
  .bye-art { width: 82vw; right: -6vw; bottom: 0; }
  .toolbox { margin-top: 20px; }
  [id] { scroll-margin-top: 84px; }
}
@media (max-width: 640px) {
  .d-sec { padding: 24px 0; }
  .shot, .d-sec > figure.shot { margin-top: 20px; margin-bottom: 24px; }
  .shots { margin: 24px auto; gap: 14px; }
  .d-hero { padding-bottom: 8px; }
  .d-stats { gap: 10px; }
  .d-stats > div { padding: 18px 16px 16px; }
}
@media (max-width: 640px) { .d-body { margin-top: 28px; } }
