:root {
  --bg: #F4F3EF;
  --surface: #FBFAF7;
  --text: #1C1B19;
  --text-2: #3D3A35;
  --muted: #5E5A52;
  --line: #D9D6CE;
  --accent: #C2410C;
  --stripe-a: #ECEAE4;
  --stripe-b: #E5E2DA;
  --band-bg: #1C1B19;
  --band-title: #F4F3EF;
  --band-text: #D9D6CE;

  --font-sans: 'IBM Plex Sans KR', 'Apple SD Gothic Neo', 'Malgun Gothic', 'Noto Sans KR', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --font-display: 'Space Grotesk', 'IBM Plex Sans KR', 'Apple SD Gothic Neo', 'Malgun Gothic', system-ui, sans-serif;

  --gutter: 24px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141311;
    --surface: #1D1C19;
    --text: #EDEBE5;
    --text-2: #CFCBC2;
    --muted: #A29D92;
    --line: #34322D;
    --accent: #F0763A;
    --stripe-a: #23221E;
    --stripe-b: #2A2824;
    --band-bg: #23221E;
    --band-title: #F4F3EF;
    --band-text: #CFCBC2;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.5;
  overflow-wrap: break-word;
  word-break: keep-all;
}

a { color: var(--text); }
a:hover { color: var(--accent); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.accent { color: var(--accent); }

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* 머리 */
.site-header {
  padding-top: 28px;
  padding-bottom: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
}
.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.nav {
  display: flex;
  gap: 28px;
  font-family: var(--font-mono);
  font-size: 14px;
}
.nav a { text-decoration: none; }

/* 첫 화면 */
.hero {
  padding-top: 96px;
  padding-bottom: 72px;
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  align-items: flex-end;
  justify-content: space-between;
}
.hero-text {
  flex: 999 1 560px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.eyebrow {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(40px, 9vw, 64px);
  line-height: 1.12;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.lead {
  margin: 0;
  max-width: 600px;
  font-size: 19px;
  line-height: 1.7;
  color: var(--text-2);
}
.stats {
  flex: 1 1 280px;
  min-width: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.stats > div { background: var(--surface); padding: 20px; }
.stats > .wide { grid-column: span 2; }
.stats dt { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.stats dd { margin: 6px 0 0; font-size: 15px; line-height: 1.5; }
.stats dd.num {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  line-height: 1.2;
}

/* 프로젝트 */
.groups {
  padding-bottom: 96px;
  display: flex;
  flex-direction: column;
  gap: 72px;
}
.group { display: flex; flex-direction: column; gap: 24px; }
.group-head {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: baseline;
  border-top: 2px solid var(--text);
  padding-top: 16px;
}
.group-no { font-family: var(--font-mono); font-size: 14px; color: var(--accent); }
.group-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 32px;
  letter-spacing: -0.02em;
}
.group-head p { margin: 0; font-size: 15px; color: var(--muted); }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr));
  gap: 20px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.shot {
  height: 180px;
  background: repeating-linear-gradient(135deg, var(--stripe-a) 0 10px, var(--stripe-b) 10px 20px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}
.shot-img {
  display: block;
  width: 100%;
  height: 180px;
  object-fit: cover;
  object-position: top left;
  border-bottom: 1px solid var(--line);
}
.card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-grow: 1;
}
.card-title {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}
.card-title h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: -0.01em;
  min-width: 0;
}
.kind { font-family: var(--font-mono); font-size: 12px; color: var(--muted); white-space: nowrap; }
.card-body p { margin: 0; font-size: 15px; line-height: 1.65; color: var(--text-2); }

/* 일하는 방식 */
.about { background: var(--band-bg); color: var(--band-title); }
.about-inner {
  padding-top: 80px;
  padding-bottom: 80px;
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
}
.about h2 {
  flex: 1 1 280px;
  margin: 0;
  font-family: var(--font-display);
  font-size: 32px;
  letter-spacing: -0.02em;
}
.about-text {
  flex: 999 1 560px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: 17px;
  line-height: 1.75;
  color: var(--band-text);
}
.about-text p { margin: 0; }

/* 연락 */
.site-footer {
  padding-top: 56px;
  padding-bottom: 72px;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  align-items: center;
}
.contact-line {
  margin: 0;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  font-family: var(--font-mono);
  font-size: 15px;
}

@media (max-width: 640px) {
  :root { --gutter: 16px; }
  .site-header { padding-top: 20px; padding-bottom: 20px; }
  .nav { gap: 20px; }
  .hero { padding-top: 56px; padding-bottom: 48px; gap: 32px; }
  .lead { font-size: 17px; }
  .groups { padding-bottom: 64px; gap: 56px; }
  .group-head h2, .about h2 { font-size: 28px; }
  .about-inner { padding-top: 56px; padding-bottom: 56px; gap: 24px; }
  .about-text { font-size: 16px; }
  .contact-line { font-size: 24px; }
}

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