@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/ibm-plex-mono-400.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/ibm-plex-mono-500.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/ibm-plex-mono-600.woff2') format('woff2');
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: #fff; }
body { font-family: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace; color: #16181A; -webkit-font-smoothing: antialiased; }
::selection { background: #16181A; color: #fff; }
a { color: inherit; text-decoration: none; }
img, video { max-width: 100%; }

#app { min-height: 100vh; display: flex; flex-direction: column; }

.site-header { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,0.86); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid rgba(22,24,26,0.10); }
.site-header .row { max-width: 760px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 17px 28px; }
.wordmark { font-size: 12px; font-weight: 600; letter-spacing: 0.14em; cursor: pointer; }
.wordmark:hover { color: #B23A2B; }
.header-nav { display: flex; gap: 22px; font-size: 11px; letter-spacing: 0.1em; color: #6A6F76; }
.header-nav a:hover { color: #B23A2B; }
.site-footer { border-top: 1px solid rgba(22,24,26,0.10); }
.site-footer .row { max-width: 760px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 18px 28px; font-size: 11px; letter-spacing: 0.06em; color: #9aa0a6; }

.home { flex: 1; position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 90px 32px; }
.home-bg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.home .role-line, .home .hero-name, .home .hero-rule, .home .tagline, .home .home-nav { position: relative; z-index: 1; }
.stamp { position: absolute; top: 16%; right: 12%; z-index: 2; font-size: 10px; letter-spacing: 0.18em; color: #B23A2B; border: 1px solid rgba(178,58,43,0.55); padding: 7px 11px; transform: rotate(4deg); }
.role-line { font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase; color: #9aa0a6; margin-bottom: 26px; }
.hero-name { margin: 0; font-size: clamp(34px, 8vw, 52px); font-weight: 500; letter-spacing: 0.01em; white-space: nowrap; }
.hero-rule { width: 44px; height: 1px; background: #16181A; margin: 32px 0; }
.tagline { margin: 0 0 38px; font-size: 14px; line-height: 1.7; color: #6A6F76; max-width: 430px; }
.home-nav { display: flex; gap: 30px; font-size: 13px; letter-spacing: 0.06em; flex-wrap: wrap; justify-content: center; }
.home-nav a { padding-bottom: 3px; border-bottom: 1px solid transparent; }
.home-nav a:hover { color: #B23A2B; border-bottom-color: #B23A2B; }
.chrome { position: absolute; bottom: 30px; left: 0; right: 0; z-index: 1; display: flex; justify-content: center; gap: 18px; font-size: 11px; letter-spacing: 0.1em; color: #b8bcc1; }
.chrome .sep { color: #d8dadd; }

.page { flex: 1; max-width: 760px; margin: 0 auto; width: 100%; padding: 64px 28px 100px; }
.eyebrow { font-size: 11px; letter-spacing: 0.18em; color: #B23A2B; margin-bottom: 14px; }
.page h2 { margin: 0 0 36px; font-size: 30px; font-weight: 500; letter-spacing: -0.01em; }
.page h2.tight { margin-bottom: 8px; }
.dek { margin: 0 0 36px; font-size: 14px; color: #6A6F76; }
.sub-label { font-size: 11px; letter-spacing: 0.16em; color: #9aa0a6; margin-bottom: 4px; }

.prose { max-width: 580px; font-size: 15px; line-height: 1.85; color: #2a2c2f; }
.prose p { margin: 0 0 20px; }
.prose p:last-child { margin-bottom: 0; }

.kv { margin-top: 44px; max-width: 580px; font-size: 13px; }
.kv > div { display: flex; justify-content: space-between; gap: 24px; padding: 12px 0; border-top: 1px solid rgba(22,24,26,0.12); }
.kv > div:last-child { border-bottom: 1px solid rgba(22,24,26,0.12); }
.kv .k { color: #9aa0a6; flex: none; }
.kv > div > span:last-child { text-align: right; }
.meta a { border-bottom: 1px solid rgba(22,24,26,0.25); padding-bottom: 1px; }
.meta a:hover { color: #B23A2B; border-bottom-color: #B23A2B; }

.empty-note { margin: 8px 0 0; padding: 24px 8px; border-top: 1px solid rgba(22,24,26,0.12); border-bottom: 1px solid rgba(22,24,26,0.12); font-size: 14px; color: #9aa0a6; }

.essay { display: flex; gap: 20px; align-items: baseline; padding: 20px 8px; border-top: 1px solid rgba(22,24,26,0.12); cursor: pointer; }
.essay:hover { background: #f7f7f6; }
.essay .date { font-size: 12px; color: #9aa0a6; width: 64px; flex: none; }
.essay .body { flex: 1; }
.essay .title { display: block; font-size: 16px; font-weight: 500; }
.essay .sub { display: block; font-size: 13px; color: #6A6F76; margin-top: 5px; }
.essay .arrow { color: #B23A2B; font-size: 14px; }

.work-item { display: grid; grid-template-columns: 1fr auto; gap: 8px 20px; padding: 22px 8px; border-top: 1px solid rgba(22,24,26,0.12); }
a.work-item.linked { cursor: pointer; }
a.work-item.linked:hover { background: #f7f7f6; }
a.work-item.linked:hover .name { color: #B23A2B; }
.work-item .name { font-size: 17px; font-weight: 500; }
.work-item .name .arrow { color: #B23A2B; font-size: 13px; margin-left: 6px; }
.work-item .year { font-size: 12px; color: #9aa0a6; text-align: right; align-self: center; }
.work-item .sub { font-size: 13px; color: #6A6F76; grid-column: 1 / 2; }
.work-item .tag { font-size: 11px; letter-spacing: 0.08em; color: #B23A2B; text-align: right; }

.cv-top { display: flex; justify-content: space-between; align-items: baseline; }
.pdf-link { font-size: 12px; color: #6A6F76; border-bottom: 1px solid rgba(22,24,26,0.2); padding-bottom: 2px; }
.pdf-link:hover { color: #B23A2B; border-bottom-color: #B23A2B; }
.cv-row { display: grid; grid-template-columns: 120px 1fr; gap: 20px; padding: 18px 0; border-top: 1px solid rgba(22,24,26,0.12); }
.cv-row .years { font-size: 12px; color: #9aa0a6; }
.cv-row .role { display: block; font-size: 15px; font-weight: 500; }
.cv-row .org { display: block; font-size: 13px; color: #6A6F76; margin-top: 3px; }
.cv-row .note { display: block; font-size: 13px; color: #2a2c2f; margin-top: 8px; line-height: 1.6; }
.cv-points { list-style: none; margin: 12px 0 0; padding: 0; }
.cv-points li { position: relative; padding-left: 16px; font-size: 13px; line-height: 1.6; color: #2a2c2f; margin-bottom: 7px; }
.cv-points li:last-child { margin-bottom: 0; }
.cv-points li::before { content: '·'; position: absolute; left: 3px; color: #9aa0a6; }
.cv-points a { border-bottom: 1px solid rgba(22,24,26,0.2); }
.cv-points a:hover { color: #B23A2B; border-bottom-color: #B23A2B; }
.cv-row.single { font-size: 14px; }
.cv-row.last { border-bottom: 1px solid rgba(22,24,26,0.12); }
.cv-block { margin-top: 40px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.chips span { font-size: 12px; color: #2a2c2f; border: 1px solid rgba(22,24,26,0.16); padding: 7px 12px; }
.cap-group { display: grid; grid-template-columns: 150px 1fr; gap: 20px; padding: 16px 0; border-top: 1px solid rgba(22,24,26,0.10); }
.cap-group:last-child { border-bottom: 1px solid rgba(22,24,26,0.10); }
.cap-group .cap-label { font-size: 11px; letter-spacing: 0.1em; color: #9aa0a6; padding-top: 8px; }
.cap-group .chips { margin-top: 0; }

.project .back { display: inline-block; font-size: 12px; color: #6A6F76; margin-bottom: 30px; border-bottom: 1px solid transparent; padding-bottom: 2px; }
.project .back:hover { color: #B23A2B; }
.project .section { margin-top: 40px; max-width: 580px; }
.project .section p { margin: 0 0 18px; font-size: 15px; line-height: 1.85; color: #2a2c2f; }
.project .section p:last-child { margin-bottom: 0; }
.exchanges .xchg { padding: 16px 0; border-bottom: 1px solid rgba(22,24,26,0.10); }
.exchanges .xchg:first-of-type { border-top: 1px solid rgba(22,24,26,0.10); margin-top: 6px; }
.xchg .line { display: flex; gap: 14px; margin: 0; font-size: 14px; line-height: 1.7; }
.xchg .line + .line { margin-top: 7px; }
.xchg .who { flex: none; width: 32px; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: #9aa0a6; padding-top: 4px; }
.xchg .a .who { color: #B23A2B; }
.xchg .msg { flex: 1; }
.xchg .q .msg { color: #16181A; }
.xchg .a .msg { color: #2a2c2f; }

.gallery { margin-top: 52px; display: flex; flex-direction: column; gap: 44px; }
.gallery figure { margin: 0; }
.gallery img, .gallery video { display: block; width: 100%; height: auto; border: 1px solid rgba(22,24,26,0.12); background: #fff; }
.gallery figcaption { margin-top: 10px; font-size: 12px; color: #9aa0a6; line-height: 1.5; }

.contact { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 80px 28px; }
.contact .eyebrow { margin-bottom: 26px; }
.email { font-size: 32px; font-weight: 500; letter-spacing: -0.01em; border-bottom: 1px solid rgba(22,24,26,0.2); padding-bottom: 6px; word-break: break-all; }
.email:hover { color: #B23A2B; border-bottom-color: #B23A2B; }
.contact p { margin: 30px 0 0; font-size: 14px; color: #6A6F76; }
.socials { display: flex; gap: 26px; margin-top: 36px; font-size: 12px; letter-spacing: 0.08em; }
.socials a { border-bottom: 1px solid transparent; padding-bottom: 3px; }
.socials a:hover { color: #B23A2B; border-bottom-color: #B23A2B; }
.contact .chrome-line { margin-top: 48px; font-size: 11px; letter-spacing: 0.1em; color: #b8bcc1; }

.cv-meta { display: none; font-size: 11px; letter-spacing: 0.02em; color: #6A6F76; margin: -28px 0 32px; }
.cv-print-foot { display: none; }

@media print {
  @page { margin: 16mm 15mm; }
  html, body { background: #fff; }
  body { color: #16181A; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  #app { min-height: 0; display: block; }
  .site-header, .site-footer, .cv-top, .home, .contact { display: none !important; }
  .page { max-width: none; width: auto; padding: 0; }
  .page h2 { margin: 0 0 6px; font-size: 26px; }
  .cv-meta { display: block; margin: 0 0 30px; }
  .cv-row { break-inside: avoid; page-break-inside: avoid; }
  .cv-points li { break-inside: avoid; page-break-inside: avoid; }
  .cap-group { break-inside: avoid; page-break-inside: avoid; }
  .cv-points a, .cv-points a:hover { color: #16181A; border-bottom-color: rgba(22,24,26,0.3); }
  .cv-print-foot { display: block; margin-top: 34px; padding-top: 14px; border-top: 1px solid rgba(22,24,26,0.12); font-size: 10px; letter-spacing: 0.08em; color: #9aa0a6; }
}

@media (max-width: 520px) {
  .header-nav { gap: 14px; }
  .essay { flex-wrap: wrap; }
  .essay .date { width: auto; }
  .essay .arrow { display: none; }
  .cv-row { grid-template-columns: 1fr; gap: 6px; }
  .cap-group { grid-template-columns: 1fr; gap: 10px; }
  .cap-group .cap-label { padding-top: 0; }
}
@media (max-width: 420px) {
  .stamp { display: none; }
}
