:root {
  --ink: #171717;
  --muted: #6f716f;
  --line: #d9d6ce;
  --paper: #f7f5ef;
  --white: #ffffff;
  --accent: #8f1d2c;
  --forest: #203c37;
  --gold: #b78c47;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, "Helvetica Neue", sans-serif;
  line-height: 1.55;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 82px;
  padding: 0 clamp(20px, 5vw, 72px);
  background: rgba(247, 245, 239, 0.94);
  border-bottom: 1px solid rgba(23, 23, 23, 0.12);
  backdrop-filter: blur(16px);
}

.brand,
.footer-brand {
  display: inline-flex;
  flex-direction: column;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 27px;
  line-height: 0.95;
  letter-spacing: 0;
}

.brand strong {
  font-weight: 400;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.7vw, 38px);
  font-size: 14px;
  letter-spacing: 0;
}

.primary-nav a {
  color: #2d2d2d;
}

.primary-nav a:hover,
.primary-nav a.active {
  color: var(--accent);
}

.language-switch {
  display: inline-flex;
  border: 1px solid var(--line);
}

.language-switch button {
  min-width: 42px;
  height: 34px;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.language-switch button:last-child {
  border-right: 0;
}

.language-switch button.active {
  background: var(--ink);
  color: var(--white);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: transparent;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 1px;
  margin: 7px auto;
  background: var(--ink);
}

.hero {
  position: relative;
  min-height: min(760px, calc(100vh - 82px));
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 14, 13, 0.76), rgba(10, 14, 13, 0.25) 58%, rgba(10, 14, 13, 0.1)),
    url("hero-seoul.jpg") center / cover;
}

.hero-content {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: min(860px, calc(100% - 40px));
  min-height: min(760px, calc(100vh - 82px));
  padding: 6vh 0 12vh;
  margin: 0 auto;
  color: var(--white);
  transform: translateY(5%);
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-content .eyebrow {
  color: #f3c275;
}

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

h1,
h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: 0;
}

h1 {
  max-width: 820px;
  font-size: clamp(44px, 7vw, 88px);
}

h2 {
  font-size: clamp(30px, 4vw, 54px);
}

h3 {
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 500;
}

.hero-content p:last-child,
.page-hero p:last-child,
.about-hero p:last-child {
  max-width: 660px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 20px;
}

.page-hero,
.section-grid,
.insight-section,
.practice-board,
.news-board,
.about-hero,
.metrics,
.values,
.contact-grid {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.page-hero {
  padding: 112px 0 74px;
  border-bottom: 1px solid var(--line);
}

.page-hero p:last-child,
.about-hero p:last-child {
  color: var(--muted);
}

.feature-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: min(var(--max), calc(100% - 40px));
  margin: -42px auto 0;
  position: relative;
  background: var(--white);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.16);
}

.feature-strip a {
  min-height: 132px;
  padding: 28px;
  border-right: 1px solid var(--line);
}

.feature-strip a:last-child {
  border-right: 0;
}

.feature-strip span,
.practice-board span,
time,
.tag {
  display: block;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 13px;
}

.feature-strip strong {
  display: block;
  max-width: 280px;
  font-size: 19px;
  font-weight: 500;
  line-height: 1.35;
}

.section-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 72px;
  padding: 110px 0;
}

.service-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 34px 42px;
}

.service-list article,
.values article,
.news-board article,
.practice-board article,
.contact-card {
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

.service-list p,
.insight-list p,
.practice-board p,
.news-board p,
.values p,
.contact-card p,
.contact-card dd {
  color: var(--muted);
}

.spotlight {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 520px;
  background: var(--forest);
  color: var(--white);
}

.spotlight-image {
  background:
    linear-gradient(rgba(20, 31, 28, 0.18), rgba(20, 31, 28, 0.18)),
    url("office-tower.jpg") center / cover;
}

.spotlight-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 620px;
  padding: 70px clamp(28px, 7vw, 96px);
}

.spotlight-copy p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
}

.text-link,
.section-heading a {
  display: inline-flex;
  width: fit-content;
  margin-top: 22px;
  color: var(--accent);
  border-bottom: 1px solid currentColor;
}

.spotlight .text-link {
  color: #f3c275;
}

.insight-section {
  padding: 100px 0;
}

.lawyer-section {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 100px 0 80px;
}

.lawyer-section .section-heading {
  align-items: end;
}

.lawyer-section .section-heading h2 {
  margin-bottom: 20px;
}

.lawyer-section .section-heading > span {
  margin-bottom: 20px;
  color: var(--muted);
}

.lawyer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.lawyer-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  background: var(--white);
  border-top: 4px solid var(--forest);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.lawyer-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.14);
}

.lawyer-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
  background: #e7e2d8;
}

.lawyer-card span {
  display: block;
  padding: 24px 22px 0;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.lawyer-card h3 {
  padding: 8px 22px 0;
  font-size: 24px;
}

.lawyer-card p {
  margin: 0;
  padding: 10px 22px 26px;
  color: var(--muted);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.insight-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
}

.practice-board,
.news-board,
.values,
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px 60px;
  padding: 70px 0 112px;
}

.practice-board article {
  min-height: 330px;
}

.practice-board ul {
  padding-left: 18px;
  color: #414141;
}

.practice-board li {
  margin: 8px 0;
}

.news-board {
  grid-template-columns: repeat(3, 1fr);
}

.lead-news {
  grid-column: span 2;
  background: var(--white);
  padding: 34px;
  border-top: 4px solid var(--accent);
}

.lead-news h2 {
  font-size: clamp(30px, 4vw, 48px);
}

.tag {
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
}

.about-hero {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 70px;
  align-items: center;
  padding: 86px 0 70px;
}

.about-image {
  min-height: 520px;
  background:
    linear-gradient(rgba(29, 42, 38, 0.12), rgba(29, 42, 38, 0.12)),
    url("office-interior.jpg") center / cover;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.metrics div {
  padding: 38px 28px;
  border-right: 1px solid var(--line);
}

.metrics div:last-child {
  border-right: 0;
}

.metrics strong {
  display: block;
  color: var(--accent);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 56px;
  font-weight: 400;
}

.metrics span {
  color: var(--muted);
}

.contact-title {
  border-bottom: 0;
}

.contact-grid {
  grid-template-columns: 0.8fr 0.8fr 1.2fr;
  align-items: stretch;
}

.contact-card {
  background: var(--white);
  padding: 30px;
}

.contact-card h2 {
  margin-bottom: 26px;
  font-size: 28px;
}

.contact-card dt {
  margin-top: 18px;
  font-weight: 700;
}

.contact-card dd {
  margin: 4px 0 0;
}

.map-panel {
  display: grid;
  min-height: 360px;
  place-items: end start;
  padding: 32px;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(24, 36, 34, 0.82), rgba(143, 29, 44, 0.42)),
    url("seoul-map.jpg") center / cover;
}

.map-panel span {
  font-size: 28px;
  font-family: Georgia, "Times New Roman", serif;
}

.profile-hero {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 70px;
  align-items: end;
  padding: 86px 0 70px;
  border-bottom: 1px solid var(--line);
}

.profile-photo {
  background: var(--white);
  border-top: 4px solid var(--forest);
}

.profile-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
}

.profile-title h1 {
  margin-bottom: 18px;
}

.profile-title .role {
  color: var(--accent);
  font-weight: 700;
}

.profile-title .summary {
  max-width: 760px;
  color: var(--muted);
  font-size: 19px;
}

.profile-body {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  padding: 70px 0 110px;
}

.profile-panel {
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

.profile-panel h2 {
  margin-bottom: 22px;
  font-size: 32px;
}

.profile-panel p,
.profile-panel li {
  color: var(--muted);
}

.profile-panel ul {
  margin: 0;
  padding-left: 18px;
}

.profile-panel li {
  margin: 9px 0;
}

.site-footer {
  display: grid;
  grid-template-columns: 1.1fr 0.7fr 0.8fr;
  gap: 42px;
  padding: 58px clamp(20px, 5vw, 72px);
  color: rgba(255, 255, 255, 0.78);
  background: #161817;
}

.site-footer a {
  color: var(--white);
}

.site-footer p {
  max-width: 420px;
  margin: 10px 0;
}

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

[lang="ko"] h1,
[lang="ko"] h2,
[lang="ko"] .brand,
[lang="ko"] .footer-brand {
  font-family: Georgia, "Noto Serif KR", "Times New Roman", serif;
}

@media (max-width: 900px) {
  .nav-toggle {
    display: block;
  }

  .primary-nav {
    position: fixed;
    inset: 82px 0 auto 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 20px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
  }

  .primary-nav.open {
    display: flex;
  }

  .primary-nav a {
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
  }

  .language-switch {
    margin-top: 18px;
    width: fit-content;
  }

  .feature-strip,
  .section-grid,
  .spotlight,
  .insight-list,
  .lawyer-grid,
  .practice-board,
  .news-board,
  .about-hero,
  .metrics,
  .values,
  .contact-grid,
  .profile-hero,
  .profile-body,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .feature-strip a,
  .metrics div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .section-grid,
  .insight-section,
  .lawyer-section,
  .practice-board,
  .news-board,
  .values,
  .contact-grid {
    padding: 70px 0;
  }

  .lead-news {
    grid-column: auto;
  }

  .about-image,
  .spotlight-image {
    min-height: 360px;
  }
}

@media (max-width: 560px) {
  .site-header {
    min-height: 72px;
  }

  .brand {
    font-size: 23px;
  }

  .primary-nav {
    inset: 72px 0 auto 0;
  }

  .hero,
  .hero-content {
    min-height: 610px;
  }

  .hero-content {
    padding-bottom: 78px;
    transform: translateY(2%);
  }

  h1 {
    font-size: 42px;
  }

  .feature-strip {
    margin-top: 0;
    width: 100%;
  }

  .page-hero {
    padding-top: 78px;
  }

  .site-footer {
    padding-top: 44px;
  }
}
