/* ===== Tokens ===== */
:root {
  --bg: #faf9f7;
  --surface: #ffffff;
  --surface-2: #f2f0eb;
  --text: #16151a;
  --muted: #6b6a72;
  --line: #e8e6e1;
  --accent: #b8893b;
  --accent-soft: rgba(184, 137, 59, .12);
  --dark: #16151a;
  --on-dark: #f4f2ee;
  --dark-hover: #2b2a31;
  --header-bg: rgba(250, 249, 247, .85);
  --statement-bg: #16151a;
  --statement-text: #f4f2ee;
  --statement-muted: #a09fa6;
  --shadow: rgba(22, 21, 26, .18);
  --serif: "Playfair Display", "Noto Sans KR", serif;
  --sans: "Inter", "Noto Sans KR", system-ui, sans-serif;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #121115;
  --surface: #1b1a20;
  --surface-2: #222128;
  --text: #f1efea;
  --muted: #9d9ba4;
  --line: #2a2930;
  --accent: #d4a65a;
  --accent-soft: rgba(212, 166, 90, .14);
  --dark: #f1efea;
  --on-dark: #16151a;
  --dark-hover: #ffffff;
  --header-bg: rgba(18, 17, 21, .8);
  --statement-bg: #1b1a20;
  --statement-text: #f1efea;
  --statement-muted: #8a8890;
  --shadow: rgba(0, 0, 0, .5);
  color-scheme: dark;
}
:root[data-theme="dark"] .statement { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ===== Base ===== */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
  overflow-wrap: break-word;
  transition: background-color .3s, color .3s;
}
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.serif { font-family: var(--serif); font-weight: 500; }
.eyebrow { font-size: 12px; letter-spacing: .28em; text-transform: uppercase; color: var(--accent); margin-bottom: 28px; }

/* ===== Header ===== */
header {
  position: sticky; top: 0; z-index: 20;
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transition: background-color .3s, border-color .3s;
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { font-weight: 600; letter-spacing: .32em; font-size: 15px; }
.logo span { color: var(--accent); }
nav ul { display: flex; gap: 36px; list-style: none; font-size: 14px; color: var(--muted); }
nav a { position: relative; transition: color .2s; }
nav a:hover, nav a[aria-current="page"] { color: var(--text); }
nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 50%; bottom: -8px;
  width: 4px; height: 4px; border-radius: 50%; background: var(--accent); transform: translateX(-50%);
}
.nav-right { display: flex; align-items: center; gap: 12px; }
.icon-btn {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line); background: transparent; color: var(--text);
  display: grid; place-items: center; cursor: pointer; transition: border-color .2s, transform .2s;
}
.icon-btn:hover { border-color: var(--accent); }
.icon-btn svg { width: 18px; height: 18px; }
.theme-toggle:hover { transform: rotate(15deg); }
.theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: block; }
:root[data-theme="dark"] .theme-toggle .moon { display: none; }
.menu-toggle { display: none; }

/* ===== Buttons ===== */
.btn {
  display: inline-block; padding: 14px 30px; border-radius: 999px; border: 0; cursor: pointer;
  font: inherit; font-size: 14px; font-weight: 500; transition: transform .2s, background .2s, color .2s;
}
.btn-dark { background: var(--dark); color: var(--on-dark); }
.btn-dark:hover { transform: translateY(-2px); background: var(--dark-hover); }
.btn-line { border: 1px solid var(--text); background: transparent; color: var(--text); }
.btn-line:hover { background: var(--text); color: var(--bg); }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.link-arrow:hover { color: var(--accent); }

/* ===== Hero (home) ===== */
.hero { padding: 140px 0 120px; text-align: center; }
.hero h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(40px, 7vw, 84px); line-height: 1.15; letter-spacing: -.01em; }
.hero h1 em, h1 em, h2 em { color: var(--accent); }
.hero p { max-width: 520px; margin: 32px auto 48px; color: var(--muted); font-size: 18px; font-weight: 300; }
.hero .actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ===== Page hero (subpages) ===== */
.page-hero { padding: 120px 0 72px; border-bottom: 1px solid var(--line); }
.page-hero h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(38px, 6vw, 72px); line-height: 1.15; max-width: 820px; }
.page-hero .lead { max-width: 560px; margin-top: 28px; color: var(--muted); font-size: 18px; font-weight: 300; }

/* ===== Sections ===== */
section { padding: 110px 0; }
.section-head { max-width: 560px; margin-bottom: 64px; }
.section-head h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(30px, 4vw, 44px); line-height: 1.25; }
.section-head .eyebrow { margin-bottom: 14px; }
.section-head p { color: var(--muted); margin-top: 16px; font-weight: 300; }
.split { display: grid; grid-template-columns: 1fr 1.4fr; gap: 80px; align-items: start; }
.prose p { color: var(--muted); font-size: 17px; font-weight: 300; margin-bottom: 20px; }
.prose p strong { color: var(--text); font-weight: 500; }

/* ===== Cards ===== */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px;
  padding: 40px 32px; transition: transform .3s, box-shadow .3s, background-color .3s, border-color .3s;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 24px 48px -24px var(--shadow); }
.card .num { font-family: var(--serif); color: var(--accent); font-size: 15px; }
.card h3 { font-size: 20px; font-weight: 600; margin: 18px 0 12px; }
.card p { color: var(--muted); font-size: 15px; font-weight: 300; }
.card ul { list-style: none; margin-top: 20px; display: grid; gap: 8px; }
.card li { font-size: 14px; color: var(--muted); padding-left: 18px; position: relative; }
.card li::before { content: ""; position: absolute; left: 0; top: .75em; width: 8px; height: 1px; background: var(--accent); }

/* ===== Statement ===== */
.statement { background: var(--statement-bg); color: var(--statement-text); text-align: center; transition: background-color .3s, color .3s; }
.statement blockquote { font-family: var(--serif); font-size: clamp(26px, 4vw, 46px); line-height: 1.4; max-width: 820px; margin: 0 auto; }
.statement blockquote em { color: var(--accent); }
.stats { display: flex; justify-content: center; gap: 80px; margin-top: 80px; flex-wrap: wrap; }
.stat strong { display: block; font-family: var(--serif); font-size: 44px; font-weight: 500; }
.stat span { font-size: 13px; color: var(--statement-muted); letter-spacing: .08em; }

/* ===== Timeline (about) ===== */
.timeline { list-style: none; border-left: 1px solid var(--line); margin-left: 6px; }
.timeline li { position: relative; padding: 0 0 48px 40px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: ""; position: absolute; left: -6px; top: 8px;
  width: 11px; height: 11px; border-radius: 50%; background: var(--bg); border: 2px solid var(--accent);
}
.timeline .year { font-family: var(--serif); color: var(--accent); font-size: 18px; }
.timeline h3 { font-size: 19px; font-weight: 600; margin: 4px 0 6px; }
.timeline p { color: var(--muted); font-weight: 300; }

/* ===== Team ===== */
.person { text-align: left; }
.avatar {
  aspect-ratio: 4 / 5; border-radius: 20px; margin-bottom: 20px; overflow: hidden;
  display: grid; place-items: center; font-family: var(--serif); font-size: 64px; color: var(--accent);
  background: radial-gradient(circle at 30% 20%, var(--accent-soft), transparent 60%), var(--surface-2);
  border: 1px solid var(--line);
}
.person h3 { font-size: 18px; font-weight: 600; }
.person p { color: var(--muted); font-size: 14px; }

/* ===== Work ===== */
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 48px; }
.chip {
  padding: 10px 20px; border-radius: 999px; border: 1px solid var(--line); background: transparent;
  font: inherit; font-size: 14px; color: var(--muted); cursor: pointer; transition: all .2s;
}
.chip:hover { color: var(--text); border-color: var(--text); }
.chip.active { background: var(--text); border-color: var(--text); color: var(--bg); }
.projects { display: grid; grid-template-columns: repeat(2, 1fr); gap: 48px 32px; }
.project { display: block; }
.project.hidden { display: none; }
.thumb {
  position: relative; aspect-ratio: 4 / 3; border-radius: 20px; overflow: hidden; margin-bottom: 20px;
  border: 1px solid var(--line);
}
.thumb .art { position: absolute; inset: 0; transition: transform .7s cubic-bezier(.2, .7, .2, 1); }
.project:hover .thumb .art { transform: scale(1.05); }
.thumb .mark {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--serif); font-size: clamp(28px, 4vw, 44px); letter-spacing: .04em;
}
.art-1 { background: linear-gradient(135deg, #1f3b36, #3e6b5f); }
.art-1 + .mark { color: #e9e2cf; }
.art-2 { background: radial-gradient(circle at 70% 30%, #f3c9a8, #e07a5f 60%, #a8453a); }
.art-2 + .mark { color: #fff7ef; }
.art-3 { background: linear-gradient(160deg, #ecebe6 0%, #d8d5cc 100%); }
.art-3 + .mark { color: #2a2930; }
.art-4 { background: conic-gradient(from 200deg at 30% 70%, #1b1b3a, #3d348b, #7678ed, #1b1b3a); }
.art-4 + .mark { color: #f1efff; }
.art-5 { background: linear-gradient(120deg, #b8893b, #e3c48c); }
.art-5 + .mark { color: #2b1f0b; }
.art-6 { background: radial-gradient(circle at 50% 120%, #4a4a4a, #111 70%); }
.art-6 + .mark { color: #d4a65a; }
.project-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.project h3 { font-size: 20px; font-weight: 600; }
.project .tag { font-size: 13px; color: var(--muted); white-space: nowrap; }
.project p { color: var(--muted); font-size: 15px; font-weight: 300; margin-top: 4px; }

/* ===== Services: process ===== */
.service-card .icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent);
}
.service-card .icon svg { width: 24px; height: 24px; }
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: step; border-top: 1px solid var(--line); }
.step { padding: 36px 28px 0 0; position: relative; }
.step::before {
  counter-increment: step; content: "0" counter(step);
  display: block; font-family: var(--serif); font-size: 40px; color: var(--accent); margin-bottom: 12px;
}
.step::after { content: ""; position: absolute; top: -4px; left: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.step h3 { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 14px; font-weight: 300; }
.pricing .card { display: flex; flex-direction: column; }
.pricing .card.featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.price { font-family: var(--serif); font-size: 36px; margin: 8px 0 4px; }
.price small { font-family: var(--sans); font-size: 14px; color: var(--muted); }
.pricing .card .btn { margin-top: auto; text-align: center; }
.pricing .card ul { margin-bottom: 32px; }
.badge { align-self: flex-start; display: inline-block; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); background: var(--accent-soft); padding: 4px 10px; border-radius: 999px; }

/* ===== Contact ===== */
.contact { text-align: center; }
.contact h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(30px, 5vw, 56px); line-height: 1.25; }
.contact p { color: var(--muted); margin: 20px 0 40px; font-weight: 300; }
.form { display: grid; gap: 20px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: grid; gap: 8px; }
.field label { font-size: 13px; font-weight: 500; letter-spacing: .02em; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 15px; color: var(--text); background: var(--surface);
  border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; width: 100%;
  transition: border-color .2s, box-shadow .2s, background-color .3s;
}
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft);
}
.budget { display: flex; flex-wrap: wrap; gap: 10px; }
.budget input { position: absolute; opacity: 0; pointer-events: none; }
.budget label {
  padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line); cursor: pointer;
  font-size: 14px; font-weight: 400; color: var(--muted); transition: all .2s;
}
.budget input:checked + label { background: var(--text); border-color: var(--text); color: var(--bg); }
.budget input:focus-visible + label { box-shadow: 0 0 0 4px var(--accent-soft); }
.form-note { font-size: 13px; color: var(--muted); }
.info-list { list-style: none; display: grid; gap: 28px; }
.info-list dt { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); margin-bottom: 4px; }
.info-list dd { font-size: 17px; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 28px 0; font-size: 18px; font-weight: 500;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--serif); font-size: 28px; color: var(--accent); transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); font-weight: 300; padding-bottom: 28px; max-width: 720px; }

/* ===== CTA band ===== */
.cta-band { border-top: 1px solid var(--line); text-align: center; }
.cta-band h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(28px, 4vw, 44px); line-height: 1.3; margin-bottom: 36px; }

/* ===== Footer ===== */
footer { border-top: 1px solid var(--line); padding: 36px 0; font-size: 13px; color: var(--muted); }
footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
footer nav ul { gap: 24px; font-size: 13px; }

/* ===== Reveal ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 40px; }
  .process { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
}
@media (max-width: 800px) {
  .menu-toggle { display: grid; }
  header nav {
    position: absolute; top: 72px; left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    display: none;
  }
  header.open nav { display: block; }
  header nav ul { flex-direction: column; gap: 0; padding: 8px 24px 20px; font-size: 16px; }
  header nav li a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); }
  header nav a[aria-current="page"]::after { display: none; }
  header nav a[aria-current="page"] { color: var(--accent); }
  .nav-right .btn { display: none; }
  .grid, .grid-2, .projects { grid-template-columns: 1fr; }
  .form .row { grid-template-columns: 1fr; }
  .hero { padding: 90px 0 80px; }
  .page-hero { padding: 80px 0 56px; }
  section { padding: 80px 0; }
  .stats { gap: 40px; }
}
@media (max-width: 520px) {
  .process { grid-template-columns: 1fr; }
}
