:root {
  --bg: #fcfcfa;
  --ink: #111111;
  --accent: #1c2b4a;
  --muted: #6b6b6b;
  --line: #e4e2dd;
  --header-h: 88px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Helvetica Neue", "Segoe UI", "Apple SD Gothic Neo", "Malgun Gothic", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(24px, 5vw, 56px);
  background: var(--bg);
}

.logo {
  font-size: clamp(20px, 2.4vw, 26px);
  letter-spacing: -0.01em;
}

.logo-thin {
  font-weight: 400;
}

.logo-bold {
  font-weight: 800;
}

.menu-toggle {
  width: 32px;
  height: 22px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 60;
}

.menu-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--ink);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.menu-toggle.open span:nth-child(1) {
  transform: translateY(10px) rotate(45deg);
}

.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
  transform: translateY(-10px) rotate(-45deg);
}

/* ---------- Nav panel ---------- */

.nav-panel {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: min(360px, 100%);
  background: var(--accent);
  transform: translateX(100%);
  transition: transform 0.4s ease;
  z-index: 55;
  display: flex;
  align-items: center;
}

.nav-panel.open {
  transform: translateX(0);
}

.nav-panel ul {
  list-style: none;
  margin: 0;
  padding: 0 clamp(32px, 8vw, 64px);
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.nav-panel a {
  color: #fff;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.nav-panel a:hover {
  opacity: 0.7;
}

/* ---------- Hero ---------- */

.hero {
  padding: clamp(56px, 10vw, 120px) clamp(24px, 5vw, 56px) clamp(64px, 8vw, 100px);
  max-width: 1100px;
}

.tagline {
  margin: 0 0 28px;
  font-size: clamp(28px, 4.2vw, 52px);
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.01em;
  line-height: 1.15;
}

.hero-copy {
  max-width: 640px;
}

.hero-copy-en {
  margin: 0 0 18px;
  font-size: clamp(15px, 1.4vw, 17px);
  line-height: 1.7;
  color: var(--ink);
}

.hero-copy-kr {
  margin: 0;
  font-size: clamp(13px, 1.1vw, 14px);
  line-height: 1.8;
  color: var(--accent);
}

/* ---------- Work grid ---------- */

.work {
  padding: 0 clamp(24px, 5vw, 56px) clamp(80px, 10vw, 120px);
}

.work-grid {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(16px, 2vw, 28px);
}

.work-item {
  flex: 1 1 220px;
  min-width: 200px;
}

.work-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 2px;
  overflow: hidden;
  background: linear-gradient(160deg, var(--tone-a, #cfcac2) 0%, var(--tone-b, #a9a49c) 100%);
}

.work-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(255, 255, 255, 0.85);
  color: var(--ink);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 5px 10px;
  border-radius: 2px;
}

.work-caption {
  margin-top: 12px;
  text-align: center;
}

.work-name {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.work-type {
  margin-top: 3px;
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Contact ---------- */

.contact {
  border-top: 1px solid var(--line);
  padding: clamp(48px, 8vw, 80px) clamp(24px, 5vw, 56px);
  text-align: center;
}

.contact-label {
  margin: 0 0 14px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-email {
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 700;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease;
}

.contact-email:hover {
  border-color: var(--accent);
}

/* ---------- Footer ---------- */

.site-footer {
  padding: 24px clamp(24px, 5vw, 56px) 40px;
  text-align: center;
}

.site-footer p {
  margin: 0;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

/* ---------- Responsive ---------- */

@media (max-width: 640px) {
  .work-item {
    flex: 1 1 100%;
  }
}
