@charset "UTF-8";

:root {
  --paper: #f5f5ef;
  --surface: #fcfcf8;
  --ink: #26342c;
  --muted: #526052;
  --line: #dce0d5;
  --accent: #d6ef7c;
  --dark: #263a30;
  --radius: 12px;
  color-scheme: light;
  font-family: "Pretendard", "Segoe UI", "Malgun Gothic", -apple-system, BlinkMacSystemFont, sans-serif;
  font-synthesis: none;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 104px; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: default; }
button, input { color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, summary:focus-visible, [tabindex]:focus-visible { outline: 3px solid #668c2c; outline-offset: 5px; }
::selection { color: var(--ink); background: var(--accent); }
img, svg, video { max-width: 100%; }
img { display: block; }
svg { display: block; }
audio { max-width: 100%; }
button, h1, h2, h3, p, ul, figure { margin: 0; }
[hidden] { display: none !important; }
.container { width: min(1184px, calc(100% - 96px)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -100px; left: 20px; z-index: 100; padding: 14px 20px; background: var(--ink); color: white; border-radius: 6px; }
.skip-link:focus { top: 12px; }
.site-header { position: sticky; top: 0; z-index: 20; background: rgb(245 245 239 / 96%); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.header-inner { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 36px; padding-block: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 750; letter-spacing: -.5px; white-space: nowrap; }
.brand-dot { width: 10px; height: 10px; border-radius: 3px; background: #9fbe55; box-shadow: 0 0 0 4px #e5edce; }
.site-nav { display: flex; gap: 24px; align-items: center; font-size: 14px; font-weight: 600; }
.site-nav a { padding-block: 10px; position: relative; }
.site-nav a::after { position: absolute; content: ""; height: 2px; width: 100%; background: var(--ink); left: 0; bottom: 3px; transform: scaleX(0); transform-origin: left; transition: transform .2s; }
.site-nav a:hover::after, .site-nav a[aria-current]::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; justify-content: flex-end; }
.header-action { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 36px; font-size: 13px; white-space: nowrap; }
a.header-action:hover { color: #587327; }
.header-action > span[aria-hidden] { font-size: 15px; }
.header-resume { padding: 9px 15px; border: 1px solid var(--ink); border-radius: 6px; font-weight: 600; }
a.header-resume:hover { background: var(--accent); color: var(--ink); }
.header-action.is-unavailable, .profile-link.is-unavailable { color: var(--muted); }
.header-resume.is-unavailable { border-color: #cbd2c2; }
.pending-label { font-size: 9px; font-weight: 400; color: var(--muted); }
.draft-badge { padding: 6px 10px; border: 1px solid var(--line); border-radius: 4px; font-size: 10px; letter-spacing: .4px; color: var(--muted); white-space: nowrap; }
.hero { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 48px; align-items: center; padding-block: 56px; border-bottom: 1px solid var(--line); }
.hero-copy { min-width: 0; }
.profile-photo { position: relative; width: 200px; aspect-ratio: 5 / 6; overflow: hidden; border: 1px solid #d7dfce; border-radius: 20px; background: linear-gradient(145deg, #eff3e6, #e3ead8); }
.profile-photo-placeholder { position: absolute; inset: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 1px dashed #c5cdb8; border-radius: 12px; color: #6b7d5c; }
.profile-photo-placeholder svg { width: 64px; }
.profile-photo-placeholder > span { margin-top: 16px; font-size: 12px; font-weight: 600; }
.profile-photo-placeholder small { margin-top: 7px; font-size: 10px; }
.profile-photo img { position: absolute; width: 100%; height: 100%; object-fit: cover; }
.eyebrow { display: flex; align-items: center; gap: 9px; font-size: 10px; line-height: 1.6; letter-spacing: 1.8px; font-weight: 650; }
.status-dot { width: 6px; height: 6px; flex-shrink: 0; display: inline-block; border-radius: 50%; background: #6c8b34; }
h1 { font-size: clamp(42px, 4.65vw, 62px); font-weight: 760; letter-spacing: -3.5px; line-height: 1.32; word-break: keep-all; }
.hero h1 { margin-top: 12px; font-size: 52px; letter-spacing: -2px; }
.hero-role { margin-top: 8px; font-size: 20px; font-weight: 500; letter-spacing: -.5px; }
.hero-description { margin-top: 18px; max-width: 620px; color: var(--muted); font-size: 16px; line-height: 1.85; white-space: pre-line; word-break: keep-all; }
.profile-links { display: grid; gap: 2px; margin: 16px 0 0; }
.profile-contact-row { font-size: 14px; line-height: 1.7; }
.profile-contact-row dt { display: inline; color: var(--muted); }
.profile-contact-row dd { display: inline; margin: 0; }
.contact-separator { color: var(--muted); }
.profile-link { font-size: inherit; text-decoration: underline; text-decoration-color: #bcc8ac; text-underline-offset: 4px; overflow-wrap: anywhere; }
.profile-link > span[aria-hidden] { display: none; }
a.profile-link:hover { color: #587327; text-decoration-color: currentColor; }
.profile-link.is-unavailable { text-decoration: none; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 20px; min-height: 48px; padding: 13px 18px; border: 1px solid transparent; border-radius: 6px; font-weight: 600; font-size: 14px; transition: background .2s, transform .2s; }
.button:hover { transform: translateY(-2px); }
.button-dark { background: var(--ink); color: var(--surface); }
.button-dark:hover { background: #3d5344; }
.button-outline { border-color: var(--line); background: transparent; }
.button-outline:hover { background: var(--accent); }
.button > span { font-size: 20px; font-weight: 400; line-height: 1; }
.section { padding-block: 56px; }
.selected-section { padding-block: 36px 44px; }
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 28px; margin-bottom: 31px; }
h2 { font-size: 32px; font-weight: 700; letter-spacing: -1.2px; line-height: 1.4; word-break: keep-all; }
.section-heading h2 { margin-top: 12px; }
.heading-dot { color: #8aa247; }
.text-link { display: inline-flex; gap: 14px; align-items: center; font-size: 14px; font-weight: 600; padding-block: 6px; }
.text-link:hover { text-decoration: underline; text-underline-offset: 5px; }
.text-link > span { font-size: 18px; }
.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.featured-grid[data-count="1"] { grid-template-columns: 1fr; }
.featured-grid[data-count="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.featured-empty { min-height: 92px; display: flex; align-items: center; justify-content: center; gap: 15px; padding: 24px; border: 1px dashed #c9d0c0; border-radius: var(--radius); color: var(--muted); }
.featured-empty svg { width: 35px; flex-shrink: 0; color: #8b9a7c; }
.featured-empty p { font-size: 13px; line-height: 1.8; }
.project-card { min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); transition: border-color .2s, box-shadow .2s, transform .2s; }
.project-card:hover, .project-card:focus-within { border-color: #a6b88d; box-shadow: 0 12px 28px #26342c0a; transform: translateY(-3px); }
.project-card-link { display: flex; flex-direction: column; height: 100%; padding: 10px 10px 0; border-radius: var(--radius); }
.project-card .project-visual { aspect-ratio: 1.65; border-radius: 7px; }
.card-body { display: flex; flex-direction: column; flex: 1; min-width: 0; padding: 20px 12px 0; }
.featured-grid[data-count="1"] .project-card-link { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); padding: 10px; }
.featured-grid[data-count="1"] .project-visual { height: 100%; min-height: 260px; }
.featured-grid[data-count="1"] .card-body { padding: 22px 28px 0; }
.project-visual { position: relative; overflow: hidden; width: 100%; aspect-ratio: 1.48; border-radius: var(--radius); isolation: isolate; display: grid; place-items: center; }
.project-visual > svg { width: 100%; height: 100%; transition: transform .5s ease; }
.project-card-link:hover .project-visual > svg, .project-card-link:hover .project-visual > img { transform: scale(1.035); }
.project-visual > img { width: 100%; height: 100%; object-fit: cover; position: absolute; transition: transform .5s ease; }
.visual-game { background: #253c33; color: #d6ef7c; }
.visual-widget { background: #e8e8df; color: #26342c; }
.visual-vr { background: #dfe5da; color: #50664e; }
.visual-web { background: #e1e7dc; color: #3d5648; }
.visual-server { background: #dfe4e0; color: #3e5546; }
.visual-audio { background: #e8e6d9; color: #59603f; }
.visual-index, .visual-caption { position: absolute; z-index: 2; font: 8px/1.5 Consolas, monospace; letter-spacing: 1px; }
.visual-index { top: 15px; left: 16px; }
.visual-caption { bottom: 13px; right: 15px; opacity: .7; }
.card-meta { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.card-category { color: #4d653b; font-weight: 600; }
.card-title { margin-top: 12px; font-size: 22px; line-height: 1.45; letter-spacing: -.6px; font-weight: 700; word-break: keep-all; overflow-wrap: anywhere; }
.card-arrow { display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; width: 30px; height: 30px; font-size: 17px; flex-shrink: 0; transition: background .2s; }
.project-card-link:hover .card-arrow, .project-card-link:focus-visible .card-arrow { background: var(--accent); border-color: var(--accent); }
.card-summary { font-size: 15px; line-height: 1.8; color: var(--muted); margin-top: 10px; word-break: keep-all; overflow-wrap: anywhere; }
.card-role { margin-top: 14px; font-size: 13px; line-height: 1.7; overflow-wrap: anywhere; }
.card-role > span { margin-right: 6px; color: var(--muted); }
.card-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 20px; padding-block: 14px; border-top: 1px solid var(--line); font-size: 13px; font-weight: 600; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.card-body .tags { margin-top: auto; padding-top: 20px; }
.tag { padding: 4px 9px; font-size: 12px; background: #e9ece2; border-radius: 4px; overflow-wrap: anywhere; }
.archive { background: #eeefe8; border-block: 1px solid var(--line); }
.section-description { color: var(--muted); font-size: 14px; line-height: 1.8; }
.catalog-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 35px; }
.filters { display: flex; flex-wrap: wrap; gap: 7px; }
.filter { border: 1px solid transparent; background: transparent; border-radius: 5px; padding: 10px 14px; font-size: 14px; display: flex; align-items: center; gap: 9px; transition: background .2s; }
.filter-count { font: 10px Consolas, monospace; opacity: .72; }
.filter:hover { border-color: #bcc8b0; }
.filter[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.search-box { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid #ced5c6; border-radius: 5px; width: 245px; flex-shrink: 0; }
.search-box svg { width: 17px; flex-shrink: 0; }
.search-box input { padding: 0; border: 0; outline: 0; background: transparent; width: 100%; min-width: 0; font-size: 14px; }
.search-box:focus-within { outline: 2px solid #668c2c; outline-offset: 2px; }
.search-box input:focus-visible { outline: none; }
.search-box input::placeholder { color: #657066; }
.catalog-status { display: flex; justify-content: space-between; align-items: center; margin-block: 22px 18px; color: var(--muted); font-size: 13px; }
.catalog-status > span { font: 9px Consolas, monospace; letter-spacing: 1px; }
.empty-state { text-align: center; padding: 54px 15px; }
.empty-state > span { font-size: 42px; }
.empty-state h3 { margin-top: 16px; font-size: 20px; }
.empty-state p { margin-top: 12px; font-size: 13px; line-height: 1.8; color: var(--muted); }
.empty-state .button { margin-top: 25px; }
.achievements-section { padding-block: 32px 40px; }
.achievements-section > .section-heading { margin-bottom: 22px; }
.records-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.record-group { min-width: 0; }
.record-group-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.record-group-heading h3 { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 650; }
.record-group-heading svg { width: 19px; height: 19px; color: #6b8148; }
.record-count { min-width: 29px; padding: 3px 8px; border-radius: 20px; background: #e7ecdc; color: #596b43; font-size: 10px; text-align: center; }
.record-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.record-card { display: flex; flex-direction: column; min-width: 0; min-height: 148px; padding: 16px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); }
.record-card.is-placeholder { border-style: dashed; border-color: #cbd3c1; background: #f8f8f2; }
.record-card-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px; }
.record-number { color: var(--muted); font: 8px/1.5 Consolas, monospace; letter-spacing: .6px; }
.record-pending { padding: 3px 6px; border-radius: 4px; color: #67785a; background: #edf0e5; font-size: 9px; }
.record-card h4 { margin: 12px 0 0; font-size: 16px; font-weight: 650; line-height: 1.5; letter-spacing: -.4px; word-break: keep-all; overflow-wrap: anywhere; }
.record-facts { display: grid; gap: 6px; margin: 12px 0 0; }
.record-facts > div { display: grid; grid-template-columns: 53px minmax(0, 1fr); gap: 8px; }
.record-facts dt { font-size: 12px; line-height: 1.7; color: var(--muted); }
.record-facts dd { margin: 0; font-size: 13px; line-height: 1.7; overflow-wrap: anywhere; }
.record-summary { margin-top: 10px; color: var(--muted); font-size: 11px; line-height: 1.8; }
.record-description { margin-top: 10px; font-size: 14px; line-height: 1.8; white-space: pre-line; overflow-wrap: anywhere; }
.record-links { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: auto; padding-top: 12px; }
.record-link { display: inline-flex; align-items: center; gap: 6px; padding-block: 5px; font-size: 13px; font-weight: 600; }
.record-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.record-empty { grid-column: 1 / -1; padding: 24px 16px; border: 1px dashed var(--line); border-radius: 9px; color: var(--muted); font-size: 12px; text-align: center; }
.site-footer { display: flex; justify-content: space-between; gap: 20px; padding-block: 26px; border-top: 1px solid var(--line); font-size: 11px; line-height: 1.8; color: var(--muted); }
.site-footer a { display: inline-flex; gap: 12px; }
.site-footer a:hover { color: var(--ink); }
.noscript-note { padding: 25px; border: 1px solid var(--line); margin: 20px; font-size: 14px; }

/* Project detail: the same template is used for every item in content/portfolio.js. */
.project-main { max-width: 1120px; padding-top: 32px; }
.breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.breadcrumb a:hover { text-decoration: underline; text-underline-offset: 4px; }
.project-intro { margin-block: 30px 28px; }
.project-intro-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; }
.project-intro .eyebrow { color: var(--muted); font-size: 12px; letter-spacing: .8px; }
.project-award { display: inline-flex; align-items: baseline; gap: 8px; padding: 7px 12px; border-radius: 6px; background: #e7eed7; color: #445b2c; font-size: 13px; line-height: 1.6; }
.project-award:hover { background: #dce9c2; }
.project-intro h1 { margin-top: 16px; font-size: clamp(40px, 4vw, 56px); letter-spacing: -1.8px; }
.project-lead { max-width: 800px; font-size: 18px; color: #435144; margin-top: 14px; line-height: 1.8; word-break: keep-all; overflow-wrap: anywhere; }
.project-intro .tags { margin-top: 18px; }
.project-draft-note { font-size: 13px; line-height: 1.8; color: var(--muted); padding-top: 20px; border-top: 1px dashed var(--line); margin-top: 20px; }
.project-cover { width: 100%; background: #e9ece3; border-radius: var(--radius); overflow: hidden; }
.project-cover .project-visual { aspect-ratio: 2.6; min-height: 260px; max-height: 430px; }
.project-cover .project-visual > svg { width: 550px; max-width: 90%; }
.project-cover .visual-caption, .project-cover .visual-index { font-size: 10px; margin: 7px; }
.project-body { display: grid; grid-template-columns: minmax(0, 1fr) 228px; gap: 56px; margin-block: 64px 70px; align-items: start; }
.project-story { min-width: 0; }
.detail-section { padding-bottom: 40px; margin-bottom: 40px; border-bottom: 1px solid var(--line); scroll-margin-top: 24px; }
.detail-section:last-child { margin-bottom: 0; }
.project-results > .outcome-list, .project-results > .award-proof { max-width: 840px; }
.project-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 20px; margin: 0 0 26px; }
.project-metric { padding: 24px; border: 1px solid #d5dec8; border-radius: 10px; background: #eff3e7; }
.project-metric dt { font-size: 15px; font-weight: 600; color: #435735; }
.project-metric dd { margin: 12px 0 0; }
.project-metric strong { display: block; margin-bottom: 12px; font-size: clamp(34px, 4vw, 44px); font-weight: 700; line-height: 1.2; letter-spacing: -1px; color: #2e452b; }
.project-metric span { display: block; font-size: 15px; line-height: 1.7; word-break: keep-all; overflow-wrap: anywhere; }
.project-metric small { display: block; margin-top: 6px; font-size: 13px; line-height: 1.7; color: var(--muted); }
.detail-section .system-flow { list-style: none; padding: 0; }
.system-flow li { position: relative; padding: 0 0 26px 54px; }
.detail-section .system-flow li + li { margin-top: 0; }
.system-flow li:not(:last-child)::before { content: ""; position: absolute; top: 34px; bottom: 0; left: 17px; width: 1px; background: #cbd5bc; }
.system-flow li:last-child { padding-bottom: 0; }
.flow-number { position: absolute; left: 0; top: 1px; display: grid; place-items: center; width: 35px; height: 35px; border: 1px solid #cbd5bc; border-radius: 50%; background: #eff3e7; color: #4d6338; font: 12px Consolas, monospace; }
.system-flow h3 { margin: 0 0 8px; font-size: 18px; line-height: 1.65; }
.system-flow p { font-size: 16px; line-height: 1.85; color: #435144; }
.detail-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.detail-heading > span { display: grid; place-items: center; flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%; background: #e6edd9; color: #4d6338; font-size: 12px; font-weight: 600; }
.detail-heading h2 { font-size: 28px; line-height: 1.45; letter-spacing: -.8px; }
.detail-section > p, .detail-section li, .challenge p { font-size: 17px; line-height: 1.85; color: #344334; word-break: keep-all; overflow-wrap: anywhere; white-space: pre-line; }
.detail-section > p + p { margin-top: 18px; }
.detail-section ul { padding-left: 22px; }
.detail-section li + li { margin-top: 14px; }
.detail-section .contribution-list { list-style: none; padding: 0; }
.contribution-list li { display: grid; grid-template-columns: 28px minmax(0, 1fr); align-items: start; gap: 14px; padding-block: 16px; border-bottom: 1px solid var(--line); }
.contribution-list li:first-child { padding-top: 0; }
.contribution-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.contribution-list li + li { margin-top: 0; }
.contribution-list li > span { display: grid; place-items: center; width: 28px; height: 28px; margin-top: 3px; border-radius: 50%; background: #e8eddf; color: #5d7146; font-size: 11px; font-weight: 600; }
.placeholder { border: 1px dashed #c9d0c0; border-radius: 7px; padding: 22px; color: var(--muted); font-size: 15px; line-height: 1.8; background: #f1f2e9; }
.placeholder > span { display: block; font: 9px Consolas, monospace; letter-spacing: 1px; color: #778769; margin-bottom: 7px; }
.project-sidebar { position: sticky; top: 114px; }
.project-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px 28px; border-block: 1px solid var(--line); padding: 20px 0; margin: 0 0 36px; }
.project-facts dt { font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.project-facts dd { margin: 0; font-size: 16px; font-weight: 550; line-height: 1.65; word-break: keep-all; overflow-wrap: anywhere; }
.project-links { display: grid; gap: 10px; margin-top: 24px; }
.project-links .button { justify-content: space-between; }
.pending-links { font-size: 14px; line-height: 1.8; color: var(--muted); padding: 5px; }
.detail-toc { padding: 20px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); display: grid; gap: 10px; }
.detail-toc > p { font-size: 13px; font-weight: 700; margin-bottom: 4px; }
.detail-toc a { padding-block: 4px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.detail-toc a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 5px; }
.challenge { border: 1px solid #d6ddce; border-radius: 10px; background: var(--surface); }
.challenge + .challenge { margin-top: 12px; }
.challenge summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px; cursor: pointer; list-style: none; }
.challenge summary::-webkit-details-marker, .award-proof summary::-webkit-details-marker { display: none; }
.challenge summary::after { content: "+"; flex-shrink: 0; font-size: 24px; font-weight: 400; color: #5f7345; }
.challenge[open] summary::after { content: "−"; }
.challenge[open] { border-color: #b4c49d; }
.challenge h3 { font-size: 18px; font-weight: 650; line-height: 1.5; letter-spacing: -.3px; }
.challenge-content { padding: 0 22px 24px; }
.challenge-step + .challenge-step { margin-top: 22px; }
.challenge-step h4 { margin: 0 0 7px; color: #5c713e; font-size: 13px; }
.award-proof { margin-top: 24px; padding: 0 20px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.award-proof summary { padding-block: 18px; cursor: pointer; font-size: 15px; font-weight: 600; }
.award-proof .media-item { margin: 0 0 20px; }
.media-item { margin-top: 22px; }
.media-item img, .media-item video { display: block; width: 100%; height: auto; border-radius: 10px; background: #e9ece2; }
.media-image-link { display: block; border-radius: 10px; }
.media-item audio { width: 100%; }
.media-item figcaption { font-size: 14px; line-height: 1.7; color: var(--muted); margin-top: 12px; }
.media-item figcaption strong { display: block; margin-bottom: 5px; color: var(--ink); font-size: 16px; }
.project-demo { scroll-margin-top: 24px; }
.demo-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 16px; }
.demo-heading h2 { font-size: 24px; letter-spacing: -.5px; }
.demo-heading > span { color: var(--muted); font-size: 14px; }
.project-demo .media-item { margin: 0; }
.demo-video-shell { position: relative; overflow: hidden; border-radius: 10px; background: #17251c; }
.demo-cover { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; border-radius: inherit; background: transparent; cursor: pointer; }
.demo-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.demo-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 55%, rgb(12 24 16 / 25%)); }
.demo-play { position: absolute; top: 50%; left: 50%; z-index: 1; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 10px; padding: 15px 22px; border: 1px solid rgb(255 255 255 / 45%); border-radius: 999px; background: rgb(22 37 28 / 86%); color: white; font-size: 15px; font-weight: 600; white-space: nowrap; }
.demo-play svg { width: 24px; height: 24px; }
.demo-cover:hover .demo-play { background: #263a30; }
.demo-cover:focus-visible { outline: 3px solid var(--accent); outline-offset: -6px; }
.demo-caption { margin-top: 12px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.project-demo video { width: 100%; aspect-ratio: 16 / 9; border: 1px solid #cdd5c4; background: #17251c; }
.project-demo .media-item figcaption { font-size: 13px; }
.demo-chapters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.demo-chapters button { display: flex; align-items: center; justify-content: flex-start; gap: 12px; min-width: 0; padding: 13px 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); text-align: left; font-size: 14px; font-weight: 600; }
.demo-chapters button > span { font: 12px/1.6 Consolas, monospace; color: #6a7c52; }
.demo-chapters button:hover, .demo-chapters button[aria-current] { border-color: #a6ba85; background: #eaf0de; }
.project-gallery { margin-top: 44px; }
.gallery-heading { margin-bottom: 20px; }
.gallery-heading h2 { font-size: 24px; letter-spacing: -.5px; }
.gallery-heading p { margin-top: 7px; font-size: 14px; color: var(--muted); }
.screenshot-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.screenshot-grid .media-item { min-width: 0; margin: 0; }
.screenshot-grid img { aspect-ratio: 16 / 9; object-fit: cover; border: 1px solid var(--line); }
.project-navigation { display: flex; align-items: center; justify-content: space-between; gap: 30px; border-top: 1px solid var(--line); padding-block: 27px; }
.next-project { display: flex; align-items: center; gap: 25px; }
.next-project small { display: block; font: 9px/1.7 Consolas, monospace; color: var(--muted); letter-spacing: 1px; }
.next-project strong { font-size: 14px; line-height: 2; }
.next-project > span { font-size: 25px; }
.not-found { text-align: center; padding-block: 100px 150px; }
.not-found h1 { margin-block: 16px; font-size: 36px; }
.not-found p { font-size: 14px; line-height: 1.9; color: var(--muted); }
.not-found .button { margin-top: 30px; }

@media (max-width: 1050px) {
  .container { width: calc(100% - 64px); }
  .header-inner { gap: 28px; }
  .hero { gap: 36px; }
  .hero h1 { font-size: 48px; }
  .records-grid { grid-template-columns: 1fr; gap: 20px; }
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .project-body { gap: 36px; grid-template-columns: minmax(0, 1fr) 220px; }
}
@media (max-width: 800px) {
  .hero { grid-template-columns: 160px minmax(0, 1fr); gap: 28px; padding-block: 40px; }
  .profile-photo { width: 160px; }
  .hero h1 { font-size: 44px; }
  .hero-role { font-size: 18px; }
  .hero-description { font-size: 15px; }
  .section { padding-block: 44px; }
  .selected-section { padding-block: 32px 40px; }
  .section-heading { align-items: flex-start; }
  .project-grid { gap: 16px; }
  .card-body { padding: 18px 8px 0; }
  .card-title { font-size: 21px; }
  .visual-caption { font-size: 7px; bottom: 10px; right: 10px; }
  .visual-index { font-size: 7px; top: 10px; left: 10px; }
  .featured-grid[data-count="1"] .project-card-link { display: flex; padding: 10px 10px 0; }
  .featured-grid[data-count="1"] .project-visual { height: auto; min-height: 0; }
  .featured-grid[data-count="1"] .card-body { padding: 18px 8px 0; }
  .catalog-toolbar { align-items: stretch; flex-direction: column; gap: 16px; }
  .search-box { width: 100%; }
  .section-description { display: none; }
  .project-body { grid-template-columns: 1fr; gap: 32px; margin-top: 44px; }
  .project-sidebar { position: static; }
  .project-facts { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; }
  .project-links { display: flex; flex-wrap: wrap; }
  .detail-toc { display: none; }
  .screenshot-grid { gap: 16px; }
}
@media (max-width: 540px) {
  .container { width: calc(100% - 40px); }
  .header-inner { gap: 12px; padding-block: 12px; }
  .brand { font-size: 16px; }
  .site-nav { gap: 14px; font-size: 12px; }
  .header-action { font-size: 11px; gap: 5px; min-height: 34px; }
  .header-resume { padding: 7px 10px; }
  .pending-label { font-size: 8px; }
  .hero { grid-template-columns: 104px minmax(0, 1fr); gap: 0 22px; padding-block: 32px; }
  .hero-copy { display: contents; }
  .profile-photo { width: 104px; grid-column: 1; grid-row: 1 / 4; border-radius: 14px; }
  .profile-photo-placeholder { inset: 7px; border-radius: 8px; }
  .profile-photo-placeholder svg { width: 42px; }
  .profile-photo-placeholder > span { font-size: 10px; margin-top: 8px; }
  .profile-photo-placeholder small { font-size: 8px; margin-top: 3px; }
  .hero .eyebrow { grid-column: 2; grid-row: 1; align-self: end; font-size: 8px; letter-spacing: 1px; gap: 7px; }
  .hero h1 { grid-column: 2; grid-row: 2; font-size: 38px; margin-top: 7px; letter-spacing: -1.5px; }
  .hero-role { grid-column: 2; grid-row: 3; align-self: start; margin-top: 2px; font-size: 16px; }
  .hero-description { grid-column: 1 / -1; grid-row: 4; margin-top: 22px; font-size: 15px; }
  .profile-links { grid-column: 1 / -1; grid-row: 5; margin-top: 14px; }
  .section { padding-block: 36px; }
  .selected-section { padding-block: 28px 32px; }
  .section-heading { margin-bottom: 24px; gap: 13px; }
  .section-heading .eyebrow { font-size: 8px; letter-spacing: 1.2px; }
  h2 { font-size: 27px; letter-spacing: -1px; }
  .section-heading h2 { margin-top: 9px; }
  .selected-section .section-heading { align-items: flex-end; }
  .selected-section .section-heading > .text-link { font-size: 12px; gap: 6px; flex-shrink: 0; }
  .project-grid, .featured-grid[data-count="2"] { grid-template-columns: 1fr; gap: 20px; }
  .card-title { font-size: 22px; }
  .featured-empty { padding: 20px 16px; gap: 12px; }
  .featured-empty p { font-size: 12px; }
  .visual-index { font-size: 8px; top: 13px; left: 13px; }
  .visual-caption { font-size: 7px; right: 11px; bottom: 11px; }
  .catalog-toolbar { margin-top: 26px; }
  .filters { gap: 3px; }
  .filter { padding: 10px 9px; font-size: 13px; gap: 6px; }
  .filter-count { font-size: 11px; }
  .achievements-section { padding-block: 28px 32px; }
  .record-card { min-height: 132px; padding: 14px; }
  .record-card h4 { font-size: 17px; }
  .record-list.has-content { grid-template-columns: 1fr; }
  .record-facts > div { grid-template-columns: 1fr; gap: 2px; }
  .record-facts dd, .record-description { word-break: keep-all; }
  .site-footer { font-size: 10px; }
  .project-main { padding-top: 25px; }
  .project-intro { margin-top: 32px; }
  .project-intro h1 { font-size: clamp(32px, 9vw, 40px); overflow-wrap: anywhere; }
  .project-intro-top { gap: 10px; }
  .project-intro .eyebrow { font-size: 11px; }
  .project-award { font-size: 12px; padding: 6px 9px; }
  .project-lead { font-size: 16px; }
  .project-draft-note { font-size: 13px; }
  .project-cover .project-visual { min-height: 210px; aspect-ratio: 1.6; }
  .project-cover .visual-caption, .project-cover .visual-index { font-size: 8px; margin: 0; }
  .project-facts { grid-template-columns: 1fr; padding: 16px 0; gap: 12px; margin-bottom: 28px; }
  .project-facts > div { display: grid; grid-template-columns: 82px minmax(0, 1fr); align-items: baseline; gap: 12px; }
  .project-facts dt { margin: 0; }
  .project-facts dd { font-size: 15px; }
  .detail-heading { gap: 10px; margin-bottom: 18px; }
  .detail-heading h2 { font-size: 24px; }
  .detail-section > p, .detail-section li, .challenge p { font-size: 16px; }
  .detail-section { padding-bottom: 32px; margin-bottom: 32px; }
  .contribution-list li { gap: 10px; }
  .challenge summary { padding: 16px; gap: 12px; }
  .challenge h3 { font-size: 17px; }
  .challenge-content { padding: 0 16px 20px; }
  .demo-heading h2, .gallery-heading h2 { font-size: 22px; }
  .demo-chapters { gap: 8px; margin-top: 14px; }
  .demo-chapters button { flex-direction: column; align-items: flex-start; gap: 3px; padding: 10px; font-size: 13px; }
  .demo-chapters button > span { font-size: 11px; }
  .project-gallery { margin-top: 32px; }
  .screenshot-grid { grid-template-columns: 1fr; gap: 24px; }
  .award-proof { padding-inline: 14px; }
  .project-navigation { align-items: flex-start; gap: 20px; }
  .project-navigation > .text-link { font-size: 13px; white-space: nowrap; }
  .next-project { gap: 12px; }
  .next-project strong { font-size: 14px; overflow-wrap: anywhere; }
}
@media (max-width: 380px) {
  html { scroll-padding-top: 126px; }
  .header-inner { grid-template-columns: 1fr auto; gap: 6px 12px; }
  .header-actions { grid-column: 2; grid-row: 1; }
  .site-nav { grid-column: 1 / -1; grid-row: 2; justify-self: start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media print {
  :root { color: #111; background: #fff; }
  .container { width: 100%; }
  .site-header, .skip-link, .catalog-toolbar, .project-navigation, .detail-toc, .site-footer { display: none; }
  .hero, .section { padding-block: 24px; }
  .hero, .project-body { display: block; }
  .project-sidebar { position: static; }
  .project-card, .detail-section, .project-facts, .record-card { break-inside: avoid; }
  .project-visual { print-color-adjust: exact; }
}
