:root {
  --ink: #111315;
  --ink-soft: #262c30;
  --paper: #f7f7f2;
  --white: #ffffff;
  --copper: #b47a52;
  --copper-dark: #86563a;
  --teal: #285f63;
  --blue: #18334f;
  --mist: #dfe8e6;
  --line: rgba(17, 19, 21, 0.14);
  --shadow: 0 24px 70px rgba(17, 19, 21, 0.18);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family:
    -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Segoe UI", sans-serif;
  line-height: 1.65;
  text-rendering: geometricPrecision;
  overflow-x: hidden;
}

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

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  padding: 0 clamp(20px, 5vw, 64px);
  color: var(--white);
  transition: background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled {
  color: var(--ink);
  background: rgba(247, 247, 242, 0.92);
  box-shadow: 0 10px 36px rgba(17, 19, 21, 0.08);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid currentColor;
  font-size: 0.82rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 0.92rem;
}

.site-nav a {
  opacity: 0.82;
}

.site-nav a:hover {
  opacity: 1;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid currentColor;
  background: transparent;
  color: inherit;
  border-radius: 6px;
}

.menu-toggle svg {
  width: 21px;
  height: 21px;
}

.hero {
  position: relative;
  min-height: 680px;
  height: 88svh;
  max-height: 900px;
  overflow: hidden;
  color: var(--white);
  background: var(--ink);
}

.hero-bg,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.72) contrast(1.05);
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(17, 19, 21, 0.88) 0%, rgba(17, 19, 21, 0.68) 42%, rgba(17, 19, 21, 0.2) 100%),
    linear-gradient(0deg, rgba(17, 19, 21, 0.72) 0%, rgba(17, 19, 21, 0.08) 46%, rgba(17, 19, 21, 0.24) 100%);
}

.hero-grid {
  position: relative;
  z-index: 2;
  width: min(var(--max), calc(100% - 48px));
  height: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  align-items: center;
  gap: 58px;
  padding-top: 72px;
}

.hero-copy {
  max-width: 760px;
  min-width: 0;
}

.eyebrow,
.section-kicker {
  margin: 0 0 16px;
  color: var(--copper);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.hero h1 {
  margin: 0;
  font-size: 5rem;
  line-height: 1.02;
  font-weight: 750;
}

.hero-subtitle {
  max-width: 720px;
  margin: 24px 0 0;
  font-size: 1.55rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.92);
  overflow-wrap: anywhere;
}

.hero-credentials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.hero-credentials span {
  border: 1px solid rgba(255, 255, 255, 0.28);
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  font-size: 0.9rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 6px;
  font-weight: 700;
  line-height: 1.2;
}

.button svg,
.contact-link svg,
.practice-card svg {
  flex: 0 0 auto;
}

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

.button.secondary {
  border: 1px solid rgba(255, 255, 255, 0.36);
  color: var(--white);
}

.portrait {
  align-self: end;
  justify-self: end;
  width: min(400px, 32vw);
  margin: 0;
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.45));
}

.portrait img {
  width: 100%;
  max-height: 72svh;
  object-fit: contain;
}

.signal-strip {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: 50px;
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  padding: 70px 0 46px;
  border-bottom: 1px solid var(--line);
}

.signal-copy h2,
.section-heading h2,
.image-band-copy h2,
.contact-section h2 {
  margin: 0;
  font-size: 2.35rem;
  line-height: 1.18;
  font-weight: 760;
}

.signal-items {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.signal-items div {
  padding-top: 16px;
  border-top: 2px solid var(--copper);
}

.signal-items strong,
.signal-items span {
  display: block;
}

.signal-items strong {
  font-size: 1.05rem;
}

.signal-items span {
  margin-top: 8px;
  color: rgba(17, 19, 21, 0.68);
  font-size: 0.95rem;
}

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

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

.section-heading.compact {
  margin-bottom: 30px;
}

.section-heading p:not(.section-kicker) {
  margin: 18px 0 0;
  color: rgba(17, 19, 21, 0.7);
  font-size: 1.05rem;
}

.practice-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.practice-card {
  min-height: 280px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.52);
  box-shadow: 0 18px 46px rgba(17, 19, 21, 0.06);
}

.practice-card svg {
  width: 30px;
  height: 30px;
  color: var(--teal);
}

.practice-card h3,
.case-card h3,
.method-item h3,
.insight-list h3 {
  margin: 24px 0 10px;
  font-size: 1.2rem;
  line-height: 1.3;
}

.practice-card p,
.case-card p,
.method-item p,
.insight-list p {
  margin: 0;
  color: rgba(17, 19, 21, 0.68);
}

.dark-section {
  width: 100%;
  max-width: none;
  padding: 90px max(24px, calc((100vw - var(--max)) / 2)) 100px;
  color: var(--white);
  background: var(--ink);
}

.dark-section .section-heading {
  width: min(var(--max), 100%);
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  width: min(var(--max), 100%);
}

.case-card {
  min-height: 250px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.case-card.featured {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  padding: 0;
  overflow: hidden;
}

.case-card.featured img {
  width: 100%;
  height: 100%;
  min-height: 290px;
  object-fit: cover;
}

.case-card.featured div {
  padding: 26px 24px 24px 0;
}

.case-card span,
.insight-list span {
  color: var(--copper);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.case-card p {
  color: rgba(255, 255, 255, 0.66);
}

.method-section {
  padding-bottom: 70px;
}

.method {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.method-item {
  border-top: 1px solid var(--line);
  padding-top: 22px;
}

.method-item span {
  color: var(--copper);
  font-weight: 800;
}

.image-band {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  color: var(--white);
  background: var(--ink);
}

.image-band img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.74) contrast(1.05);
}

.image-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(17, 19, 21, 0.82), rgba(17, 19, 21, 0.32));
}

.image-band-copy {
  position: absolute;
  z-index: 2;
  left: max(24px, calc((100vw - var(--max)) / 2));
  bottom: 54px;
  max-width: 700px;
}

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

.insight-list article {
  min-height: 230px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.contact-section {
  display: grid;
  grid-template-columns: 1fr 430px;
  gap: 52px;
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto 70px;
  padding: 64px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.contact-actions {
  display: grid;
  gap: 12px;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
  font-weight: 700;
  overflow-wrap: anywhere;
}

.contact-link svg {
  width: 22px;
  height: 22px;
  color: var(--teal);
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px max(24px, calc((100vw - var(--max)) / 2));
  color: rgba(255, 255, 255, 0.7);
  background: var(--ink);
  font-size: 0.92rem;
}

@media (max-width: 1020px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 30px;
  }

  .hero h1 {
    font-size: 4rem;
  }

  .hero-subtitle {
    font-size: 1.3rem;
  }

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

  .signal-strip,
  .contact-section {
    grid-template-columns: 1fr;
  }
}

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

  .menu-toggle {
    display: grid;
    place-items: center;
  }

  .site-nav {
    position: fixed;
    top: 66px;
    right: 18px;
    left: 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    color: var(--ink);
    background: rgba(247, 247, 242, 0.96);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 12px;
  }

  .hero {
    height: 88svh;
    min-height: 680px;
  }

  .hero-grid {
    width: min(100% - 36px, var(--max));
    grid-template-columns: 1fr;
    align-content: center;
    gap: 20px;
    padding-top: 66px;
  }

  .hero h1 {
    font-size: 3.2rem;
  }

  .hero-subtitle {
    max-width: 560px;
    font-size: 1.15rem;
  }

  .hero-actions {
    margin-top: 26px;
  }

  .button {
    width: 100%;
  }

  .portrait {
    position: absolute;
    right: 12px;
    bottom: 0;
    width: 165px;
    opacity: 0.92;
  }

  .hero-copy {
    padding-bottom: 126px;
  }

  .signal-strip,
  .section,
  .contact-section {
    width: min(100% - 36px, var(--max));
  }

  .signal-strip,
  .section {
    padding: 64px 0;
  }

  .signal-items,
  .practice-grid,
  .case-grid,
  .method,
  .insight-list {
    grid-template-columns: 1fr;
  }

  .signal-copy h2,
  .section-heading h2,
  .image-band-copy h2,
  .contact-section h2 {
    font-size: 2rem;
  }

  .case-card.featured {
    grid-column: span 1;
    grid-template-columns: 1fr;
  }

  .case-card.featured div {
    padding: 0 22px 22px;
  }

  .case-card.featured img {
    height: 220px;
    min-height: 220px;
  }

  .image-band img {
    height: 460px;
  }

  .image-band-copy {
    right: 24px;
    bottom: 34px;
  }

  .footer {
    flex-direction: column;
  }
}

@media (max-width: 430px) {
  .hero h1 {
    font-size: 2.7rem;
  }

  .hero-credentials span {
    font-size: 0.82rem;
    padding: 7px 10px;
  }

  .portrait {
    width: 150px;
  }

  .hero-copy {
    padding-bottom: 100px;
  }
}
