:root {
  --bg: #071012;
  --bg-soft: #0d191c;
  --panel: rgba(14, 27, 31, 0.86);
  --ink: #f4f7f4;
  --muted: #a8b5b6;
  --line: rgba(182, 203, 203, 0.18);
  --gold: #c9a05a;
  --red: #9e1b25;
  --cyan: #6ddbd2;
  --white: #ffffff;
  --paper: #f5f4ef;
  --dark-ink: #192326;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family:
    "Source Han Sans SC",
    "Source Han Sans CN",
    "Noto Sans CJK SC",
    "Noto Sans SC",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  line-height: 1.65;
  overflow-x: hidden;
}

body.en {
  font-family:
    "Source Sans 3",
    "Source Sans Pro",
    "Segoe UI",
    Arial,
    sans-serif;
}

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

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

.topbar {
  position: fixed;
  z-index: 50;
  inset: 0 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 14px clamp(18px, 4vw, 64px);
  border-bottom: 1px solid var(--line);
  background: rgba(7, 16, 18, 0.82);
  backdrop-filter: blur(18px);
}

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

.brand img {
  width: 48px;
  height: 48px;
  border-radius: 0;
  border: 0;
  background: transparent;
  object-fit: contain;
  opacity: 0.96;
}

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

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

.brand small {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
}

.nav {
  display: flex;
  justify-content: center;
  gap: clamp(18px, 3vw, 42px);
  color: #d7dfde;
  font-size: 14px;
}

.nav a {
  border-bottom: 1px solid transparent;
  padding: 6px 0;
}

.nav a:hover {
  border-color: var(--cyan);
  color: var(--white);
}

.nav a.is-active {
  border-color: var(--gold);
  color: var(--white);
}

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

.lang {
  width: 46px;
  height: 34px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.lang.is-active {
  background: var(--white);
  color: var(--dark-ink);
}

.hero {
  position: relative;
  min-height: 96vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 400px);
  align-items: end;
  gap: clamp(24px, 4vw, 64px);
  overflow: hidden;
  padding: 150px clamp(20px, 6vw, 86px) 76px;
}

.hero-image,
.hero-grid {
  position: absolute;
  inset: 0;
}

.hero-image {
  background:
    linear-gradient(90deg, rgba(7, 16, 18, 0.94) 0%, rgba(7, 16, 18, 0.72) 47%, rgba(7, 16, 18, 0.34)),
    linear-gradient(0deg, rgba(7, 16, 18, 0.92), rgba(7, 16, 18, 0.15) 62%),
    url("./assets/office-reception.jpg") center / cover;
}

.hero-grid {
  opacity: 0.36;
  background-image:
    linear-gradient(rgba(109, 219, 210, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(109, 219, 210, 0.12) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(90deg, #000, transparent 74%);
}

.hero-content,
.hero-panel {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
  overflow-wrap: break-word;
}

h1 {
  width: min(920px, 100%);
  margin-bottom: 24px;
  font-size: clamp(48px, 8vw, 92px);
  line-height: 1.02;
  font-weight: 900;
  font-family:
    "Source Han Serif SC",
    "Source Han Serif CN",
    "Noto Serif CJK SC",
    "Noto Serif SC",
    "Source Han Sans SC",
    serif;
}

body.en h1,
body.en h2 {
  font-family:
    "Source Serif 4",
    "Source Serif Pro",
    Georgia,
    serif;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1.16;
}

h3 {
  margin-bottom: 10px;
  font-size: 21px;
  line-height: 1.28;
}

.hero-copy {
  width: min(760px, 100%);
  margin-bottom: 34px;
  color: rgba(244, 247, 244, 0.78);
  font-size: clamp(17px, 2vw, 23px);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 1px solid transparent;
  padding: 0 20px;
  font-weight: 850;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

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

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

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

.hero-panel {
  align-self: stretch;
  display: grid;
  align-content: end;
  gap: 24px;
  border: 1px solid var(--line);
  padding: 24px;
  background: rgba(7, 16, 18, 0.58);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.35);
}

.hero-panel img {
  width: min(220px, 72%);
  margin-left: auto;
  border: 0;
  background: transparent;
  opacity: 0.96;
}

.hero-panel dl {
  display: grid;
  gap: 1px;
  margin: 0;
  background: var(--line);
}

.hero-panel div {
  padding: 18px;
  background: rgba(14, 27, 31, 0.94);
}

.hero-panel dt {
  color: var(--gold);
  font-size: 38px;
  font-weight: 900;
  line-height: 1;
}

.hero-panel dd {
  margin: 8px 0 0;
  color: var(--muted);
}

.release-band {
  display: grid;
  grid-template-columns: minmax(280px, 0.75fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 80px);
  padding: 42px clamp(20px, 6vw, 86px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #0b1619;
}

.release-band p:last-child {
  margin: 0;
  color: #c2cdcc;
  font-size: 17px;
}

.page-hero {
  position: relative;
  min-height: 68vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  padding: 150px clamp(20px, 6vw, 86px) 72px;
}

.page-hero.compact {
  min-height: 58vh;
}

.page-team .page-hero.compact {
  min-height: 460px;
  padding-top: 112px;
  padding-bottom: 46px;
}

.page-team h1 {
  max-width: 760px;
  font-size: clamp(42px, 6vw, 68px);
}

.page-hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 16, 18, 0.95), rgba(7, 16, 18, 0.7) 54%, rgba(7, 16, 18, 0.24)),
    linear-gradient(0deg, rgba(7, 16, 18, 0.9), rgba(7, 16, 18, 0.18) 70%),
    var(--page-bg, url("./assets/office-reception.jpg")) center / cover;
}

.page-hero-media.office {
  --page-bg: url("./assets/office-reception.jpg");
}

.page-hero-media.cases {
  --page-bg: url("./assets/office-screen.jpg");
}

.page-hero-media.practice {
  --page-bg: url("./assets/team-discussion.png");
}

.page-hero-media.team {
  --page-bg: url("./assets/office-stairs.jpg");
}

.page-hero-content {
  position: relative;
  z-index: 1;
  width: min(900px, 100%);
  min-width: 0;
}

.page-hero-content p:last-child {
  color: rgba(244, 247, 244, 0.78);
  font-size: clamp(17px, 2vw, 22px);
}

.section,
.case-section {
  padding: clamp(62px, 8vw, 116px) clamp(20px, 6vw, 86px);
}

.section-head {
  width: min(850px, 100%);
  margin-bottom: 36px;
  min-width: 0;
}

.section-head p:last-child {
  color: var(--muted);
  font-size: 17px;
}

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

.page-card,
.feature-grid article {
  min-height: 240px;
  padding: 24px;
  background: var(--panel);
}

.page-card {
  display: grid;
  color: var(--ink);
  transition:
    transform 160ms ease,
    background 160ms ease;
}

.page-card:hover {
  transform: translateY(-2px);
  background: rgba(18, 36, 41, 0.98);
}

.page-card span,
.feature-grid span {
  display: block;
  margin-bottom: 26px;
  color: var(--gold);
  font-weight: 900;
}

.page-card p,
.feature-grid p {
  color: var(--muted);
}

.two-column {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(300px, 1fr);
  gap: clamp(24px, 5vw, 76px);
  align-items: start;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.feature-grid.compact-grid {
  margin-top: 28px;
}

.proof-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(300px, 1fr);
  gap: 22px;
  align-items: stretch;
}

.awards-image {
  width: 100%;
  height: 100%;
  min-height: 540px;
  object-fit: cover;
  object-position: top;
  border: 1px solid var(--line);
  background: var(--paper);
}

.awards-wide {
  width: min(1120px, 100%);
  border: 1px solid var(--line);
  background: var(--paper);
}

.awards-en {
  display: none;
}

body.en .awards-zh {
  display: none;
}

body.en .awards-en {
  display: block;
}

.proof-copy {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.proof-copy article,
.case-card,
.practice-card {
  background: var(--panel);
}

.proof-copy article {
  min-height: 178px;
  padding: 28px;
}

.proof-copy span,
.case-card span {
  display: block;
  margin-bottom: 20px;
  color: var(--gold);
  font-weight: 900;
}

.proof-copy p,
.case-card p,
.practice-card p {
  color: var(--muted);
}

.case-section {
  background: var(--paper);
  color: var(--dark-ink);
}

.case-section.standalone {
  padding-top: clamp(54px, 7vw, 90px);
}

.case-section .eyebrow {
  color: var(--red);
}

.case-section .section-head p {
  color: #536062;
}

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

.case-card {
  display: grid;
  min-height: 340px;
  padding: 26px;
  background: #ffffff;
  border: 1px solid #d9ded9;
  color: var(--dark-ink);
}

.case-card p {
  color: #536062;
}

.case-card .matter-type {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin: 0 0 18px;
  padding: 5px 9px;
  border: 1px solid #d8d4c8;
  color: #7a4f14;
  background: #f6f3ec;
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.case-card .label {
  align-self: end;
  margin-top: 24px;
  border-top: 1px solid #d9ded9;
  padding-top: 14px;
  color: var(--red);
  font-size: 13px;
  font-weight: 850;
}

.image-band {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(280px, 1fr);
  align-items: center;
  gap: clamp(26px, 5vw, 80px);
  padding: clamp(56px, 8vw, 108px) clamp(20px, 6vw, 86px);
  background: #101d21;
}

.image-band img {
  border: 1px solid var(--line);
}

.image-band p:last-child {
  color: var(--muted);
  font-size: 18px;
}

.publication-featured {
  display: grid;
  grid-template-columns: minmax(320px, 0.92fr) minmax(360px, 1fr);
  gap: clamp(28px, 5vw, 78px);
  align-items: stretch;
}

.publication-featured-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.publication-featured-copy h2 {
  margin: 0 0 22px;
  font-size: clamp(34px, 5vw, 68px);
}

.publication-featured-copy p {
  color: var(--muted);
  font-size: 18px;
}

.publication-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 26px 0 30px;
  color: var(--muted);
  font-weight: 700;
}

.publication-meta span,
.publication-meta strong,
.publication-status {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.publication-meta strong,
.publication-status {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
}

.publication-featured-panel {
  display: grid;
  grid-template-columns: minmax(120px, 0.42fr) minmax(220px, 1fr);
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.publication-featured-panel > img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: contain;
  padding: clamp(24px, 4vw, 54px);
  background: var(--panel);
}

.publication-panel-grid {
  display: grid;
  gap: 1px;
}

.publication-panel-grid article {
  padding: 24px;
  background: var(--panel);
}

.publication-panel-grid span,
.publication-card small {
  color: var(--gold);
  font-weight: 900;
}

.publication-panel-grid h3,
.publication-card h3 {
  margin: 12px 0;
}

.publication-panel-grid p,
.publication-card p {
  color: var(--muted);
}

.publication-library {
  background: #f6f3ec;
  color: var(--ink);
}

.publication-library h2,
.publication-library .section-head h2,
.publication-card h3 {
  color: var(--ink);
}

.publication-library .section-head p {
  color: #536062;
}

.publication-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid #d8d4c8;
  background: #d8d4c8;
}

.publication-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 300px;
  padding: 26px;
  background: #ffffff;
}

.publication-card p {
  color: #536062;
}

.publication-card small {
  color: #a3712c;
}

.publication-card.is-current {
  background:
    linear-gradient(135deg, rgba(177, 20, 35, 0.08), transparent 48%),
    #ffffff;
}

.publication-card a {
  margin-top: auto;
  color: var(--red);
  font-weight: 900;
  text-decoration: none;
}

.publication-card .publication-status {
  align-self: flex-start;
  border-color: #d8d4c8;
  color: var(--red);
  background: #f6f3ec;
}

.page-team-insights .publication-library,
.page-team-insights .publication-card {
  color: #172126;
}

.page-team-insights .publication-library h2,
.page-team-insights .publication-library .section-head h2,
.page-team-insights .publication-card h3 {
  color: #142027;
}

.page-team-insights .publication-library .section-head p,
.page-team-insights .publication-card p {
  color: #38484a;
}

.page-team-insights .publication-card small {
  color: #8a641f;
}

.legal-updates-hero .page-hero-content {
  max-width: 920px;
}

.legal-updates-shell {
  display: grid;
  grid-template-columns: minmax(240px, 0.34fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
  background: #f6f3ec;
  color: var(--ink);
}

.legal-updates-sidebar {
  position: sticky;
  top: 110px;
  display: grid;
  gap: 20px;
  padding: 24px;
  border: 1px solid #d8d4c8;
  background: #ffffff;
}

.legal-updates-sidebar h2 {
  margin: 0;
  color: #172126;
  font-size: 28px;
}

.legal-updates-rule,
.legal-updates-archive {
  border-top: 1px solid #d8d4c8;
  padding-top: 18px;
}

.legal-updates-rule strong,
.legal-updates-archive strong,
.legal-update-analysis strong {
  display: block;
  margin-bottom: 8px;
  color: var(--red);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.legal-updates-rule p,
.legal-updates-archive p {
  margin: 0;
  color: #26383d;
}

.legal-updates-archive a {
  display: block;
  margin-top: 10px;
  color: #172126;
  font-weight: 800;
  text-decoration: none;
}

.legal-updates-main {
  min-width: 0;
}

.legal-updates-overview {
  padding: clamp(24px, 4vw, 42px);
  border-left: 5px solid var(--red);
  background: #ffffff;
}

.legal-updates-overview p:last-child {
  margin-bottom: 0;
  color: #38484a;
  font-size: 19px;
}

.legal-updates-highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 1px 0 34px;
  border: 1px solid #d8d4c8;
  background: #d8d4c8;
}

.legal-updates-highlights article {
  display: grid;
  gap: 14px;
  min-height: 160px;
  padding: 22px;
  background: #ffffff;
}

.legal-updates-highlights span {
  width: 34px;
  height: 3px;
  background: var(--red);
}

.legal-updates-highlights p {
  margin: 0;
  color: #536062;
}

.legal-update-section {
  margin-top: 34px;
}

.legal-update-section h2 {
  margin: 0 0 16px;
  color: #172126;
  font-size: clamp(28px, 4vw, 44px);
}

.legal-update-item {
  display: grid;
  gap: 18px;
  margin-top: 1px;
  padding: clamp(22px, 4vw, 34px);
  background: #ffffff;
}

.legal-update-item-head {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.legal-update-item-head span {
  color: var(--gold);
  font-size: 24px;
  font-weight: 900;
}

.legal-update-item h3 {
  margin: 0;
  color: #18242a;
  font-size: 24px;
}

.legal-update-item-head p {
  margin: 8px 0 0;
  color: #435358;
  font-size: 14px;
}

.legal-update-item dl {
  display: grid;
  gap: 12px;
  margin: 0;
}

.legal-update-item dl div {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 18px;
  padding-top: 12px;
  border-top: 1px solid #ebe7dc;
}

.legal-update-item dt {
  color: #243238;
  font-weight: 900;
}

.legal-update-item dd {
  margin: 0;
  color: #26383d;
}

.legal-update-analysis ol {
  margin: 8px 0 0;
  padding-left: 22px;
  color: #26383d;
}

.legal-update-analysis li + li {
  margin-top: 8px;
}

.legal-update-source {
  justify-self: start;
  color: var(--red);
  font-weight: 900;
  text-decoration: none;
}

.page-legal-updates .legal-updates-sidebar h2,
.page-legal-updates .legal-updates-archive a,
.page-legal-updates .legal-update-section h2,
.page-legal-updates .legal-update-item h3 {
  color: #142027;
}

.page-legal-updates .legal-update-item dt {
  color: #263238;
}

.page-legal-updates .legal-update-item dd,
.page-legal-updates .legal-update-analysis li,
.page-legal-updates .legal-updates-rule p,
.page-legal-updates .legal-updates-archive p {
  color: #26383d;
}

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

.practice-card {
  min-height: 230px;
  padding: 24px;
}

.practice-card strong {
  display: block;
  margin-bottom: 28px;
  color: var(--cyan);
  font-size: 26px;
}

.team-profile {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(320px, 1fr);
  gap: clamp(26px, 5vw, 76px);
  align-items: start;
  background: var(--paper);
  color: var(--dark-ink);
}

.team-profile .eyebrow {
  color: var(--red);
}

.portrait-large img {
  aspect-ratio: 4 / 5;
}

.profile-copy > p {
  color: #536062;
  font-size: 17px;
}

.profile-copy,
.member-card,
.case-card,
.practice-card {
  min-width: 0;
}

.profile-note {
  border-top: 1px solid #d8d4c8;
  border-bottom: 1px solid #d8d4c8;
  padding: 16px 0;
  font-weight: 800;
}

.team-profile .feature-grid {
  border-color: #d8d4c8;
  background: #d8d4c8;
}

.team-profile .feature-grid article {
  background: #ffffff;
}

.team-profile .feature-grid p {
  color: #536062;
}

.member-section {
  background: #0a1518;
}

.compact-members {
  padding-top: clamp(54px, 7vw, 92px);
  padding-bottom: clamp(44px, 6vw, 76px);
}

.lawyer-list {
  display: grid;
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.lawyer-row {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: clamp(16px, 2.5vw, 26px);
  align-items: start;
  padding: clamp(16px, 2.5vw, 24px);
  background: rgba(14, 27, 31, 0.94);
}

.lawyer-row.lead-lawyer {
  background:
    linear-gradient(90deg, rgba(176, 28, 42, 0.14), transparent 42%),
    rgba(14, 27, 31, 0.96);
}

.lawyer-thumb {
  display: block;
  width: 104px;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 1px solid rgba(109, 219, 210, 0.28);
  background:
    radial-gradient(circle at 70% 18%, rgba(109, 219, 210, 0.14), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(7, 16, 18, 0.2));
}

.lawyer-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.lawyer-thumb.logo-thumb {
  display: grid;
  place-items: center;
}

.lawyer-thumb.logo-thumb img {
  width: 78%;
  height: auto;
  object-fit: contain;
}

.lawyer-row-copy {
  min-width: 0;
  overflow: hidden;
}

.lawyer-row-copy h3,
.lawyer-row-copy strong,
.lawyer-row-copy p {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.row-index {
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
}

.lawyer-row h3 {
  margin: 4px 0 3px;
  font-size: clamp(22px, 2.4vw, 30px);
  font-family:
    "Source Han Serif SC",
    "Source Han Serif CN",
    "Noto Serif CJK SC",
    "Noto Serif SC",
    serif;
}

body.en .lawyer-row h3 {
  font-family:
    "Source Serif 4",
    "Source Serif Pro",
    Georgia,
    serif;
}

.lawyer-row strong {
  display: block;
  color: var(--cyan);
  font-size: 13px;
  line-height: 1.6;
}

.lawyer-row p {
  max-width: 920px;
  margin: 8px 0 0;
  color: var(--muted);
}

.compact-note {
  display: inline-block;
  margin-top: 12px;
  padding: 8px 0 0;
  border-top: 1px solid rgba(216, 212, 200, 0.24);
  border-bottom: 0;
  color: rgba(255, 255, 255, 0.78) !important;
}

.text-link {
  display: inline-block;
  margin-top: 12px;
  color: var(--gold);
  font-size: 14px;
  font-weight: 900;
}

.text-link::after {
  content: " ->";
}

.compact-capabilities {
  display: block;
  background: var(--paper);
  color: var(--dark-ink);
}

.compact-capabilities .section-head {
  margin-bottom: 28px;
}

.align-left {
  max-width: 920px;
  margin-left: 0;
  text-align: left;
}

.compact-capabilities .eyebrow {
  color: var(--red);
}

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

.member-card {
  display: grid;
  grid-template-rows: auto auto auto auto 1fr;
  min-height: 460px;
  padding: 24px;
  background: rgba(14, 27, 31, 0.9);
  transition:
    transform 160ms ease,
    background 160ms ease;
}

.member-card:hover {
  transform: translateY(-2px);
  background: rgba(19, 38, 43, 0.98);
}

.member-photo {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  margin-bottom: 28px;
  border: 1px solid rgba(109, 219, 210, 0.24);
  background:
    radial-gradient(circle at 70% 20%, rgba(109, 219, 210, 0.16), transparent 30%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(7, 16, 18, 0.2));
}

.member-photo img {
  width: min(190px, 74%);
  opacity: 0.92;
}

.member-photo.portrait-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  opacity: 1;
}

.member-card span {
  color: var(--gold);
  font-weight: 900;
}

.member-card h3 {
  margin: 8px 0 2px;
  font-size: clamp(26px, 3vw, 38px);
  font-family:
    "Source Han Serif SC",
    "Source Han Serif CN",
    "Noto Serif CJK SC",
    "Noto Serif SC",
    serif;
}

body.en .member-card h3 {
  font-family:
    "Source Serif 4",
    "Source Serif Pro",
    Georgia,
    serif;
}

.member-card strong {
  color: var(--cyan);
  font-size: 14px;
  text-transform: uppercase;
}

.member-card p {
  align-self: end;
  margin: 28px 0 0;
  color: var(--muted);
}

.lawyer-profile {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(320px, 1fr);
  gap: clamp(28px, 5vw, 76px);
  align-items: start;
  background: var(--paper);
  color: var(--dark-ink);
}

.lawyer-profile .eyebrow {
  color: var(--red);
}

.lawyer-visual {
  margin: 0;
  border: 1px solid #d8d4c8;
  background:
    radial-gradient(circle at 68% 16%, rgba(109, 219, 210, 0.18), transparent 30%),
    linear-gradient(135deg, #ffffff, #e9eef0);
}

.lawyer-visual img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: contain;
  padding: clamp(28px, 5vw, 58px);
}

.lawyer-visual.portrait-actual img {
  object-fit: cover;
  object-position: center top;
  padding: 0;
}

.lawyer-visual figcaption {
  border-top: 1px solid #d8d4c8;
  padding: 18px;
  color: #536062;
  font-weight: 760;
}

.lawyer-lead {
  color: #536062;
  font-size: 18px;
}

.lawyer-facts {
  display: grid;
  gap: 1px;
  margin: 28px 0;
  border: 1px solid #d8d4c8;
  background: #d8d4c8;
}

.lawyer-facts div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 18px;
  padding: 18px;
  background: #ffffff;
}

.lawyer-facts dt {
  color: var(--red);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.lawyer-facts dd {
  margin: 0;
  color: #182427;
  font-weight: 700;
}

.profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.lawyer-detail {
  background: var(--paper);
  color: var(--dark-ink);
  padding-top: clamp(42px, 6vw, 78px);
}

.leader-snapshot {
  background: #0a1518;
  padding-top: clamp(42px, 6vw, 76px);
  padding-bottom: clamp(42px, 6vw, 76px);
}

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

.snapshot-card {
  min-height: 150px;
  padding: 22px;
  background: rgba(14, 27, 31, 0.94);
}

.snapshot-card strong {
  display: block;
  color: var(--gold);
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1;
  font-weight: 900;
}

.snapshot-card span {
  display: block;
  margin-top: 14px;
  color: rgba(244, 247, 244, 0.84);
  font-weight: 800;
}

.snapshot-card p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(180px, 0.32fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: start;
}

.detail-kicker {
  position: sticky;
  top: 104px;
}

.detail-kicker .eyebrow {
  color: var(--red);
}

.detail-kicker h2 {
  margin: 0;
  color: #182427;
  font-size: clamp(30px, 4vw, 48px);
}

.detail-stack {
  display: grid;
  gap: 1px;
  border: 1px solid #d8d4c8;
  background: #d8d4c8;
}

.detail-block {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: clamp(18px, 3vw, 34px);
  padding: clamp(18px, 3vw, 28px);
  background: #ffffff;
}

.detail-block h3 {
  margin: 0;
  color: var(--red);
  font-family:
    "Source Han Sans SC",
    "Source Han Sans CN",
    "Noto Sans CJK SC",
    "Noto Sans SC",
    sans-serif;
  font-size: 17px;
  line-height: 1.45;
}

body.en .detail-block h3 {
  font-family:
    "Source Sans 3",
    "Source Sans Pro",
    Arial,
    sans-serif;
}

.detail-block p {
  margin: 0;
  color: #344244;
  font-size: 16px;
  line-height: 1.9;
}

.honour-section {
  background: var(--paper);
  color: var(--dark-ink);
  padding-top: clamp(42px, 6vw, 76px);
}

.honour-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid #d8d4c8;
  background: #d8d4c8;
}

.honour-item {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 18px;
  background: #ffffff;
}

.honour-item span {
  color: var(--red);
  font-family:
    "Source Serif 4",
    "Source Serif Pro",
    Georgia,
    serif;
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
}

.honour-item p {
  margin: 0;
  color: #243033;
  font-size: 15px;
  line-height: 1.65;
  font-weight: 760;
}

.achievement-matrix {
  background: #0a1518;
}

.achievement-matrix .feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.lawyer-evidence {
  background: #0a1518;
}

.lawyer-evidence .feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.office-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
}

.office-gallery img {
  width: 100%;
  height: 34vw;
  max-height: 420px;
  min-height: 260px;
  object-fit: cover;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(320px, 1fr);
  gap: clamp(28px, 5vw, 72px);
  padding: clamp(62px, 8vw, 116px) clamp(20px, 6vw, 86px);
  background: #f8f7f2;
  color: var(--dark-ink);
}

.full-contact {
  min-height: 100vh;
  padding-top: 150px;
}

.contact-section .eyebrow {
  color: var(--red);
}

.contact-copy p {
  color: #586365;
  font-size: 17px;
}

.contact-profile {
  margin-top: 30px;
  border-top: 1px solid #d8d4c8;
  border-bottom: 1px solid #d8d4c8;
  padding: 22px 0;
}

.identity-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 8px;
}

.identity-line strong {
  color: #11191b;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1;
  font-family:
    "Source Han Serif SC",
    "Source Han Serif CN",
    "Noto Serif CJK SC",
    "Noto Serif SC",
    serif;
}

.identity-line span {
  color: #697274;
  font-size: clamp(20px, 3vw, 32px);
}

.contact-profile p {
  margin-bottom: 4px;
  color: #3f4a4d;
  font-weight: 700;
}

.contact-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 24px;
  border: 1px solid #d8d4c8;
  background: #d8d4c8;
}

.contact-details article {
  min-height: 112px;
  padding: 18px;
  background: #ffffff;
}

.contact-details article.wide {
  grid-column: 1 / -1;
}

.contact-details span {
  display: block;
  margin-bottom: 8px;
  color: var(--red);
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
}

.contact-details a,
.contact-details p {
  margin: 0;
  color: #172326;
  font-size: clamp(16px, 2vw, 22px);
  font-weight: 760;
  overflow-wrap: anywhere;
}

.contact-details article div {
  display: grid;
  gap: 4px;
}

.contact-assets {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.portrait-card {
  margin: 0;
  border: 1px solid #d8d4c8;
  background: #ffffff;
}

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

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

.portrait-card strong {
  color: #142126;
  font-size: 22px;
}

.portrait-card span {
  color: #5b6466;
  font-size: 14px;
  font-weight: 650;
}

.wechat-card {
  width: 100%;
  border: 1px solid #d8d4c8;
  background: #fff;
  padding: clamp(20px, 4vw, 34px);
}

.wechat-card .eyebrow {
  color: var(--red);
}

.wechat-card h3 {
  font-size: clamp(24px, 4vw, 38px);
}

.wechat-card p {
  color: #586365;
}

.wechat-card img {
  width: 100%;
  margin-top: 28px;
  border: 1px solid #e3dfd5;
  background: #fff;
}

.page-guide .publication-library .section-head h2,
.page-guide .publication-library .publication-card h3 {
  color: #142126;
}

.page-guide .publication-library .section-head p,
.page-guide .publication-library .publication-card p {
  color: #536062;
}

.footer {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 24px clamp(20px, 6vw, 86px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.footer img {
  width: 38px;
  opacity: 0.88;
}

.footer p {
  margin: 0;
}

@media (max-width: 1080px) {
  .topbar {
    grid-template-columns: auto auto;
  }

  .nav {
    display: none;
  }

  .hero,
  .release-band,
  .proof-layout,
  .image-band,
  .contact-section,
  .lawyer-profile,
  .detail-layout,
  .publication-featured,
  .publication-featured-panel,
  .legal-updates-shell {
    grid-template-columns: 1fr;
  }

  .legal-updates-sidebar {
    position: static;
  }

  .detail-kicker {
    position: static;
  }

  .page-grid,
  .case-grid,
  .practice-grid,
  .member-grid,
  .snapshot-grid,
  .lawyer-evidence .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .publication-list {
    grid-template-columns: 1fr;
  }

  .legal-updates-highlights {
    grid-template-columns: 1fr;
  }

  .publication-featured-panel > img {
    min-height: 260px;
  }

  .office-gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .lawyer-row {
    grid-template-columns: 92px minmax(0, 1fr);
  }

  .lawyer-thumb {
    width: 92px;
  }
}

@media (max-width: 680px) {
  .topbar {
    position: absolute;
    gap: 12px;
  }

  .brand {
    min-width: 0;
  }

  .brand small {
    display: none;
  }

  .hero {
    min-height: 850px;
    padding-top: 124px;
  }

  .hero-content,
  .page-hero-content {
    width: 100%;
    max-width: 100%;
  }

  .hero-copy,
  .page-hero-content p {
    width: 100%;
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  h1 {
    font-size: 46px;
    overflow-wrap: anywhere;
  }

  .page-team .page-hero.compact {
    min-height: 560px;
    padding-top: 112px;
    padding-bottom: 44px;
  }

  .page-team h1 {
    font-size: 34px;
    line-height: 1.08;
    max-width: 7.6em;
    word-break: break-all;
    overflow-wrap: anywhere;
  }

  .page-team .page-hero-content p,
  .page-team .section-head p {
    max-width: min(300px, calc(100vw - 72px));
    word-break: break-all;
    overflow-wrap: anywhere;
  }

  .page-team .page-hero-content,
  .page-team .section-head {
    max-width: min(320px, calc(100vw - 56px));
  }

  .page-team .lawyer-row-copy {
    max-width: calc(100vw - 180px);
  }

  .page-team .lawyer-row-copy h3,
  .page-team .lawyer-row-copy strong,
  .page-team .lawyer-row-copy p {
    word-break: break-all;
    overflow-wrap: anywhere;
  }

  .page-team .lawyer-list {
    width: 100%;
    max-width: 100%;
  }

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

  .case-grid,
  .practice-grid,
  .page-grid,
  .member-grid,
  .snapshot-grid,
  .honour-list,
  .achievement-matrix .feature-grid,
  .lawyer-evidence .feature-grid,
  .office-gallery {
    grid-template-columns: 1fr;
  }

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

  .detail-block {
    grid-template-columns: 1fr;
  }

  .lawyer-row {
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 12px;
    padding: 16px;
  }

  .lawyer-thumb {
    width: 76px;
  }

  .lawyer-row h3 {
    margin-top: 4px;
    font-size: 21px;
  }

  .lawyer-row p {
    font-size: 14px;
  }

  .awards-image {
    min-height: 420px;
  }

  .office-gallery img {
    height: 62vw;
  }

  .contact-details {
    grid-template-columns: 1fr;
  }

  .legal-update-item-head,
  .legal-update-item dl div {
    grid-template-columns: 1fr;
  }
}
