:root {
  color-scheme: dark;
  --background: #101010;
  --foreground: #ecebe6;
  --muted: #b0ada6;
  --dim: #9c9991;
  --line: #2d2c2a;
  --panel: #1b1b1a;
  --detail: #131312;
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", "Apple SD Gothic Neo", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--background); color: var(--foreground); font-family: var(--font); line-height: 1.7; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 4px; }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--foreground); outline-offset: 5px; }
section { scroll-margin-top: 24px; }
p, h1, h2, h3 { margin-top: 0; }

.skip-link { position: absolute; top: 12px; left: 16px; z-index: 10; padding: 10px 16px; color: var(--background); background: var(--foreground); transform: translateY(-160%); }
.skip-link:focus { transform: none; }
.page { width: min(1180px, calc(100% - 80px)); margin: 0 auto; padding-bottom: 32px; }
.site-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding: 27px 0 23px; border-bottom: 1px solid var(--line); }
.brand { font: 800 24px/1.4 var(--font); }
.site-header nav { display: flex; gap: 28px; font-size: 13px; font-weight: 500; color: var(--muted); }
.site-header nav a { display: inline-flex; align-items: center; min-height: 44px; }
.micro { margin: 0; color: var(--dim); font: 500 11px/1.7 var(--font); letter-spacing: 0.04em; }
.hero { padding: 68px 0 48px; }
.hero-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-bottom: 46px; }
.hero-content { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); align-items: start; gap: 48px; }
h1 { margin-bottom: 0; font: 800 clamp(38px, 5.8vw, 78px)/1.15 var(--font); letter-spacing: -0.04em; }
h1 span { color: var(--muted); }
.intro-copy { margin: 0; padding-top: 8px; color: var(--muted); font-size: 15px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 15px; min-height: 44px; padding: 10px 18px; border: 1px solid var(--line); background: var(--panel); font-size: 12px; font-weight: 600; }
.button-primary { color: var(--background); background: var(--foreground); border-color: var(--foreground); }
.technology-line { display: flex; flex-wrap: wrap; gap: 12px 24px; border-block: 1px solid var(--line); padding: 21px 0; color: var(--dim); font: 500 12px/1.7 var(--font); }
.section { padding-top: 80px; }
h2 { margin: 10px 0 0; font: 800 clamp(28px, 3.8vw, 44px)/1.3 var(--font); letter-spacing: -0.04em; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.professional { display: grid; grid-template-columns: 1fr 1.7fr; gap: 48px; padding-bottom: 64px; border-bottom: 1px solid var(--line); }
.professional-copy > p:first-child { margin-bottom: 16px; color: var(--muted); font-size: 15px; }
.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
.project { display: flex; flex-direction: column; min-width: 0; padding: 30px; background: var(--panel); }
.project-wide { grid-column: span 2; }
.project-full { grid-column: 1 / -1; }
h3 { margin: 22px 0 14px; font: 800 clamp(23px, 2.7vw, 32px)/1.3 var(--font); letter-spacing: -0.035em; overflow-wrap: anywhere; }
.project > p:not(.micro), .music-layout p:not(.micro) { margin-bottom: 0; color: var(--muted); font-size: 14px; }
.project-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 18px; margin-top: 24px; padding-top: 15px; border-top: 1px solid var(--line); }
.project-footer a { display: inline-flex; align-items: center; gap: 16px; min-height: 44px; font-size: 13px; }
.graphic { margin: 25px 0 0; padding: 22px; background: var(--detail); }
.graph-origin { display: inline-block; padding: 9px 14px; border: 1px solid #66625c; font: 600 12px/1.6 var(--font); }
.graph-line { width: 1px; height: 23px; margin-left: 40px; background: #66625c; }
.graph-branches { display: flex; flex-wrap: wrap; gap: 8px; }
.graph-branches span { padding: 8px 12px; border: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.agent-features { display: grid; gap: 11px; list-style: none; }
.agent-features li { padding-bottom: 10px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.agent-features li:last-child { border: 0; padding: 0; }
.project-meal { min-height: 320px; }
.meal-types { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 24px; }
.meal-types span { padding: 7px 10px; background: var(--detail); color: var(--muted); font-size: 12px; }
.research-flow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; }
.research-flow span { padding: 8px 10px; border: 1px solid var(--line); }
.research-flow b { font-weight: 400; }
.music-layout { display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; gap: 42px; }
.music-layout h3 { margin-top: 16px; }
.music-bars { display: flex; align-items: center; justify-content: center; gap: 7px; height: 100px; }
.music-bars span { width: 6px; height: 18px; background: #77766f; }
.music-bars span:nth-child(3n) { height: 48px; }
.music-bars span:nth-child(4n) { height: 65px; }
.music-bars span:nth-child(5n) { height: 84px; }
.music-bars span:nth-child(7n) { height: 32px; }
.music-caption { text-align: center; }
details { margin-top: 15px; font-size: 13px; }
summary { min-height: 44px; padding: 8px 0; cursor: pointer; }
.case-notes { margin-top: 7px; padding-left: 16px; border-left: 1px solid #716e66; color: var(--muted); }
.case-notes p { margin-bottom: 11px; font-size: 13px; }
.case-notes p:last-child { margin-bottom: 0; }
.case-notes strong { color: var(--foreground); font-weight: 600; }
.writing-entry { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 26px; padding: 26px 0; border-block: 1px solid var(--line); }
.writing-entry a { font: 800 23px/1.6 var(--font); }
.contact { margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); }
.contact h2 { margin: 0 0 17px; font-size: clamp(34px, 4.7vw, 58px); }

@media (max-width: 840px) {
  .page { width: calc(100% - 48px); }
  .hero { padding: 45px 0 48px; }
  .hero-meta { margin-bottom: 34px; }
  .hero-content { grid-template-columns: 1fr; gap: 22px; }
  .intro-copy { padding-top: 0; }
  .section { padding-top: 55px; }
  .section-heading { align-items: start; }
  .professional { grid-template-columns: 1fr; gap: 24px; padding-bottom: 45px; }
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-wide, .project-full { grid-column: 1 / -1; }
  .project-agent { grid-column: 1; }
  .project-meal { grid-column: 2; }
  .project { padding: 25px; }
  .project-meal { min-height: 0; }
  .music-layout { gap: 26px; }
}

@media (max-width: 480px) {
  .page { width: calc(100% - 36px); }
  .site-header { padding: 18px 0; gap: 12px; }
  .brand { font-size: 21px; }
  .site-header nav { gap: 18px; font-size: 12px; }
  .hero { padding: 34px 0 36px; }
  h1 { font-size: clamp(29px, 8.4vw, 39px); }
  .hero-content { gap: 18px; }
  .intro-copy { font-size: 13px; }
  .technology-line { gap: 11px 21px; font-size: 11px; }
  .section { padding-top: 42px; }
  .section-heading { margin-bottom: 22px; }
  .project-grid { grid-template-columns: 1fr; gap: 12px; }
  .project-agent, .project-meal, .project-wide, .project-full { grid-column: 1; }
  .project { padding: 23px; }
  h3 { font-size: 25px; }
  .graphic { padding: 18px; }
  .music-layout { grid-template-columns: 1fr; gap: 15px; }
  .writing-entry { flex-direction: column; align-items: start; gap: 9px; }
  .writing-entry a { font-size: 20px; }
  .contact { margin-top: 24px; padding-top: 20px; }
  .button { padding-inline: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
