/* 정수현 · winterflw — 포트폴리오
   색 하나(교정용 빨강)만 강조로 씁니다: "틀리면 먼저 고칩니다". */

:root {
  --paper: #f5f3ee;
  --paper-2: #ecE9e1;
  --card: #fbfaf7;
  --ink: #17160f;
  --ink-2: #4a483f;
  --ink-3: #85827a;
  --line: #dcd8cd;
  --red: #c8321b;
  --red-soft: #f3ddd6;
  --live: var(--ink); /* 초록은 싸 보여서 잉크로 (사용자 11/30) */
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, monospace;
  --sans: "Pretendard Variable", Pretendard, -apple-system, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  --wrap: 1120px;
}

/* 다크: 처음엔 시스템 설정을 따르고(head의 스크립트가 data-theme를 정함), 상단 단추로 바꿀 수 있음 */
:root { color-scheme: light; }
:root[data-theme="dark"] {
    color-scheme: dark;
    --paper: #14130f;
    --paper-2: #1c1b16;
    --card: #1a1914;
    --ink: #efece4;
    --ink-2: #bcb8ad;
    --ink-3: #85827a;
    --line: #2f2d26;
    --red: #ef6a50;
    --red-soft: #3a1f18;
    --live: var(--ink);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  letter-spacing: -0.01em;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }
.mono { font-family: var(--mono); font-size: 14px; letter-spacing: 0; }

/* 직접 써야 하는 칸 */
.todo {
  border: 1.5px dashed var(--red);
  color: var(--red);
  background: var(--red-soft);
  border-radius: 6px;
  padding: 2px 8px;
  font-size: 0.92em;
}
p.todo { padding: 12px 16px; }

/* ── 상단 */
.top {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.mark { font-family: var(--mono); font-weight: 600; font-size: 15px; text-decoration: none; }
.mark span { color: var(--red); }
.top nav { display: flex; gap: 22px; }
.top nav a { text-decoration: none; font-size: 15px; color: var(--ink-2); }
.top nav a:hover, .top nav a.on { color: var(--ink); }
.top nav a.on { box-shadow: inset 0 -2px 0 var(--red); }

/* ── 첫 화면 */
.hero { padding: 96px 0 72px; border-bottom: 1px solid var(--line); }
.hero .who { color: var(--ink-3); margin-bottom: 28px; }
.hero h1 {
  font-size: clamp(38px, 6.4vw, 76px);
  line-height: 1.14;
  letter-spacing: -0.045em;
  font-weight: 800;
  max-width: 15ch;
}
.hero h1 s {
  text-decoration: none;
  position: relative;
  color: var(--ink-3);
}
.hero h1 s::after {
  content: ""; position: absolute; left: -2%; right: -2%; top: 54%;
  height: 0.08em; background: var(--red); transform: rotate(-2deg);
}
.hero h1 em { font-style: normal; color: var(--red); }
.hero .sub { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; margin-top: 56px; align-items: start; }
.hero .role { font-size: 20px; font-weight: 600; margin-bottom: 12px; }
.hero .intro p + p { margin-top: 10px; }

.live { border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.live h2 { font-family: var(--mono); font-size: 13.5px; font-weight: 500; color: var(--ink-3); padding: 14px 18px; border-bottom: 1px solid var(--line); letter-spacing: 0.04em; }
.live a { display: grid; grid-template-columns: 14px 1fr auto; gap: 10px; align-items: center; padding: 14px 18px; text-decoration: none; border-bottom: 1px solid var(--line); }
.live a:last-child { border-bottom: 0; }
.live a:hover { background: var(--paper-2); }
.live b { font-weight: 600; }
.live small { display: block; color: var(--ink-3); font-size: 14.5px; line-height: 1.4; }
.live .go { font-family: var(--mono); font-size: 13.5px; color: var(--ink-3); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 3px color-mix(in srgb, var(--live) 12%, transparent); }
.dot.off { background: var(--ink-3); box-shadow: none; }

/* ── 구역 머리 */
section.block { padding: 96px 0; border-bottom: 1px solid var(--line); }
.head { display: grid; grid-template-columns: 200px 1fr; gap: 32px; margin-bottom: 48px; }
.head .num { font-family: var(--mono); font-size: 14px; color: var(--red); padding-top: 10px; }
.head h2 { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.25; letter-spacing: -0.035em; font-weight: 800; }
.head p { color: var(--ink-2); margin-top: 12px; max-width: 60ch; }

/* ── 프로젝트 */
.proj { display: grid; grid-template-columns: 200px 1fr; gap: 32px; padding: 48px 0; border-top: 1px solid var(--line); }
.proj:first-of-type { border-top: 0; padding-top: 0; }
.proj aside { font-family: var(--mono); font-size: 14px; color: var(--ink-3); line-height: 1.9; }
.proj aside .n { color: var(--ink); font-size: 14.5px; }
.tag { display: inline-block; font-family: var(--mono); font-size: 13px; border: 1px solid currentColor; border-radius: 99px; padding: 1px 9px; margin-top: 8px; }
.tag.live { color: var(--live); border-color: var(--live); background: none; }
.tag.award { color: var(--red); }
.proj h3 { font-size: 28px; letter-spacing: -0.035em; line-height: 1.3; font-weight: 800; }
.proj h3 a { text-decoration: none; }
.proj h3 a:hover { text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 5px; }
.proj .line { font-size: 18px; color: var(--ink-2); margin: 8px 0 24px; max-width: 46ch; }
.proj .shot { border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: var(--paper-2); margin-bottom: 28px; }
.proj .shot img { width: 100%; height: 340px; object-fit: cover; object-position: top center; }
.proj .shot figcaption { font-size: 14px; color: var(--ink-3); padding: 8px 14px; border-top: 1px solid var(--line); }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--ink); margin-bottom: 28px; }
.stats div { padding: 14px 14px 0 0; }
.stats b { display: block; font-size: 28px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.2; }
.stats span { font-size: 14.5px; color: var(--ink-3); line-height: 1.45; display: block; margin-top: 4px; }

.flow { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 24px; font-size: 15px; }
.flow span { background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 3px 10px; }
.flow i { font-style: normal; color: var(--ink-3); }

.proj ul { list-style: none; display: grid; gap: 10px; max-width: 70ch; }
.proj li { padding-left: 18px; position: relative; }
.proj li::before { content: ""; position: absolute; left: 0; top: 0.8em; width: 8px; height: 1px; background: var(--ink-3); }

.fix {
  margin-top: 22px; max-width: 70ch;
  border-left: 3px solid var(--red);
  padding: 4px 0 4px 16px;
}
.fix .mono { color: var(--red); display: block; margin-bottom: 2px; }
.fix del { color: var(--ink-3); text-decoration-color: var(--red); text-decoration-thickness: 2px; }

.stack { margin-top: 20px; font-family: var(--mono); font-size: 14px; color: var(--ink-3); }
.note { margin-top: 8px; font-size: 15px; color: var(--ink-3); }

/* 작은 프로젝트 */
.more { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 8px; }
.mini .thumb { margin-top: auto; padding-top: 16px; border-radius: 8px; width: 100%; height: 150px; object-fit: cover; object-position: top left; }
.mini { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 22px; display: flex; flex-direction: column; }
.mini .mono { color: var(--ink-3); }
.mini h4 { font-size: 19px; letter-spacing: -0.03em; margin: 6px 0 8px; line-height: 1.35; }
.mini p { font-size: 16px; color: var(--ink-2); }
.mini p + p { margin-top: 8px; }
.mini .stack { margin-top: auto; padding-top: 16px; }

/* ── 갈래 꼬리표 */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 18px; }
.chips a { text-decoration: none; border: 1px solid var(--line); background: var(--card); border-radius: 99px; padding: 6px 14px; font-size: 15px; color: var(--ink-2); }
.chips a b { color: var(--red); font-weight: 700; margin-right: 4px; }
.chips a:hover { border-color: var(--ink); color: var(--ink); }

.axes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.axis { background: var(--card); border: 1px solid var(--line); border-top: 3px solid var(--red); border-radius: 4px 4px 12px 12px; padding: 24px; scroll-margin-top: 90px; }
.axis .k { font-family: var(--mono); font-size: 14.5px; font-weight: 700; color: var(--red); letter-spacing: 0.04em; }
.axis h3 { font-size: 20px; line-height: 1.4; letter-spacing: -0.03em; margin: 8px 0 16px; }
.axis ul { list-style: none; display: grid; gap: 12px; }
.axis li { font-size: 16px; color: var(--ink-2); line-height: 1.6; padding-top: 12px; border-top: 1px solid var(--line); }
.axis li a { display: block; font-weight: 700; color: var(--ink); text-decoration: none; font-size: 15px; margin-bottom: 2px; }
.axis li a::after { content: " →"; color: var(--ink-3); font-weight: 400; }
.axis li a:hover { color: var(--red); }

.axtags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.axtags span { font-family: var(--mono); font-size: 13px; font-weight: 600; color: var(--red); background: var(--red-soft); border-radius: 4px; padding: 2px 8px; }
.proj { scroll-margin-top: 70px; }
.proj li b { font-weight: 700; }

/* 롯데: 이틀의 흐름 */
.pipe { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; margin-bottom: 28px; counter-reset: s; }
.pipe li { position: relative; padding: 14px 18px 14px 0; border-top: 2px solid var(--ink); }
.pipe li::before { counter-increment: s; content: counter(s); position: absolute; top: -12px; left: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--paper); border: 2px solid var(--ink); font-family: var(--mono); font-size: 13px; display: grid; place-items: center; }
.pipe li .mono { display: block; margin-top: 8px; color: var(--red); }
.pipe li b { display: block; font-size: 16.5px; line-height: 1.4; margin-top: 2px; }
.pipe li small { display: block; font-size: 14.5px; color: var(--ink-3); line-height: 1.45; margin-top: 4px; }

/* 프루비: 업무 흐름 */
.wf { border: 1px solid var(--line); border-radius: 10px; background: var(--card); padding: 20px; margin-bottom: 24px; }
.wf-row { display: flex; align-items: stretch; gap: 8px; flex-wrap: wrap; }
.wf-row span { flex: 1; min-width: 120px; border: 1px solid var(--ink); border-radius: 6px; padding: 10px 12px; font-weight: 600; font-size: 16.5px; }
.wf-row small { display: block; font-weight: 400; font-size: 14px; color: var(--ink-3); }
.wf-row i { font-style: normal; align-self: center; color: var(--ink-3); }
.wf-pain { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.wf-pain p { font-size: 15px; color: var(--ink-2); border-left: 3px solid var(--red); padding: 2px 0 2px 10px; }
.wf-pain b { display: block; font-family: var(--mono); font-size: 13px; color: var(--red); font-weight: 600; }

/* AI와 일하는 법: 역할 */
.roles { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; border: 1px solid var(--ink); border-radius: 10px; overflow: hidden; }
.roles div { padding: 18px 20px; border-left: 1px solid var(--line); }
.roles div:first-child { border-left: 0; }
.roles .mono { color: var(--ink-3); }
.roles p { font-size: 16.5px; font-weight: 600; margin-top: 4px; line-height: 1.5; }
.roles .role-me { background: var(--ink); color: var(--paper); }
.roles .role-me .mono { color: var(--red); }

/* ── 고친 기록 */
.log { width: 100%; border-collapse: collapse; }
.log th { text-align: left; font-family: var(--mono); font-size: 13.5px; font-weight: 500; color: var(--ink-3); padding: 0 16px 10px 0; border-bottom: 1px solid var(--ink); }
.log td { vertical-align: top; padding: 20px 16px 20px 0; border-bottom: 1px solid var(--line); font-size: 16.5px; }
.log td:first-child { width: 150px; }
.log td:first-child b { display: block; font-size: 16.5px; }
.log td:first-child span { font-family: var(--mono); font-size: 13.5px; color: var(--ink-3); }
.log td:nth-child(2) { color: var(--ink-3); width: 26%; }
.log td:nth-child(2) del { text-decoration-color: var(--red); text-decoration-thickness: 1.5px; }
.log td:nth-child(3) { width: 30%; color: var(--ink-2); }
.log td:last-child { font-weight: 600; }

/* ── 일하는 방식 */
.quote { font-size: clamp(22px, 2.6vw, 30px); line-height: 1.5; letter-spacing: -0.03em; font-weight: 700; max-width: 30ch; margin-bottom: 8px; }
.quote::before { content: "“"; color: var(--red); }
.quote::after { content: "”"; color: var(--red); }
.ways { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 48px; border-top: 1px solid var(--ink); }
.ways div { padding: 20px 24px 0 0; }
.ways .mono { color: var(--red); }
.ways h4 { font-size: 18px; margin: 4px 0 8px; letter-spacing: -0.02em; }
.ways p { font-size: 16px; color: var(--ink-2); }

/* ── 이력 */
.cv { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.cv h3 { font-family: var(--mono); font-size: 14px; font-weight: 500; color: var(--ink-3); border-bottom: 1px solid var(--ink); padding-bottom: 8px; margin-bottom: 4px; }
.cv dl { display: grid; grid-template-columns: 130px 1fr; }
.cv dt, .cv dd { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 16.5px; }
.cv dt { font-family: var(--mono); font-size: 14px; color: var(--ink-3); padding-top: 13px; }
.cv dd small { color: var(--ink-3); }
.cv .gap { margin-top: 40px; }

/* ── 연락 */
.end { padding: 96px 0 64px; }
.end h2 { font-size: clamp(30px, 4.4vw, 52px); letter-spacing: -0.04em; line-height: 1.2; font-weight: 800; max-width: 18ch; }
.contact { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.contact a, .contact span { border: 1px solid var(--ink); border-radius: 99px; padding: 10px 20px; text-decoration: none; font-weight: 600; font-size: 16.5px; }
.contact a:hover { background: var(--ink); color: var(--paper); }
.contact .todo { border-style: dashed; border-color: var(--red); }
footer { margin-top: 80px; color: var(--ink-3); font-size: 14.5px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ── 좁은 화면 */
@media (max-width: 880px) {
  .top nav { gap: 14px; }
  .top nav a:nth-child(n+4) { display: none; }
  .hero { padding: 64px 0 56px; }
  .hero .sub, .cv { grid-template-columns: 1fr; gap: 32px; }
  .head, .proj { grid-template-columns: 1fr; gap: 12px; }
  .head .num { padding-top: 0; }
  .proj aside { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; }
  .proj aside br { display: none; }
  .tag { margin-top: 0; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats div { padding-bottom: 10px; }
  .proj .shot img { height: 220px; }
  .more, .ways, .axes, .roles, .wf-pain { grid-template-columns: 1fr; }
  .roles div { border-left: 0; border-top: 1px solid var(--line); }
  .roles div:first-child { border-top: 0; }
  .pipe { grid-template-columns: 1fr; }
  .pipe li { border-top: 0; border-left: 2px solid var(--ink); padding: 0 0 18px 22px; }
  .pipe li::before { top: 0; left: -12px; }
  .pipe li .mono { margin-top: 0; }
  .ways div { padding-bottom: 16px; border-bottom: 1px solid var(--line); }
  .log thead { display: none; }
  .log, .log tbody, .log tr, .log td { display: block; width: auto !important; }
  .log tr { padding: 18px 0; border-bottom: 1px solid var(--line); }
  .log td { border: 0; padding: 3px 0; }
  .log td:nth-child(2)::before { content: "처음 · "; font-family: var(--mono); font-size: 13.5px; }
  .log td:nth-child(3)::before { content: "확인 · "; font-family: var(--mono); font-size: 13.5px; color: var(--ink-3); }
  .log td:last-child::before { content: "바꾼 것 · "; font-family: var(--mono); font-size: 13.5px; color: var(--red); font-weight: 400; }
  section.block { padding: 72px 0; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.intro .quote { font-size: 19px; max-width: none; margin: 0 0 16px; }

/* ── 모든 작업 */
.tally { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--ink); margin-bottom: 32px; }
.tally div { padding: 16px 16px 0 0; }
.tally b { display: block; font-size: clamp(30px, 4vw, 44px); font-weight: 800; letter-spacing: -0.04em; line-height: 1.1; }
.tally span { font-size: 14.5px; color: var(--ink-3); line-height: 1.45; display: block; margin-top: 6px; }

.act { border: 1px solid var(--line); border-radius: 12px; background: var(--card); padding: 18px 20px 12px; margin-bottom: 40px; }
.act figcaption { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-family: var(--mono); font-size: 13.5px; color: var(--ink-3); margin-bottom: 8px; }
.act .key i { display: inline-block; width: 10px; height: 10px; background: var(--ink); border-radius: 2px; margin: 0 5px -1px 12px; }
.act .key i.k-ai { background: var(--red); }
.bars { display: grid; grid-template-columns: repeat(23, 1fr); gap: 4px; align-items: end; height: 220px; padding-top: 34px; }
.bar { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; }
.bar i { display: flex; flex-direction: column; justify-content: flex-end; background: var(--ink); border-radius: 3px 3px 0 0; min-height: 0; }
.bar i s { display: block; background: var(--red); border-radius: 3px 3px 0 0; text-decoration: none; }
.bar small { position: absolute; bottom: -20px; left: 50%; transform: translateX(-50%); font-family: var(--mono); font-size: 12px; color: var(--ink-3); white-space: nowrap; }
.bar em { position: absolute; left: 50%; bottom: calc(var(--h, 0) + 4px); transform: translateX(-50%) rotate(-38deg); transform-origin: left bottom; font-style: normal; font-size: 13px; color: var(--ink-2); white-space: nowrap; pointer-events: none; }
.act .bars { margin-bottom: 22px; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.filters button { font: inherit; font-size: 15px; color: var(--ink-2); background: var(--card); border: 1px solid var(--line); border-radius: 99px; padding: 6px 14px; cursor: pointer; }
.filters button:hover { border-color: var(--ink); color: var(--ink); }
.filters button.on { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.arch .yr { font-family: var(--mono); font-size: 14.5px; font-weight: 600; color: var(--red); border-bottom: 1px solid var(--ink); padding-bottom: 6px; margin-top: 28px; }
.arch ol { list-style: none; }
.arch li { display: grid; grid-template-columns: 80px 1fr 200px; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.arch li[hidden], .arch [hidden] { display: none; }
.arch time { font-family: var(--mono); font-size: 14px; color: var(--ink-3); }
.arch b { font-size: 17px; font-weight: 700; }
.arch b a { text-decoration: none; }
.arch b a::after { content: " →"; color: var(--ink-3); font-weight: 400; font-size: 14.5px; }
.arch b a:hover { color: var(--red); }
.arch p { font-size: 16px; color: var(--ink-2); margin-top: 2px; }
.arch .who { font-size: 14.5px; color: var(--ink-3); text-align: right; }

@media (max-width: 880px) {
  .tally { grid-template-columns: repeat(2, 1fr); }
  .tally div { padding-bottom: 12px; }
  .bars { gap: 2px; height: 180px; }
  .bar em { font-size: 11.5px; }
  .bar small { font-size: 11px; }
  .arch li { grid-template-columns: 56px 1fr; gap: 4px 12px; }
  .arch .who { grid-column: 2; text-align: left; }
}
@media (max-width: 880px) { .bar em:not(.k) { display: none; } }

/* ── 프로젝트 카드 격자 (첫 화면) */
.pgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.pcard { display: flex; flex-direction: column; text-decoration: none; background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; transition: border-color .15s, transform .15s; }
.pcard:hover { border-color: var(--ink); transform: translateY(-2px); }
.pcard:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.pc-img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--paper-2); border-bottom: 1px solid var(--line); }
.pc-img img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.pc-stat { aspect-ratio: 16 / 10; background: var(--paper-2); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; justify-content: flex-end; padding: 20px; }
.pc-stat b { font-size: clamp(34px, 3.6vw, 48px); font-weight: 800; letter-spacing: -0.04em; line-height: 1.05; color: var(--red); }
.pc-stat span { font-size: 15px; color: var(--ink-2); margin-top: 6px; }
.pc-body { padding: 18px 20px 18px; display: flex; flex-direction: column; flex: 1; }
.pc-body .axtags { margin-bottom: 8px; }
.pc-body h3 { font-size: 20px; letter-spacing: -0.03em; line-height: 1.3; }
.pc-body > p:not(.axtags):not(.pc-meta) { font-size: 16px; color: var(--ink-2); margin-top: 6px; }
.pc-meta { font-family: var(--mono); font-size: 13.5px; color: var(--ink-3); margin-top: 12px; }
.pc-foot { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 14px; }
.pc-foot .tag { margin-top: 0; }
.pc-foot .go { font-size: 15px; font-weight: 600; color: var(--ink-2); }
.pcard:hover .go { color: var(--red); }

/* ── 상세 페이지 */
.dhead { padding: 56px 0 40px; border-bottom: 1px solid var(--line); }
.back { display: inline-block; font-size: 15px; color: var(--ink-3); text-decoration: none; margin-bottom: 28px; }
.back:hover { color: var(--ink); }
.dhead h1 { font-size: clamp(34px, 5vw, 56px); letter-spacing: -0.045em; line-height: 1.15; font-weight: 800; margin-top: 6px; }
.dhead .line { font-size: clamp(18px, 2vw, 21px); color: var(--ink-2); margin-top: 14px; max-width: 40ch; }
.dmeta { display: flex; flex-wrap: wrap; gap: 12px 40px; margin-top: 28px; }
.dmeta dt { font-family: var(--mono); font-size: 13.5px; color: var(--ink-3); }
.dmeta dd { font-size: 16.5px; font-weight: 600; margin-top: 2px; }
.dmeta dd .tag { margin-top: 0; }
.dbody { padding: 48px 0 72px; }
.dbody .wrap { max-width: 860px; }
.proj.solo { display: block; padding: 0; border: 0; }
.proj.solo .shot img { height: auto; max-height: 520px; }
.proj.solo .shot + .stats, .proj.solo .stats { margin-top: 4px; }
.proj.solo > ul { margin-bottom: 28px; }
.proj.solo > ul li { font-size: 17.5px; }

.lesson { margin-top: 56px; padding-top: 28px; border-top: 2px solid var(--ink); }
.lesson h2 { font-family: var(--mono); font-size: 14.5px; font-weight: 600; color: var(--red); letter-spacing: 0.04em; margin-bottom: 18px; }
.lesson blockquote { font-size: clamp(19px, 2.2vw, 24px); line-height: 1.6; letter-spacing: -0.025em; font-weight: 600; border-left: 3px solid var(--red); padding-left: 20px; }
.lesson blockquote p + p { margin-top: 12px; }
.lesson .src { font-size: 14.5px; color: var(--ink-3); margin-top: 12px; padding-left: 23px; }

.pn { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 64px; }
.pn a { text-decoration: none; border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; background: var(--card); }
.pn a:hover { border-color: var(--ink); }
.pn .next { text-align: right; grid-column: 2; }
.pn span { display: block; font-family: var(--mono); font-size: 13.5px; color: var(--ink-3); }
.pn b { font-size: 17px; }

@media (max-width: 1000px) { .pgrid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) {
  .pgrid { grid-template-columns: 1fr; }
  .pn { grid-template-columns: 1fr; }
  .pn .next { grid-column: 1; }
  .dhead { padding: 36px 0 28px; }
}

/* ── 나는 */
.about-title { font-size: clamp(30px, 4.4vw, 52px) !important; line-height: 1.22 !important; }
.about-title em { font-style: normal; color: var(--red); }
.about-quote { margin-top: 24px; border-left: 3px solid var(--red); padding-left: 18px; max-width: 46ch; }
.about-quote p { font-size: clamp(17px, 1.8vw, 20px); line-height: 1.65; font-weight: 600; letter-spacing: -0.02em; }
.about-quote cite { display: block; font-style: normal; font-size: 14.5px; color: var(--ink-3); margin-top: 8px; }
#about h3 { font-family: var(--mono); font-size: 14px; font-weight: 500; color: var(--ink-3); border-bottom: 1px solid var(--ink); padding-bottom: 8px; margin-bottom: 4px; }
.thorns { margin-left: 232px; }
.thorns table { width: 100%; border-collapse: collapse; }
.thorns th { text-align: left; font-family: var(--mono); font-size: 13.5px; font-weight: 500; color: var(--ink-3); padding: 10px 12px 8px 0; border-bottom: 1px solid var(--line); }
.thorns td { padding: 13px 12px 13px 0; border-bottom: 1px solid var(--line); font-size: 16px; color: var(--ink-2); vertical-align: top; }
.thorns td b { color: var(--ink); font-size: 16.5px; }
.thorns td.done { color: var(--red); font-weight: 600; }
.thorns td a { color: inherit; text-underline-offset: 3px; }
.scenes { margin: 56px 0 0 232px; }
.scenes ol { list-style: none; max-width: 760px; }
.scenes li { display: grid; grid-template-columns: 150px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.scenes li span { font-family: var(--mono); font-size: 13.5px; color: var(--red); padding-top: 3px; }
.scenes li p { font-size: 16.5px; color: var(--ink-2); }
.end-quote { margin: 56px 0 0 232px; }
@media (max-width: 880px) {
  .thorns, .scenes, .end-quote { margin-left: 0; }
  .scenes ol { grid-template-columns: 1fr; }
  .scenes li { grid-template-columns: 1fr; gap: 2px; }
  .thorns thead { display: none; }
  .thorns table, .thorns tbody, .thorns tr, .thorns td { display: block; }
  .thorns tr { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .thorns td { border: 0; padding: 2px 0; }
}

/* ── 상세 페이지: 화면 더 보기 */
.gallery { margin: 40px 0 32px; }
.gallery h2 { font-size: 20px; letter-spacing: -0.02em; margin-bottom: 16px; display: flex; align-items: baseline; gap: 10px; }
.gallery h2 span { font-family: var(--mono); font-size: 13.5px; font-weight: 400; color: var(--ink-3); }
.g-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.g-grid.one { grid-template-columns: 1fr; }
.g-grid figure { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--paper-2); }
.g-grid img { width: 100%; aspect-ratio: 16 / 10; object-fit: contain; background: var(--paper-2); }
.g-grid.one img { aspect-ratio: auto; }
.g-grid figcaption { font-size: 14.5px; color: var(--ink-2); padding: 10px 14px; border-top: 1px solid var(--line); background: var(--card); }
.proj.solo img { cursor: zoom-in; }
.lightbox { position: fixed; inset: 0; z-index: 50; background: rgba(10, 10, 8, .88); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px; cursor: zoom-out; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: min(1400px, 100%); max-height: calc(100vh - 100px); border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,.4); }
.lightbox p { color: #eee; font-size: 15px; margin-top: 14px; text-align: center; }
@media (max-width: 640px) { .g-grid { grid-template-columns: 1fr; } }

/* ── 나는: 글자 키움 (11/29 "이쪽 작아") */
.about-quote { max-width: 52ch; }
.about-quote p { font-size: clamp(20px, 2.3vw, 26px); line-height: 1.6; }
.about-quote cite { font-size: 15px; }
#about h3 { font-size: 16px; font-weight: 600; color: var(--ink-2); padding-bottom: 10px; }
.thorns th { font-size: 15px; padding: 12px 16px 10px 0; }
.thorns td { font-size: 18px; padding: 16px 16px 16px 0; line-height: 1.55; }
.thorns td b { font-size: 19px; }
#about .note { font-size: 17px; margin-top: 14px; }
.scenes li { grid-template-columns: 170px 1fr; padding: 16px 0; }
.scenes li span { font-size: 15px; padding-top: 4px; }
.scenes li p { font-size: 18px; line-height: 1.6; }
@media (max-width: 880px) {
  .thorns td { font-size: 17px; }
  .thorns td b { font-size: 18px; }
  .scenes li { grid-template-columns: 1fr; }
  .scenes li p { font-size: 17px; }
}

/* ── 나는: 가시 카드 (표 대신) */
.thorns, .scenes, .end-quote { margin-left: 0; }
#about h3 { margin-bottom: 18px; }
.thorn-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.thorn { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 22px 22px 18px; }
.thorn .st { align-self: flex-start; font-size: 14px; font-weight: 700; color: var(--ink-2); border: 1.5px solid var(--line); border-radius: 99px; padding: 3px 12px; }
.thorn.done .st { background: var(--red); border-color: var(--red); color: #fff; }
.thorn.running .st { color: var(--live); border-color: var(--live); }
.thorn h4 { font-size: 21px; line-height: 1.4; letter-spacing: -0.03em; margin: 14px 0 16px; }
.thorn dl { display: grid; gap: 10px; }
.thorn dt { font-size: 14px; color: var(--ink-3); }
.thorn dd { font-size: 17px; color: var(--ink); font-weight: 600; margin-top: 1px; }
.thorn .t-foot { margin-top: auto; padding-top: 16px; font-size: 16px; color: var(--ink-2); }
.thorn .t-foot a { color: var(--ink); font-weight: 700; text-decoration: none; }
.thorn .t-foot a:hover { color: var(--red); }
.thorn.done { border-color: color-mix(in srgb, var(--red) 45%, var(--line)); }
.scenes ol { max-width: none; }
@media (max-width: 1000px) { .thorn-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .thorn-grid { grid-template-columns: 1fr; } .thorn h4 { font-size: 19px; } }

/* ── 나는: 누르면 넘어가는 가시 카드 */
a.thorn { text-decoration: none; color: inherit; transition: transform .15s, box-shadow .15s, border-color .15s; }
a.thorn:hover { transform: translateY(-3px); border-color: var(--red); box-shadow: 0 10px 28px color-mix(in srgb, var(--red) 18%, transparent); }
a.thorn:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
.thorn .t-go { display: inline-block; background: var(--red); color: #fff; font-weight: 700; font-size: 16px; border-radius: 99px; padding: 9px 18px; }
a.thorn:hover .t-go { background: var(--ink); }
.thorn .t-foot > span:not(.t-go) { color: var(--ink-3); }

/* ── 나는: "뺐다"는 긍정 색(초록)으로 */
.thorn.done .st { background: var(--live); border-color: var(--live); color: #fff; }
.thorn.done { border-color: color-mix(in srgb, var(--live) 45%, var(--line)); background: color-mix(in srgb, var(--live) 5%, var(--card)); }
.thorn.done .st::before { content: "✓ "; }

/* ── 나는: 버튼은 초록, 7번째 카드는 가로로 */
.thorn .t-go { background: var(--live); }
a.thorn:hover { border-color: var(--live); box-shadow: 0 10px 28px color-mix(in srgb, var(--live) 20%, transparent); }
a.thorn:hover .t-go { background: var(--ink); }
a.thorn:focus-visible { outline-color: var(--live); }
@media (min-width: 1001px) {
  .thorn-grid > .thorn:last-child:nth-child(3n+1) { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr 2fr auto; align-items: center; gap: 24px; }
  .thorn-grid > .thorn:last-child:nth-child(3n+1) h4 { margin: 0; }
  .thorn-grid > .thorn:last-child:nth-child(3n+1) dl { grid-template-columns: 1fr 1fr; gap: 24px; }
  .thorn-grid > .thorn:last-child:nth-child(3n+1) .t-foot { margin: 0; padding: 0; }
}

/* ── 나는: 초록 대신 먹색으로 (11/29 "초록 싸보여") */
.thorn.done .st { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.thorn.done { border-color: var(--ink); background: var(--card); box-shadow: inset 0 3px 0 var(--ink); }
.thorn.running .st { color: var(--ink); border-color: var(--ink); }
.thorn .t-go { background: var(--ink); color: var(--paper); }
a.thorn:hover { border-color: var(--ink); box-shadow: 0 12px 30px rgba(23, 22, 15, .12); }
a.thorn.done:hover { box-shadow: inset 0 3px 0 var(--ink), 0 12px 30px rgba(23, 22, 15, .12); }
a.thorn:hover .t-go { background: var(--red); color: #fff; }
a.thorn:focus-visible { outline-color: var(--ink); }

/* ── 상세: 기획 블록 */
.plan { margin: 44px 0 8px; }
.plan > h2 { font-family: var(--mono); font-size: 14px; font-weight: 600; color: var(--red); letter-spacing: .04em; border-top: 2px solid var(--ink); padding-top: 18px; margin-bottom: 8px; }
.plan-block { padding: 22px 0; border-bottom: 1px solid var(--line); }
.plan-block h3 { font-size: 21px; letter-spacing: -0.03em; display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.plan-block h3 span { width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: var(--paper); font-family: var(--mono); font-size: 14px; display: grid; place-items: center; flex: none; }
.cost-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.cost-grid div, .split div { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.cost-grid b, .split b { font-size: 17px; }
.cost-grid p, .split p { font-size: 15px; color: var(--ink-2); margin-top: 6px; line-height: 1.55; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.plan-line { font-size: 17px; color: var(--ink-2); margin-top: 14px; }
.plan-line b { color: var(--ink); }
.tabs { display: flex; gap: 8px; margin-top: 14px; }
.tabs span { flex: 1; text-align: center; border: 1.5px solid var(--ink); border-radius: 10px; padding: 8px 0; font-weight: 700; font-size: 15px; }
.plan-block ul { list-style: none; display: grid; gap: 12px; }
.plan-block li { font-size: 16.5px; color: var(--ink-2); padding-left: 18px; position: relative; }
.plan-block li::before { content: ""; position: absolute; left: 0; top: .8em; width: 8px; height: 1px; background: var(--ink-3); }
.plan-block li b { color: var(--ink); }
.fix.keep { border-left-color: var(--ink); }
.fix.keep .mono { color: var(--ink); }
@media (max-width: 760px) { .cost-grid, .split { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .cost-grid, .split { grid-template-columns: 1fr; } .tabs span { font-size: 13.5px; } }

/* ── 사용한 기술 */
.stackbox { margin: 40px 0 8px; border-top: 2px solid var(--ink); padding-top: 18px; }
.stackbox h2 { font-family: var(--mono); font-size: 14px; font-weight: 600; color: var(--red); letter-spacing: .04em; margin-bottom: 8px; }
.stackbox dl { display: grid; }
.st-row { display: grid; grid-template-columns: 150px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.st-row dt { font-size: 15px; font-weight: 700; color: var(--ink-2); }
.st-row dd { display: flex; flex-wrap: wrap; gap: 8px; }
.st-row dd span { font-size: 15px; background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 4px 10px; }
.st-note { font-size: 15px; color: var(--ink-3); margin-top: 12px; }
.pc-stack { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.pc-stack span { font-family: var(--mono); font-size: 12.5px; color: var(--ink-2); background: var(--paper-2); border-radius: 6px; padding: 2px 8px; }
@media (max-width: 640px) { .st-row { grid-template-columns: 1fr; gap: 8px; } }

/* ── 나는: 장면 사진 */
.scene-photo { margin-top: 24px; max-width: 760px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--paper-2); }
.scene-photo img { width: 100%; }
.scene-photo figcaption { font-size: 15px; color: var(--ink-2); padding: 10px 14px; background: var(--card); border-top: 1px solid var(--line); }

/* ── 나는: 현장 사진 두 장 */
.scene-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 28px; }
.scene-photos figure { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--paper-2); }
.scene-photos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.scene-photos figcaption { font-size: 15px; color: var(--ink-2); padding: 10px 14px; background: var(--card); border-top: 1px solid var(--line); }
@media (max-width: 640px) { .scene-photos { grid-template-columns: 1fr; } }
.split.compare { margin: 8px 0 24px; }
.split.compare div:last-child { border-color: var(--ink); }

/* ── 수상 · 선정 띠 */
.awards { --aw-bg: #17160f; --aw-fg: #f5f3ee; background: var(--aw-bg); color: var(--aw-fg); padding: 36px 0 40px; }
.aw-label { font-family: var(--mono); font-size: 14px; letter-spacing: .06em; color: color-mix(in srgb, var(--aw-fg) 62%, transparent); margin-bottom: 16px; }
.aw-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.aw { display: flex; flex-direction: column; gap: 4px; padding: 6px 24px 6px 0; margin-right: 24px; border-right: 1px solid color-mix(in srgb, var(--aw-fg) 22%, transparent); text-decoration: none; color: inherit; }
.aw:last-child { border-right: 0; margin-right: 0; }
.aw b { font-size: clamp(30px, 3.4vw, 42px); font-weight: 800; letter-spacing: -0.04em; line-height: 1.1; }
.aw-ev { font-size: 17px; font-weight: 600; margin-top: 6px; }
.aw-meta { font-size: 14.5px; color: color-mix(in srgb, var(--aw-fg) 62%, transparent); }
.aw:hover b { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
:root[data-theme="dark"] .awards { --aw-bg: #22201a; --aw-fg: #efece4; border-top: 1px solid #3a372e; border-bottom: 1px solid #3a372e; }
@media (max-width: 880px) { .aw-grid { grid-template-columns: 1fr 1fr; gap: 20px 0; } .aw:nth-child(2) { border-right: 0; margin-right: 0; } }
@media (max-width: 480px) { .aw-grid { grid-template-columns: 1fr; } .aw { border-right: 0; margin-right: 0; padding-bottom: 14px; border-bottom: 1px solid color-mix(in srgb, var(--aw-fg) 22%, transparent); } .aw:last-child { border-bottom: 0; } }

/* ── 상세: 발전 흐름 */
.evo { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 4px 0 28px; border-top: 2px solid var(--ink); }
.evo li { padding: 16px 20px 0 0; position: relative; }
.evo li + li { padding-left: 20px; border-left: 1px solid var(--line); }
.evo .mono { color: var(--red); font-size: 14px; }
.evo b { display: block; font-size: 19px; letter-spacing: -0.02em; margin-top: 4px; }
.evo p { font-size: 15.5px; color: var(--ink-2); margin-top: 6px; line-height: 1.55; }
@media (max-width: 760px) { .evo { grid-template-columns: 1fr; } .evo li + li { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); margin-top: 12px; } }

/* ── 상세: 아키텍처 지도 */
.archmap { border: 1px solid var(--line); border-radius: 14px; background: var(--card); padding: 22px; margin: 6px 0 8px; }
.am-row { display: flex; align-items: stretch; gap: 8px; }
.am-main i { font-style: normal; align-self: center; color: var(--ink-3); font-size: 18px; }
.am-box { flex: 1; min-width: 0; border: 1.5px solid var(--ink); border-radius: 10px; padding: 10px 12px; background: var(--paper); }
.am-box span { display: block; font-family: var(--mono); font-size: 12.5px; color: var(--ink-3); }
.am-box b { display: block; font-size: 16px; margin-top: 2px; letter-spacing: -0.02em; }
.am-box small { display: block; font-size: 13.5px; color: var(--ink-2); line-height: 1.45; margin-top: 4px; }
.am-key { background: var(--ink); }
.am-key span, .am-key b, .am-key small { color: var(--paper); }
.am-key span { opacity: .7; }
.am-side { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); }
.am-side .am-box { border-style: dashed; }
.am-state { flex: 1.4; }
.am-opt { border-color: var(--ink-3) !important; }
@media (max-width: 900px) { .am-row { flex-direction: column; } .am-main i { transform: rotate(90deg); align-self: center; } }

/* 좁은 화면: 막대 위 기울어진 이름표가 범례와 겹치지 않게 위쪽 여백을 늘림 */
@media (max-width: 640px) {
  .bars { height: 260px; padding-top: 78px; gap: 3px; }
  .bar em { font-size: 12px; }
}

/* 넓은 화면: 기울어진 이름표가 범례와 닿지 않게 위 여백을 늘림 */
@media (min-width: 881px) {
  .bars { height: 250px; padding-top: 64px; }
}

/* ── 상세: AI와 나눈 일 (AI에게 맡긴 것 / 제가 정하고 확인한 것) */
.aisplit { margin: 40px 0 8px; border-top: 2px solid var(--ink); padding-top: 18px; }
.aisplit h2 { font-family: var(--mono); font-size: 14px; font-weight: 600; color: var(--red); letter-spacing: .04em; margin-bottom: 14px; }
.as-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.as-grid > div { border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; background: var(--card); }
.as-grid .as-me { border-color: var(--ink); }
.as-grid h3 { font-size: 15px; font-weight: 700; color: var(--ink-3); margin-bottom: 8px; }
.as-grid .as-me h3 { color: var(--ink); }
.as-grid ul { list-style: none; display: grid; gap: 8px; }
.as-grid li { font-size: 16px; line-height: 1.55; padding-left: 14px; position: relative; }
.as-grid li::before { content: ""; position: absolute; left: 0; top: .7em; width: 5px; height: 5px; border-radius: 50%; background: var(--ink-3); }
.as-grid .as-me li::before { background: var(--red); }
.as-proof { font-family: var(--mono); font-size: 13.5px; color: var(--ink-3); margin-top: 12px; }
@media (max-width: 640px) { .as-grid { grid-template-columns: 1fr; } }

/* ── 상세: 아폴로지 릴스(모션) */
.reelsec .reel-row { display: grid; grid-template-columns: minmax(220px, 300px) 1fr; gap: 28px; align-items: start; margin-bottom: 20px; }
.reel { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; }
.reel video { display: block; width: 100%; height: auto; }
.reel figcaption { font-size: 14.5px; color: var(--ink-2); padding: 10px 14px; border-top: 1px solid var(--line); background: var(--card); }
.reelsec ul { list-style: none; display: grid; gap: 14px; }
.reelsec li { font-size: 17px; line-height: 1.65; }
@media (max-width: 720px) { .reelsec .reel-row { grid-template-columns: 1fr; } .reel { max-width: 320px; } }

/* "나는" 한 줄 → 수상 띠 → 나머지: 한 구역을 띠 앞뒤로 나눔 */
#about { border-bottom: 0; padding-bottom: 56px; }
#about .head { margin-bottom: 0; }
section.block.about-rest { padding-top: 64px; }

/* 상태 점만 초록 (사용자 11/30: "초록점 있기는 하면 좋을듯"). 버튼·뱃지 글자는 잉크 그대로 */
:root { --live-dot: #2f8f4e; }
:root[data-theme="dark"] { --live-dot: #5cc47c; }
.dot { background: var(--live-dot); box-shadow: 0 0 0 3px color-mix(in srgb, var(--live-dot) 18%, transparent); }
.tag .ld { color: var(--live-dot); font-style: normal; }

/* ── 라이트·다크 바꾸는 단추 (상단 메뉴 끝) */
.theme-btn { display: inline-grid; place-items: center; width: 34px; height: 34px; margin-left: 4px; border: 1px solid var(--line); border-radius: 99px; background: var(--card); color: var(--ink-2); cursor: pointer; }
.theme-btn:hover { color: var(--ink); border-color: var(--ink-3); }
.theme-btn:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.theme-btn svg { width: 17px; height: 17px; }
.theme-btn .i-sun { display: none; }
:root[data-theme="dark"] .theme-btn .i-sun { display: block; }
:root[data-theme="dark"] .theme-btn .i-moon { display: none; }
.top nav { align-items: center; }

/* "나는" 안에 둔 이력 (사용자 11/30: "이력은 나는 바로 거기에") */
.about-cv { margin-bottom: 0; }
.about-cv > h3 { font-size: 19px; font-weight: 700; margin-bottom: 18px; }
@media (max-width: 880px) { .about-cv .cv { grid-template-columns: 1fr; gap: 32px; } }

/* 히어로 소개: 배우는 도메인 */
.hero .learn { margin-top: 22px; font-size: 18px; line-height: 1.6; color: var(--ink-2); }
.hero .domains { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.hero .domains button { font: inherit; cursor: pointer; font-size: 15px; padding: 4px 12px; border: 1px solid var(--line); border-radius: 99px; background: var(--card); color: var(--ink); }
.hero .domains .etc { border: 0; background: none; padding: 4px 2px; color: var(--ink-3); }

/* 분야 칩 ↔ 포트폴리오 카드·모든 작업 줄 */
.hero .domains button:hover { border-color: var(--ink); }
.hero .domains button[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.hero .domains button:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.axtags .dom { background: none !important; border: 1px solid var(--line); color: var(--ink-2) !important; font-weight: 500; }
.dom-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: -8px 0 20px; padding: 12px 16px; border: 1px solid var(--ink); border-radius: 12px; background: var(--card); font-size: 16px; }
.dom-bar a { color: var(--ink); text-underline-offset: 3px; }
.dom-bar button { margin-left: auto; font: inherit; font-size: 14.5px; background: none; border: 1px solid var(--line); border-radius: 99px; padding: 3px 12px; cursor: pointer; color: var(--ink-2); }
.dom-bar button:hover { border-color: var(--ink); color: var(--ink); }
.pcard[hidden] { display: none; }
#archive li.dom-hit { background: color-mix(in srgb, var(--red) 7%, transparent); box-shadow: inset 3px 0 0 var(--red); }

/* 카드 수상·선정 뱃지 (사진 왼쪽 위) */
.pc-img { position: relative; }
.pc-badge { position: absolute; top: 12px; left: 12px; z-index: 1; display: inline-flex; align-items: baseline; gap: 7px; padding: 6px 12px 6px 10px; border-radius: 99px; background: #17160f; color: #f5f3ee; font-size: 13.5px; line-height: 1.2; box-shadow: 0 4px 14px rgba(0,0,0,.22); }
.pc-badge b { font-weight: 800; color: #ffb4a3; letter-spacing: -0.01em; }
.pc-badge b::before { content: "★ "; color: #ef6a50; }
:root[data-theme="dark"] .pc-badge { background: #efece4; color: #17160f; }
:root[data-theme="dark"] .pc-badge b { color: #c8321b; }

/* 가시 구역 맨 위: 현장 사진 두 장과 인용 (사용자 11/30) */
.lead-scene { margin-bottom: 72px; }
.lead-scene .scene-photos { margin-top: 0; }
.lead-scene .end-quote { margin: 32px 0 0 0; }

/* 수상 띠 사진 (사용자 11/30 "수상 거기에 사진") */
.aw-pic { display: block; aspect-ratio: 4 / 3; margin-bottom: 14px; border-radius: 10px; overflow: hidden; background: color-mix(in srgb, var(--aw-fg) 10%, transparent); border: 1px solid color-mix(in srgb, var(--aw-fg) 18%, transparent); }
.aw-pic img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s; }
.aw:hover .aw-pic img { transform: scale(1.03); }
.lead-scene .end-quote { margin-top: 0; }
/* 마지막 칸도 같은 폭이 되게(사진 크기 맞춤) */
@media (min-width: 881px) { .aw:last-child { margin-right: 24px; } }

/* 좁은 화면: 수상 사진은 왼쪽 작은 썸네일, 글은 오른쪽 */
@media (max-width: 480px) {
  .aw { display: grid; grid-template-columns: 104px 1fr; column-gap: 14px; align-items: start; }
  .aw .aw-pic { grid-row: 1 / span 3; margin-bottom: 0; }
  .aw b { font-size: 26px; }
  .aw-ev { margin-top: 2px; font-size: 15.5px; }
}
/* 좁은 화면 상단 메뉴: 줄바꿈 없이, 나는 · 포트폴리오 · 단추만 */
.top nav a { white-space: nowrap; }
@media (max-width: 480px) { .top nav a:not([href="#about"]):not([href="#work"]) { display: none; } }

.hero .role { margin-bottom: 4px; }
.hero .role-sub { font-size: 17px; color: var(--ink-2); margin-bottom: 14px; }

/* 히어로: 가시 제목 + 메모 인용 + 다짐 한 줄 (사용자 11/30, "나는"을 맨 위에 녹임) */
.hero h1.thorn-h1 { font-size: clamp(38px, 5.6vw, 72px); line-height: 1.16; }
.hero h1.thorn-h1 em { font-style: normal; color: var(--red); }
.hero .hero-quote { margin-top: 26px; }
.hero .motto { margin-top: 30px; font-size: clamp(20px, 2.2vw, 26px); font-weight: 700; letter-spacing: -0.02em; }
.hero .motto em { font-style: normal; color: var(--red); }
.hero .sub { margin-top: 40px; }
.hero h1.thorn-h1 { max-width: none; font-size: clamp(34px, 5vw, 64px); word-break: keep-all; }
.hero h1.thorn-h1 { text-wrap: balance; }
@media (max-width: 480px) { .hero h1.thorn-h1 { font-size: 31px; } }

/* 히어로 정리(11/30 "하고 싶은 말이 많다 → 쳐내고, 지금 돌아가는 것 위로"):
   왼쪽 제목·메모, 오른쪽 지금 돌아가는 것, 그 아래 역할·분야 */
.hero .hero-top { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(300px, 1fr); gap: 48px; align-items: start; }
.hero .hero-top .live { margin-top: 10px; }
.hero .hero-quote { max-width: 44ch; }
.hero .hero-quote p { font-size: clamp(16px, 1.5vw, 18.5px); font-weight: 500; color: var(--ink-2); }
.hero .hero-intro { margin-top: 44px; max-width: 760px; }
@media (max-width: 880px) { .hero .hero-top { grid-template-columns: 1fr; gap: 28px; } .hero .hero-top .live { margin-top: 0; } }

/* 배우는 분야: 지금 돌아가는 것 바로 아래 (사용자 11/30) */
.hero .hero-side { display: flex; flex-direction: column; gap: 18px; margin-top: 10px; }
.hero .hero-top .hero-side .live { margin-top: 0; }
.hero .hero-learn .learn { margin-top: 0; font-size: 15.5px; }
.hero .hero-learn .domains { margin-top: 10px; }
.hero .hero-learn .domains button { font-size: 14px; padding: 3px 11px; }
@media (max-width: 880px) { .hero .hero-side { margin-top: 0; } }

/* 히어로 위계(11/30 "위계가 이상함"): 제목 > 역할 > 한 줄 설명 > 메모 인용 */
.hero .hero-role { margin-top: 22px; }
.hero .hero-role .role { font-size: clamp(19px, 1.9vw, 23px); font-weight: 700; color: var(--ink); margin: 0; letter-spacing: -0.02em; }
.hero .hero-role .role-sub { font-size: 16.5px; color: var(--ink-2); margin: 6px 0 0; }
.hero .hero-role .quote { font-size: 16.5px; color: var(--ink-2); margin: 10px 0 0; }
.hero .hero-quote { margin-top: 26px; padding-left: 14px; border-left-width: 2px; }
.hero .hero-quote p { font-size: 15.5px; font-weight: 400; line-height: 1.7; color: var(--ink-2); }
.hero .hero-quote cite { font-size: 13.5px; }

/* ── 없는 주소(404) ── */
.nf { padding: 120px 0 160px; min-height: 60vh; }
.nf-code { color: var(--red); margin: 0 0 14px; }
.nf h1 { font-size: clamp(32px, 4.6vw, 56px); line-height: 1.2; margin: 0 0 36px; word-break: keep-all; }
.nf-links { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }
.nf-links a { display: inline-block; padding: 12px 20px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); text-decoration: none; font-weight: 600; }
.nf-links a:first-child { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.nf-links a:hover { border-color: var(--ink); }
@media (max-width: 480px) { .nf { padding: 72px 0 96px; } }
