:root {
  --ink: #17191f;
  --navy: #172838;
  --muted: #626975;
  --line: #ddd7ce;
  --paper: #f7f5f1;
  --white: #fffdfa;
  --wine: #7b1f2d;
  --wine-dark: #53141e;
  --gold: #ad8552;
  --blue: #28516b;
  --shadow: 0 28px 70px rgba(23, 25, 31, 0.16);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(180deg, #fbfaf7 0%, var(--paper) 55%, #f1ede6 100%);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  line-height: 1.7;
  letter-spacing: 0;
  text-wrap: pretty;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px 24px;
  background: rgba(251, 250, 247, 0.88);
  border-bottom: 1px solid rgba(221, 215, 206, 0.78);
  box-shadow: 0 10px 30px rgba(23, 25, 31, 0.05);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 174px;
}

.brand-symbol {
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  overflow: hidden;
  background: var(--white);
  border: 1px solid rgba(221, 215, 206, 0.96);
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(83, 20, 30, 0.18);
}

.brand-symbol img {
  display: block;
  width: 100%;
  height: 100%;
}

.brand-text strong,
.brand-text small {
  display: block;
}

.brand-text strong {
  font-size: 17px;
  line-height: 1.2;
}

.brand-text small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #3f4650;
  font-size: 14px;
}

.site-nav a {
  padding: 8px 10px;
  border-radius: 6px;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--wine);
  background: rgba(123, 31, 45, 0.08);
  outline: none;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.82fr);
  gap: 62px;
  align-items: center;
  max-width: var(--max);
  min-height: calc(100svh - 83px);
  margin: 0 auto;
  padding: 74px 24px 64px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--wine);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
}

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

h1,
h2 {
  font-family: "Songti SC", STSong, SimSun, serif;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: 0;
}

h1 {
  margin-bottom: 12px;
  font-size: clamp(58px, 8vw, 108px);
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(31px, 4vw, 52px);
}

h3 {
  margin-bottom: 10px;
  font-size: 19px;
  line-height: 1.36;
}

.hero-line {
  margin-bottom: 24px;
  color: var(--wine);
  font-family: "Songti SC", STSong, SimSun, serif;
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 700;
  line-height: 1.2;
}

.lead {
  max-width: 720px;
  color: #343a43;
  font-size: clamp(18px, 2vw, 22px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 34px 0 38px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 18px;
  border: 1px solid var(--wine);
  border-radius: 6px;
  font-weight: 700;
}

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

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

.button.secondary {
  color: var(--wine);
  background: rgba(255, 255, 255, 0.26);
}

.button.secondary:hover,
.button.secondary:focus-visible {
  background: rgba(123, 31, 45, 0.08);
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.hero-facts div {
  min-width: 0;
  padding: 16px 18px 16px 0;
}

.hero-facts div + div {
  padding-left: 18px;
  border-left: 1px solid var(--line);
}

.hero-facts dt {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 12px;
}

.hero-facts dd {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
}

.portrait-card {
  position: relative;
  margin: 0;
  padding: 14px;
  background: rgba(255, 253, 250, 0.76);
  border: 1px solid rgba(221, 215, 206, 0.94);
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.portrait-card::before {
  position: absolute;
  inset: 28px -20px -20px 26%;
  content: "";
  border: 1px solid rgba(173, 133, 82, 0.5);
  border-radius: 10px;
  z-index: -1;
}

.portrait-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 22%;
  border-radius: 7px;
  filter: saturate(0.94) contrast(1.02);
}

.portrait-card figcaption {
  display: grid;
  gap: 8px;
  padding: 18px 6px 4px;
}

.portrait-card span {
  color: var(--gold);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  letter-spacing: 0;
  text-transform: uppercase;
}

.portrait-card strong {
  color: #29313b;
  font-size: 16px;
  line-height: 1.58;
}

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 84px 24px;
  border-top: 1px solid rgba(221, 215, 206, 0.9);
}

.two-column {
  display: grid;
  grid-template-columns: minmax(250px, 0.8fr) minmax(0, 1.2fr);
  gap: 56px;
}

.profile-copy {
  color: #333a44;
  font-size: 18px;
}

.profile-copy p:last-child,
.section-heading p:last-child,
.case-heading p,
.contact-panel p:last-child {
  margin-bottom: 0;
}

.section-heading {
  max-width: 800px;
  margin-bottom: 36px;
}

.section-heading > p:not(.section-kicker),
.case-heading > p {
  color: var(--muted);
  font-size: 17px;
}

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

.practice-grid article {
  min-width: 0;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.practice-grid span {
  display: block;
  margin-bottom: 30px;
  color: var(--gold);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13px;
  font-weight: 700;
}

.practice-grid p,
.approach-list p {
  margin-bottom: 0;
  color: var(--muted);
}

.approach {
  max-width: none;
  background: linear-gradient(180deg, rgba(23, 40, 56, 0.08), rgba(123, 31, 45, 0.04));
}

.approach > * {
  max-width: var(--max);
  margin-right: auto;
  margin-left: auto;
}

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

.approach-list div {
  min-width: 0;
  padding: 30px 24px 30px 0;
}

.approach-list div + div {
  padding-left: 24px;
  border-left: 1px solid var(--line);
}

.approach-list span {
  display: inline-grid;
  width: 36px;
  height: 36px;
  place-items: center;
  margin-bottom: 20px;
  color: var(--wine);
  background: rgba(123, 31, 45, 0.08);
  border: 1px solid rgba(123, 31, 45, 0.08);
  border-radius: 8px;
  font-weight: 700;
}

.case-heading {
  display: grid;
  grid-template-columns: minmax(260px, 0.7fr) minmax(0, 1fr);
  gap: 48px;
  align-items: end;
  margin-bottom: 34px;
}

.case-groups {
  display: grid;
  gap: 42px;
}

.case-group {
  display: grid;
  grid-template-columns: minmax(220px, 0.34fr) minmax(0, 1fr);
  gap: 34px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.case-group-heading {
  position: sticky;
  top: 96px;
  align-self: start;
}

.case-group-heading span {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  margin-bottom: 18px;
  color: var(--wine);
  background: rgba(123, 31, 45, 0.08);
  border-radius: 8px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-weight: 700;
}

.case-group-heading h3 {
  margin-bottom: 12px;
  font-family: "Songti SC", STSong, SimSun, serif;
  font-size: clamp(24px, 2.2vw, 34px);
}

.case-group-heading p {
  margin-bottom: 0;
  color: var(--muted);
}

.case-items {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 28px;
}

.case-items article {
  min-width: 0;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.case-items article:nth-last-child(1),
.case-items article:nth-last-child(2):nth-child(odd) {
  border-bottom-color: transparent;
}

.case-items span {
  display: block;
  margin-bottom: 10px;
  color: var(--wine);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  font-weight: 700;
}

.case-items h4 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.4;
}

.case-items p {
  margin-bottom: 0;
  color: var(--muted);
}

.case-items strong {
  display: block;
  margin-top: 15px;
  color: #27303a;
  font-size: 15px;
  line-height: 1.65;
}

.contact {
  padding-bottom: 96px;
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.48fr);
  gap: 42px;
  align-items: end;
  padding: 38px;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(83, 20, 30, 0.98), rgba(23, 40, 56, 0.98));
  border-radius: 10px;
  box-shadow: 0 24px 70px rgba(23, 25, 31, 0.18);
}

.contact-panel .section-kicker,
.contact-panel p {
  color: rgba(255, 255, 255, 0.78);
}

.contact-panel h2 {
  color: var(--white);
}

address.contact-list {
  display: grid;
  gap: 10px;
  font-style: normal;
}

.contact-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  overflow-wrap: anywhere;
}

.contact-label {
  min-width: 36px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
}

.contact-value {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.contact-value .contact-link,
.contact-value .contact-revealed {
  color: var(--white);
  text-decoration: none;
}

.contact-value .contact-link:hover {
  text-decoration: underline;
}

.reveal-btn,
.copy-btn {
  font: inherit;
  font-size: 13px;
  padding: 4px 10px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.reveal-btn:hover,
.reveal-btn:focus-visible,
.copy-btn:hover,
.copy-btn:focus-visible {
  background: rgba(255, 255, 255, 0.26);
  outline: none;
}

.contact-extra {
  display: block;
  flex-basis: 100%;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
}

.contact-qr {
  width: 64px;
  height: 64px;
  margin-left: auto;
  padding: 4px;
  background: #fff;
  border-radius: 4px;
  image-rendering: pixelated;
}

.contact-noscript {
  margin-top: 14px;
  padding: 10px 14px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.06);
  border-radius: 4px;
}

.license-info {
  opacity: 0.72;
  font-size: 12px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px 24px 42px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 13px;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 980px) {
  .site-header {
    max-width: none;
    padding-right: 20px;
    padding-left: 20px;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 48px;
  }

  .portrait-card {
    max-width: 540px;
  }

  .two-column,
  .case-heading,
  .case-group,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .case-group-heading {
    position: static;
  }

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

  .approach-list div:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }
}

@media (max-width: 700px) {
  .site-header {
    gap: 10px;
    padding: 10px 12px;
  }

  .brand {
    min-width: 0;
    gap: 9px;
  }

  .brand-symbol {
    width: 38px;
    height: 38px;
    border-radius: 9px;
  }

  .brand-text strong {
    font-size: 16px;
  }

  .brand-text small {
    display: none;
  }

  .site-nav {
    flex: 1 1 auto;
    justify-content: flex-end;
    gap: 2px;
    font-size: 13px;
  }

  .site-nav a {
    min-height: 36px;
    padding: 7px 7px;
  }

  .hero,
  .section {
    padding-right: 16px;
    padding-left: 16px;
  }

  .hero {
    gap: 34px;
    padding-top: 34px;
    padding-bottom: 48px;
  }

  h1 {
    font-size: clamp(48px, 15vw, 58px);
    line-height: 1.06;
  }

  h2 {
    font-size: 32px;
  }

  .hero-line {
    font-size: 27px;
  }

  .lead,
  .profile-copy {
    font-size: 16px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .hero-facts {
    grid-template-columns: 1fr;
  }

  .hero-facts div,
  .hero-facts div + div {
    padding: 14px 0;
    border-left: 0;
  }

  .hero-facts div + div {
    border-top: 1px solid var(--line);
  }

  .portrait-card {
    padding: 10px;
  }

  .portrait-card::before {
    right: -10px;
    bottom: -12px;
  }

  .portrait-card img {
    aspect-ratio: 1 / 1.16;
    object-position: 50% 18%;
  }

  .portrait-card figcaption {
    padding-top: 14px;
  }

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

  .approach-list {
    border-bottom: 0;
  }

  .approach-list div,
  .approach-list div + div,
  .approach-list div:nth-child(3) {
    padding: 24px 0;
    border-left: 0;
    border-bottom: 1px solid var(--line);
  }

  .case-items {
    gap: 0;
  }

  .case-heading {
    gap: 16px;
    margin-bottom: 22px;
  }

  .case-groups {
    gap: 34px;
  }

  .case-group {
    gap: 16px;
    padding-top: 24px;
  }

  .case-group-heading {
    padding: 18px;
    background: rgba(255, 253, 250, 0.72);
    border: 1px solid var(--line);
    border-radius: 8px;
  }

  .case-group-heading span {
    width: 34px;
    height: 34px;
    margin-bottom: 13px;
  }

  .case-group-heading h3 {
    font-size: 24px;
  }

  .case-items article,
  .case-items article:nth-last-child(1),
  .case-items article:nth-last-child(2):nth-child(odd) {
    padding: 20px 0;
    border-bottom: 1px solid var(--line);
  }

  .case-items h4 {
    font-size: 17px;
  }

  .case-items strong {
    font-size: 14px;
  }

  .contact-panel {
    padding: 24px;
  }

  .site-footer {
    flex-direction: column;
    padding-right: 16px;
    padding-left: 16px;
  }
}

@media (max-width: 420px) {
  .site-header {
    padding-right: 10px;
    padding-left: 10px;
  }

  .brand-text strong {
    font-size: 15px;
  }

  .site-nav {
    font-size: 12px;
  }

  .site-nav a {
    padding-right: 5px;
    padding-left: 5px;
  }

  .section {
    padding-top: 60px;
    padding-bottom: 60px;
  }

  .hero {
    padding-top: 28px;
  }

  .practice-grid article {
    padding: 20px;
  }

  .contact-panel {
    padding: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
