/* ============================================================
   STUDIO 012 — 스타일
   색·글꼴은 맨 위 :root 에서 한 번에 바꿀 수 있습니다.
   톤: 검은 바탕 · 회색 세리프 본문 · 올리브 그라데이션 포인트
   (기존 포트폴리오 'Touching Emotions'의 여백과 회색 위계를 따름)
   ============================================================ */

@font-face { font-family: "Noto Serif KR"; font-weight: 300; font-display: swap; src: url("../fonts/NotoSerifKR-300.woff") format("woff"); }
@font-face { font-family: "Noto Serif KR"; font-weight: 400; font-display: swap; src: url("../fonts/NotoSerifKR-400.woff") format("woff"); }
@font-face { font-family: "Noto Sans KR";  font-weight: 300; font-display: swap; src: url("../fonts/NotoSansKR-300.woff") format("woff"); }
@font-face { font-family: "Noto Sans KR";  font-weight: 400; font-display: swap; src: url("../fonts/NotoSansKR-400.woff") format("woff"); }

:root {
  color-scheme: dark;
  --bg:       #05070F;   /* 바탕 — 검정에 가까운 남색 */
  --bg-2:     #0B0E1A;   /* 이미지 자리 */
  --title:    #ECEBE4;   /* 제목 */
  --text:     #A9A8A0;   /* 본문 — 포트폴리오의 회색 */
  --mute:     #66665F;   /* 보조 */
  --rule:     rgba(236,235,228,.13);
  --rule-2:   rgba(236,235,228,.32);

  --olive-hi: #C9CF95;   /* 올리브 밝은 쪽 */
  --olive:    #7D8843;   /* 올리브 */
  --olive-lo: #283012;   /* 올리브 어두운 쪽 */
  --grad:     linear-gradient(115deg, #D3D8A2 0%, #8E9A4E 38%, #4C5624 72%, #1E240C 100%);

  --serif: "Noto Serif KR", "Noto Serif CJK KR", Georgia, serif;
  --sans:  "Noto Sans KR", "Noto Sans CJK KR", system-ui, sans-serif;

  --gutter: clamp(16px, 3.4vw, 56px);
  --measure: 1180px;
  --figw: 920px;          /* 프로젝트 이미지 최대 폭 — 사진 크기는 여기서 조절 */
  --header-h: 54px;
  --ease: cubic-bezier(.2,.7,.1,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--serif); font-weight: 300; font-size: 14px; line-height: 1.95; letter-spacing: .005em;
  word-break: keep-all; overflow-wrap: break-word; -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 1px solid var(--olive-hi); outline-offset: 4px; }
::selection { background: var(--olive); color: #fff; }
.grad-text { background: linear-gradient(115deg, #E6E9C4 0%, #B4BE74 45%, #7D8843 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Header : 포트폴리오 상단 머리줄 형식 ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: calc(var(--header-h) + env(safe-area-inset-top, 0px)); padding-top: env(safe-area-inset-top, 0px) !important;
  display: flex; align-items: center; gap: 22px; padding: 0 var(--gutter);
  font-family: var(--sans); font-size: 11.5px; letter-spacing: .06em; color: var(--title);
  transition: background .5s var(--ease);
}
.site-header.is-solid { background: rgba(5,7,15,.82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.site-header .line { flex: 1; height: 1px; background: var(--rule-2); }
.brand { font-family: var(--serif); font-weight: 400; font-size: 13px; letter-spacing: .08em; white-space: nowrap; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 300; font-size: 12px; letter-spacing: .26em; }
.brand .mark { width: 46px; height: auto; flex: none; }
.nav { display: flex; gap: clamp(14px, 2.4vw, 30px); }
.nav a { color: var(--text); transition: color .3s; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--title); }
.nav a[aria-current="page"]::before { content: ""; display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--grad); margin-right: 7px; vertical-align: 2px; }

/* ---------- Home : 버블 다이어그램 ---------- */
.atlas { position: relative; height: 100svh; min-height: 560px; overflow: hidden;
  background: var(--bg); }
.atlas svg { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; }
.atlas .link { stroke: var(--title); stroke-width: .7; fill: none; opacity: .55; }
.atlas .link.kw { stroke: var(--title); stroke-width: .4; opacity: .2; stroke-dasharray: 2 3; }
.atlas .orbits .ring { fill: none; stroke: var(--title); stroke-width: .55; opacity: .2; }
.atlas .orbits .ring.dash { stroke-dasharray: 1 5; stroke-width: 1.1; stroke-linecap: round; opacity: .32; }
.atlas .orbits .core .ring { opacity: .26; }
.atlas .orbits .core .ring.dash { stroke-dasharray: 10 6 2 6; stroke-width: .7; opacity: .3; }
.atlas .orbits .ring.tick { stroke-dasharray: .8 5.2; stroke-width: 5; opacity: .35; }
.atlas .orbits .ring.far { stroke-dasharray: 2 9; opacity: .18; }
.atlas .orbits .sat-dot { opacity: .95; }
.atlas .stars circle { fill: #F2F1EA; }
.atlas .stars .tw { animation: twinkle 5.5s ease-in-out infinite; }
@keyframes twinkle { 0%, 100% { opacity: .15; } 50% { opacity: .95; } }
.atlas .orbits g { transition: opacity .45s var(--ease); }
.atlas .node { cursor: pointer; }
.atlas .node text { pointer-events: none; }
.atlas .node .c-color { opacity: .9; }
.atlas .node .c-glass { fill: rgba(255,255,255,.12); stroke: rgba(255,255,255,.55); stroke-width: .6; }
.atlas .node .c-out { fill: none; stroke: rgba(255,255,255,.75); stroke-width: 1.2; }
.atlas .node .c-in { fill: none; stroke: rgba(255,255,255,.5); stroke-width: .6; }
.atlas .node.core .lbl { font-family: var(--serif); font-style: italic; font-size: 11px; fill: #15160F; text-anchor: middle; }
.atlas .node .orb { transition: transform .6s var(--ease); }
.atlas .node .orb-color { opacity: .95; }
.atlas .node .orb-glass { fill: rgba(255,255,255,.07); stroke: rgba(255,255,255,.38); stroke-width: .6; }
.atlas .node.project:hover .orb, .atlas .node.project:focus .orb { transform: scale(1.12); }
.atlas .node.project .ttl { font-family: var(--serif); font-size: 11.5px; fill: var(--title); }
.atlas .node.project .note { font-family: var(--sans); font-weight: 300; font-size: 8.5px; letter-spacing: .02em; fill: var(--mute); }
.atlas .node .kw { fill: var(--bg); stroke: var(--title); stroke-width: .6; opacity: .9; }
.atlas .node.keyword .lbl { font-family: var(--sans); font-weight: 300; font-size: 8.5px; fill: var(--text); text-anchor: middle; }
.atlas .node, .atlas .link { transition: opacity .45s var(--ease); }
.atlas.is-focus .link, .atlas.is-focus .node, .atlas.is-focus .orbits g { opacity: .12; }
.atlas.is-focus .link.on { opacity: .9; stroke: var(--olive-hi); stroke-width: .8; }
.atlas.is-focus .node.on, .atlas.is-focus .orbits g.on { opacity: 1; }
.atlas.is-focus .node.keyword.on .kw { stroke: var(--olive-hi); }

.atlas-emblem { position: absolute; left: calc(var(--gutter) - 10px); bottom: clamp(36px, 7vh, 72px); width: min(470px, 78vw); pointer-events: none; }
.atlas-emblem { left: var(--gutter); width: min(380px, 80vw); }
.atlas-emblem { pointer-events: auto; }
.atlas-emblem .atlas-title a { border-bottom: 1px solid transparent; transition: border-color .4s; }
.atlas-emblem .atlas-title a:hover { border-color: var(--olive-hi); }
.atlas-emblem .atlas-title { margin: 0 0 10px; font-style: italic; font-size: 15px; color: var(--title); letter-spacing: .01em; }
.atlas-emblem p { margin: 0; font-size: 12px; color: var(--mute); line-height: 1.8; }
.atlas-legend { position: absolute; right: var(--gutter); bottom: clamp(36px, 7vh, 72px); display: flex; flex-direction: column; gap: 4px;
  font-family: var(--sans); font-size: 10.5px; letter-spacing: .06em; color: var(--mute); text-align: right; }
.atlas-legend i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-left: 8px; }
.atlas-legend .k i { background: transparent; border: 1px solid var(--title); }
.atlas-legend .p i { background: linear-gradient(90deg, #6A5BD6, #E07BB5); filter: blur(1px); width: 12px; height: 12px; }

/* 미리보기 카드 */
.peek { position: absolute; z-index: 5; width: min(240px, 58vw); pointer-events: none; opacity: 0; transform: translateY(6px);
  transition: opacity .4s var(--ease), transform .4s var(--ease); }
.peek.on { opacity: 1; transform: none; pointer-events: auto; }
.peek .ph { aspect-ratio: 4/3; overflow: hidden; background: var(--bg-2); }
.peek img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) brightness(.85); transform: scale(1.05); transition: filter 1.1s var(--ease) .1s, transform 1.4s var(--ease); }
.peek.on img { filter: grayscale(0) brightness(1); transform: scale(1); }
.peek .meta { background: rgba(5,7,15,.85); padding: 8px 0 4px; font-size: 11.5px; line-height: 1.7; }
.peek .meta b { font-weight: 400; font-size: 13px; color: var(--title); display: block; }
.peek .meta span { color: var(--mute); }

/* ---------- Home : 지향하는 건축 ---------- */
.thesis { max-width: calc(var(--measure) + 2 * var(--gutter)); margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px);
  padding: clamp(110px, 14vw, 200px) var(--gutter) clamp(90px, 11vw, 160px); align-items: center; }
.thesis-text .kicker { font-family: var(--sans); font-size: 11px; letter-spacing: .08em; color: var(--mute); margin: 0 0 26px; }
.thesis-text .lead { font-size: clamp(18px, 1.8vw, 23px); color: var(--title); font-weight: 300; line-height: 1.7; margin: 0 0 1.6em; }
.thesis-text p { max-width: 31em; margin: 0 0 1.1em; }
.thesis-text .motto { margin-top: 2.4em; font-style: italic; font-size: 13px; }
.thesis-figure { margin: 0; justify-self: end; width: min(100%, 300px); }
.thesis-figure .ph { aspect-ratio: 4/5; overflow: hidden; }
.thesis-figure img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.25) brightness(.92); transition: filter 1.2s var(--ease); }
.thesis-figure a:hover img { filter: none; }
.thesis-figure figcaption { font-size: 11.5px; color: var(--mute); margin-top: 12px; line-height: 1.7; }

/* ---------- Works ---------- */
.section-head { max-width: calc(1000px + 2 * var(--gutter)); margin: 0 auto 34px; padding: 0 var(--gutter);
  display: flex; align-items: center; gap: 18px; font-family: var(--sans); font-size: 11px; letter-spacing: .08em; color: var(--mute); }
.section-head h2 { margin: 0; font-family: var(--serif); font-size: 14px; font-weight: 400; letter-spacing: .02em; color: var(--title); }
.section-head .line { flex: 1; height: 1px; background: var(--rule); }

.works { max-width: calc(1000px + 2 * var(--gutter)); margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(40px, 5vw, 64px) clamp(16px, 2.2vw, 30px);
  padding: 0 var(--gutter) clamp(110px, 13vw, 180px); }
.work .ph { aspect-ratio: 4/3; overflow: hidden; background: var(--bg-2); }
.work img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) brightness(.8) contrast(1.05); transition: filter 1s var(--ease), transform 1.6s var(--ease); }
.work:hover img, .work:focus-visible img { filter: grayscale(0) brightness(1); transform: scale(1.035); }
.work .cap { padding-top: 14px; display: grid; grid-template-columns: 1fr auto; gap: 0 12px; }
.work .t { color: var(--title); font-size: 14px; font-weight: 400; line-height: 1.6; }
.work .y { font-family: var(--sans); font-size: 10.5px; letter-spacing: .06em; color: var(--mute); padding-top: 3px; }
.work .s { grid-column: 1 / -1; font-size: 12px; color: var(--mute); line-height: 1.7; }
.work .bar { grid-column: 1 / -1; height: 1px; margin-top: 12px; background: var(--rule); position: relative; overflow: hidden; }
.work .bar::after { content: ""; position: absolute; inset: 0; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .9s var(--ease); }
.work:hover .bar::after { transform: scaleX(1); }

/* ---------- Footer ---------- */
.site-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 22px var(--gutter) 30px;
  border-top: 1px solid var(--rule); font-family: var(--sans); font-size: 10.5px; letter-spacing: .06em; color: var(--mute); }
.site-footer a:hover { color: var(--title); }

/* ---------- Project ---------- */
.p-hero { max-width: calc(var(--figw) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.p-hero button { display: block; width: 100%; cursor: zoom-in; background: var(--bg-2); }
.p-hero img { width: 100%; max-height: 62svh; object-fit: cover; }

/* 포트폴리오 페이지 머리 형식: 제목 / 수상, 메타 / 한 줄 문장 */
.p-head { max-width: calc(var(--measure) + 2 * var(--gutter)); margin: 0 auto; padding: calc(var(--header-h) + clamp(56px, 7vw, 100px)) var(--gutter) clamp(34px, 4vw, 52px);
  display: grid; grid-template-columns: 1fr 1fr; gap: 26px var(--gutter); }
.p-head h1 { margin: 0; font-weight: 400; font-size: clamp(22px, 2.3vw, 30px); line-height: 1.35; color: var(--title); letter-spacing: -.005em; }
.p-head .award { text-align: right; align-self: end; font-size: 13px; }
.p-head .meta { font-size: 12.5px; line-height: 1.85; color: var(--mute); }
.p-head .meta span { display: block; }
.p-head .tag { text-align: right; font-size: 13px; line-height: 1.85; color: var(--text); max-width: 26em; justify-self: end; }
.p-head .rule { grid-column: 1 / -1; height: 1px; background: var(--rule); margin-top: 10px; }

.p-intro { max-width: calc(var(--measure) + 2 * var(--gutter)); margin: 0 auto; padding: 22px var(--gutter) clamp(40px, 5vw, 70px); }
.p-intro .p-meta { border-top: 1px solid var(--rule); padding-top: 16px; }
.p-meta { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px var(--gutter); font-size: 12px; line-height: 1.7; }
.p-meta dt { font-family: var(--sans); font-size: 10px; letter-spacing: .08em; color: var(--mute); margin-bottom: 2px; }
.p-meta dd { margin: 0; color: var(--text); }
@media (max-width: 760px) {
  .figs.free { grid-template-columns: 1fr; gap: 36px; }
  .figs.free .fig { grid-column: 1 / -1 !important; margin-top: 0 !important; }
  .figs.free .fig.side { grid-template-columns: 1fr; }
  .p-top.look-split { grid-template-columns: 1fr; }
  .look-split .p-head { order: 1; } .look-split .p-hero { order: 2; }
}
@media (max-width: 640px) { .p-meta { grid-template-columns: 1fr; } }

.p-toc { position: sticky; top: var(--header-h); z-index: 20; background: rgba(5,7,15,.86); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule); }
.p-toc nav { max-width: calc(var(--measure) + 2 * var(--gutter)); margin: 0 auto; padding: 10px var(--gutter);
  display: flex; gap: 22px; overflow-x: auto; scrollbar-width: none; font-family: var(--sans); font-size: 10.5px; letter-spacing: .07em; color: var(--mute); }
.p-toc nav::-webkit-scrollbar { display: none; }
.p-toc a { white-space: nowrap; transition: color .3s; }
.p-toc a.on, .p-toc a:hover { color: var(--title); }
.p-toc a.on::before { content: ""; display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--grad); margin-right: 7px; vertical-align: 2px; }

.chapter { max-width: calc(var(--measure) + 2 * var(--gutter)); margin: 0 auto; padding: clamp(76px, 9vw, 130px) var(--gutter) 0; scroll-margin-top: calc(var(--header-h) + 36px); }
.chapter-head { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 8fr); gap: var(--gutter); margin-bottom: clamp(30px, 4vw, 52px); }
.chapter-head .idx { font-family: var(--sans); font-size: 10.5px; letter-spacing: .08em; color: var(--mute); padding-top: 6px; }
.chapter-head .idx b { font-weight: 400; margin-right: .9em; }
.chapter-head h2 { margin: 0 0 1em; font-size: clamp(15px, 1.35vw, 18px); font-weight: 400; color: var(--title); line-height: 1.6; }
.chapter-head p { margin: 0 0 1em; max-width: 36em; }

.figs { display: grid; gap: clamp(10px, 1.2vw, 16px); max-width: var(--figw); margin-left: auto; }
.figs.trio, .kind-model .figs { max-width: 760px; }
.fig img { max-height: 70svh; object-fit: contain; margin: 0 auto; }
.figs.full { grid-template-columns: 1fr; }
.figs.pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.figs.trio { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; }
.figs > .fig.wide { grid-column: 1 / -1; }
.fig { margin: 0; }
.fig button { display: block; width: 100%; cursor: zoom-in; overflow: hidden; background: var(--bg-2); }
.fig img { width: 100%; transition: transform 1.4s var(--ease); }
.fig button:hover img { transform: scale(1.015); }
.fig figcaption { font-size: 11px; color: var(--mute); padding-top: 8px; line-height: 1.6; }
.kind-drawing .fig button, .kind-detail .fig button { background: #fff; }

.p-next { max-width: calc(var(--measure) + 2 * var(--gutter)); margin: clamp(110px, 13vw, 190px) auto 0; padding: 0 var(--gutter); }
.p-next a { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--gutter); align-items: end; border-top: 1px solid var(--rule); padding: 18px 0 clamp(50px, 6vw, 90px); }
.p-next .lbl { font-family: var(--sans); font-size: 10.5px; letter-spacing: .08em; color: var(--mute); }
.p-next .t { font-size: clamp(18px, 1.8vw, 24px); color: var(--title); margin-top: 8px; }
.p-next .ph { aspect-ratio: 16/9; overflow: hidden; justify-self: end; width: min(100%, 300px); }
.p-next img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) brightness(.75); transition: filter 1s var(--ease), transform 1.6s var(--ease); }
.p-next a:hover img { filter: none; transform: scale(1.03); }

/* ---------- 프로젝트마다 다른 구성 ---------- */
/* free: 이미지마다 폭·위치를 따로 — 여백이 서사를 만든다 */
.figs.free { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(40px, 6vw, 96px) clamp(12px, 1.6vw, 22px); max-width: none; margin: 0; align-items: start; }
.figs.free .fig img { width: 100%; max-height: none; }
.figs.free .fig button { background: transparent; }
.figs.free .fig.side { display: grid; grid-template-columns: minmax(0, 1fr) 13em; gap: 18px; align-items: end; }
.figs.free .fig.side figcaption { padding: 0; }
/* strip: 가로로 흐르는 띠 — 선형의 흐름 */
.figs.strip { display: flex; gap: 14px; max-width: none; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter) 14px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: var(--olive) transparent; }
.figs.strip .fig { flex: none; scroll-snap-align: start; }
.figs.strip .fig img { height: min(52svh, 460px); width: auto; max-height: none; }

/* 머리 구성 */
.p-top.look-split { max-width: calc(var(--measure) + 2 * var(--gutter)); margin: 0 auto; padding: calc(var(--header-h) + clamp(50px, 6vw, 90px)) var(--gutter) 0;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); align-items: end; }
.look-split .p-head { padding: 0; margin: 0; grid-template-columns: 1fr; gap: 18px; order: 2; }
.look-split .p-head .award, .look-split .p-head .tag { text-align: left; justify-self: start; }
.look-split .p-hero { padding: 0; margin: 0; max-width: none; order: 1; }
.look-split .p-hero img { max-height: 80svh; }
.p-top.look-center .p-head { grid-template-columns: 1fr; text-align: center; justify-items: center; gap: 16px; }
.look-center .p-head .award, .look-center .p-head .tag { text-align: center; justify-self: center; }
.look-center .p-hero { max-width: calc(620px + 2 * var(--gutter)); }
.p-top.look-pano .p-hero { max-width: calc(var(--measure) + 2 * var(--gutter)); }
.p-top.look-pano .p-hero img { max-height: 46svh; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(5,7,15,.97); color: var(--text); display: none; }
.lightbox.on { display: block; }
.lightbox .stage { position: absolute; inset: 52px 0 46px; overflow: auto; display: grid; place-items: center; cursor: zoom-in; }
.lightbox .stage.zoomed { place-items: start; cursor: zoom-out; }
.lightbox .stage img { max-width: 94vw; max-height: calc(100svh - 110px); object-fit: contain; }
.lightbox .stage.zoomed img { max-width: none; max-height: none; width: 220%; }
.lightbox .bar { position: absolute; left: 0; right: 0; display: flex; justify-content: space-between; align-items: center; padding: 0 var(--gutter); height: 50px; font-family: var(--sans); font-size: 11px; letter-spacing: .05em; }
.lightbox .top { top: 0; } .lightbox .bottom { bottom: 0; color: var(--mute); }
.lightbox .ctrls { display: flex; gap: 22px; }
.lightbox button:hover { color: var(--title); }

/* ---------- About : 포트폴리오의 '# Education' 형식 ---------- */
.about { max-width: calc(var(--measure) + 2 * var(--gutter)); margin: 0 auto; padding: calc(var(--header-h) + clamp(60px, 9vw, 130px)) var(--gutter) clamp(90px, 11vw, 150px); }
.about-top { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 8fr); gap: var(--gutter); margin-bottom: clamp(70px, 9vw, 120px); align-items: start; }
.about-top img { width: 100%; max-width: 220px; filter: grayscale(1) brightness(.92); }
.about-emblem { margin: 0 0 clamp(60px, 8vw, 110px); display: flex; justify-content: center; }
.about-emblem img { width: min(760px, 100%); opacity: .9; }
.about-emblem + .about-statement { text-align: center; margin: -40px auto clamp(80px, 10vw, 130px); max-width: 34em; font-size: 13.5px; line-height: 2.1; }
.about-top h1 { margin: 0; font-weight: 400; font-size: clamp(18px, 1.7vw, 22px); color: var(--title); }
.about-top h1 span { color: var(--mute); font-weight: 300; margin-left: .4em; }
.about-top .school { color: var(--mute); margin: 2px 0 2em; font-size: 13px; }
.about-top .intro { font-size: 14.5px; line-height: 2; max-width: 34em; }
.about-top .contact { margin-top: 1.8em; font-size: 12.5px; }
.about-top .contact a { border-bottom: 1px solid var(--olive); color: var(--title); }
.cv { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 8fr); gap: 0 var(--gutter); padding: 0 0 46px; }
.cv h2 { margin: 0; font-size: 14px; font-weight: 400; color: var(--title); }
.cv h2::before { content: "#"; margin-right: 1em; color: var(--mute); }
.cv ul { list-style: none; margin: 0; padding: 0; border-top: 1px dashed var(--rule-2); }
.cv li { display: grid; grid-template-columns: 9.5em 1fr; gap: 14px; padding: 7px 0; font-size: 13px; line-height: 1.75; }
.cv li span:first-child { font-family: var(--sans); font-size: 11px; letter-spacing: .04em; color: var(--mute); padding-top: 2px; }
.cv.awards li span:last-child { color: var(--title); }

/* ---------- Book ---------- */
.book-page { min-height: 100svh; display: flex; flex-direction: column; background: radial-gradient(70% 60% at 50% 45%, rgba(125,136,67,.12), transparent 70%), var(--bg); }
.book-wrap { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: calc(var(--header-h) + 24px) var(--gutter) 24px; gap: 20px; }
.book-head { width: 100%; max-width: var(--measure); display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.book-head h1 { margin: 0; font-size: 13px; font-weight: 400; color: var(--title); font-style: italic; }
.book-head span { font-family: var(--sans); font-size: 10.5px; letter-spacing: .06em; color: var(--mute); }
.book { position: relative; perspective: 2600px; cursor: pointer; user-select: none; -webkit-user-select: none; }
.book img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.book .face { position: absolute; inset: 0; background: #fff; overflow: hidden; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.book.is-spread .base { position: absolute; top: 0; bottom: 0; width: 50%; box-shadow: 0 40px 80px -40px rgba(0,0,0,.9); }
.book.is-spread .base.left { left: 0; } .book.is-spread .base.right { right: 0; }
.book .sheet { position: absolute; top: 0; bottom: 0; left: 50%; width: 50%; transform-origin: left center; transform-style: preserve-3d; transition: transform 1.1s cubic-bezier(.5,.05,.2,1); }
.book .sheet.flipped { transform: rotateY(-180deg); }
.book .sheet .back { transform: rotateY(180deg); }
.book .sheet .front::after, .book .sheet .back::after { content: ""; position: absolute; inset: 0; pointer-events: none; }
.book .sheet .front::after { background: linear-gradient(to right, rgba(0,0,0,.16), transparent 7%); }
.book .sheet .back::after { background: linear-gradient(to left, rgba(0,0,0,.16), transparent 7%); }
.book .spine { position: absolute; top: 0; bottom: 0; left: 50%; width: 1px; background: rgba(0,0,0,.2); z-index: 60; pointer-events: none; }
.book.is-single { overflow: hidden; }
.book .track { display: flex; height: 100%; transition: transform .7s var(--ease); }
.book .leaf { position: relative; flex: 0 0 100%; height: 100%; }
.book-ctrls { display: flex; gap: 28px; align-items: center; font-family: var(--sans); font-size: 11px; letter-spacing: .06em; }
.book-ctrls button { padding: 6px 0; color: var(--text); }
.book-ctrls button:hover { color: var(--title); }
.book-ctrls .count { color: var(--mute); font-variant-numeric: tabular-nums; min-width: 5em; text-align: center; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .works { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .figs { margin-left: 0; }
  .thesis, .p-intro { grid-template-columns: 1fr; }
  .thesis-figure { justify-self: start; }
  .chapter-head { grid-template-columns: 1fr; gap: 8px; }
  .figs.trio { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-top, .cv { grid-template-columns: 1fr; }
  .cv h2 { margin-bottom: 12px; }
}
@media (max-width: 760px) {
  .figs.free { grid-template-columns: 1fr; gap: 36px; }
  .figs.free .fig { grid-column: 1 / -1 !important; margin-top: 0 !important; }
  .figs.free .fig.side { grid-template-columns: 1fr; }
  .p-top.look-split { grid-template-columns: 1fr; }
  .look-split .p-head { order: 1; } .look-split .p-hero { order: 2; }
}
@media (max-width: 640px) {
  .site-header .line { display: none; }
  .site-header { justify-content: space-between; }
  .works { grid-template-columns: 1fr; }
  .figs.pair, .figs.trio { grid-template-columns: 1fr; }
  .p-head { grid-template-columns: 1fr; gap: 14px; }
  .p-head .award, .p-head .tag { text-align: left; justify-self: start; }
  .p-next a { grid-template-columns: 1fr; }
  .p-next .ph { justify-self: start; }
  .cv li { grid-template-columns: 1fr; gap: 0; }
  .atlas-legend { display: none; }
  .atlas .node.project .ttl { font-size: 10px; }
  .atlas .node.keyword .lbl { font-size: 7.5px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
}
