:root {
  color-scheme: light;
  --bg: #f6f7f3;
  --surface: #ffffff;
  --surface-soft: #edf5f2;
  --text: #171a1f;
  --muted: #5d6673;
  --line: #d9ded8;
  --accent: #0f766e;
  --accent-strong: #0b4f4a;
  --accent-warm: #e85d3f;
  --accent-fresh: #b9d94a;
  --shadow: 0 24px 60px rgba(23, 26, 31, 0.12);
  --radius: 8px;
  --max-width: 1180px;
  font-family:
    Inter, Pretendard, "Noto Sans KR", "Segoe UI", Arial, sans-serif;
}

body.dark {
  color-scheme: dark;
  --bg: #121416;
  --surface: #1b1f23;
  --surface-soft: #202b29;
  --text: #f4f6f5;
  --muted: #aeb8b4;
  --line: #31383d;
  --accent: #4db6ac;
  --accent-strong: #82d6ce;
  --accent-warm: #ff876d;
  --accent-fresh: #d4ef62;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--bg);
  color: var(--text);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 0 clamp(20px, 5vw, 56px);
  border-bottom: 1px solid color-mix(in srgb, var(--line), transparent 28%);
  background: color-mix(in srgb, var(--bg), transparent 8%);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--text);
  color: var(--bg);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 34px);
  color: var(--muted);
  font-size: 0.95rem;
}

.main-nav a:hover {
  color: var(--text);
}

.icon-button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}

.hero-section,
.section-band,
.split-section,
.process-section,
.contact-section {
  width: min(var(--max-width), calc(100% - 40px));
  margin: 0 auto;
}

.hero-section {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: clamp(32px, 6vw, 78px);
  align-items: center;
  min-height: calc(100vh - 72px);
  padding: 72px 0 64px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2.6rem, 8vw, 6.8rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 8px;
  font-size: 1.12rem;
  letter-spacing: 0;
}

.hero-lede {
  max-width: 650px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.18rem);
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-weight: 800;
}

.button.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #ffffff;
}

.button.secondary {
  background: var(--surface);
  color: var(--text);
}

.hero-preview {
  min-width: 0;
}

.preview-window {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.preview-toolbar {
  display: flex;
  gap: 8px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
}

.preview-toolbar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--line);
}

.preview-media {
  position: relative;
  min-height: 360px;
  padding: 28px;
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.92), rgba(232, 93, 63, 0.84)),
    url("https://images.unsplash.com/photo-1497366754035-f200968a6e72?auto=format&fit=crop&w=1200&q=80")
      center/cover;
}

.preview-title {
  max-width: 240px;
  color: #ffffff;
  font-size: 2.4rem;
  font-weight: 900;
  line-height: 1;
}

.preview-grid {
  position: absolute;
  right: 26px;
  bottom: 26px;
  display: grid;
  grid-template-columns: repeat(2, minmax(70px, 1fr));
  gap: 10px;
  width: min(220px, calc(100% - 52px));
}

.preview-grid span {
  aspect-ratio: 1.2;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.18);
}

.preview-stat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 24px;
}

.preview-stat strong {
  font-size: 2.6rem;
}

.preview-stat span {
  color: var(--muted);
  text-align: right;
}

.section-band,
.split-section,
.process-section,
.contact-section {
  padding: 84px 0;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}

.section-heading.compact {
  display: block;
  margin-bottom: 0;
}

.section-heading.compact p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.7;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.project-card,
.service-list article,
.timeline li {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.project-card {
  overflow: hidden;
}

.project-image {
  min-height: 230px;
}

.color-a {
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.5), rgba(185, 217, 74, 0.72)),
    url("https://images.unsplash.com/photo-1518005020951-eccb494ad742?auto=format&fit=crop&w=900&q=80")
      center/cover;
}

.color-b {
  background:
    linear-gradient(135deg, rgba(232, 93, 63, 0.62), rgba(23, 26, 31, 0.25)),
    url("https://images.unsplash.com/photo-1558655146-9f40138edfeb?auto=format&fit=crop&w=900&q=80")
      center/cover;
}

.color-c {
  background:
    linear-gradient(135deg, rgba(23, 26, 31, 0.14), rgba(15, 118, 110, 0.64)),
    url("https://images.unsplash.com/photo-1497215728101-856f4ea42174?auto=format&fit=crop&w=900&q=80")
      center/cover;
}

.project-copy {
  padding: 22px;
}

.project-copy p,
.service-list p,
.timeline p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.split-section {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(28px, 6vw, 72px);
  align-items: start;
}

.service-list {
  display: grid;
  gap: 14px;
}

.service-list article {
  padding: 24px;
}

.service-number {
  display: inline-block;
  margin-bottom: 28px;
  color: var(--accent-warm);
  font-weight: 900;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.timeline li {
  padding: 24px;
}

.timeline span {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 44px;
  border-radius: 50%;
  background: var(--accent-fresh);
  color: #171a1f;
  font-weight: 900;
}

.timeline strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.08rem;
}

.contact-section {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(28px, 6vw, 72px);
  align-items: start;
  border-top: 1px solid var(--line);
}

.contact-form {
  display: grid;
  gap: 14px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  padding: 14px 16px;
}

.contact-form textarea {
  resize: vertical;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 28px clamp(20px, 5vw, 56px);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

@media (max-width: 880px) {
  .site-header {
    min-height: auto;
    padding-top: 16px;
    padding-bottom: 16px;
    flex-wrap: wrap;
    gap: 14px;
  }

  .main-nav {
    order: 3;
    width: 100%;
    justify-content: space-between;
    overflow-x: auto;
  }

  .hero-section,
  .split-section,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .hero-section {
    min-height: auto;
    padding-top: 56px;
  }

  .project-grid,
  .timeline {
    grid-template-columns: 1fr;
  }

  .section-heading {
    display: block;
  }
}

@media (max-width: 540px) {
  .hero-section,
  .section-band,
  .split-section,
  .process-section,
  .contact-section {
    width: min(var(--max-width), calc(100% - 28px));
  }

  h1 {
    font-size: 2.45rem;
  }

  .preview-media {
    min-height: 300px;
  }

  .preview-title {
    font-size: 2rem;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
