/* ==========================================================
   전상훈 — Personal Portfolio (same language as team v2)
   ========================================================== */



:root {
  --bg: #F7F7F5;
  --paper: #FFFFFF;
  --ink: #111111;
  --ink-2: #444444;
  --gray: #686865;
  --faint: #BDBDBA;
  --line: #E3E3DF;
  --navy: #13223F;
  --red: #D63B3E;
  --pad: clamp(20px, 3.2vw, 48px);
  --ease: cubic-bezier(.2,.7,.1,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: "Pretendard Variable", "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", sans-serif;
  font-size: 15px; line-height: 1.65; word-break: keep-all;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
::selection { background: var(--ink); color: var(--bg); }
:focus-visible { outline: 1px solid var(--ink); outline-offset: 4px; }

/* ───────── Fixed corner meta (like the reference's page header) ───────── */
.meta {
  position: fixed; inset: 0 0 auto 0; z-index: 40;
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  padding: 22px var(--pad);
  font-size: 11px; line-height: 1.45; color: var(--gray);
  pointer-events: none;
  mix-blend-mode: multiply;
}
.meta a, .meta nav { pointer-events: auto; }
.meta__c2 { text-align: center; }
.meta__c3 { display: flex; flex-direction: column; align-items: flex-end; }
.meta a { transition: color .2s; }
.meta a:hover, .meta a.is-on { color: var(--ink); }

/* ───────── Spread (one page of the book) ───────── */
.spread { position: relative; min-height: 100vh; min-height: 100svh; padding: 110px var(--pad) 80px; }

/* Cover */
.cover { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.cover__word, .end__word {
  font-size: clamp(64px, 15.5vw, 260px);
  font-weight: 500; letter-spacing: -.065em; line-height: .9;
  margin-left: -.04em;
}
.cover__rule { display: block; width: 1.5px; height: clamp(80px, 13vh, 140px); background: var(--ink); margin: clamp(28px, 4vh, 44px) 0 28px; }
.cover__name { font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.cover__sub { margin-top: 14px; font-size: 12px; color: var(--gray); line-height: 1.5; }

/* About */
.about { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 7vw, 120px); align-items: start; padding-top: 140px; }
.deck { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; max-width: 420px; }
.mini {
  position: relative; aspect-ratio: 55 / 86; background: var(--paper); overflow: hidden;
  container-type: inline-size; box-shadow: 0 0 0 1px var(--line);
}
.mini i { position: absolute; left: 0; top: 0; bottom: 0; width: 14%; background: var(--navy); }
.mini i::before { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 5%; background: var(--red); }
.mini span { position: absolute; right: 9%; top: 6%; font-size: 6.5cqi; font-weight: 700; color: var(--faint); letter-spacing: .08em; }
.mini em { position: absolute; left: 24%; top: 56%; font-style: normal; font-size: 8cqi; font-weight: 700; color: #fff; background: var(--navy); padding: .2em .7em; border-radius: 1.5cqi; letter-spacing: .3em; }
.mini--lead em { background: var(--red); }
.mini b { position: absolute; left: 24%; top: 67%; font-size: 17cqi; font-weight: 800; color: var(--navy); letter-spacing: -.03em; line-height: 1; }

.hello { margin-top: 40px; font-size: clamp(28px, 2.8vw, 40px); font-weight: 300; line-height: 1.4; letter-spacing: -.03em; }
.hello b { font-weight: 800; }
.hello__dash { display: inline-block; width: 1.6em; height: 1.5px; background: var(--ink); vertical-align: middle; margin-left: .3em; }
.contact { margin-top: 36px; font-size: 12px; }
.contact div { display: grid; grid-template-columns: 64px 1fr; padding: 3px 0; }
.contact dt { font-weight: 700; }
.contact dd { color: var(--gray); }

.about__right { display: grid; gap: 40px; padding-top: 6px; }
.list h2 { font-size: 14px; font-weight: 700; letter-spacing: -.005em; margin-bottom: 12px; }
.list li { display: flex; justify-content: space-between; gap: 24px; padding: 5px 0; font-size: 13px; color: var(--gray); }
.list li b { color: var(--ink); font-weight: 600; margin-right: 8px; }
.list time { flex: none; min-width: 48px; text-align: left; color: var(--gray); font-variant-numeric: tabular-nums; }

/* Index */
.index { display: grid; grid-template-columns: 1fr 1.4fr 1.4fr; gap: 40px; align-content: center; padding-top: 140px; }
.index__label { font-size: 20px; font-weight: 600; letter-spacing: -.02em; line-height: 1.2; }
.index__label span { display: inline-block; font-weight: 300; transform: translateX(2px); }
.index__item { display: flex; flex-direction: column; color: var(--gray); transition: color .35s var(--ease); }
.index__item:first-of-type, .index__item:hover { color: var(--ink); }
.index__item:focus-visible { color: var(--ink); }
.index__no { font-size: clamp(72px, 9vw, 132px); font-weight: 400; letter-spacing: -.06em; line-height: 1; }
.index__cat { margin-top: 26px; font-size: clamp(18px, 1.6vw, 22px); font-weight: 600; letter-spacing: -.02em; }
.index__list { margin-top: 14px; font-size: 13px; line-height: 1.9; }

/* Project title page */
.project { padding: 140px var(--pad) 120px; }
.ptitle { display: grid; grid-template-columns: 1fr 2.8fr; gap: 40px; align-items: end; padding-bottom: 36px; margin-bottom: 0; border-bottom: 1.5px solid var(--ink); }
.ptitle__no { font-size: clamp(72px, 9vw, 132px); font-weight: 400; letter-spacing: -.06em; line-height: .85; }
.ptitle__meta { font-size: 12px; color: var(--gray); }
.ptitle__name { margin-top: 10px; font-size: clamp(44px, 6.4vw, 104px); font-weight: 500; letter-spacing: -.055em; line-height: .95; }
.ptitle__ko { margin-top: 12px; font-size: 16px; font-weight: 600; }

/* Brand-sheet grid */
.sheet { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-top: 0; }
.sheet--hr { grid-template-areas:
  "bg  key sys"
  "hw  key ai"
  "res res res"
  "p1  p2  p3"
  "lim lim lim"; }
.sheet--am { grid-template-areas:
  "bg2  screen screen"
  "flow screen screen"
  "flow cta    cta"; }
.c-bg { grid-area: bg; } .c-key { grid-area: key; } .c-sys { grid-area: sys; } .c-hw { grid-area: hw; }
.c-ai { grid-area: ai; } .c-res { grid-area: res; } .c-p1 { grid-area: p1; } .c-p2 { grid-area: p2; }
.c-p3 { grid-area: p3; } .c-lim { grid-area: lim; } .c-bg2 { grid-area: bg2; } .c-screen { grid-area: screen; }
.c-flow { grid-area: flow; } .c-cta { grid-area: cta; }

.cell { position: relative; background: var(--paper); padding: clamp(28px, 3vw, 44px); min-height: 300px; overflow: hidden; }
.cell h3 { font-size: 13px; font-weight: 700; letter-spacing: .01em; text-align: center; margin-bottom: 26px; }
.cell p { font-size: 13px; color: var(--ink-2); text-align: center; line-height: 1.85; }
.cell p b { color: var(--ink); }
.cell__lead { font-size: 18px !important; font-weight: 600; color: var(--ink) !important; line-height: 1.55 !important; letter-spacing: -.02em; margin-bottom: 18px; }
.note { margin-top: 22px; font-size: 11px !important; color: var(--gray) !important; }

.cell--dark { background: #0F0F10; color: #fff; display: flex; align-items: center; justify-content: center; }
.cell--dark h3 { color: #fff; }
.cell--dark p { color: rgba(255,255,255,.72); }
.cell--dark p b { color: #fff; }
.c-bg > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .28; filter: grayscale(1); }
.c-bg .cell__in { position: relative; }

figure.cell { padding: 0; }
figure.cell img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
figure.cell:hover img { transform: scale(1.025); }
figure.cell figcaption {
  position: absolute; left: 14px; bottom: 12px; font-size: 11px; font-weight: 600;
  color: #fff; text-shadow: 0 1px 8px rgba(0,0,0,.45);
}
.c-key { min-height: 640px; }
.c-key img { object-position: 50% 62%; }
.c-p1, .c-p2, .c-p3 { aspect-ratio: 4 / 3; min-height: 0; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: 10px; }
.steps li { padding-top: 10px; border-top: 3px solid #D9D9D6; font-size: 12px; font-weight: 700; text-align: left; }
.steps li:nth-child(2) { border-color: #A9A9A6; }
.steps li:nth-child(3) { border-color: var(--ink); }
.steps li.is-hot { border-color: var(--red); color: var(--red); }
.steps span { display: block; font-size: 10px; color: var(--gray); letter-spacing: .1em; }
.steps li.is-hot span { color: var(--red); }

.kv div { display: grid; grid-template-columns: 60px 1fr; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.kv div:first-child { border-top: 1px solid var(--line); }
.kv dt { color: var(--gray); }

.bars div { display: grid; grid-template-columns: 52px 1fr; align-items: center; gap: 12px; padding: 9px 0; font-size: 13px; }
.bars dt { color: var(--ink-2); }
.bars dd { position: relative; height: 22px; background: #F0F0EE; }
.bars i { position: absolute; left: 0; top: 0; bottom: 0; width: var(--v); background: linear-gradient(90deg, #C9CCD4, var(--navy)); }
.bars span { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); font-size: 11px; font-weight: 700; color: #fff; }

.c-res { min-height: 0; padding-top: clamp(36px, 4vw, 56px); padding-bottom: clamp(36px, 4vw, 56px); }
.nums { display: grid; grid-template-columns: repeat(3, 1fr); }
.nums li { text-align: center; padding: 0 16px; border-left: 1px solid var(--line); }
.nums li:first-child { border-left: 0; }
.nums b { display: block; font-size: clamp(56px, 7vw, 108px); font-weight: 500; letter-spacing: -.06em; line-height: 1; }
.nums small { font-size: .26em; font-weight: 600; letter-spacing: 0; margin-left: 6px; color: var(--gray); }
.nums span { display: block; margin-top: 16px; font-size: 12px; color: var(--gray); line-height: 1.6; }
.c-lim { min-height: 0; }
.c-lim p { max-width: 640px; margin: 0 auto; }

/* Project 02 */
.c-screen { background: #EDEEF1 !important; display: flex !important; align-items: center; justify-content: center; padding: clamp(28px, 4vw, 64px) !important; }
.c-screen .frame { width: 100%; border-radius: 8px; overflow: hidden; box-shadow: 0 30px 60px -30px rgba(20,30,60,.35), 0 0 0 1px rgba(0,0,0,.05); }
.c-screen .frame img { height: auto; }
.c-screen figcaption { color: var(--gray) !important; text-shadow: none !important; }
.c-bg2 { display: flex; flex-direction: column; justify-content: center; }
.flow li { display: flex; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 14px; font-weight: 600; }
.flow li:first-child { border-top: 1px solid var(--line); }
.flow span { font-size: 11px; color: var(--red); font-weight: 700; padding-top: 2px; }
.c-flow { display: flex; flex-direction: column; justify-content: center; }
.c-cta { flex-direction: column; min-height: 220px; transition: background .4s var(--ease); }
.c-cta:hover { background: var(--navy); }
.cta__big { font-size: clamp(26px, 2.6vw, 38px) !important; font-weight: 600; color: #fff !important; letter-spacing: -.03em; }
.cta__big span { display: inline-block; transition: transform .35s var(--ease); }
.c-cta:hover .cta__big span { transform: translateX(8px); }

/* End */
.end { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.end__foot { position: absolute; left: var(--pad); right: var(--pad); bottom: 28px; display: flex; align-items: center; gap: 16px; font-size: 11px; color: var(--gray); text-align: left; line-height: 1.5; }
.end__foot img { width: 64px; height: auto; }
.end__foot a { margin-left: auto; }
.end__foot a:hover { color: var(--ink); }


/* ───────── Personal additions ───────── */
.portrait { width: min(100%, 420px); aspect-ratio: 4 / 5; background: #fff; overflow: hidden; box-shadow: 0 0 0 1px var(--line); }
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.motto { margin-top: 18px; font-size: 14px; color: var(--ink-2); max-width: 420px; }

/* Story */
.story { padding: 140px var(--pad) 120px; }
.chapters { border-bottom: 1px solid var(--line); }
.chap { display: grid; grid-template-columns: 1fr 2.8fr; gap: 40px; padding: 40px 0; border-top: 1px solid var(--line); position: relative; }
.chap:first-child { border-top: 0; }
.chap__yr { font-size: clamp(36px, 4.2vw, 64px); font-weight: 400; letter-spacing: -.05em; line-height: .95; color: var(--faint); transition: color .4s var(--ease); }
.chap:hover .chap__yr, .chap--next .chap__yr { color: var(--ink); }
.chap--next .chap__yr { color: var(--red); }
.chap__body { max-width: 720px; }
.chap__body h3 { font-size: clamp(20px, 1.8vw, 26px); font-weight: 600; letter-spacing: -.03em; line-height: 1.35; margin-bottom: 12px; }
.chap__body p { font-size: 14.5px; color: var(--ink-2); line-height: 1.85; }
.chap__body b { color: var(--ink); font-weight: 600; }
.chap__tag { position: absolute; right: 0; top: 44px; font-size: 11px; color: var(--gray); letter-spacing: .04em; }
.sheet--nums { border-top: 1px solid var(--line); margin-top: 56px; grid-template-columns: 1fr; }
.nums--4 { grid-template-columns: repeat(4, 1fr); }
.nums--4 b { font-size: clamp(44px, 5.2vw, 84px); }

/* Index with 4 */
.index { grid-template-columns: .8fr repeat(4, 1fr); gap: 32px; }
.index__item:first-of-type { color: var(--ink); }

/* P01 sheet tweaks */
.c-hw p, .c-sys p { text-align: left; }
.c-sys .kv dt { width: auto; }
.c-sys .kv div { grid-template-columns: 44px 1fr; }
.c-link { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; min-height: 200px; transition: background .4s var(--ease); }
.cell--dark.c-link:hover { background: var(--navy); }
.c-link:not(.cell--dark):hover { background: #F0F0EE; }
.c-link .cta__big span { display: inline-block; transition: transform .35s var(--ease); }
.c-link:hover .cta__big span { transform: translateX(8px); }
.cta__big--ink { color: var(--ink) !important; }
.c-key img { object-position: 50% 40%; }

/* P02 pylon */
.sheet--py { grid-template-areas:
  "q    model model"
  "nine nine  find"
  "cmp  cmp   cmp"
  "res  res   res"; }
.c-q { grid-area: q; display: flex; flex-direction: column; justify-content: center; }
.c-model { grid-area: model; } .c-nine { grid-area: nine; } .c-find { grid-area: find; display: flex; flex-direction: column; justify-content: center; }
.c-cmp { grid-area: cmp; }
.sheet--py .c-res { grid-area: res; }
.sheet--py figure.cell { background: #fff; padding: clamp(20px, 3vw, 44px); display: flex; align-items: center; justify-content: center; }
.sheet--py figure.cell img { width: 100%; height: auto; object-fit: contain; }
.sheet--py figure.cell:hover img { transform: none; }
.sheet--py figure.cell figcaption { color: var(--gray); text-shadow: none; }
.c-find p { text-align: left; }

/* P03 team */
.sheet--am { grid-template-areas:
  "bg2  screen screen"
  "flow screen screen"
  "cta  cta    cta"; }

/* P04 more */
.sheet--more { grid-template-areas:
  "m1 m2 photo"
  "m3 m4 photo"
  "robot m5 photo"; }
.c-m1 { grid-area: m1; } .c-m2 { grid-area: m2; } .c-m3 { grid-area: m3; } .c-m4 { grid-area: m4; } .c-m5 { grid-area: m5; } .c-photo { grid-area: photo; }
.c-robot { grid-area: robot; }
.c-robot img { display: block; width: 100%; height: auto; margin-top: 20px; }
.sheet--more article.cell { min-height: 240px; }
.sheet--more .tag { text-align: left; font-size: 11px; font-weight: 700; color: var(--red); letter-spacing: .02em; margin-bottom: 14px; }
.sheet--more h4 { margin: 0 0 12px; font-size: 18px; font-weight: 600; letter-spacing: -.025em; line-height: 1.4; }
.sheet--more p { text-align: left; }
.c-photo { min-height: 520px; }

/* Record */
.record { padding-top: 140px; }
.record .hello { margin-top: 0; }

/* Reveal */
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ───────── Responsive ───────── */
@media (max-width: 960px) {
  .about { grid-template-columns: 1fr; }
  .index { grid-template-columns: 1fr 1fr; }
  .index__label { grid-column: 1 / -1; }
  .ptitle { grid-template-columns: 1fr; gap: 12px; }
  .sheet--hr { grid-template-columns: 1fr 1fr; grid-template-areas:
    "bg  bg"
    "key sys"
    "key hw"
    "ai  ai"
    "res res"
    "p1  p2"
    "p3  p3"
    "lim lim"; }
  .c-key { min-height: 0; }
  .sheet--am { grid-template-columns: 1fr 1fr; grid-template-areas:
    "screen screen"
    "bg2 flow"
    "cta cta"; }
}
@media (max-width: 640px) {
  body { font-size: 14px; }
  .meta { grid-template-columns: auto 1fr; padding: 16px var(--pad); background: rgba(247,247,245,.88); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); mix-blend-mode: normal; }
  .meta__c2 { display: none; }
  .meta__c3 { flex-direction: row; justify-content: flex-end; flex-wrap: wrap; gap: 4px 12px; }
  .spread { padding-top: 90px; }
  .about { padding-top: 100px; }
  .index { grid-template-columns: 1fr; gap: 48px; padding-top: 100px; }
  .project { padding-top: 100px; }
  .sheet--hr, .sheet--am { grid-template-columns: 1fr; grid-template-areas: none; }
  .sheet--hr > *, .sheet--am > * { grid-area: auto; }
  .c-key { aspect-ratio: 4 / 5; }
  .cell { min-height: 0; }
  .nums { grid-template-columns: 1fr; gap: 32px; }
  .nums li { border-left: 0; padding: 0; }
  .list li { font-size: 12.5px; }
  .end__foot { flex-wrap: wrap; }
}

@media (max-width: 960px) {
  .index { grid-template-columns: 1fr 1fr; }
  .chap { grid-template-columns: 1fr; gap: 14px; }
  .chap__tag { top: 40px; }
  .nums--4 { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .nums--4 li:nth-child(3) { border-left: 0; }
  .sheet--py { grid-template-columns: 1fr 1fr; grid-template-areas:
    "model model" "q find" "nine nine" "cmp cmp" "res res"; }
  .sheet--am { grid-template-columns: 1fr 1fr; grid-template-areas: "screen screen" "bg2 flow" "cta cta"; }
  .sheet--more { grid-template-columns: 1fr 1fr; grid-template-areas: "m1 m2" "m3 m4" "robot m5" "photo photo"; }
  .c-photo { min-height: 0; aspect-ratio: 4 / 3; }
}
@media (max-width: 640px) {
  .story { padding-top: 100px; }
  .record { padding-top: 100px; }
  .nums--4 { grid-template-columns: 1fr; }
  .nums--4 li { border-left: 0; }
  .sheet--py, .sheet--more { grid-template-columns: 1fr; grid-template-areas: none; }
  .sheet--py > *, .sheet--more > * { grid-area: auto !important; }
  .chap__tag { position: static; order: -1; }
  .br-m { display: none; }
}

/* P01 areas (no AI cell on personal page) */
.sheet--hr { grid-template-areas:
  "bg  key sys"
  "hw  key sys"
  "res res res"
  "p1  p2  p3"
  "lim lim lim"; }
.sheet--hr .c-p1, .sheet--hr .c-p2, .sheet--hr .c-p3 { aspect-ratio: 3 / 4; }
@media (max-width: 960px) {
  .sheet--hr { grid-template-columns: 1fr 1fr; grid-template-areas:
    "bg  bg" "key sys" "key hw" "res res" "p1 p2" "p3 p3" "lim lim"; }
  .sheet--hr .c-p3 { aspect-ratio: 4 / 3; }
}
@media (max-width: 640px) {
  .sheet--hr { grid-template-columns: 1fr; grid-template-areas: none; }
  .sheet--hr .c-p3 { aspect-ratio: 3 / 4; }
}
.sheet--nums .c-res { grid-area: auto; }

.grow { margin-top: 20px; text-align: left; }
.grow li { display: flex; gap: 14px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-2); }
.grow li:last-child { border-bottom: 1px solid var(--line); color: var(--ink); }
.grow span { flex: none; width: 40px; font-size: 11px; font-weight: 700; color: var(--red); padding-top: 2px; }

/* ───────── Own signature (not the reference's vertical rule / dash) ───────── */
.dot { color: var(--red); }
.cover__rule { width: clamp(96px, 14vw, 180px); height: 1.5px; margin: clamp(28px, 4vh, 44px) 0 24px; position: relative; }
.cover__rule::after { content: ""; position: absolute; right: -10px; top: 50%; width: 7px; height: 7px; background: var(--red); transform: translateY(-50%); }
.hello__dash { width: .26em; height: .26em; background: var(--red); vertical-align: .18em; margin-left: .25em; }

.cover__jump { margin-top: 20px; padding: 7px 2px; font-size: 14px; font-weight: 600; border-bottom: 1px solid currentColor; }
.work-link { display: inline-block; margin-top: 12px; text-decoration: underline; text-underline-offset: 3px; }

/* ───────── 2026-11-18 restructure ───────── */
/* Cover with portrait */
.cover--split { display: grid; grid-template-columns: 1.15fr 1fr; align-items: end; text-align: left; padding-bottom: 0; gap: clamp(20px, 4vw, 64px); }
.cover--split .cover__text { align-self: center; padding-bottom: 8vh; }
.cover--split .cover__word { font-size: clamp(64px, 11.5vw, 210px); }
.cover__photo { align-self: end; justify-self: end; width: min(100%, 640px); }
.cover__photo img { width: 100%; height: auto; mix-blend-mode: multiply; }
.hello--top { margin-top: 0; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 44px; border-top: 1.5px solid var(--ink); max-width: 460px; }
.facts li { padding: 16px 12px 0 0; }
.facts b { display: block; font-size: clamp(40px, 4vw, 60px); font-weight: 500; letter-spacing: -.06em; line-height: 1; }
.facts span { display: block; margin-top: 8px; font-size: 11px; color: var(--gray); line-height: 1.5; }

/* Index with 5 */
.index--5 { grid-template-columns: .7fr repeat(5, 1fr); gap: 28px; }
.index--5 .index__no { font-size: clamp(64px, 7.4vw, 120px); }

/* P01 extra cells */
.sheet--hr { grid-template-areas:
  "bg    key  sys"
  "hw    key  alert"
  "ai    ai   ai"
  "res   res  res"
  "p1    p2   p3"
  "lim   lim  tl"; }
.c-alert { grid-area: alert; } .c-tl { grid-area: tl; }
.c-ai { grid-area: ai; min-height: 0; }
.c-ai .bars { max-width: 720px; margin: 0 auto; }
.c-ai .note { text-align: center; }
.c-alert p { text-align: left; }
.kv--sm { margin-top: 22px; }
.kv--sm div { grid-template-columns: 44px 1fr; font-size: 12px; padding: 7px 0; }

/* P03 robotics */
.sheet--rb { grid-template-areas:
  "rob    rob    ec"
  "rob    rob    lesson"
  "chain  chain  ph"
  "r1     r2     ph"; }
.c-rob { grid-area: rob; }
.c-rob p { text-align: left; max-width: 560px; }
.c-rob h4 { font-size: clamp(24px, 2.4vw, 34px) !important; }
.rob__fig { margin-top: 28px; background: #F4F4F2; display: flex; flex-direction: column; align-items: center; padding: 24px; }
.rob__fig img { width: min(100%, 560px); height: auto; mix-blend-mode: multiply; }
.rob__fig figcaption { margin-top: 10px; font-size: 11px; font-weight: 600; color: var(--gray); }
.c-ec { grid-area: ec; } .c-loop { grid-area: loop; } .c-lesson { grid-area: lesson; }
.c-chain { grid-area: chain; } .c-rbph { grid-area: ph; } .c-r1 { grid-area: r1; } .c-r2 { grid-area: r2; }
.sheet--rb .tag { text-align: left; font-size: 11px; font-weight: 700; color: var(--red); letter-spacing: .02em; margin-bottom: 14px; }
.sheet--rb h4 { margin: 0 0 12px; font-size: 18px; font-weight: 600; letter-spacing: -.025em; line-height: 1.4; }
.c-ec p, .c-r1 p, .c-r2 p, .c-lesson p:not(.cell__lead) { text-align: left; }
.c-ec h4 { font-size: clamp(22px, 2vw, 28px) !important; }
.c-lesson { display: flex; flex-direction: column; justify-content: center; }
.loop li { display: grid; grid-template-columns: 30px 64px 1fr; gap: 6px; align-items: baseline; padding: 13px 0; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--ink-2); }
.loop li:last-child { border-bottom: 1px solid var(--line); }
.loop span { font-size: 10px; font-weight: 700; color: var(--red); letter-spacing: .08em; }
.loop b { font-size: 15px; color: var(--ink); font-weight: 700; }
.chain { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 8px; counter-reset: c; }
.chain li { position: relative; padding: 18px 22px 0 0; border-top: 3px solid var(--ink); }
.chain li:not(:last-child)::after { content: ""; position: absolute; right: 10px; top: -9px; width: 0; height: 0; border-left: 9px solid var(--ink); border-top: 7.5px solid transparent; border-bottom: 7.5px solid transparent; }
.chain li.is-hot { border-color: var(--red); }
.chain b { display: block; font-size: clamp(15px, 1.4vw, 19px); font-weight: 700; letter-spacing: -.02em; }
.chain li.is-hot b { color: var(--red); }
.chain span { display: block; margin-top: 8px; font-size: 12px; color: var(--gray); line-height: 1.6; }
.c-chain .note { text-align: left; margin-top: 30px; }
.c-chain { min-height: 0; }
.c-rbph { min-height: 520px; }

/* Skills */
.skills { padding-top: 140px; }
.skills__head { margin-bottom: 48px; }
.skills__head .hello { margin-top: 0; }
.tools { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.tool { background: var(--paper); padding: 26px 24px 24px; min-height: 210px; display: flex; flex-direction: column; transition: background .3s var(--ease); }
.tool:hover { background: #FBFBFA; }
.tool__cat { font-size: 11px; font-weight: 700; color: var(--red); letter-spacing: .04em; }
.tool h3 { margin: 14px 0 10px; font-size: clamp(18px, 1.5vw, 22px); font-weight: 600; letter-spacing: -.03em; line-height: 1.3; }
.tool p { font-size: 12.5px; color: var(--ink-2); line-height: 1.7; }
.tool .tool__use { margin-top: auto; padding-top: 16px; font-size: 11.5px; color: var(--gray); }
.tool .tool__use::before { content: "Used in · "; font-weight: 700; color: var(--ink); }
.skills__lic { margin-top: 56px; max-width: 760px; }

@media (max-width: 960px) {
  .cover--split { grid-template-columns: 1fr; text-align: center; padding-bottom: 0; }
  .cover--split .cover__text { padding-bottom: 0; display: flex; flex-direction: column; align-items: center; }
  .cover__photo { justify-self: center; width: min(88%, 520px); }
  .index--5 { grid-template-columns: 1fr 1fr; }
  .sheet--hr { grid-template-columns: 1fr 1fr; grid-template-areas:
    "bg bg" "key sys" "key hw" "alert alert" "ai ai" "res res" "p1 p2" "p3 p3" "lim lim" "tl tl"; }
  .sheet--rb { grid-template-columns: 1fr 1fr; grid-template-areas:
    "rob rob" "ec lesson" "chain chain" "ph ph" "r1 r2"; }
  .c-rbph { min-height: 0; aspect-ratio: 4 / 3; }
  .chain { grid-template-columns: 1fr 1fr; row-gap: 28px; }
  .tools { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .cover__photo { width: 100%; }
  .index--5 { grid-template-columns: 1fr; }
  .sheet--hr, .sheet--rb { grid-template-columns: 1fr; grid-template-areas: none; }
  .sheet--hr > *, .sheet--rb > * { grid-area: auto !important; }
  .chain { grid-template-columns: 1fr; }
  .chain li:not(:last-child)::after { display: none; }
  .tools { grid-template-columns: 1fr; }
  .tool { min-height: 0; }
  .skills { padding-top: 100px; }
  .facts { max-width: none; }
}
.sheet--more { grid-template-areas: "m1 m2 photo" "m3 m4 photo"; }
.tool .tool__use::before { content: "근거 · "; }
.skills__lic { max-width: none; }
.skills__lic ul { display: grid; grid-template-columns: 1fr 1fr; column-gap: 64px; }
@media (max-width: 960px) { .sheet--more { grid-template-areas: "m1 m2" "m3 m4" "photo photo"; } }
@media (max-width: 640px) { .skills__lic ul { grid-template-columns: 1fr; } }

/* ───────── 2026-11-23 review fixes (readability · mobile · a11y) ───────── */
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; padding: 10px 14px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 600; transition: top .2s; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
section[id], [id="international-poster"] { scroll-margin-top: 24px; }
/* list: right column lines up on the edge instead of jutting out per label length */
.list time { min-width: 52px; text-align: right; white-space: nowrap; }
/* bar label stays inside the filled part */
.bars span { right: calc(100% - var(--v) + 8px); }
/* photo captions readable on bright photos */
.sheet--hr figure.cell::after, .sheet--rb figure.cell::after, .sheet--more figure.cell::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 84px; pointer-events: none;
  background: linear-gradient(to top, rgba(0,0,0,.5), rgba(0,0,0,0)); }
figure.cell figcaption { z-index: 1; }
@media (max-width: 640px) {
  .meta a { padding: 7px 0; }
  .meta__c3 { gap: 0 14px; }
  .list li { gap: 14px; }
  .project, .story { padding-bottom: 72px; }
  .cell p br, .cell__lead br { display: none; }
}
@media (prefers-reduced-motion: reduce) { figure.cell img { transition: none; } figure.cell:hover img { transform: none; } }
.chap__body p + p { margin-top: 12px; }
/* 국제지역학 포스터 연구 (개인 페이지로 이동) */
.poster-study { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-top: 0; }
.poster-study .cell { min-height: 0; }
.poster-study .cell h3, .poster-study .cell p { text-align: left; }
.poster-study .cell h3 { font-size: 20px; letter-spacing: -.02em; margin-bottom: 18px; }
.poster-study .tag { font-size: 11px; font-weight: 700; color: var(--red); margin-bottom: 14px; }
.poster-study p + p { margin-top: 14px; }
.poster-figure { padding: 28px 24px; text-align: center; background: var(--paper); }
.poster-figure img { width: min(100%, 320px); height: auto; margin: 0 auto 12px; box-shadow: 0 0 0 1px var(--line); }
.poster-figure figcaption { font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 640px) { .poster-study { grid-template-columns: 1fr; } }
@media (min-width: 641px) {
  .meta__c1, .meta__c2 { transition: opacity .3s; }
  .is-scrolled .meta { mix-blend-mode: normal; }
  .is-scrolled .meta__c1, .is-scrolled .meta__c2 { opacity: 0; pointer-events: none; }
  .meta__c3 { justify-self: end; padding: 8px 10px; margin: -8px -10px; border-radius: 4px; transition: background .3s; }
  .is-scrolled .meta__c3 { background: rgba(247,247,245,.92); box-shadow: 0 0 0 1px var(--line); }
}

/* More Works: field safety cases */
.c-m6 { grid-area: m6; }
.sheet--more { grid-template-areas: "m1 m2 photo" "m3 m4 photo" "m5 m6 photo"; }
.c-find p + p { margin-top: 12px; }
.sheet--more .note { text-align: left; margin-top: 12px; }
@media (max-width: 960px) { .sheet--more { grid-template-areas: "m1 m2" "m3 m4" "m5 m6" "photo photo"; } }
@media (max-width: 640px) { .sheet--more { grid-template-areas: none; } }

.mail { text-decoration: underline; text-underline-offset: 3px; }
.mail:hover { color: var(--ink); }
