:root {
  --bg: #f4f0e8;
  --surface: #fffaf0;
  --surface-2: #ebe4d6;
  --text: #111216;
  --muted: #686258;
  --line: rgba(17,18,22,.13);
  --accent: #947847;
  --accent-2: #c5ad7a;
  --inverse: #151516;
  --inverse-text: #f4f0e8;
  --shadow: 0 22px 70px rgba(41,33,20,.10);
  --radius-lg: 32px;
  --radius-md: 22px;
  --max: 1180px;
}
[data-theme="dark"] {
  --bg: #101011;
  --surface: #171718;
  --surface-2: #202022;
  --text: #f5efe4;
  --muted: #a59c8c;
  --line: rgba(245,239,228,.12);
  --accent: #b79a60;
  --accent-2: #d8c99f;
  --inverse: #f4f0e8;
  --inverse-text: #111216;
  --shadow: 0 22px 80px rgba(0,0,0,.34);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans KR", sans-serif; letter-spacing: -0.03em; }
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; display: block; }
::selection { background: rgba(183,154,96,.28); }
.shell { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }
.site-header { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(20px); background: color-mix(in srgb, var(--bg) 82%, transparent); border-bottom: 1px solid var(--line); }
.nav { height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 0; min-width: 0; }
.brand img { width: 116px; height: auto; max-height: 34px; object-fit: contain; }
.logo-light { display: none; }
[data-theme="dark"] .logo-dark { display: none; }
[data-theme="dark"] .logo-light { display: block; }
.nav-links { display: flex; align-items: center; gap: 26px; color: var(--muted); font-size: 14px; letter-spacing: -0.02em; }
.nav-links a:hover { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.theme-toggle, .menu-toggle { border: 1px solid var(--line); background: var(--surface); color: var(--text); height: 40px; padding: 0 14px; border-radius: 999px; cursor: pointer; box-shadow: none; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 999px; background: var(--text); color: var(--bg); font-weight: 700; font-size: 14px; border: 1px solid var(--text); transition: transform .2s ease, opacity .2s ease; white-space: nowrap; }
.button:hover { transform: translateY(-1px); }
.button.secondary { background: transparent; color: var(--text); border-color: var(--line); }
.mobile-panel { display: none; border-top: 1px solid var(--line); padding: 12px 0 20px; }
.mobile-panel a { display: block; padding: 14px 0; color: var(--muted); border-bottom: 1px solid var(--line); }
.mobile-panel.is-open { display: block; }
.hero { padding: 78px 0 64px; overflow: hidden; }
.eyebrow { color: var(--accent); font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 18px; }
h1, h2, h3, p { margin: 0; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(380px, .86fr); gap: 56px; align-items: center; }
h1 { font-size: clamp(42px, 5.1vw, 72px); line-height: 1.04; letter-spacing: -0.065em; max-width: 760px; word-break: keep-all; overflow-wrap: normal; }
.lead { margin-top: 24px; font-size: clamp(17px, 1.6vw, 21px); line-height: 1.65; color: var(--muted); max-width: 680px; letter-spacing: -0.04em; word-break: keep-all; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-visual { position: relative; }
.hero-visual::before { content: ""; position: absolute; inset: -70px -30px auto auto; width: 360px; height: 360px; border-radius: 999px; background: radial-gradient(circle, rgba(183,154,96,.28), transparent 68%); filter: blur(8px); pointer-events: none; }
.hero-visual img { position: relative; border-radius: 34px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 58px; }
.metric { min-height: 132px; border: 1px solid var(--line); border-radius: 28px; padding: 26px; background: color-mix(in srgb, var(--surface) 62%, transparent); }
.metric strong { display: block; font-size: clamp(26px, 2.7vw, 36px); line-height: 1.08; letter-spacing: -0.055em; }
.metric span { display: block; margin-top: 14px; color: var(--muted); font-weight: 650; font-size: 15px; line-height: 1.55; word-break: keep-all; }
.section { padding: 78px 0; }
.section.tight { padding-top: 50px; }
.section-head { display: grid; grid-template-columns: minmax(0, .82fr) minmax(280px, .45fr); gap: 40px; align-items: end; margin-bottom: 36px; }
h2 { font-size: clamp(30px, 3.6vw, 52px); line-height: 1.08; letter-spacing: -0.065em; word-break: keep-all; overflow-wrap: normal; }
.section-head p { color: var(--muted); font-size: 16px; line-height: 1.7; word-break: keep-all; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { border: 1px solid var(--line); border-radius: var(--radius-lg); background: color-mix(in srgb, var(--surface) 84%, transparent); padding: 30px; box-shadow: 0 1px 0 rgba(255,255,255,.04) inset; }
.card h3 { font-size: 24px; letter-spacing: -0.055em; line-height:1.22; word-break:keep-all; }
.card p { margin-top: 16px; color: var(--muted); line-height: 1.65; font-size: 16px; }
.card .num { color: var(--accent); font-weight: 900; font-size: 13px; letter-spacing: .08em; margin-bottom: 42px; }
.split { display: grid; grid-template-columns: .9fr 1.1fr; gap: 16px; }
.panel { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); padding: 36px; overflow: hidden; }
.identity-logo { height: 146px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 28px; background: var(--surface-2); margin-bottom: 22px; }
.identity-logo img { max-width: 300px; width: 72%; }
[data-theme="dark"] .identity-logo .logo-dark { display:none; }
[data-theme="dark"] .identity-logo .logo-light { display:block; }
.identity-logo .logo-light { display:none; }
.project-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.project-card { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); overflow: hidden; }
.project-card .visual { background: var(--surface-2); padding: 16px; }
.project-card .content { padding: 28px; }
.project-card h3 { font-size: 24px; line-height:1.22; word-break:keep-all; }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.tag { font-size: 12px; font-weight: 800; padding: 8px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); }
.list { display: grid; gap: 14px; margin-top: 22px; }
.list-item { display: grid; grid-template-columns: 30px 1fr; gap: 14px; align-items: start; color: var(--muted); line-height: 1.62; }
.dot { width: 10px; height: 10px; margin-top: 8px; border-radius: 50%; background: var(--accent); }
.contact-block { border: 1px solid var(--line); border-radius: 40px; background: var(--surface); padding: clamp(28px, 5vw, 58px); box-shadow: var(--shadow); overflow: hidden; }
.contact-mail { display: inline-block; margin-top: 18px; font-size: clamp(22px, 2.4vw, 34px); line-height: 1.18; letter-spacing: -0.045em; font-weight: 850; max-width: 100%; overflow-wrap: anywhere; word-break: break-word; color: var(--text); }
.contact-note { margin-top: 16px; color: var(--muted); font-size: clamp(15px, 1.4vw, 18px); line-height: 1.7; max-width: 700px; word-break: keep-all; }
.form { display: grid; gap: 12px; margin-top: 28px; }
.form input, .form textarea, .form select { width: 100%; border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; background: color-mix(in srgb, var(--bg) 72%, var(--surface)); color: var(--text); font: inherit; font-size: 15px; outline: none; }
.form textarea { min-height: 142px; resize: vertical; }
.site-footer { padding: 58px 0 40px; border-top: 1px solid var(--line); color: var(--muted); }
.footer-top { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 34px; }
.footer-logo img { width: 118px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; font-size: 14px; }
.company-info { font-size: 13px; line-height: 1.85; letter-spacing: -0.015em; word-break: keep-all; }
.company-info span { display: inline-block; margin-right: 8px; }
.page-hero { padding: 76px 0 44px; }
.page-hero h1 { font-size: clamp(36px, 4.6vw, 64px); max-width: 980px; line-height: 1.08; }
.page-copy { margin-top: 22px; max-width: 760px; color: var(--muted); font-size: clamp(16px, 1.5vw, 19px); line-height: 1.7; word-break: keep-all; }
.facts { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; }
.fact { border: 1px solid var(--line); border-radius: 20px; padding: 20px; background: var(--surface); }
.fact small { display:block; color: var(--muted); margin-bottom: 8px; font-weight: 800; }
.fact strong { font-size: 18px; line-height: 1.45; }
.legal { max-width: 880px; color: var(--muted); line-height: 1.85; font-size: 16px; }
.legal h2 { color: var(--text); font-size: 28px; margin-top: 34px; margin-bottom: 10px; }
.legal ul { padding-left: 22px; }

/* Typography scale safety: avoid oversized editorial titles and Korean syllable wrapping. */
h1, h2, h3, .lead, .page-copy, .section-head p, .card p, .list-item, .metric span { word-break: keep-all; }
.contact-mail { font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }

@media (max-width: 980px) {
  .hero-grid, .split, .section-head { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .hero { padding-top: 54px; }
  .metrics, .cards, .project-grid, .facts { grid-template-columns: 1fr; }
  .metric { min-height: unset; }
  .nav-links { display: none; }
  .menu-toggle { display: inline-flex; align-items:center; }
}
@media (min-width: 981px) { .menu-toggle { display: none; } }
@media (max-width: 760px) {
  .hero-grid { gap: 34px; }
  .page-hero h1 { font-size: clamp(34px, 9vw, 48px); }
  .section-head { gap: 18px; }
  .metrics { margin-top: 42px; }
  .contact-block { padding: 28px; }
}
@media (max-width: 560px) {
  .shell { width: min(100% - 28px, var(--max)); }
  .nav { height: 68px; }
  .brand img { width: 104px; max-height: 30px; }
  .button { height: 40px; padding: 0 14px; font-size: 13px; }
  .nav-actions .button { display: none; }
  h1 { font-size: clamp(34px, 10.5vw, 48px); line-height: 1.08; letter-spacing: -0.06em; }
  h2 { font-size: 32px; line-height: 1.12; }
  .lead { font-size: 17px; }
  .section { padding: 64px 0; }
  .card, .panel, .project-card .content { padding: 24px; border-radius: 24px; }
  .contact-block { border-radius: 28px; }
  .contact-mail { font-size: clamp(21px, 7vw, 28px); letter-spacing: -0.04em; }
  .footer-top { align-items: flex-start; flex-direction: column; }
}
