:root {
  --maroon: #861622;
  --maroon-dark: #5d1119;
  --ink: #151313;
  --muted: #675f5d;
  --line: #e6dedb;
  --paper: #f7f4f1;
  --white: #ffffff;
  --blue: #0d84c6;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

body.menu-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

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

.language-link {
  color: var(--maroon);
}

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

[lang^="ko"] h1,
[lang^="ko"] h2,
[lang^="ko"] h3 {
  font-family: Georgia, "Times New Roman", "Apple SD Gothic Neo", "Noto Serif KR", serif;
}

[lang^="ko"] .lead,
[lang^="ko"] p,
[lang^="ko"] input,
[lang^="ko"] select,
[lang^="ko"] textarea,
[lang^="ko"] .button {
  font-family: Inter, "Apple SD Gothic Neo", "Noto Sans KR", ui-sans-serif, system-ui, sans-serif;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px clamp(20px, 4vw, 56px);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 1px 24px rgba(42, 20, 18, 0.08);
  transition: box-shadow 180ms ease, padding 180ms ease;
}

.site-header.scrolled,
.site-header.menu-active {
  box-shadow: 0 1px 28px rgba(42, 20, 18, 0.12);
}

.site-header.scrolled {
  padding-block: 10px;
}

.brand img {
  width: 142px;
  height: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.nav a {
  position: relative;
  padding: 8px 0;
}

.nav a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--maroon);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.nav a:hover::after,
.nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: var(--white);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  padding: 132px clamp(20px, 5vw, 72px) 72px;
  overflow: hidden;
  background: var(--ink);
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(18, 14, 14, 0.98), rgba(18, 14, 14, 0.94) 42%, rgba(18, 14, 14, 0.58) 62%, rgba(18, 14, 14, 0.08)),
    linear-gradient(0deg, rgba(18, 14, 14, 0.7), rgba(18, 14, 14, 0.08) 45%);
  content: "";
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 64% center;
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: min(640px, 100%);
  color: var(--white);
}

.eyebrow,
.section-label {
  margin: 0 0 14px;
  color: var(--maroon);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #f0c9c9;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 640px;
  margin-bottom: 24px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.1rem, 6.4vw, 5.8rem);
  line-height: 0.94;
  font-weight: 500;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.1rem, 4vw, 4.4rem);
  line-height: 1.02;
  font-weight: 500;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.05rem;
  line-height: 1.25;
  letter-spacing: 0;
}

.lead {
  max-width: 660px;
  margin-bottom: 34px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.08rem, 2vw, 1.35rem);
}

.hero-actions,
.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  padding: 13px 18px;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button.primary {
  background: var(--maroon);
  color: var(--white);
}

.button.primary:hover,
.button.primary:focus-visible {
  background: var(--maroon-dark);
}

.button.secondary {
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--white);
}

.button.secondary:hover,
.button.secondary:focus-visible {
  background: var(--white);
  color: var(--ink);
}

.hero-panel {
  position: absolute;
  right: clamp(20px, 5vw, 72px);
  bottom: 64px;
  z-index: 2;
  width: min(342px, calc(100vw - 40px));
  padding: 24px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.22);
}

.hero-panel img {
  width: 220px;
  margin-bottom: 18px;
}

.hero-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

section {
  padding: 104px clamp(20px, 5vw, 72px);
}

section[id] {
  scroll-margin-top: 112px;
}

.band {
  background: var(--paper);
}

.intro-grid,
.principal,
.contact,
.credential-band {
  width: min(var(--max), 100%);
  margin-inline: auto;
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(240px, 0.9fr) minmax(280px, 1fr);
  gap: clamp(36px, 7vw, 92px);
  align-items: start;
}

.intro .section-label,
.section-heading,
.expertise,
.approach .section-heading {
  width: min(var(--max), 100%);
  margin-inline: auto;
}

.intro-grid p,
.credential-band p,
.principal-copy p,
.contact-copy p {
  color: var(--muted);
  font-size: 1.05rem;
}

.section-heading {
  margin-bottom: 42px;
}

.service-grid {
  width: min(var(--max), 100%);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-inline: auto;
  background: var(--line);
  border: 1px solid var(--line);
}

.service-card {
  min-height: 280px;
  padding: 28px;
  background: var(--white);
}

.service-card span,
.timeline span {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  margin-bottom: 42px;
  background: var(--paper);
  color: var(--maroon);
  font-size: 0.82rem;
  font-weight: 800;
}

.service-card p,
.timeline p,
.legal-note {
  color: var(--muted);
}

.practice-list {
  width: min(var(--max), 100%);
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  margin: 54px auto 0;
  padding: 34px;
  border: 1px solid var(--line);
  background: var(--paper);
}

.practice-list h3 {
  margin-bottom: 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.6rem, 2.6vw, 2.6rem);
  font-weight: 500;
  line-height: 1.04;
}

.practice-list p {
  max-width: 720px;
  margin-bottom: 0;
  color: var(--muted);
}

.practice-columns {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.practice-columns > div {
  min-height: 280px;
  padding: 24px;
  background: var(--white);
}

.practice-list h4 {
  margin: 0 0 18px;
  color: var(--maroon);
  font-size: 0.86rem;
  line-height: 1.3;
  text-transform: uppercase;
}

.practice-list ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.practice-list li {
  position: relative;
  padding-left: 18px;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.42;
}

.practice-list li::before {
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 6px;
  height: 6px;
  background: var(--maroon);
  content: "";
}

.credential-band {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) 220px;
  gap: clamp(32px, 8vw, 110px);
  align-items: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.credential-band img {
  justify-self: end;
  width: 190px;
}

.principal {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(300px, 440px);
  gap: clamp(34px, 7vw, 96px);
  align-items: stretch;
}

.role {
  margin-bottom: 26px;
  color: var(--maroon) !important;
  font-weight: 800;
}

.details {
  display: grid;
  gap: 18px;
  margin: 34px 0 0;
}

.details div {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

dd {
  margin: 0;
  font-weight: 700;
}

.principal-card {
  display: flex;
  min-height: 420px;
  flex-direction: column;
  justify-content: space-between;
  padding: 34px;
  background: var(--maroon);
  color: var(--white);
}

.principal-logo {
  width: 188px;
  padding: 18px;
  background: var(--white);
}

.quote-mark {
  height: 84px;
  color: rgba(255, 255, 255, 0.24);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 9rem;
  line-height: 1;
}

.principal-card p {
  margin-bottom: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.04;
}

.timeline {
  width: min(var(--max), 100%);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
  margin-inline: auto;
}

.timeline div {
  padding-top: 24px;
  border-top: 1px solid #d8ceca;
}

.contact {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(320px, 1fr);
  gap: clamp(34px, 7vw, 90px);
}

.contact-links {
  margin-top: 28px;
}

.contact-links a {
  border-bottom: 2px solid var(--maroon);
  padding-bottom: 3px;
  font-weight: 800;
}

.contact-form {
  display: grid;
  gap: 18px;
  padding: 32px;
  background: var(--paper);
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #d9cfca;
  border-radius: 0;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  padding: 13px 14px;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--maroon);
  outline: 2px solid rgba(134, 22, 34, 0.14);
}

.form-note {
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.footer {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(280px, 560px);
  gap: 32px;
  align-items: end;
  padding: 42px clamp(20px, 5vw, 72px);
  border-top: 1px solid var(--line);
}

.footer img {
  width: 172px;
}

.footer p {
  margin: 14px 0 0;
}

.footer a {
  border-bottom: 1px solid currentColor;
  font-weight: 800;
}

.legal-note {
  font-size: 0.86rem;
}

@media (max-width: 1040px) {
  .hero {
    min-height: 860px;
  }

  .hero-panel {
    position: relative;
    right: auto;
    bottom: auto;
    margin-top: 48px;
  }

  .service-grid,
  .timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .practice-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .site-header {
    padding: 14px 18px;
  }

  .brand img {
    width: 148px;
  }

  .menu-toggle {
    display: block;
  }

  .nav {
    position: fixed;
    top: 74px;
    right: 18px;
    left: 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 18px;
    background: var(--white);
    box-shadow: 0 24px 54px rgba(30, 20, 18, 0.18);
  }

  .nav.open {
    display: flex;
  }

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

  .hero {
    min-height: auto;
    padding: 124px 20px 48px;
    background: linear-gradient(145deg, #150c0d, #321116 70%, #5d1119);
  }

  .hero-media img {
    display: none;
  }

  .hero-media::after {
    background: linear-gradient(180deg, rgba(18, 14, 14, 0.08), rgba(18, 14, 14, 0.42));
  }

  .hero-copy {
    padding-top: 32px;
  }

  h1 {
    font-size: clamp(2.8rem, 13vw, 3.45rem);
  }

  .hero-actions .button,
  .contact-form .button {
    width: 100%;
  }

  section {
    padding: 72px 20px;
  }

  .intro-grid,
  .credential-band,
  .principal,
  .contact,
  .footer {
    grid-template-columns: 1fr;
  }

  .service-grid,
  .timeline,
  .practice-columns {
    grid-template-columns: 1fr;
  }

  .practice-list {
    padding: 24px;
  }

  .credential-band img {
    justify-self: start;
  }

  .details div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .principal-card,
  .contact-form {
    padding: 24px;
  }
}
