/* ▓▓ JOOWON.EXE — retro pixel portfolio ▓▓ */

:root {
  --bg: #1a1c2c;
  --bg-panel: #29366f;
  --bg-deep: #20263e;
  --fg: #f4f4f4;
  --cyan: #73eff7;
  --green: #a7f070;
  --yellow: #ffcd75;
  --muted: #94b0c2;
  --dim: #566c86;
  --body-text: #c8d2de;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: 'Galmuri11', 'Pretendard Variable', Pretendard, sans-serif;
}

a { color: var(--cyan); text-decoration: none; }
a:hover { color: var(--green); }

::selection { background: var(--cyan); color: var(--bg); }

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

@keyframes blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
@keyframes fadeup { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }

/* CRT scanlines */
.scanlines {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 60;
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .10) 0 2px, transparent 2px 4px);
}

/* ▓▓ NAV ▓▓ */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--bg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 16px 40px;
  border-bottom: 4px solid var(--fg);
}

.nav-logo { color: var(--cyan); font-size: 15px; }
.nav-logo:hover { color: var(--green); }

.nav-right {
  display: flex;
  gap: 22px;
  align-items: center;
  font-size: 13px;
  color: var(--muted);
  flex-wrap: wrap;
}

.nav-links { display: flex; gap: 22px; }
.nav-links button { color: var(--muted); }
.nav-links button:hover { color: var(--fg); }

.lang-switch { display: flex; border: 2px solid var(--fg); }
.lang-switch button { padding: 3px 8px; color: var(--fg); }
.lang-switch button.active { background: var(--fg); color: var(--bg); }

/* ▓▓ HOME ▓▓ */
.home { max-width: 1100px; margin: 0 auto; }

.section {
  border-top: 4px solid var(--fg);
  padding: 32px 40px;
}

.section-title { font-size: 14px; color: var(--yellow); margin-bottom: 18px; }

/* hero */
.hero {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 48px;
  padding: 64px 40px;
  align-items: center;
  animation: fadeup .5s ease both;
}

.hero-tag { font-size: 13px; color: var(--green); margin-bottom: 16px; }

.hero-name {
  margin: 0;
  font-size: 46px;
  font-weight: normal;
  line-height: 1.35;
  min-height: 62px;
}

.cursor {
  display: inline-block;
  width: 14px;
  height: 38px;
  background: var(--cyan);
  margin-left: 6px;
  vertical-align: -4px;
  animation: blink 1s step-end infinite;
}

.hero-level { font-size: 30px; line-height: 1.4; color: var(--cyan); margin-top: 6px; }

.hero-intro {
  margin: 20px 0 0;
  font-size: 14px;
  line-height: 1.9;
  color: var(--muted);
  max-width: 480px;
}

.stats {
  margin-top: 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 560px;
}

.stat-head { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 6px; font-family: var(--font-pixel); font-size: .75rem; line-height: 1.4; }
.stat-head span:last-child { flex: none; color: var(--muted); }
.stat-bar { height: 16px; border: 2px solid var(--fg); padding: 2px; background: var(--bg-deep); }
.stat-fill { display: block; height: 100%; width: var(--stat-value); background: var(--cyan); transform-origin: left; animation: stat-load .8s steps(10, end) var(--stat-delay) both; }
.stat:nth-child(2) .stat-fill { background: var(--green); }
.stat:nth-child(3) .stat-fill { background: var(--yellow); }

@keyframes stat-load { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.photo-frame { border: 4px solid var(--fg); padding: 8px; background: var(--bg-panel); }
.photo-slot { width: 100%; height: 300px; }
.photo-caption { text-align: center; font-size: 12px; margin-top: 8px; color: var(--muted); }

/* image placeholder */
.img-slot {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px dashed var(--dim);
  color: var(--dim);
  font-size: 12px;
  background: var(--bg-deep);
}

.img-fill { width: 100%; height: 100%; object-fit: cover; display: block; }

/* inventory */
.chips { display: flex; flex-wrap: wrap; gap: 10px; font-size: 12px; }
.chip { --c: var(--muted); min-height: 38px; display: inline-flex; align-items: center; gap: 9px; border: 2px solid var(--c); color: var(--c); padding: 5px 11px 5px 6px; cursor: default; }
.chip:hover { background: var(--c); color: var(--bg); }
.collab { font-size: 12px; color: var(--dim); margin-top: 14px; }

/* career */
.careers { display: flex; flex-direction: column; gap: 18px; }
.career-card { border: 2px solid var(--dim); }

.career-head {
  background: var(--bg-panel);
  border-bottom: 2px solid var(--dim);
  padding: 18px 22px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
}

.career-title-row { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.career-company { font-size: 18px; color: var(--fg); }
.career-role { font-size: 12px; color: var(--cyan); }
.career-project { font-size: 12px; color: var(--muted); margin-top: 6px; }
.career-period { text-align: right; font-size: 12px; color: var(--muted); }

.quests { display: flex; flex-direction: column; font-size: 13px; padding: 8px 0; }

.quest {
  padding: 11px 22px;
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 16px;
  align-items: baseline;
  transition: background .12s;
}
.quest:hover { background: var(--bg-deep); }
.quest-date { color: var(--green); white-space: nowrap; font-size: 12px; }
.quest-title { color: var(--fg); }
.quest-desc { color: var(--muted); }

/* projects */
.proj-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }

.proj-card {
  display: block;
  border: 2px solid var(--fg);
  background: var(--bg-panel);
  color: inherit;
  transition: transform .12s, box-shadow .12s;
}
.proj-card:hover { transform: translate(-3px, -3px); box-shadow: 6px 6px 0 var(--cyan); color: inherit; }

.proj-thumb { height: 150px; border-bottom: 2px solid var(--fg); }
.proj-body { padding: 16px 20px; }
.proj-title-row { display: flex; justify-content: space-between; align-items: baseline; }
.proj-name { font-size: 16px; }
.proj-enter { font-size: 11px; color: var(--cyan); }
.proj-desc { font-size: 12px; color: var(--muted); margin-top: 6px; }

.proj-locked {
  border: 2px dashed var(--dim);
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--dim);
  min-height: 150px;
}
.proj-locked .lock { font-size: 22px; }

/* achievements */
.cert-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

.cert-card {
  border: 2px solid var(--yellow);
  padding: 20px;
  text-align: center;
  transition: transform .12s;
}
.cert-card:hover { transform: translateY(-3px); }
.cert-icon { font-size: 26px; }
.cert-name { font-size: 15px; margin-top: 10px; }
.cert-meta { font-size: 11px; color: var(--muted); margin-top: 6px; }

/* contact */
.contact { padding: 40px 40px 48px; }

.contact-box {
  border: 4px solid var(--fg);
  background: var(--bg-panel);
  padding: 28px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  font-size: .875rem;
  text-align: center;
}
.contact-label { color: var(--muted); font-size: .75rem; margin-bottom: 8px; }

.footer { text-align: center; font-size: .8125rem; color: var(--muted); margin-top: 24px; }
.footer .marker { animation: blink 1.2s step-end infinite; color: var(--green); }

/* ▓▓ PROJECT DETAIL ▓▓ */
.detail {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 40px 124px;
  animation: fadeup .35s ease both;
}

.btn-back {
  display: inline-block;
  border: 2px solid var(--dim);
  color: var(--muted);
  padding: 8px 16px;
  font-size: .75rem;
}
.btn-back:hover { border-color: var(--cyan); color: var(--cyan); }

.detail-label { margin-top: 36px; font-size: 13px; color: var(--green); }
.detail-title { font-size: 40px; font-weight: normal; margin: 10px 0 0; }

.link-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--cyan);
  color: var(--bg);
  border: 2px solid var(--cyan);
  padding: 12px 20px;
  box-shadow: 4px 4px 0 var(--bg-panel);
  transition: transform .12s, box-shadow .12s;
}
.link-btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--bg-panel); color: var(--bg); }

.panel { border: 2px solid var(--dim); padding: 22px 26px; margin-top: 16px; }
.panel:first-of-type { margin-top: 32px; }
.panel-title { font-size: 13px; color: var(--yellow); margin-bottom: 14px; }

.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.feature { border: 2px solid var(--bg-panel); background: var(--bg-deep); padding: 14px 16px; }
.feature-name { font-size: 13px; color: var(--cyan); }
.feature-desc { font-size: 12px; line-height: 1.7; color: var(--muted); margin-top: 6px; }

.troubles { display: flex; flex-direction: column; gap: 14px; }
.trouble { border-left: 4px solid var(--yellow); background: var(--bg-deep); padding: 14px 18px; }
.trouble-problem { font-size: 13px; color: var(--fg); }
.trouble-solution { font-size: 12.5px; line-height: 1.8; color: var(--muted); margin-top: 8px; }

.stack-chips { display: flex; flex-wrap: wrap; gap: 10px; font-size: 12px; }
.stack-chip { border: 2px solid var(--cyan); color: var(--cyan); padding: 6px 12px; }

.shot-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.shot { height: 220px; }

.outcome-text { font-size: 13px; line-height: 1.8; color: var(--body-text); }

.panel-todo { border-style: dashed; font-size: 12px; color: var(--dim); padding: 18px 26px; }

.detail-nav {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 55;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 12px max(40px, calc((100vw - 900px) / 2));
  padding-bottom: calc(12px + env(safe-area-inset-bottom));
  border-top: 2px solid var(--dim);
  background: var(--bg-deep);
  box-sizing: border-box;
  transform: translateX(-50%);
}
.btn-pager[data-pager="next"] { margin-left: auto; }
.btn-pager { border: 2px solid var(--cyan); background: var(--bg); color: var(--cyan); padding: 8px 16px; font-size: 12px; box-shadow: 4px 4px 0 rgba(0, 0, 0, .4); white-space: nowrap; }
.btn-pager:hover { background: var(--cyan); color: var(--bg); }

/* scroll to top */
.scroll-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 55;
  gap: 8px;
  width: auto;
  min-width: 48px;
  height: 48px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  border: 2px solid var(--cyan);
  color: var(--cyan);
  font-size: .75rem;
  white-space: nowrap;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, .4);
  transition: transform .12s;
}
#app:has(.detail-nav) + .scroll-top { bottom: calc(94px + env(safe-area-inset-bottom)); }
.scroll-top > [aria-hidden="true"] { font-size: 18px; }
.scroll-top:hover { background: var(--cyan); color: var(--bg); transform: translate(-2px, -2px); }

/* ▓▓ RESPONSIVE ▓▓ */
@media (max-width: 860px) {
  .nav { padding: 12px 20px; flex-wrap: wrap; }
  .nav-right { gap: 14px; }
  .nav-links { gap: 14px; }

  .hero {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 40px 20px;
  }
  .hero-name { font-size: 36px; min-height: 50px; }
  .cursor { height: 30px; }
  .hero-level { font-size: 24px; }
  .hero-photo { max-width: 300px; }

  .section { padding: 28px 20px; }
  .contact { padding: 32px 20px 40px; }

  .quest { grid-template-columns: 1fr; gap: 4px; }

  .proj-grid,
  .cert-grid,
  .contact-box,
  .feature-grid,
  .shot-grid { grid-template-columns: 1fr; }

  .detail { padding: 28px 20px 48px; }
  .detail-title { font-size: 30px; }
}

/* ▓▓ V2 · outcome-first save file ▓▓ */
:root {
  --font-pixel: 'Galmuri11', monospace;
  --font-body: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, sans-serif;
  --line-soft: #34445f;
  --focus: #ffcd75;
}

html { scroll-behavior: smooth; }

body {
  min-width: 320px;
  overflow-x: hidden;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  word-break: keep-all;
}

:lang(ja) { word-break: normal; }

button,
.nav,
.hero-tag,
.hero-name,
.hero-level,
.section-title,
.achievement-hud,
.quest-ribbon,
.proj-name,
.proj-enter,
.contact-label,
.detail-label,
.detail-title,
.panel-title,
.window-bar,
.link-btn,
.btn-back,
.btn-pager,
.stack-chip,
.outcome-status,
.photo-caption,
.pixel-scene,
.pixel-avatar { font-family: var(--font-pixel); }

ul, ol { margin: 0; padding: 0; list-style: none; }
p, figure { margin: 0; }

:where(a, button):focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

#app:focus { outline: none; }

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  transform: translateY(-160%);
  padding: 12px 16px;
  border: 3px solid var(--fg);
  background: var(--yellow);
  color: var(--bg);
  font-family: var(--font-pixel);
  transition: transform .12s;
}
.skip-link:focus { transform: translateY(0); color: var(--bg); }

.scanlines { opacity: .72; }

.nav {
  min-height: 68px;
  padding: 10px max(24px, calc((100vw - 1180px) / 2));
  border-bottom-width: 3px;
  box-shadow: 0 6px 0 rgba(0, 0, 0, .18);
}
.nav-logo,
.nav-links button,
.lang-switch button,
.menu-toggle { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
.nav-logo { padding-inline: 8px; font-size: .875rem; white-space: nowrap; }
.nav-right { gap: 20px; flex-wrap: nowrap; }
.nav-links { gap: 4px; }
.nav-links button { padding: 0 12px; font-size: .8125rem; position: relative; }
.nav-links button[aria-current="true"] { color: var(--green); }
.nav-links button[aria-current="true"]::before { content: '▶'; margin-right: 6px; }
.lang-switch { border-color: var(--dim); }
.lang-switch button { min-width: 46px; padding: 0 8px; font-size: .75rem; }
.lang-switch button[aria-pressed="true"] { background: var(--fg); color: var(--bg); }
.menu-toggle { display: none; gap: 8px; padding: 0 10px; color: var(--cyan); border: 2px solid var(--dim); font-size: .75rem; }

.home { max-width: 1180px; }
.section { padding: 34px 48px; border-top: 0; scroll-margin-top: 84px; }
.section-minor { border-top: 1px solid var(--line-soft); }
.section-standard { border-top: 3px solid var(--dim); }
.section-major { border-top: 4px solid var(--fg); }
.section-title { display: flex; align-items: center; gap: 18px; margin: 0 0 20px; font-size: 1.5rem; font-weight: 400; }
.section-title::after { content: ''; flex: 1 0 48px; height: 8px; background: repeating-linear-gradient(90deg, currentColor 0 10px, transparent 10px 20px); opacity: .3; }
.project-section-head .section-title,
.blog-head .section-title { flex: 1; }

.hero {
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 64px;
  min-height: 560px;
  padding: 48px 48px 40px;
  scroll-margin-top: 84px;
}
.hero-copy { min-width: 0; }
.hero-tag { margin: 0 0 18px; font-size: .875rem; }
.hero-name { min-height: 72px; font-size: clamp(2.5rem, 6vw, 4rem); line-height: 1.2; letter-spacing: -.04em; }
.hero-level { margin-top: 8px; font-size: clamp(1.25rem, 3vw, 1.75rem); line-height: 1.4; color: var(--cyan); }
.hero-intro { max-width: 620px; margin-top: 18px; font-size: 1rem; line-height: 1.85; color: var(--body-text); }
.cursor { width: 12px; height: .82em; vertical-align: -.03em; }

.achievement-hud { max-width: 720px; margin-top: 34px; border: 3px solid var(--fg); background: var(--bg-deep); box-shadow: 6px 6px 0 var(--bg-panel); }
.achievement-hud h2 { margin: 0; padding: 8px 12px; background: var(--fg); color: var(--bg); font-size: .8125rem; font-weight: 400; letter-spacing: .04em; }
.metrics { display: grid; grid-template-columns: repeat(3, 1fr); }
.metric { min-width: 0; padding: 18px 16px; border-right: 2px solid var(--dim); }
.metric:last-child { border-right: 0; }
.metric strong { display: block; color: var(--green); font-size: 1.375rem; line-height: 1.2; }
.metric:nth-child(2) strong { color: var(--cyan); }
.metric:nth-child(3) strong { color: var(--yellow); }
.metric span { display: block; margin-top: 8px; color: var(--muted); font-size: .75rem; line-height: 1.5; word-break: keep-all; }

.hero-photo { align-self: center; }
.photo-frame { padding: 10px; border-width: 3px; box-shadow: 8px 8px 0 var(--bg-deep); }
.photo-slot { height: 320px; }
.photo-caption { margin-top: 14px; font-size: .75rem; }
.pixel-avatar { height: 100%; display: grid; place-items: center; align-content: center; gap: 20px; overflow: hidden; background: linear-gradient(135deg, var(--bg-deep) 0 50%, #253054 50%); border: 2px solid var(--dim); }
.pixel-avatar > div { position: relative; width: 126px; height: 142px; background: var(--yellow); border: 12px solid #111729; box-shadow: 0 0 0 8px var(--cyan), 16px 16px 0 rgba(0,0,0,.25); clip-path: polygon(20% 0, 80% 0, 80% 8%, 92% 8%, 92% 76%, 78% 76%, 78% 100%, 22% 100%, 22% 76%, 8% 76%, 8% 8%, 20% 8%); }
.pixel-avatar i, .pixel-avatar b { position: absolute; top: 54px; width: 18px; height: 14px; background: var(--bg); }
.pixel-avatar i { left: 20px; }
.pixel-avatar b { right: 20px; }
.pixel-avatar span { position: absolute; left: 37px; bottom: 30px; width: 28px; height: 8px; background: var(--bg); }
.pixel-avatar small { padding: 5px 10px; background: var(--bg); color: var(--green); font-size: .625rem; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { font-family: var(--font-pixel); font-size: .75rem; }
.chip-icons { flex: 0 0 auto; color: inherit; }
.collab { margin-top: 18px; color: var(--muted); font-family: var(--font-body); font-size: .875rem; }

.career-card { border-width: 2px; }
.career-head { padding: 16px 24px; align-items: center; }
.career-company-block,
.career-project-heading,
.contribution-copy { min-inline-size: 0; }
.career-structure-label,
.career-log-label {
  display: block;
  color: var(--green);
  font-family: var(--font-pixel);
  font-size: .75rem;
  line-height: 1.5;
  letter-spacing: .03em;
}
.career-title-row { align-items: center; margin-top: 5px; }
.career-company { margin: 0; font-family: var(--font-pixel); font-size: 1.25rem; font-weight: 400; }
.career-role,
.career-period,
.career-project-period { font-family: var(--font-pixel); font-size: .75rem; }
.career-role { color: var(--cyan); }
.career-period { color: var(--muted); text-align: end; }
.career-projects { display: grid; }
.career-project-card { min-inline-size: 0; }
.career-card--single .career-project-card {
  padding: 18px 24px 8px;
  border-block-start: 1px solid var(--line-soft);
}
.career-card--multi .career-projects {
  gap: 16px;
  padding: 20px 20px 20px 28px;
  border-inline-start: 4px solid var(--cyan);
  background: var(--bg-deep);
}
.career-card--multi .career-project-card {
  padding: 20px 22px 12px;
  border: 2px solid var(--dim);
  background: var(--bg);
}
.career-project-head {
  display: flex;
  justify-content: space-between;
  align-items: safe end;
  flex-wrap: wrap;
  gap: 8px 20px;
}
.career-project-head .career-structure-label { color: var(--yellow); }
.career-project-name {
  margin: 5px 0 0;
  color: var(--fg);
  font-family: var(--font-pixel);
  font-size: 1.125rem;
  font-weight: 400;
}
.career-project-period { color: var(--muted); }
.career-project-desc {
  max-inline-size: 72ch;
  margin-top: 8px;
  color: var(--body-text);
  font-size: .9375rem;
  line-height: 1.65;
}
.career-log-label { margin-top: 16px; color: var(--dim); }
.contribution-list { margin-top: 4px; }
.contribution-log {
  position: relative;
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 16px;
  padding-block: 11px;
  border-block-start: 1px solid var(--line-soft);
}
.contribution-date {
  color: var(--green);
  font-family: var(--font-pixel);
  font-size: .75rem;
  white-space: nowrap;
}
.contribution-title {
  display: block;
  color: var(--fg);
  font-family: var(--font-pixel);
  font-size: .875rem;
  font-weight: 400;
  line-height: 1.6;
}
.contribution-desc { margin-top: 4px; color: var(--muted); font-size: .875rem; line-height: 1.65; }
.contribution-log:hover { background: color-mix(in srgb, var(--bg-deep) 72%, transparent); }

.proj-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.proj-card { position: relative; display: grid; grid-template-rows: 210px 1fr; min-width: 0; height: 100%; overflow: hidden; border-width: 3px; }
.proj-card:hover { transform: translate(-4px, -4px); box-shadow: 8px 8px 0 var(--cyan); }
.quest-ribbon { position: absolute; z-index: 3; top: 12px; left: 12px; padding: 6px 10px; background: var(--bg); color: var(--cyan); border: 2px solid currentColor; font-size: .75rem; }
.proj-thumb { height: auto; min-height: 0; border-bottom-width: 3px; background: var(--bg-deep); }
.proj-body { min-width: 0; display: flex; flex-direction: column; padding: 20px 22px; }
.proj-title-row { align-items: center; gap: 14px; }
.proj-name { margin: 0; font-size: 1rem; font-weight: 400; }
.proj-enter { flex: 0 0 auto; align-self: flex-end; margin-top: auto; padding-top: 18px; font-size: .625rem; }
.proj-desc { margin-top: 10px; color: var(--body-text); font-size: .875rem; line-height: 1.65; }
.proj-meta { display: grid; gap: 5px; margin-top: 16px; color: var(--muted); font-family: var(--font-pixel); font-size: .5625rem; line-height: 1.6; }
.img-logo-cover { object-fit: contain; padding: 34px 58px; background: #15151d; }

.project-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.project-section-head .section-title { margin: 0; }
.project-section-head p { color: var(--muted); font-size: .875rem; }

.blog-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.blog-head .section-title { margin: 0; }
.blog-head a { flex: 0 0 auto; font-family: var(--font-pixel); font-size: .75rem; color: var(--cyan); }
.mission-list { display: grid; gap: 16px; }
.mission-row {
  min-height: 210px;
  display: grid;
  grid-template-columns: 205px minmax(0, 1fr) 190px;
  overflow: hidden;
  border: 3px solid var(--fg);
  background: var(--bg-panel);
  color: inherit;
  box-shadow: 6px 6px 0 var(--bg-deep);
  transition: border-color .12s, box-shadow .12s;
}
.mission-row:hover { border-color: var(--cyan); color: inherit; box-shadow: 6px 6px 0 var(--cyan); }
.mission-cover { min-width: 0; min-height: 210px; overflow: hidden; border-right: 3px solid var(--fg); background: var(--bg-deep); }
.mission-main { min-width: 0; padding: 18px 22px; }
.mission-kicker { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; color: var(--muted); font-family: var(--font-pixel); font-size: .6875rem; line-height: 1.6; }
.mission-kicker span:first-child { flex: none; color: var(--green); }
.mission-kicker span:last-child { text-align: end; }
.mission-name { margin: 10px 0 0; color: var(--fg); font-family: var(--font-pixel); font-size: 1.375rem; font-weight: 400; }
.mission-summary { margin-top: 8px; color: var(--body-text); font-size: .9375rem; line-height: 1.65; }
.mission-facts { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); margin-top: 14px; border-top: 1px solid var(--line-soft); }
.mission-facts > div { min-width: 0; padding: 10px 14px 0 0; }
.mission-facts > div + div { padding-left: 14px; border-left: 1px solid var(--line-soft); }
.mission-facts dt, .mission-side-label { color: var(--yellow); font-family: var(--font-pixel); font-size: .6875rem; }
.mission-facts dd { margin: 6px 0 0; color: var(--body-text); font-size: .8125rem; line-height: 1.55; }
.mission-side { min-width: 0; display: flex; flex-direction: column; gap: 14px; padding: 18px 16px; border-left: 2px solid var(--dim); background: var(--bg-deep); }
.mission-team { color: var(--muted); font-size: .8125rem; line-height: 1.5; }
.mission-stack { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.mission-stack li { padding: 4px 6px; border: 1px solid var(--dim); color: var(--muted); font-family: var(--font-pixel); font-size: .625rem; line-height: 1.4; }
.mission-enter { align-self: flex-end; margin-top: auto; color: var(--cyan); font-family: var(--font-pixel); font-size: .75rem; }

.pixel-scene { position: relative; width: 100%; height: 100%; min-height: inherit; overflow: hidden; background: var(--bg-deep); image-rendering: pixelated; }
.scene-ui, .scoreboard { position: absolute; z-index: 2; top: 20px; right: 20px; display: flex; align-items: center; gap: 8px; padding: 6px 9px; background: var(--bg); color: var(--cyan); border: 2px solid var(--dim); font-size: .5625rem; }
.rec-dot { width: 8px; height: 8px; background: #f26b5b; animation: blink 1.2s steps(1) infinite; }
.scene-face { background: linear-gradient(90deg, #222c4c 50%, #29366f 50%); background-size: 28px 28px; }
.pixel-face { position: absolute; left: 17%; top: 24%; width: 118px; height: 122px; background: var(--yellow); border: 8px solid var(--cyan); box-shadow: 10px 10px 0 rgba(0,0,0,.28); clip-path: polygon(14% 0,86% 0,86% 8%,100% 8%,100% 84%,86% 84%,86% 100%,14% 100%,14% 84%,0 84%,0 8%,14% 8%); }
.pixel-face i { position: absolute; top: 46px; width: 14px; height: 12px; background: var(--bg); }
.pixel-face i:first-child { left: 24px; }
.pixel-face i:nth-child(2) { right: 24px; }
.pixel-face b { position: absolute; left: 42px; bottom: 22px; width: 34px; height: 8px; background: var(--green); }
.emotion-chart { position: absolute; right: 9%; bottom: 18%; display: flex; align-items: end; gap: 7px; height: 100px; padding: 10px; border-left: 3px solid var(--fg); border-bottom: 3px solid var(--fg); }
.emotion-chart i { width: 14px; background: var(--green); }
.emotion-chart i:nth-child(1) { height: 30%; }.emotion-chart i:nth-child(2) { height: 54%; }.emotion-chart i:nth-child(3) { height: 42%; }.emotion-chart i:nth-child(4) { height: 82%; }.emotion-chart i:nth-child(5) { height: 66%; }
.scene-court { background: #704c53; }
.scoreboard { left: 18px; right: auto; flex-direction: column; align-items: start; color: var(--green); }
.scoreboard b { color: var(--fg); font-size: .75rem; }
.court-lines { position: absolute; inset: 28% 8% 10%; border: 5px solid var(--yellow); }
.court-lines i { position: absolute; top: 0; bottom: 0; left: 50%; width: 5px; background: var(--yellow); }
.court-lines b { position: absolute; top: 50%; left: 50%; width: 70px; height: 70px; transform: translate(-50%,-50%); border: 5px solid var(--yellow); border-radius: 50%; }
.pixel-ball { position: absolute; z-index: 2; right: 18%; bottom: 20%; width: 42px; height: 42px; background: #f18f48; border: 5px solid var(--bg); box-shadow: 7px 7px 0 rgba(0,0,0,.25); }
.scene-diary { background: linear-gradient(#26345e 0 50%, #24465d 50%); }
.pixel-moon { position: absolute; top: 20px; right: 16%; width: 58px; height: 58px; background: var(--yellow); box-shadow: -14px 10px 0 #26345e; }
.pixel-book { position: absolute; z-index: 2; left: 14%; bottom: 20%; width: 130px; height: 86px; transform: rotate(-4deg); border: 6px solid var(--bg); background: var(--fg); box-shadow: 10px 10px 0 rgba(0,0,0,.25); }
.pixel-book::before { content: ''; position: absolute; top: 0; bottom: 0; left: 50%; width: 5px; background: var(--bg); }
.pixel-book i { position: absolute; left: 12px; width: 40px; height: 5px; background: var(--cyan); }
.pixel-book i:first-child { top: 22px; }.pixel-book i:last-child { top: 40px; }
.pixel-waves { position: absolute; right: 8%; bottom: 14%; display: grid; gap: 9px; }
.pixel-waves i { display: block; width: 126px; height: 8px; background: var(--cyan); box-shadow: 18px 0 0 var(--bg-deep); }
.pixel-waves i:nth-child(2) { margin-left: 18px; width: 96px; background: var(--green); }
.pixel-waves i:nth-child(3) { width: 76px; }
.scene-shot-1 .scene-ui, .scene-shot-1 .scoreboard { left: 14px; right: auto; }
.scene-shot-2 { filter: saturate(.82); }
.scene-shot-2 .pixel-face, .scene-shot-2 .pixel-book { transform: translateX(40px) scale(.82); }

.cert-grid { gap: 16px; }
.cert-card { display: flex; flex-direction: column; align-items: center; padding: 18px; }
.cert-name { margin-top: 10px; font-family: var(--font-pixel); font-size: 1rem; font-weight: 400; }
.cert-meta { font-size: .8125rem; }

.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }
.blog-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 18px 20px;
  border: 2px solid var(--dim);
  background: var(--bg-deep);
  color: inherit;
  transition: border-color .12s, transform .12s;
}
.blog-card:hover { border-color: var(--cyan); color: inherit; transform: translateY(-3px); }
.blog-card-kicker { display: flex; align-items: center; gap: 12px; color: var(--muted); font-family: var(--font-pixel); font-size: .625rem; }
.blog-card-kicker span:first-child { color: var(--green); }
.blog-card-title { margin: 10px 0 0; color: var(--fg); font-family: var(--font-pixel); font-size: .9375rem; font-weight: 400; line-height: 1.5; }
.blog-card-desc { flex: 1; margin-top: 8px; color: var(--body-text); font-size: .8125rem; line-height: 1.6; }
.blog-card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.blog-card-tags li { padding: 3px 7px; border: 1px solid var(--dim); color: var(--muted); font-family: var(--font-pixel); font-size: .625rem; line-height: 1.4; }
.blog-card-enter { align-self: flex-end; margin-top: 14px; color: var(--cyan); font-family: var(--font-pixel); font-size: .75rem; white-space: nowrap; }

.contact { padding-top: 38px; }
.contact-box { padding: 24px; gap: 20px; }
.contact-box > div { min-width: 0; }
.contact-box a { display: inline-block; max-width: 100%; overflow-wrap: anywhere; }
.contact-label { display: block; }

.detail { max-width: 980px; padding: 36px 40px 124px; }
.detail section { scroll-margin-top: 84px; }
.btn-back, .btn-pager { min-height: 44px; display: inline-flex; align-items: center; padding: 0 16px; }
.detail-hero { padding: 26px 0 22px; }
.detail-label { margin: 0; font-size: .875rem; }
.detail-title { margin-top: 12px; font-size: clamp(2rem, 5vw, 3.25rem); line-height: 1.25; }
.detail-dek { max-width: 700px; margin-top: 14px; color: var(--body-text); font-size: 1.125rem; line-height: 1.65; }
.link-btn { min-height: 48px; padding: 0 18px; font-size: .75rem; }

.project-info { margin-top: 22px; }
.project-info-body { background: var(--bg-panel); }
.project-info-table-wrap { overflow-x: auto; }
.project-info-table { width: 100%; border-collapse: collapse; table-layout: fixed; text-align: left; }
.project-info-table th, .project-info-table td { padding: 12px 14px; border-right: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.project-info-table tr > :last-child { border-right: 0; }
.project-info-table thead th { padding-block: 9px; background: var(--bg-deep); color: var(--yellow); font-family: var(--font-pixel); font-size: .6875rem; font-weight: 400; }
.project-info-table thead th:nth-child(1) { width: 18%; }
.project-info-table thead th:nth-child(2) { width: 38%; }
.project-info-table thead th:nth-child(3) { width: 44%; }
.project-info-table tbody th { font-weight: 400; }
.project-info-table tbody th strong { display: block; color: var(--green); font-family: var(--font-pixel); font-size: .8125rem; font-weight: 400; }
.project-info-table tbody th span { display: block; margin-top: 7px; color: var(--muted); font-family: var(--font-body); font-size: .75rem; line-height: 1.5; }
.project-info-table tbody th span:first-child { margin-top: 0; }
.project-info-table tbody td { color: var(--body-text); font-size: .875rem; line-height: 1.6; }
.project-info-table tbody td:last-child { color: var(--fg); }
.info-links-row { display: flex; align-items: center; gap: 20px; padding: 11px 14px; background: var(--bg-deep); }
.info-links-row + .info-links-row { border-top: 1px solid var(--line-soft); }
.info-label { flex: none; color: var(--yellow); font-family: var(--font-pixel); font-size: .6875rem; }
.info-links { display: flex; flex-wrap: wrap; gap: 8px; }
.info-links .link-btn { min-height: 40px; padding: 0 12px; font-size: .6875rem; box-shadow: 3px 3px 0 var(--bg-deep); }
.info-test-account { padding: 4px 8px; border: 1px solid var(--dim); background: var(--bg); color: var(--green); font-family: var(--font-pixel); font-size: .75rem; }

.window-brief { margin-top: 16px; }
.brief-grid { display: grid; grid-template-columns: 1fr 1.3fr .9fr; }
.brief-grid > li { min-width: 0; padding: 13px 16px; border-left: 2px solid var(--dim); }
.brief-grid > li:first-child { border-left: 0; }
.brief-grid span { display: block; color: var(--yellow); font-family: var(--font-pixel); font-size: .75rem; }
.brief-grid strong { display: block; margin-top: 8px; color: var(--fg); font-size: .9375rem; font-weight: 400; line-height: 1.6; }

.detail-main { min-width: 0; display: grid; gap: 18px; margin-top: 18px; }

.window { border: 3px solid var(--fg); background: var(--bg-panel); box-shadow: 6px 6px 0 var(--bg-deep); }
.window-bar { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 11px 16px; background: var(--fg); color: var(--bg); font-size: 1rem; }
.window-bar h2 { margin: 0; font-size: inherit; font-weight: 400; letter-spacing: .04em; }
.window-deco { font-size: .625rem; letter-spacing: 2px; }
.window-meta { font-size: .6875rem; text-align: end; }
.window-body { padding: 18px 22px; }
.window-subtitle { margin: 22px 0 12px; color: var(--yellow); font-family: var(--font-pixel); font-size: .875rem; font-weight: 400; }

.window-outcome { border-color: var(--green); }
.window-outcome .window-bar { background: var(--green); }
.window-outcome .window-body { background: var(--bg-deep); }

.panel { margin: 0; padding: 22px 26px; border-color: var(--dim); }
.text-list { display: grid; gap: 9px; max-width: 78ch; color: var(--body-text); font-size: 1rem; line-height: 1.75; }
.text-list li { position: relative; padding-left: 18px; }
.text-list li::before { content: '·'; position: absolute; left: 0; color: var(--cyan); font-family: var(--font-pixel); }
.bullet-list { display: grid; gap: 5px; }
.bullet-list li { position: relative; padding-left: 14px; }
.bullet-list li::before { content: '·'; position: absolute; left: 0; color: var(--cyan); font-family: var(--font-pixel); }
.brief-grid .bullet-list { margin-top: 8px; color: var(--fg); font-size: .875rem; line-height: 1.6; }
.feature-grid { gap: 12px; }
.feature { padding: 14px 16px; }
.feature-name { font-family: var(--font-pixel); font-size: .9375rem; font-weight: 400; }
.feature-desc { margin-top: 8px; color: var(--body-text); font-size: .875rem; line-height: 1.7; }
.troubles { gap: 12px; }
.trouble { padding: 14px 18px; }
.trouble-problem { display: block; font-family: var(--font-pixel); font-size: .9375rem; font-weight: 400; line-height: 1.7; }
.trouble-solution { margin-top: 10px; color: var(--body-text); font-size: .9375rem; line-height: 1.8; }
.stack-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.stack-chip { min-height: 38px; display: inline-flex; align-items: center; gap: 9px; padding: 5px 11px 5px 6px; font-size: .75rem; }
.stack-icons { min-width: 26px; min-height: 26px; display: inline-flex; align-items: center; justify-content: center; gap: 3px; padding: 4px; border: 1px solid currentColor; background: var(--bg-deep); box-shadow: 2px 2px 0 rgba(0, 0, 0, .24); }
.stack-icon { width: 16px; height: 16px; flex: none; }
.stack-icon-image { display: block; object-fit: contain; filter: invert(1); }
.stack-icon-fallback { display: grid; place-items: center; background: none; font-family: var(--font-pixel); font-size: .45rem; line-height: 1; -webkit-mask: none; mask: none; }
.stack-icons:has(.stack-icon + .stack-icon) { min-width: 45px; }
.shot { height: 420px; display: grid; grid-template-rows: minmax(0, 1fr) auto; border: 2px solid var(--bg-panel); background: var(--bg-deep); }
.shot > .img-fill { min-height: 0; object-position: top; }
.shot > .media-contain { object-fit: contain; object-position: center; background: #08090b; }
.shot > .pixel-scene { min-height: 0; }
.shot figcaption { padding: 9px 11px; border-top: 2px solid var(--bg-panel); color: var(--body-text); font-size: .8125rem; line-height: 1.55; }
.outcome-status { display: inline-block; margin-bottom: 12px; padding: 5px 8px; background: var(--green); color: var(--bg); font-size: .6875rem; }
.outcome-text { max-width: 78ch; margin: 0; font-size: 1rem; }
.flow-tracks { display: grid; gap: 18px; }
.flow-track-name { margin: 0 0 8px; color: var(--muted); font-family: var(--font-pixel); font-size: .6875rem; font-weight: 400; letter-spacing: .03em; }
.service-flow { display: flex; align-items: stretch; gap: 24px; }
.service-flow li { position: relative; flex: 1 1 0; min-width: 0; display: grid; place-items: center; min-height: 72px; padding: 10px; border: 2px solid var(--dim); background: var(--bg-deep); color: var(--body-text); text-align: center; font-family: var(--font-pixel); font-size: .6875rem; line-height: 1.55; }
.service-flow li:not(:last-child)::after { content: '▶'; position: absolute; left: calc(100% + 7px); top: 50%; transform: translateY(-50%); color: var(--cyan); }
.service-flow .flow-fork { display: flex; min-height: 0; padding: 0; border: 0; background: transparent; }
.flow-fork-options { display: flex; flex-direction: column; justify-content: center; gap: 4px; flex: 1; min-width: 0; }
.service-flow .flow-fork-options li { flex: 0 0 auto; min-height: 0; }
.service-flow .flow-fork-options li:not(:last-child)::after { content: none; }
.service-flow .flow-fork-options .flow-or { padding: 0; border: 0; background: transparent; color: var(--cyan); font-size: .625rem; }
.timeline { display: grid; margin-left: 7px; }
.timeline > li { position: relative; padding: 0 0 18px 24px; border-left: 3px solid var(--line-soft); }
.timeline > li:last-child { padding-bottom: 2px; border-left-color: transparent; }
.timeline > li::before { content: ''; position: absolute; left: -8px; top: 3px; width: 13px; height: 13px; background: var(--cyan); box-shadow: 0 0 0 3px var(--bg-panel); }
.timeline-title { display: block; color: var(--cyan); font-family: var(--font-pixel); font-size: .9375rem; font-weight: 400; line-height: 1.6; }
.timeline-desc { max-width: 72ch; margin-top: 8px; color: var(--body-text); font-size: .9375rem; line-height: 1.75; }
.timeline > li > .timeline-desc:first-child { margin-top: 0; }
.timeline-points { display: grid; gap: 6px; max-width: 72ch; margin-top: 10px; }
.timeline-points li { position: relative; padding-left: 20px; color: var(--body-text); font-size: .9375rem; line-height: 1.65; }
.timeline-points li::before { content: '▸'; position: absolute; left: 0; color: var(--cyan); font-family: var(--font-pixel); }
.outcome-list { gap: 10px; }
.outcome-list li::before { color: var(--green); }
.stack-group + .stack-group { margin-top: 24px; }
.stack-group-title { margin: 0 0 12px; color: var(--yellow); font-family: var(--font-pixel); font-size: .875rem; font-weight: 400; }
.panel-todo { font-size: .875rem; line-height: 1.7; }
.detail-nav { margin-top: 28px; }
.btn-pager { font-size: .75rem; }
.scroll-top[hidden] { display: none; }

@media (max-width: 860px) {
  .hero { grid-template-columns: minmax(0, 1fr) 240px; gap: 36px; padding: 44px 28px; }
  .photo-slot { height: 280px; }
  .section { padding: 30px 28px; }
  .proj-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mission-row { grid-template-columns: 200px minmax(0, 1fr); }
  .mission-side { grid-column: 1 / -1; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; border-top: 2px solid var(--dim); border-left: 0; }
  .mission-enter { margin-top: 0; }
  .contact-box { grid-template-columns: 1fr; text-align: left; }
}

@media (max-width: 940px) {
  .nav { min-height: 60px; padding: 8px 14px; flex-wrap: wrap; }
  .menu-toggle { display: inline-flex; }
  .nav-right { display: none; width: 100%; padding: 10px 0 4px; flex-direction: column; align-items: stretch; gap: 12px; }
  .nav-right.is-open { display: flex; }
  .nav-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .nav-links button { justify-content: flex-start; min-width: 0; padding-inline: 12px; border: 1px solid var(--line-soft); }
  .lang-switch { display: grid; grid-template-columns: repeat(3, 1fr); }
  .lang-switch button { width: 100%; }
}

@media (max-width: 720px) {
  .nav { min-height: 60px; padding: 8px 14px; flex-wrap: wrap; }
  .menu-toggle { display: inline-flex; }
  .nav-right { display: none; width: 100%; padding: 10px 0 4px; flex-direction: column; align-items: stretch; gap: 12px; }
  .nav-right.is-open { display: flex; }
  .nav-links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
  .nav-links button { justify-content: flex-start; padding-inline: 12px; border: 1px solid var(--line-soft); }
  .lang-switch { display: grid; grid-template-columns: repeat(3, 1fr); }
  .lang-switch button { width: 100%; }
  .hero { min-height: 0; grid-template-columns: 1fr; gap: 40px; padding: 44px 20px 48px; }
  .hero-photo { width: min(100%, 300px); }
  .photo-slot { height: 286px; }
  .metrics { grid-template-columns: 1fr; }
  .metric { display: grid; grid-template-columns: 90px 1fr; align-items: center; gap: 10px; padding: 14px; border-right: 0; border-bottom: 2px solid var(--dim); }
  .metric:last-child { border-bottom: 0; }
  .metric span { margin: 0; }
  .section { padding: 28px 20px; scroll-margin-top: 68px; }
  .career-head { flex-direction: column; align-items: flex-start; padding: 18px; }
  .career-title-row { align-items: flex-start; }
  .career-period { max-inline-size: 100%; text-align: start; }
  .career-card--single .career-project-card { padding: 18px 18px 6px; }
  .career-card--multi .career-projects { padding: 14px 14px 14px 16px; border-inline-start-width: 3px; }
  .career-card--multi .career-project-card { padding: 17px 16px 6px; }
  .career-project-head { flex-direction: column; align-items: flex-start; gap: 6px; }
  .career-project-period { white-space: normal; }
  .contribution-log { grid-template-columns: 1fr; gap: 6px; padding-block: 14px; }
  .contribution-date { white-space: normal; }
  .proj-grid { grid-template-columns: 1fr; }
  .proj-card { grid-template-rows: 220px 1fr; }
  .project-section-head { align-items: flex-start; flex-direction: column; gap: 7px; }
  .blog-head { align-items: flex-start; flex-direction: column; gap: 7px; }
  .mission-row { grid-template-columns: 1fr; }
  .mission-cover { min-height: 210px; border-right: 0; border-bottom: 3px solid var(--fg); }
  .mission-main { padding: 20px; }
  .mission-side { grid-column: auto; display: flex; align-items: stretch; border-top: 2px solid var(--dim); }
  .cert-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .detail { padding: 24px 20px 120px; }
  .detail-nav { padding-inline: 20px; }
  .detail-hero { padding: 22px 0 18px; }
  .project-info { margin-top: 18px; }
  .project-info-table, .project-info-table tbody, .project-info-table tr { display: block; }
  .project-info-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
  .project-info-table tr { padding: 16px; border-bottom: 2px solid var(--dim); }
  .project-info-table tbody tr:last-child { border-bottom: 1px solid var(--line-soft); }
  .project-info-table tbody th, .project-info-table tbody td { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 12px; width: auto; padding: 7px 0; border: 0; }
  .project-info-table tbody th { grid-template-areas: 'label year' 'label period'; }
  .project-info-table tbody th.period-only { grid-template-areas: 'label period'; }
  .project-info-table tbody th::before { grid-area: label; }
  .project-info-table tbody th strong { grid-area: year; }
  .project-info-table tbody th span { grid-area: period; margin-top: 0; }
  .project-info-table tbody td::before { content: attr(data-label); color: var(--yellow); font-family: var(--font-pixel); font-size: .6875rem; }
  .project-info-table tbody th::before { content: attr(data-label); color: var(--yellow); font-family: var(--font-pixel); font-size: .6875rem; }
  .info-links-row { align-items: flex-start; flex-direction: column; gap: 10px; }
  .brief-grid { grid-template-columns: 1fr; }
  .brief-grid > li { border-left: 0; border-top: 2px solid var(--dim); }
  .brief-grid > li:first-child { border-top: 0; }
  .detail-main { gap: 20px; margin-top: 20px; }
  .window-body { padding: 20px 16px; }
  .window-bar { flex-wrap: wrap; row-gap: 2px; }
  .panel { padding: 22px 20px; }
  .feature-grid, .shot-grid { grid-template-columns: 1fr; }
  .service-flow { flex-direction: column; gap: 18px; }
  .service-flow li { min-height: 58px; }
  .service-flow li:not(:last-child)::after { content: '▼'; left: 50%; top: calc(100% + 5px); transform: translateX(-50%); }
  .service-flow .flow-fork { flex: 0 0 auto; }
  .flow-fork-options { gap: 8px; }
  .service-flow .flow-fork-options li { min-height: 58px; }
  .service-flow .flow-fork-options .flow-or { min-height: 0; }
  .shot { height: 300px; }
}

@media (max-width: 420px) {
  .nav-logo { font-size: .75rem; }
  .menu-toggle { padding: 0 8px; }
  .hero-name { min-height: 52px; font-size: 2.25rem; }
  .hero-level { font-size: 1.125rem; }
  .hero-intro { font-size: .9375rem; }
  .mission-kicker { flex-direction: column; gap: 4px; }
  .mission-kicker span:last-child { text-align: start; }
  .mission-facts { grid-template-columns: 1fr; }
  .mission-facts > div { padding-right: 0; }
  .mission-facts > div + div { margin-top: 12px; padding-left: 0; border-top: 1px solid var(--line-soft); border-left: 0; }
  .achievement-hud { box-shadow: 4px 4px 0 var(--bg-panel); }
  .proj-title-row { align-items: flex-start; flex-direction: column; gap: 8px; }
  .proj-enter { align-self: flex-end; }
  .pixel-face { left: 10%; transform: scale(.85); }
  .emotion-chart { right: 5%; transform: scale(.8); transform-origin: bottom right; }
  .pixel-book { left: 8%; transform: rotate(-4deg) scale(.85); transform-origin: left bottom; }
  .detail-nav { padding-inline: 14px; }
  .btn-pager { justify-content: center; }
  .btn-pager[data-pager="next"] { margin-left: 0; }
  .scroll-top { right: 14px; bottom: 14px; width: auto; min-width: 44px; height: 44px; padding-inline: 12px; }
  #app:has(.detail-nav) + .scroll-top { bottom: calc(84px + env(safe-area-inset-bottom)); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero, .detail { animation: none; }
  .cursor, .footer .marker, .rec-dot, .stat-fill { animation: none; opacity: 1; }
  .proj-card, .link-btn, .scroll-top, .cert-card, .skip-link { transition: none; }
}
