/* Traxa visual system: display, reading, interface and Korean fallback roles. */
:root {
  --ink: #20272c;
  --paper: #f5f4f0;
  --surface-soft: #e8eae7;
  --orange: #f26a2e;
  --orange-deep: #a83e18;
  --muted: #59636b;
  --line: #dadddc;
  --inverse-muted: #c5cbd0;
  --font-display: "Barlow", "Manrope", sans-serif;
  --font-body: "Manrope", "NotoKR", "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
  --type-display: clamp(3.5rem, 6vw, 5.75rem);
  --type-section: clamp(2.2rem, 4.2vw, 3.8rem);
  --type-card: clamp(1.5rem, 2vw, 1.9rem);
  --type-body: 1.0625rem;
  --type-small: 0.875rem;
  --type-label: 0.78rem;
  --copy-measure: 68ch;
}

body {
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-body);
  font-size: var(--type-body);
  line-height: 1.65;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.018em;
}

h1 {
  font-size: var(--type-display);
  line-height: 1.02;
}

h2 {
  font-size: var(--type-section);
  line-height: 1.08;
}

h3 {
  font-size: var(--type-card);
  line-height: 1.16;
}

p {
  max-width: var(--copy-measure);
}

.hero h1 {
  max-width: none;
  font-size: var(--type-display);
  line-height: 1;
  letter-spacing: -0.025em;
}

.hero-copy > p {
  max-width: 44ch;
  color: var(--inverse-muted);
  font-size: 1.125rem;
  line-height: 1.55;
}

.intro h2 {
  max-width: none;
}

.intro p,
.service p,
.experience-intro,
.team-profile p,
.experience-areas p,
.engagement-note,
.steps p,
.approach .method-top p,
.contact p {
  font-size: var(--type-body);
  line-height: 1.65;
}

.eyebrow {
  color: var(--muted);
  font-size: var(--type-label);
  line-height: 1.4;
  letter-spacing: 0.12em;
}

.index,
.project-number {
  color: var(--orange-deep);
}

.hero-facts strong {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  line-height: 1.12;
}

.hero-facts span,
.desktop-nav,
.languages,
.button,
.contact-form-panel label,
.form-note {
  font-family: var(--font-body);
}

.button.primary {
  color: var(--ink);
  background: var(--orange);
}

.button.primary:hover {
  color: var(--ink);
  background: #ff8957;
}

.experience,
.service-specialties {
  background: var(--surface-soft);
}

.service-specialties strong {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 1.8vw, 1.7rem);
  line-height: 1.18;
}

.service-specialties p {
  color: var(--muted);
  font-size: var(--type-body);
  line-height: 1.6;
}

.site-footer {
  color: var(--inverse-muted);
  background: #182025;
}

.site-footer .footer-identity img {
  width: 158px;
  height: auto;
  object-fit: contain;
}

.site-footer a:hover,
.desktop-nav a:hover {
  color: var(--orange);
}

::selection {
  color: var(--ink);
  background: var(--orange);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--orange-deep);
  outline-offset: 3px;
}

.contact a:focus-visible,
.contact button:focus-visible,
.site-footer a:focus-visible,
.site-footer summary:focus-visible {
  outline-color: #ff9b70;
}

html[lang="ko"] h1,
html[lang="ko"] h2,
html[lang="ko"] h3 {
  font-family: "NotoKR", "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
  letter-spacing: -0.035em;
  word-break: keep-all;
}

html[lang="ko"] h1 {
  font-size: clamp(2.8rem, 4.2vw, 4.5rem);
  line-height: 1.22;
}

html[lang="ko"] h2 {
  font-size: clamp(2rem, 3.2vw, 3.3rem);
  line-height: 1.3;
}

html[lang="ko"] h3 {
  font-size: clamp(1.35rem, 1.9vw, 1.65rem);
  line-height: 1.4;
}

html[lang="ko"] p {
  word-break: keep-all;
}

@media (max-width: 800px) {
  :root {
    --type-section: clamp(2rem, 5.2vw, 2.7rem);
    --type-card: clamp(1.4rem, 4.6vw, 1.7rem);
    --type-body: 1rem;
  }

  .hero h1 {
    max-width: 12ch;
    font-size: clamp(3.25rem, 10.3vw, 3.9rem);
    line-height: 1.02;
  }

  .hero-copy > p {
    font-size: 1.0625rem;
  }

  .hero-facts strong {
    font-size: 1.35rem;
  }

  .eyebrow {
    font-size: 0.75rem;
  }

  html[lang="ko"] h1 {
    font-size: clamp(2.45rem, 7.5vw, 3.5rem);
    line-height: 1.28;
  }

  html[lang="ko"] h2 {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    line-height: 1.35;
  }

  html[lang="ko"] h3 {
    font-size: 1.4rem;
  }
}
