/* ==========================================================
   문제적 사람들 — Team Portfolio (v2, minimal editorial)
   ========================================================== */

@font-face {
  font-family: "Pretendard";
  src: url("../fonts/Pretendard-subset.woff2") format("woff2-variations"),
       url("../fonts/Pretendard-subset.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

: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", -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; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.ptitle__award--sub { color: var(--gray) !important; border-color: var(--line) !important; }
.ptitle__award { font-size: 12px; font-weight: 600; color: var(--red); border: 1px solid var(--red); border-radius: 99px; padding: 3px 12px; }

/* 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); }

/* 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; }
}

.cover__jump { margin-top: 20px; padding: 7px 2px; font-size: 14px; font-weight: 600; border-bottom: 1px solid currentColor; }

#members { scroll-margin-top: 5rem; }
.roster-title { margin: 12px 0 4px; font-size: 13px; font-weight: 600; }
.roster-projects { margin-top: 12px; }
.poster-study { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); }
.poster-study .cell h3, .poster-study .cell p { text-align: left; }
.poster-study .cell h3 { font-size: 20px; }
.poster-study p + p { margin-top: 16px; }
.poster-figure { padding: 24px; text-align: center; background: var(--paper); }
.poster-figure img { width: min(100%, 340px); height: auto; margin: 0 auto 12px; }
.poster-figure figcaption { font-size: 13px; text-decoration: underline; }
@media (min-width: 961px) { .index { grid-template-columns: .8fr repeat(3, 1fr); } }
@media (max-width: 640px) { .poster-study { 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; } }
@media (min-width: 961px) { .index { grid-template-columns: .8fr repeat(3, 1fr); } }
@media (max-width: 640px) { .meta__c3 .nav-x { display: none; } }
@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); }
}

/* P02 안심집: result + limit rows */
.sheet--am { grid-template-areas: "bg2 screen screen" "flow screen screen" "res res res" "lim cta cta"; }
.sheet--am .c-lim p { text-align: left; }
@media (max-width: 960px) { .sheet--am { grid-template-areas: "screen screen" "bg2 flow" "res res" "lim lim" "cta cta"; } }
@media (max-width: 640px) { .sheet--am { grid-template-areas: none; } }

/* 안심집 extra screens + award photos */
.sheet--am { grid-template-areas: "bg2 screen screen" "flow screen screen" "shots shots shots" "res res res" "aw lim lim" "aw cta cta"; }
.c-shots { grid-area: shots; min-height: 0; background: #EDEEF1; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2.4vw, 36px); }
.c-shots figure { margin: 0; }
.c-shots .frame { border-radius: 8px; overflow: hidden; box-shadow: 0 24px 48px -28px rgba(20,30,60,.35), 0 0 0 1px rgba(0,0,0,.05); }
.c-shots img { width: 100%; height: auto; }
.c-shots figcaption { margin-top: 12px; font-size: 11px; font-weight: 600; color: var(--gray); }
.c-aw { grid-area: aw; min-height: 0; }
.c-aw img { object-position: 50% 20%; }
.sheet--am figure.c-aw::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 84px; pointer-events: none; background: linear-gradient(to top, rgba(0,0,0,.55), rgba(0,0,0,0)); }
.sheet--am .c-lim { display: flex; flex-direction: column; justify-content: center; }
.award-shot { margin-top: 28px; max-width: 300px; }
.award-shot img { width: 100%; height: auto; }
.award-shot figcaption { margin-top: 8px; font-size: 11px; font-weight: 600; color: var(--gray); }
@media (max-width: 960px) { .sheet--am { grid-template-areas: "screen screen" "bg2 flow" "shots shots" "res res" "aw lim" "cta cta"; } }
@media (max-width: 640px) { .sheet--am { grid-template-areas: none; } .c-shots { grid-template-columns: 1fr; } .c-aw { aspect-ratio: 3 / 4; } }
