:root {
  color-scheme: dark light;
  --bg: #111316;
  --bg-deep: #0c0e10;
  --surface: #171a1e;
  --surface-raised: #1d2126;
  --text: #f0f1ee;
  --text-soft: #b8bcc0;
  --muted: #888f96;
  --line: #343a40;
  --line-strong: #535a60;
  --accent: #b87953;
  --accent-strong: #d2936a;
  --accent-ink: #1a1110;
  --shadow: rgb(0 0 0 / 0.32);
  --max: 1240px;
  --reading: 720px;
  --radius: 3px;
  --nav-height: 72px;
  --font-sans: "SF Pro Text", "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #e9ebec;
    --bg-deep: #dfe2e4;
    --surface: #f5f6f5;
    --surface-raised: #ffffff;
    --text: #171a1d;
    --text-soft: #444a50;
    --muted: #586168;
    --line: #c6cbd0;
    --line-strong: #939ba2;
    --accent: #975b3d;
    --accent-strong: #7d482f;
    --accent-ink: #ffffff;
    --shadow: rgb(43 49 54 / 0.12);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + 24px);
  background: var(--bg);
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    linear-gradient(90deg, transparent 0, transparent calc(100% - 1px), rgb(255 255 255 / 0.025) calc(100% - 1px)) 0 0 / 72px 72px,
    var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
[id] { scroll-margin-top: calc(var(--nav-height) + 24px); }
[hidden] { display: none !important; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
}

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

button {
  font: inherit;
}

:focus-visible {
  outline: 2px solid var(--accent-strong);
  outline-offset: 4px;
}

::selection {
  background: var(--accent);
  color: var(--accent-ink);
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 30;
  padding: 10px 14px;
  transform: translateY(-150%);
  background: var(--accent);
  color: var(--accent-ink);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: var(--nav-height);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 82%, transparent);
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.nav-shell {
  width: min(calc(100% - 40px), var(--max));
  min-height: var(--nav-height);
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 34px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  text-decoration: none;
}

.brand-mark {
  width: 68px;
  height: auto;
  object-fit: contain;
}

.brand-name {
  font-size: 16px;
  font-weight: 680;
  letter-spacing: 0.08em;
}

.nav-links {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.2vw, 34px);
}

.nav-links a {
  position: relative;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--text-soft);
  font-size: 14px;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--text);
}

.nav-links a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 6px;
  height: 1px;
  background: var(--accent);
}

.nav-contact {
  min-height: 44px;
  padding: 8px 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--accent);
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}

.nav-contact:hover {
  background: var(--accent);
  color: var(--accent-ink);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
}

.menu-toggle span {
  width: 21px;
  height: 1px;
  display: block;
  margin: 5px auto;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.menu-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(3px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-3px) rotate(-45deg);
}

.container {
  width: min(calc(100% - 40px), var(--max));
  margin-inline: auto;
}

.reading {
  max-width: var(--reading);
}

.hero {
  position: relative;
  min-height: calc(100dvh - var(--nav-height));
  overflow: hidden;
  display: grid;
  align-items: stretch;
  background: var(--bg-deep);
}

.hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 64% center;
  opacity: 0.76;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgb(8 10 12 / 0.97) 0%, rgb(8 10 12 / 0.88) 35%, rgb(8 10 12 / 0.38) 68%, rgb(8 10 12 / 0.2) 100%),
    linear-gradient(0deg, rgb(8 10 12 / 0.45), transparent 40%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(calc(100% - 40px), var(--max));
  margin-inline: auto;
  padding-block: clamp(72px, 10vh, 106px) 56px;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(280px, 0.58fr);
  gap: 8vw;
  align-items: center;
}

.hero-copy {
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 22px;
  color: #d49772;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 13ch;
  margin: 0;
  color: #f2f2ef;
  font-size: clamp(46px, 6.3vw, 86px);
  font-weight: 620;
  letter-spacing: -0.025em;
  line-height: 1.04;
}

.hero-lead {
  max-width: 30em;
  margin: 28px 0 0;
  color: #c6c9ca;
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.8;
}

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

.button {
  min-height: 48px;
  padding: 11px 21px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--text);
  font-weight: 620;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.button:hover {
  border-color: var(--accent);
}

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

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

.button-primary:hover {
  border-color: var(--accent-strong);
  background: var(--accent-strong);
}

.hero .button:not(.button-primary) {
  border-color: rgb(255 255 255 / 0.42);
  color: #f2f2ef;
}

.hero .button:not(.button-primary):hover {
  border-color: #d2936a;
}

.hero-card {
  align-self: end;
  margin-bottom: 12px;
  padding: 22px 24px;
  border-top: 1px solid rgb(255 255 255 / 0.35);
  border-bottom: 1px solid rgb(255 255 255 / 0.18);
  color: #e4e5e2;
}

.hero-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 17px;
}

.hero-card p {
  margin: 0;
  color: #bfc2c2;
  font-size: 14px;
}

.section {
  padding-block: clamp(76px, 10vw, 136px);
  border-top: 1px solid var(--line);
}

.section-compact {
  padding-block: clamp(54px, 7vw, 86px);
}

.section-title {
  max-width: 820px;
  margin: 0;
  font-size: clamp(34px, 5vw, 62px);
  font-weight: 590;
  letter-spacing: -0.025em;
  line-height: 1.13;
}

.section-intro {
  max-width: 680px;
  margin: 20px 0 0;
  color: var(--text-soft);
  font-size: 17px;
}

.focus-grid {
  margin-top: 58px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.focus-panel {
  min-height: 380px;
  padding: clamp(28px, 4vw, 54px);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.focus-panel:last-child {
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--accent) 15%, var(--surface)), var(--surface) 58%);
}

.focus-panel h3 {
  max-width: 10ch;
  margin: 0;
  font-size: clamp(29px, 4vw, 48px);
  font-weight: 600;
  line-height: 1.2;
}

.focus-panel p {
  max-width: 34em;
  margin: 48px 0 0;
  color: var(--text-soft);
}

.text-link {
  min-height: 44px;
  margin-top: 24px;
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  color: var(--accent-strong);
  font-weight: 620;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.text-link:hover {
  border-bottom-color: currentColor;
}

.practice-layout {
  margin-top: 58px;
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: clamp(38px, 8vw, 120px);
  align-items: start;
}

.portrait-frame {
  margin: 0;
  position: sticky;
  top: calc(var(--nav-height) + 28px);
  overflow: hidden;
  background: var(--surface-raised);
  box-shadow: 0 28px 70px var(--shadow);
}

.portrait-frame img {
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  filter: saturate(0.78) contrast(1.04);
}

.portrait-caption {
  padding: 17px 20px;
  border-top: 1px solid var(--line);
  color: var(--text-soft);
  font-size: 14px;
}

.practice-groups {
  display: grid;
  gap: 44px;
}

.practice-group {
  padding-top: 24px;
  border-top: 1px solid var(--line-strong);
}

.practice-group h3 {
  margin: 0;
  font-size: clamp(22px, 2.5vw, 30px);
  font-weight: 630;
}

.practice-group p {
  margin: 12px 0 0;
  color: var(--text-soft);
}

.matter-scroller {
  margin-top: 50px;
  padding-bottom: 18px;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 31%);
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-color: var(--accent) var(--surface);
}

.matter {
  min-height: 245px;
  padding: 26px;
  scroll-snap-align: start;
  border: 1px solid var(--line);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.matter h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.5;
}

.matter p {
  margin: 34px 0 0;
  color: var(--accent-strong);
  font-size: 14px;
}

.article-preview {
  margin-top: 54px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
}

.article-feature,
.article-side {
  border: 1px solid var(--line);
  background: var(--surface);
}

.article-feature {
  min-height: 500px;
  padding: clamp(28px, 5vw, 58px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background:
    linear-gradient(0deg, var(--surface) 0%, color-mix(in srgb, var(--accent) 12%, var(--surface)) 100%);
}

.article-feature h3 {
  max-width: 14ch;
  margin: 15px 0 0;
  font-size: clamp(30px, 4.5vw, 53px);
  line-height: 1.24;
}

.article-kicker {
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 650;
}

.article-feature p {
  max-width: 38em;
  margin: 20px 0 0;
  color: var(--text-soft);
}

.article-side {
  display: grid;
  grid-template-rows: repeat(3, 1fr);
}

.article-side-item {
  min-height: 150px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none;
}

.article-side-item + .article-side-item {
  border-top: 1px solid var(--line);
}

.article-side-item:hover {
  background: var(--surface-raised);
}

.article-side-item strong {
  font-size: 18px;
  line-height: 1.55;
}

.article-side-item span {
  color: var(--muted);
  font-size: 13px;
}

.contact-band {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.contact-band-inner {
  min-height: 290px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 8vw;
}

.contact-band h2 {
  margin: 0;
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.18;
}

.contact-band p {
  margin: 12px 0 0;
  color: var(--text-soft);
}

.contact-band .actions {
  margin-top: 0;
  justify-content: flex-end;
}

.site-footer {
  padding-block: 52px 30px;
  background: var(--bg-deep);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: end;
}

.footer-name {
  margin: 0;
  font-size: 22px;
  font-weight: 650;
}

.footer-meta {
  margin: 10px 0 0;
  color: var(--text-soft);
  font-size: 14px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px 26px;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--text-soft);
  font-size: 14px;
}

.footer-bottom {
  margin-top: 38px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-size: 12px;
}

.footer-icp {
  margin: 22px 20px 0;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
}

.footer-icp a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.page-hero {
  padding-block: clamp(70px, 10vw, 130px) clamp(58px, 8vw, 100px);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(125deg, color-mix(in srgb, var(--accent) 9%, var(--bg)), transparent 48%),
    var(--bg);
}

.page-hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 8vw;
  align-items: end;
}

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

.page-hero-lines span {
  display: block;
}

.page-hero-lines span + span {
  margin-top: 7px;
}

.page-hero h1 {
  max-width: 14ch;
  margin: 0;
  font-size: clamp(44px, 7vw, 88px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.05;
}

.page-hero p {
  margin: 0;
  color: var(--text-soft);
  font-size: 17px;
}

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

.service-item {
  min-height: 380px;
  padding: clamp(28px, 4vw, 48px);
  display: flex;
  flex-direction: column;
  background: var(--surface);
}

.service-item:nth-child(3n + 1) {
  background: color-mix(in srgb, var(--accent) 7%, var(--surface));
}

.service-item h2 {
  margin: 0;
  font-size: clamp(27px, 3.4vw, 40px);
  font-weight: 610;
  line-height: 1.27;
}

.service-item p {
  margin: 22px 0 0;
  color: var(--text-soft);
}

.service-scope {
  margin: auto 0 0;
  padding: 30px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
}

.service-scope li {
  padding: 6px 10px;
  border: 1px solid var(--line-strong);
  color: var(--text-soft);
  font-size: 13px;
}

.filters {
  margin-bottom: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-button {
  min-height: 44px;
  padding: 8px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  background: transparent;
  color: var(--text-soft);
  cursor: pointer;
}

.filter-button:hover,
.filter-button[aria-pressed="true"] {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
}

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

.material-grid {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.material-card {
  min-height: 300px;
  padding: clamp(26px, 4vw, 42px);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.material-card:nth-child(4n + 2),
.material-card:nth-child(4n + 3) {
  background: color-mix(in srgb, var(--accent) 7%, var(--surface));
}

.material-card > span {
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 650;
}

.material-card h3 {
  margin: 16px 0 0;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.35;
}

.material-card p {
  margin: 18px 0 0;
  color: var(--text-soft);
}

.material-card .text-link {
  margin-top: auto;
  padding-top: 28px;
}

.article-entry {
  min-height: 310px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  background: var(--surface);
}

.article-entry > .text-link {
  margin-top: auto;
  padding-top: 28px;
}

.article-entry[hidden] {
  display: none;
}

.article-entry h2 {
  margin: 12px 0 0;
  font-size: clamp(22px, 2.5vw, 29px);
  line-height: 1.45;
}

.article-entry h2 a {
  text-decoration: none;
}

.article-entry h2 a:hover {
  color: var(--accent-strong);
}

.article-entry p {
  margin: 18px 0 0;
  color: var(--text-soft);
}

.article-entry details {
  margin-top: 26px;
  border-top: 1px solid var(--line);
}

.article-entry summary {
  min-height: 48px;
  display: flex;
  align-items: center;
  color: var(--accent-strong);
  cursor: pointer;
}

.article-entry details p {
  margin-top: 0;
  padding-bottom: 8px;
}

.source-note {
  margin: 0 0 38px;
  padding: 18px 20px;
  border-left: 3px solid var(--accent);
  background: var(--surface);
  color: var(--text-soft);
}

.article-hero {
  padding-block: clamp(66px, 9vw, 116px) clamp(54px, 8vw, 88px);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(125deg, color-mix(in srgb, var(--accent) 13%, var(--bg)), transparent 56%),
    var(--bg);
}

.article-hero-inner {
  max-width: 980px;
}

.article-hero .article-kicker {
  margin: 28px 0 0;
}

.article-hero h1 {
  max-width: 28ch;
  margin: 14px 0 0;
  font-size: clamp(38px, 5vw, 64px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.16;
  overflow-wrap: anywhere;
}

.article-hero h1 + p {
  margin: 25px 0 0;
  color: var(--text-soft);
}

.back-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--text-soft);
  font-size: 14px;
  text-decoration: none;
}

.back-link:hover {
  color: var(--accent-strong);
}

.article-reading-section {
  padding-top: clamp(58px, 8vw, 96px);
}

.article-reading-layout {
  display: grid;
  grid-template-columns: minmax(0, 780px) minmax(230px, 290px);
  justify-content: space-between;
  gap: clamp(50px, 8vw, 118px);
  align-items: start;
}

.article-body {
  min-width: 0;
  color: var(--text);
  font-size: 17px;
  line-height: 1.95;
  overflow-wrap: anywhere;
}

.article-preface {
  margin-bottom: 46px;
  padding: 24px 26px;
  border-left: 3px solid var(--accent);
  background: var(--surface);
}

.article-preface > p:last-child {
  margin-bottom: 0;
}

.article-content-section + .article-content-section {
  margin-top: 70px;
  padding-top: 22px;
  border-top: 1px solid var(--line-strong);
}

.article-content-section > h2 {
  margin: 0 0 22px;
  font-size: clamp(25px, 3vw, 34px);
  font-weight: 630;
  line-height: 1.4;
}

.article-content-section > h3 {
  margin: 38px 0 14px;
  color: var(--text);
  font-size: 20px;
  font-weight: 630;
  line-height: 1.65;
}

.article-content-section > p,
.article-preface > p {
  margin: 0 0 22px;
}

.article-content-section[data-section-kind="summary"] {
  padding: clamp(24px, 4vw, 38px);
  border-left: 3px solid var(--accent);
  background: color-mix(in srgb, var(--accent) 7%, var(--surface));
}

.article-content-section[data-section-kind="summary"] + .article-content-section {
  margin-top: 58px;
}

.article-content-section[data-section-kind="analysis"] > h2::after,
.article-content-section[data-section-kind="result"] > h2::after {
  content: "";
  width: 52px;
  height: 2px;
  margin-top: 14px;
  display: block;
  background: var(--accent);
}

.article-numbered {
  padding: 16px 18px;
  border-left: 2px solid var(--line-strong);
  background: color-mix(in srgb, var(--surface) 82%, transparent);
}

.legal-reference {
  padding: 18px 20px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text-soft);
}

.article-body > .source-note {
  margin-bottom: 50px;
  font-size: 15px;
  line-height: 1.75;
}

.article-body > .source-bullet {
  margin: 28px 0 16px;
  padding: 16px 18px;
  border-left: 2px solid var(--accent);
  background: var(--surface);
  font-weight: 620;
}

.article-aside,
.source-toc {
  position: sticky;
  top: calc(var(--nav-height) + 28px);
  padding: 24px;
  border-top: 1px solid var(--accent);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.article-aside strong {
  display: block;
  margin-top: 7px;
  font-size: 23px;
}

.article-aside-label {
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 680;
  letter-spacing: 0.16em;
}

.article-aside p {
  margin: 12px 0 0;
  color: var(--text-soft);
  font-size: 14px;
}

.article-contact-button {
  width: 100%;
  margin-top: 22px;
}

.article-pager {
  margin-top: 76px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.article-pager > a,
.article-pager > span {
  min-height: 155px;
  padding: 24px;
  background: var(--surface);
}

.article-pager > a {
  display: flex;
  flex-direction: column;
  text-decoration: none;
}

.article-pager > a:hover {
  background: var(--surface-raised);
}

.article-pager span {
  color: var(--muted);
  font-size: 13px;
}

.article-pager strong {
  margin-top: 12px;
  line-height: 1.6;
}

.source-layout {
  display: grid;
  grid-template-columns: minmax(210px, 300px) minmax(0, 780px);
  justify-content: space-between;
  gap: clamp(48px, 7vw, 110px);
  align-items: start;
}

.source-layout > .source-body:only-child {
  grid-column: 2;
}

.source-toc {
  max-height: calc(100vh - var(--nav-height) - 56px);
  overflow-y: auto;
}

.source-toc h2 {
  margin: 0 0 16px;
  font-size: 18px;
}

.source-toc a {
  padding: 10px 0;
  display: block;
  border-top: 1px solid var(--line);
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.55;
  text-decoration: none;
}

.source-toc a:hover {
  color: var(--accent-strong);
}

.source-body > .source-paragraph {
  margin-bottom: 20px;
}

.source-body > .source-bullet {
  scroll-margin-top: calc(var(--nav-height) + 28px);
}

.bio-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.66fr) minmax(0, 1.34fr);
  gap: clamp(46px, 9vw, 132px);
  align-items: start;
}

.bio-copy h2 {
  margin: 0;
  font-size: clamp(31px, 4vw, 50px);
  font-weight: 600;
  line-height: 1.25;
}

.bio-copy p {
  margin: 22px 0 0;
  color: var(--text-soft);
}

.bio-facts {
  margin: 45px 0 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.bio-fact {
  padding: 22px;
  background: var(--surface);
}

.bio-fact dt {
  color: var(--muted);
  font-size: 13px;
}

.bio-fact dd {
  margin: 7px 0 0;
  font-weight: 620;
}

.books {
  margin-top: 34px;
  display: grid;
  gap: 12px;
}

.book {
  padding: 20px 22px;
  border-left: 3px solid var(--accent);
  background: var(--surface);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(42px, 8vw, 110px);
  align-items: start;
}

.contact-details {
  margin: 0;
  border-top: 1px solid var(--line-strong);
}

.contact-row {
  padding: 24px 0;
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}

.contact-row dt {
  color: var(--muted);
}

.contact-row dd {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
}

.contact-row dd a { display: inline-flex; align-items: center; min-height: 44px; }

.qr-panel {
  padding: clamp(22px, 4vw, 36px);
  background: #ffffff;
  color: #1a1d20;
}

.qr-panel img {
  display: block;
  width: min(100%, 430px);
  height: auto;
  object-fit: contain;
  margin-inline: auto;
}

.qr-panel p {
  margin: 16px 0 0;
  text-align: center;
  font-size: 14px;
}

.legal-note {
  margin-top: 34px;
  color: var(--muted);
  font-size: 13px;
}

.legal-note p { margin: 6px 0 0; }

@media (max-width: 940px) {
  .nav-shell {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }

  .menu-toggle {
    display: block;
  }

  .nav-contact {
    display: none;
  }

  .nav-links {
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    display: none;
    padding: 18px 20px 24px;
    border-bottom: 1px solid var(--line);
    background: var(--bg);
  }

  .nav-links[data-open] {
    display: grid;
  }

  .nav-links a {
    min-height: 50px;
    padding-inline: 4px;
    border-bottom: 1px solid var(--line);
  }

  .nav-links a[aria-current="page"]::after {
    display: none;
  }

  .hero-inner,
  .page-hero-grid,
  .contact-band-inner,
  .contact-layout,
  .article-reading-layout,
  .source-layout {
    grid-template-columns: 1fr;
  }

  .source-layout > .source-body:only-child {
    grid-column: 1;
  }

  .article-aside,
  .source-toc {
    position: static;
  }

  .source-toc {
    max-height: none;
  }

  .hero-inner {
    align-content: center;
  }

  .hero-card {
    max-width: 540px;
    align-self: auto;
    margin: 0;
  }

  .contact-band-inner {
    padding-block: 58px;
  }

  .contact-band .actions {
    justify-content: flex-start;
  }
}

@media (max-width: 767px) {
  .footer-bottom, .footer-icp, .article-kicker, .article-side-item span,
  .article-pager span, .bio-fact dt, .source-toc a { font-size: 14px; }
  body {
    background: var(--bg);
  }

  .container,
  .nav-shell,
  .hero-inner {
    width: min(calc(100% - 32px), var(--max));
  }

  .hero {
    min-height: calc(100svh - var(--nav-height));
  }

  .hero-media {
    object-position: 69% center;
    opacity: 0.62;
  }

  .hero::after {
    background: linear-gradient(90deg, rgb(8 10 12 / 0.96), rgb(8 10 12 / 0.64));
  }

  .hero-inner {
    padding-block: 64px 40px;
    gap: 38px;
  }

  .hero h1 {
    max-width: none;
    font-size: clamp(30px, 10vw, 48px);
  }

  .hero-lead {
    font-size: 16px;
  }

  .focus-grid,
  .practice-layout,
  .article-preview,
  .bio-layout,
  .service-index,
  .article-list,
  .material-grid,
  .bio-facts,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .material-card {
    min-height: auto;
  }

  .article-body {
    font-size: 16px;
    line-height: 1.9;
  }

  .article-hero h1 {
    font-size: clamp(34px, 10vw, 46px);
  }

  .article-body > h2 {
    margin-top: 54px;
  }

  .article-content-section + .article-content-section {
    margin-top: 54px;
  }

  .article-content-section[data-section-kind="summary"] {
    margin-inline: -8px;
    padding: 22px 20px;
  }

  .article-pager {
    grid-template-columns: 1fr;
  }

  .article-pager > a,
  .article-pager > span {
    min-height: auto;
  }

  .article-pager > span:empty {
    display: none;
  }

  .focus-panel {
    min-height: 315px;
  }

  .portrait-frame {
    position: static;
    max-width: 360px;
  }

  .matter-scroller {
    margin-right: -16px;
    grid-auto-columns: minmax(270px, 84vw);
  }

  .article-feature {
    min-height: 420px;
  }

  .page-hero p {
    margin-top: 26px;
  }

  .service-item {
    min-height: auto;
  }

  .footer-links {
    justify-content: flex-start;
  }

  .footer-bottom {
    flex-direction: column;
  }

  .contact-row {
    grid-template-columns: 1fr;
    gap: 5px;
  }
}

@media (max-width: 480px) {
  .brand-name {
    font-size: 15px;
  }

  .hero-actions,
  .actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }

  .matter-scroller {
    grid-auto-columns: 88vw;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .site-header {
    background: var(--bg);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}
