:root {
  --ink: #101828;
  --text: #344054;
  --muted: #667085;
  --line: #e4e7ec;
  --paper: #fff;
  --soft: #f8fafc;
  --accent: #175cd3;
  --accent-soft: #eff8ff;
  --max: 1080px;
  --shadow: 0 18px 44px rgba(16, 24, 40, .09);
  --header-bg: rgba(255,255,255,.9);
  --disabled: #a7adb6;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --ink: #eceeed;
  --text: #adb5b2;
  --muted: #adb5b2;
  --line: #444947;
  --paper: #101211;
  --soft: #202221;
  --accent: #adb5b2;
  --accent-soft: #272a29;
  --shadow: 0 12px 28px rgba(0,0,0,.26);
  --header-bg: rgba(16,18,17,.94);
  --disabled: #717d79;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: "Noto Sans KR", system-ui, sans-serif; line-height: 1.7; word-break: keep-all; transition: color .2s ease, background .2s ease; }
html[lang="en"] body { word-break: normal; }
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
a:focus-visible, button:focus-visible, [role="link"]:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.wrap { width: min(calc(100% - 40px), var(--max)); margin: 0 auto; }

.site-header { position: sticky; top: 0; z-index: 20; background: var(--header-bg); border-bottom: 1px solid var(--line); backdrop-filter: blur(14px); }
.header-inner { min-height: 62px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.name { white-space: nowrap; font-size: .875rem; font-weight: 750; letter-spacing: .015em; }
.nav { display: flex; align-items: center; gap: 20px; font-size: .875rem; color: var(--muted); }
.nav a { position: relative; padding: 20px 0; }
.nav a::after { content: ""; position: absolute; right: 0; bottom: 15px; left: 0; height: 2px; background: var(--ink); transform: scaleX(0); transform-origin: right; transition: transform .2s ease; }
.nav a:hover { color: var(--ink); }
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav .disabled { color: var(--disabled); cursor: default; }
.nav-utilities { display: flex; align-items: center; gap: 6px; margin-left: 2px; padding-left: 18px; border-left: 1px solid var(--line); }
.language-toggle, .theme-toggle { height: 32px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); color: var(--muted); background: transparent; cursor: pointer; transition: color .2s ease, border-color .2s ease, background .2s ease; }
.language-toggle { gap: 3px; padding: 3px; border-radius: 999px; }
.language-toggle span { min-width: 27px; height: 24px; display: grid; place-items: center; padding: 0 5px; border-radius: 999px; font-size: .68rem; font-weight: 700; line-height: 1; }
.language-toggle span.active { color: var(--paper); background: var(--ink); }
.theme-toggle { width: 32px; padding: 0; border-radius: 50%; }
.language-toggle:hover, .theme-toggle:hover { color: var(--ink); background: var(--soft); }
.theme-toggle svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .sun-icon { display: none; }
html[data-theme="dark"] .theme-toggle .sun-icon { display: block; }
html[data-theme="dark"] .theme-toggle .moon-icon { display: none; }
.menu-toggle { display: none; width: 42px; height: 42px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--paper); cursor: pointer; }
.menu-toggle span, .menu-toggle::before, .menu-toggle::after { content: ""; display: block; width: 17px; height: 1.5px; margin: 4px auto; background: var(--ink); transition: transform .2s, opacity .2s; }

main { padding: 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 30px; padding: 0; border: 0; }
h1, h2, h3, p, figure { margin-top: 0; }
h1 { margin-bottom: 0; font-size: clamp(2rem, 4.5vw, 3rem); line-height: 1.15; letter-spacing: -.05em; }
h2 { font-size: 1.35rem; line-height: 1.35; letter-spacing: -.03em; }
h3 { font-size: 1rem; }
.section-label, .eyebrow { color: var(--accent); font-size: .73rem; font-weight: 700; line-height: 1.4; letter-spacing: .08em; text-transform: uppercase; }
.project-section { padding: 64px 0; scroll-margin-top: 62px; background: var(--paper); }
.project-section.side-section { margin-top: 0; background: var(--soft); }
.project-group-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 24px; padding: 0; border: 0; }
.project-group-head h2, .section-head h2 { margin: 0; font-size: clamp(1.25rem, 2.5vw, 1.55rem); font-weight: 700; text-transform: none; letter-spacing: -.025em; }

.project-list { display: grid; gap: 52px; }
.project-row { position: relative; display: grid; grid-template-columns: minmax(0,1.08fr) minmax(280px,.92fr); gap: 0; padding: 30px 30px 30px 0; overflow: visible; border: 0; border-radius: 0; background: transparent; box-shadow: none; cursor: pointer; }
.project-row::before { display: none; }
.project-media { position: relative; z-index: 1; min-height: 320px; height: 100%; display: block; overflow: hidden; background: var(--soft); border: 0; }
.project-media img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .7s cubic-bezier(.2,.3,0,1); }
.project-row:hover .project-media img, .project-row:focus-within .project-media img { transform: scale(1.008); }
.project-overlay { position: absolute; inset: 0; display: grid; place-items: center; color: white; background: rgba(16,24,40,.72); opacity: 0; transition: opacity .25s ease; }
.project-overlay span { padding: 9px 14px; border: 1px solid rgba(255,255,255,.72); border-radius: 999px; font-size: .76rem; font-weight: 750; letter-spacing: .02em; transform: translateY(8px); transition: transform .25s ease; }
.project-row:hover .project-overlay, .project-row:focus-within .project-overlay { opacity: 1; }
.project-row:hover .project-overlay span, .project-row:focus-within .project-overlay span { transform: none; }
.project-copy { position: relative; z-index: 2; min-width: 0; display: flex; align-self: stretch; flex-direction: column; justify-content: center; margin-left: -30px; padding: 34px 34px 34px 38px; background: var(--paper); box-shadow: 0 6px 16px rgba(0,0,0,.06); transition: box-shadow .35s cubic-bezier(.2,.3,0,1), transform .35s cubic-bezier(.2,.3,0,1); }
.project-row:hover .project-copy, .project-row:focus-within .project-copy { box-shadow: 0 12px 28px rgba(0,0,0,.14); transform: translateX(-3px); }
.project-title { display: inline-flex; align-items: baseline; margin-bottom: 7px; font-size: clamp(1.15rem, 2vw, 1.38rem); font-weight: 750; letter-spacing: -.03em; }
.project-title:hover, .project-row:focus-within .project-title { color: var(--accent); }
.keywords { margin-bottom: 10px; color: var(--accent); font-size: .76rem; font-weight: 600; line-height: 1.6; letter-spacing: -.01em; }
.result { max-width: 650px; margin-bottom: 18px; color: var(--text); font-size: .94rem; }
.side-project-list { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 18px; }
.side-project-list .project-row { display: grid; grid-template-columns: minmax(0,1fr); grid-template-rows: auto 1fr; gap: 0; height: 100%; aspect-ratio: auto; padding: 0; overflow: hidden; background: var(--paper); box-shadow: 0 8px 22px rgba(16,24,40,.07); transition: box-shadow .24s ease, transform .24s ease; }
.side-project-list .project-row:hover, .side-project-list .project-row:focus-within { box-shadow: var(--shadow); transform: translateY(-2px); }
.side-project-list .project-copy { width: 100%; height: 100%; min-height: 0; display: block; margin: 0; padding: 16px 16px 18px; box-shadow: none; transform: none; }
.side-project-list .project-row:hover .project-copy, .side-project-list .project-row:focus-within .project-copy { box-shadow: none; transform: none; }
.side-project-list .project-media { width: 100%; min-height: 0; height: auto; aspect-ratio: 16/9; border: 0; }
.side-project-list .project-title { margin-bottom: 5px; font-size: .98rem; }
.side-project-list .keywords { margin-bottom: 7px; font-size: .65rem; line-height: 1.5; }
.side-project-list .result { display: -webkit-box; margin-bottom: 0; overflow: hidden; font-size: .78rem; line-height: 1.55; -webkit-box-orient: vertical; -webkit-line-clamp: 4; }
.project-data-error { margin: 0; padding: 24px; color: var(--muted); background: var(--paper); border-radius: 10px; }

.about { padding: 72px 0 84px; background: var(--paper); }
.about-grid { display: grid; grid-template-columns: minmax(220px, .8fr) 1.5fr; gap: clamp(38px, 8vw, 100px); align-items: start; }
.about-name { display: flex; width: max-content; max-width: 100%; flex-direction: column; align-items: center; min-width: 0; }
.about-name h3 { margin: 0; font-size: clamp(1.8rem, 4vw, 2.6rem); text-align: center; letter-spacing: -.045em; }
.profile-photo { display: block; width: min(216px, 100%); aspect-ratio: 1; margin-top: 28px; flex: none; border-radius: 50%; background-image: url('assets/images/profile-cropped.jpg?v=20260808-3'); background-position: 59% 37%; background-repeat: no-repeat; background-size: 205%; box-shadow: 0 12px 28px rgba(16,24,40,.12); }
.profile-social { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 18px; }
.social-icon { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid transparent; border-radius: 50%; background: transparent; transition: transform .2s ease, background .2s ease; }
.social-icon:hover { background: var(--soft); transform: translateY(-2px); }
.social-icon[aria-label="Email"] { color: #ea4335; }
.social-icon[aria-label="GitHub"] { color: #181717; }
.social-icon[aria-label="LinkedIn"] { color: #0a66c2; }
.social-icon[aria-label="YouTube"] { color: #f00; }
html[data-theme="dark"] .social-icon[aria-label="GitHub"] { color: #f2f4f7; }
.social-icon svg { width: 17px; height: 17px; fill: currentColor; }
.social-icon[aria-label="Email"] svg { fill: none; stroke: currentColor; stroke-width: 1.7; }
.social-icon .play { fill: #fff; stroke: none; }
.about-facts { display: grid; gap: 20px; margin: 0; }
.about-facts > div { display: grid; grid-template-columns: 110px 1fr; gap: 22px; padding: 24px; border: 0; border-radius: 12px; background: var(--soft); }
.about-facts dt { color: var(--muted); font-size: .7rem; font-weight: 700; line-height: 1.6; letter-spacing: .06em; text-transform: uppercase; }
.about-facts dd { margin: 0; font-size: .95rem; font-weight: 650; }
.entry-list { display: grid; gap: 28px; }
.entry-list > .org-entry + .org-entry { padding-top: 0; border: 0; }
.org-entry { display: flex; align-items: flex-start; gap: 14px; }
.org-entry img { width: 44px; height: 50px; flex: 0 0 44px; object-fit: contain; }
.org-icon { width: 44px; height: 50px; flex: 0 0 44px; display: grid; place-items: center; }
.org-entry .rokaf-logo { width: 44px; height: 50px; max-width: none; flex: none; object-fit: contain; }
.org-entry > span { display: grid; gap: 2px; min-width: 0; }
.org-entry strong { color: var(--ink); font-size: .9rem; }
.org-entry small { color: var(--muted); font-size: .76rem; font-weight: 400; line-height: 1.6; }
.site-footer { padding: 28px 0; border-top: 0; color: var(--muted); background: var(--soft); font-size: .78rem; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.social-links { display: flex; gap: 8px; }
.social-links a { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid transparent !important; border-radius: 50%; outline: 0; background: transparent; transition: transform .2s, box-shadow .2s; }
.social-links a:hover { transform: translateY(-3px); box-shadow: 0 8px 18px rgba(16,24,40,.12); }
.social-links a[aria-label="Email"] { color: #EA4335; }
.social-links a[aria-label="GitHub"] { color: #181717; }
.social-links a[aria-label="LinkedIn"] { color: #0A66C2; }
.social-links a[aria-label="YouTube"] { color: #FF0000; }
.social-links svg { width: 18px; height: 18px; fill: currentColor; stroke: none; }
.social-links a:first-child svg { fill: none; stroke: currentColor; stroke-width: 1.7; }
.social-links .play { fill: white; }

/* Case study */
.reading-progress { position: fixed; top: 61px; left: 0; z-index: 21; width: 0; height: 3px; background: #175cd3; }
html[data-theme="dark"] .reading-progress { background: #8ab4f8; }
.case-page { --case-content-width: 900px; --project-accent-on-light: #175cd3; --project-accent-on-dark: #8ab4f8; --project-skills-color: #aecbfa; --accent: var(--project-accent-on-light); --accent-soft: #eff8ff; padding: 38px 0 84px; }
html[data-theme="dark"] .case-page { --accent: var(--project-accent-on-dark); --accent-soft: #102a56; }
.back { width: 42px; height: 42px; display: grid; place-items: center; margin-bottom: 20px; border: 1px solid var(--line); border-radius: 50%; color: var(--muted); transition: color .2s, border-color .2s, transform .2s; }
.back svg { width: 21px; height: 21px; fill: currentColor; }
.back:hover { color: var(--ink); border-color: var(--muted); transform: translateX(-3px); }
.project-header { max-width: none; margin-bottom: 54px; padding: clamp(30px, 6vw, 64px); color: #fff; background: #303633; }
html[data-theme="dark"] .project-header { background: #242826; }
.project-header h1 { max-width: 850px; margin-bottom: 24px; color: #fff; font-size: clamp(1.75rem, 4vw, 2.65rem); }
.meta { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-bottom: 14px; }
.meta span { padding: 0; border: 0; color: #d3d8d5; background: transparent; font-size: .83rem; }
.meta strong { margin-right: 4px; color: #fff; }
.project-skills { margin: 0 0 20px; color: var(--project-skills-color); font-size: .86rem; font-weight: 700; }
.project-repository { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.38); border-radius: 50%; color: #fff; transition: color .2s, border-color .2s, background .2s, transform .2s; }
.project-repository svg { width: 20px; height: 20px; fill: currentColor; }
.project-repository:hover { color: #303633; border-color: #fff; background: #fff; transform: translateY(-2px); }
.project-overview, .demo-section, .case-layout { width: 100%; max-width: var(--case-content-width); margin-right: auto; margin-left: auto; }
.project-overview { margin-bottom: 56px; }
.project-overview h2 { margin-bottom: 16px; font-size: clamp(1.35rem, 2.5vw, 1.75rem); }
.lead { margin-bottom: 16px; color: var(--text); font-size: clamp(1rem, 2vw, 1.14rem); }
.overview-context { color: var(--text); }
.overview-note { margin-top: 28px; padding: 20px 22px; border-left: 3px solid var(--accent); background: var(--accent-soft); }
.overview-note h3 { margin: 0 0 10px; font-size: 1rem; }
.overview-note p { margin: 0; color: var(--text); font-size: .86rem; line-height: 1.75; }
.overview-note p + p { margin-top: 9px; }
.demo-section { margin-bottom: 64px; }
.header-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 9px 15px; border: 1px solid var(--ink); border-radius: 7px; font-size: .82rem; font-weight: 700; transition: transform .2s, box-shadow .2s, color .2s, background .2s; }
.button.primary { color: white; background: var(--ink); }
.button:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(16,24,40,.14); }
.button.primary:hover { background: var(--accent); border-color: var(--accent); }
.feature-media { position: relative; margin: 0; overflow: hidden; border: 1px solid var(--line); background: #0b1220; }
.feature-media img, .feature-media video { width: 100%; max-height: 620px; object-fit: cover; display: block; }
.feature-media figcaption { padding: 11px 14px; border-top: 1px solid var(--line); color: var(--muted); background: var(--paper); font-size: .72rem; font-weight: 650; line-height: 1.55; }
.portrait-evidence { max-width: 360px; margin: 24px auto; background: var(--soft); }
.portrait-evidence img { max-height: 760px; object-fit: contain; background: #12171e; }
.evidence-video { max-width: 720px; margin: 24px auto; background: #0b1220; }
.case-section .evidence-video video { width: 100%; max-height: 760px; aspect-ratio: 9 / 16; margin: 0; object-fit: contain; background: #0b1220; }
.media-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 22px 0; }
.media-grid .feature-media { min-width: 0; background: var(--soft); }
.media-grid .feature-media img { width: 100%; aspect-ratio: 16 / 9; object-fit: contain; background: #fff; }
.pr-comparison .feature-media img { aspect-ratio: 6 / 5; }
.pr-comparison figcaption { padding: 10px 12px; border-top: 1px solid var(--line); color: var(--muted); background: var(--paper); font-size: .72rem; font-weight: 650; letter-spacing: .01em; }
.media-stack { display: grid; gap: 28px; margin: 24px 0; }
.media-stack .feature-media { width: 100%; background: var(--soft); }
.media-stack .feature-media img { width: 100%; max-height: none; object-fit: contain; background: #fff; }
.hackathon-wide-media, .hackathon-team-media, .hackathon-act-media { margin: 24px 0; background: var(--paper); }
.hackathon-wide-media img { max-height: 560px; object-fit: contain; background: #0b1220; }
.hackathon-team-media img { max-height: 640px; object-fit: contain; background: var(--soft); }
.hackathon-act-media img { max-height: none; object-fit: contain; background: #fff; }
.hackathon-wide-media figcaption, .hackathon-team-media figcaption { padding: 11px 14px; border-top: 1px solid var(--line); color: var(--muted); background: var(--paper); font-size: .72rem; font-weight: 650; line-height: 1.55; }
.video-embed { position: relative; width: 100%; aspect-ratio: 16 / 9; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.media-placeholder { aspect-ratio: 16/9; display: grid; place-content: center; gap: 6px; text-align: center; color: var(--muted); background: var(--soft); border: 1px dashed #b7bec8; }
.media-placeholder strong { color: var(--ink); }
.case-study { min-width: 0; }
.case-section { padding: 0 0 58px; margin-bottom: 58px; border-bottom: 1px solid var(--line); }
.case-section:last-child { margin-bottom: 0; border-bottom: 0; }
.case-heading { display: flex; align-items: baseline; margin-bottom: 22px; }
.case-number { display: none; }
.case-heading h2 { margin: 0; font-size: clamp(1.3rem, 2.5vw, 1.7rem); }
.case-section p { color: var(--text); }
.case-section h3 { margin: 26px 0 7px; }
.case-section ul { padding-left: 20px; color: var(--text); }
.case-section img, .case-section video { max-width: 100%; height: auto; }
.case-section video { display: block; width: 100%; margin: 22px 0; background: #0b1220; }
.case-section pre { max-width: 100%; overflow-x: auto; }
.case-section a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.role-grid, .metric-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
.info-card { padding: 17px; border: 1px solid var(--line); border-radius: 8px; background: var(--soft); }
.info-card strong { display: block; margin-bottom: 4px; font-size: .9rem; }
.info-card span { color: var(--muted); font-size: .78rem; }
.metric-card { padding: 19px; border: 1px solid #b2ccff; border-radius: 8px; background: var(--accent-soft); }
.metric-value { display: block; color: var(--accent); font-size: 1.35rem; font-weight: 750; letter-spacing: -.03em; }
.metric-label { color: var(--muted); font-size: .74rem; }
.diagram { display: flex; align-items: stretch; gap: 10px; overflow-x: auto; margin-top: 22px; padding: 20px; background: var(--soft); border: 1px solid var(--line); border-radius: 8px; }
.diagram-node { min-width: 125px; padding: 16px 12px; display: grid; place-items: center; text-align: center; background: var(--paper); border: 1px solid var(--line); border-radius: 5px; font-size: .78rem; font-weight: 650; }
.diagram-node.owner { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.diagram-arrow { display: grid; place-items: center; color: var(--muted); }
.system-architecture { display: grid; grid-template-columns: minmax(0,.8fr) 150px minmax(0,1.35fr); gap: 18px; align-items: stretch; margin: 24px 0; padding: 22px; border: 1px solid var(--line); border-radius: 10px; background: var(--soft); }
.system-domain { min-width: 0; padding: 18px; border: 1px solid var(--line); border-radius: 9px; }
.service-domain { background: #eef4ff; }
.robot-domain { background: #fff4e8; }
html[data-theme="dark"] .service-domain, html[data-theme="dark"] .robot-domain { background: var(--paper); }
.system-domain h3 { margin: 0 0 16px; text-align: center; font-size: .95rem; }
.system-module { position: relative; min-width: 0; padding: 15px 30px 15px 14px; display: grid; gap: 3px; border: 1px solid #bfc6cf; border-radius: 8px; background: var(--paper); }
.system-module + .system-module { margin-top: 14px; }
.system-module::after { content: "👤"; position: absolute; right: 8px; bottom: 6px; filter: grayscale(1); font-size: .7rem; opacity: .58; }
.system-module strong { font-size: .79rem; }
.system-module small { color: var(--muted); font-size: .64rem; line-height: 1.45; }
.system-core { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.bidirectional-links { display: grid; align-content: center; gap: 52px; }
.bidirectional-links div { display: grid; justify-items: center; gap: 2px; text-align: center; }
.bidirectional-links span { color: var(--muted); font-size: .62rem; }
.bidirectional-links b { color: var(--accent); font-size: 1.55rem; line-height: 1; }
.internal-links { margin: 7px 0; color: var(--accent); text-align: center; font-size: 1.05rem; font-weight: 750; }
.robot-modules { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
.robot-modules .system-module { margin: 0; }
.module-parts { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.module-parts span { padding: 3px 6px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: var(--soft); font-size: .52rem; line-height: 1.2; }
.flow { display: grid; grid-template-columns: 88px 1fr; gap: 8px 18px; }
.flow dt { color: var(--accent); font-size: .78rem; font-weight: 750; }
.flow dd { margin: 0 0 16px; color: var(--text); }
.note { padding: 14px 16px; border-left: 3px solid var(--accent); background: var(--accent-soft); color: var(--text); font-size: .85rem; }
.repo-link { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.evidence-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 20px 0; }
.constraint-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.evidence-card { padding: 17px; border: 1px solid var(--line); border-radius: 8px; background: var(--soft); }
.evidence-card strong { display: block; margin: 8px 0 5px; font-size: .9rem; }
.evidence-card p { margin: 0; color: var(--muted); font-size: .78rem; line-height: 1.65; }
.status-tag { display: inline-flex; padding: 3px 7px; border-radius: 999px; font-size: .64rem; font-weight: 750; line-height: 1.4; letter-spacing: .04em; }
.status-confirmed { color: #067647; background: #ecfdf3; }
.status-demo { color: #175cd3; background: #eff8ff; }
.status-needed { color: #b54708; background: #fffaeb; }
.status-tag.warning { color: #b54708; background: #fffaeb; }
html[data-theme="dark"] .status-confirmed { color: #75e0a7; background: #173b2a; }
html[data-theme="dark"] .status-demo { color: #84adff; background: #102a56; }
html[data-theme="dark"] .status-needed { color: #fec84b; background: #4e3511; }
html[data-theme="dark"] .status-tag.warning { color: #fec84b; background: #4e3511; }
.formula-block { margin: 14px 0 20px; padding: 16px 18px; overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: var(--soft); font-family: "SFMono-Regular", Consolas, monospace; font-size: .82rem; white-space: nowrap; }
.algorithm-label { margin: 22px 0 0; padding: 10px 16px; border: 1px solid var(--line); border-bottom: 1px solid #303846; border-radius: 8px 8px 0 0; background: #111827; color: #aeb9c8; font-family: "SFMono-Regular", Consolas, monospace; font-size: .68rem; letter-spacing: .04em; text-transform: uppercase; }
.algorithm-label + pre { margin: 0 0 22px; padding: 18px; overflow-x: auto; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 8px 8px; background: #111827; color: #e5edf7; font-family: "SFMono-Regular", Consolas, monospace; font-size: .72rem; line-height: 1.7; tab-size: 2; }
.algorithm-label + pre code { color: inherit; font: inherit; }
.gap-panel { margin-top: 20px; padding: 20px; border: 1px solid #fec84b; border-radius: 8px; background: #fffaeb; }
.gap-panel h3 { margin: 0 0 10px; color: #93370d; }
.gap-panel ul { margin: 0; color: #7a2e0e; }
.gap-panel li + li { margin-top: 8px; }
html[data-theme="dark"] .gap-panel { border-color: #b54708; background: #3b2a12; }
html[data-theme="dark"] .gap-panel h3, html[data-theme="dark"] .gap-panel ul { color: #fedf89; }
.comparison-wrap { overflow-x: auto; margin-top: 18px; }
.comparison-table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: .8rem; }
.comparison-table th, .comparison-table td { padding: 11px 12px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.comparison-table th { color: var(--ink); background: var(--soft); }
.comparison-table td { color: var(--text); }
.limitation { margin-top: 18px; padding: 14px 16px; border-left: 3px solid #f79009; background: #fffaeb; color: #7a2e0e; font-size: .84rem; }
html[data-theme="dark"] .limitation { background: #3b2a12; color: #fedf89; }

@media (max-width: 760px) {
  .wrap { width: min(calc(100% - 28px), var(--max)); }
  .header-inner { min-height: 58px; }
  .name { font-size: .875rem; }
  .menu-toggle { display: block; }
  .menu-open .menu-toggle span { opacity: 0; }
  .menu-open .menu-toggle::before { transform: translateY(5.5px) rotate(45deg); }
  .menu-open .menu-toggle::after { transform: translateY(-5.5px) rotate(-45deg); }
  .nav { position: fixed; top: 59px; right: 0; left: 0; display: none; align-content: start; gap: 0; padding: 12px 20px 24px; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .menu-open .nav { display: grid; }
  .nav a, .nav .disabled { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: .875rem; }
  .nav a::after { display: none; }
  main { padding-top: 0; }
  .section-head { align-items: baseline; }
  .project-section { padding: 44px 0; }
  .project-list { gap: 36px; }
  .project-row { display: block; padding: 0 0 20px; background: transparent; }
  .project-media { min-height: 0; height: auto; aspect-ratio: 16/9; }
  .project-copy { display: block; margin: 0 14px; padding: 24px; box-shadow: 0 6px 16px rgba(0,0,0,.07); }
  .project-row:hover .project-copy, .project-row:focus-within .project-copy { transform: none; }
  .side-project-list { grid-template-columns: 1fr; }
  .side-project-list .project-row { display: grid; height: auto; aspect-ratio: auto; padding: 0; }
  .project-overlay { align-items: end; justify-items: end; padding: 12px; background: linear-gradient(transparent 45%, rgba(16,24,40,.74)); opacity: 1; }
  .project-overlay span { padding: 6px 10px; font-size: .68rem; transform: none; }
  .about { padding: 52px 0 64px; }
  .nav-utilities { justify-content: flex-start; gap: 8px; margin: 12px 0 0; padding: 16px 0 0; border-top: 1px solid var(--line); border-left: 0; }
  .language-toggle, .theme-toggle { height: 36px; }
  .theme-toggle { width: 36px; }
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .profile-photo { width: 180px; margin-top: 22px; }
  .about-facts > div { grid-template-columns: 1fr; gap: 14px; padding: 20px; }
  .footer-inner { align-items: flex-start; flex-direction: column-reverse; }
  .reading-progress { top: 57px; }
  .case-page { padding: 24px 0 60px; }
  .back { width: 38px; height: 38px; margin-bottom: 16px; }
  .project-header { margin-right: -14px; margin-bottom: 42px; margin-left: -14px; padding: 30px 24px; }
  .project-header h1 { margin-bottom: 20px; }
  .meta { display: grid; grid-template-columns: 1fr 1fr; gap: 7px 16px; }
  .project-overview { margin-bottom: 44px; }
  .demo-section { margin-bottom: 52px; }
  .role-grid, .metric-grid, .evidence-grid, .media-grid { grid-template-columns: 1fr; }
  .system-architecture { grid-template-columns: 1fr; padding: 15px; }
  .bidirectional-links { gap: 8px; }
  .bidirectional-links div { display: flex; align-items: center; justify-content: center; gap: 10px; }
  .robot-modules { grid-template-columns: 1fr; }
  .case-section { padding-bottom: 44px; margin-bottom: 44px; }
  .flow { grid-template-columns: 70px 1fr; }
}

@media (min-width: 761px) and (max-width: 1199px) {
  .side-project-list { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .side-project-list .project-row { height: auto; aspect-ratio: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
