/* ==========================================================================
   LegalHello — cross-border legal counsel, China
   Design system v2: editorial serif, forest palette, Chinese restraint
   Structure follows the 11-page / 6-template content framework.
   ========================================================================== */

:root {
  /* Palette */
  --ink: #0d211a;
  --forest: #123a2b;
  --forest-600: #1a4e3b;
  --forest-300: #517664;
  --sage: #9dbba6;
  --sage-soft: #c7d8cb;
  --mint: #e5eee7;
  --mint-2: #eff4ee;
  --paper: #f7f6f1;
  --white: #ffffff;
  --seal: #9c3b32;
  --gold: #b2946a;
  --muted: #55665d;
  --line: rgba(13, 33, 26, 0.13);
  --line-soft: rgba(13, 33, 26, 0.07);
  --line-dark: rgba(255, 255, 255, 0.16);

  /* Type */
  --serif: "Newsreader", "Songti SC", "Noto Serif SC", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --cn: "Noto Serif SC", "Songti SC", "SimSun", serif;

  /* Metrics */
  --maxw: 1280px;
  --gutter: clamp(20px, 4.6vw, 64px);
  --section: clamp(64px, 8vw, 112px);
  --radius: 3px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --header-h: 78px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
p { margin: 0; }
h1, h2, h3, h4, h5 { margin: 0; font-weight: 400; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }

::selection { background: var(--forest); color: var(--paper); }

:focus-visible {
  outline: 2px solid var(--forest-600);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--forest);
  color: var(--paper);
  padding: 12px 20px;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
}
.skip-link:focus { left: 12px; top: 12px; }

/* --------------------------------------------------------------------------
   Layout primitives
   -------------------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: var(--gutter);
}
.wrap--narrow { max-width: 940px; }

.section { padding-block: var(--section); }
.section--tight { padding-block: clamp(48px, 5.5vw, 80px); }
.section--paper { background: var(--paper); }
.section--mint { background: var(--mint-2); }
.section--white { background: var(--white); }
.section--lined { border-top: 1px solid var(--line); }

.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

/* --------------------------------------------------------------------------
   Typography helpers
   -------------------------------------------------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--forest-600);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--sage);
  flex: none;
}
.eyebrow--plain::before { display: none; }
.eyebrow--light { color: var(--sage); }
.eyebrow--light::before { background: rgba(255, 255, 255, 0.35); }

.display {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 4.9vw, 4.15rem);
  line-height: 1.04;
  letter-spacing: -0.024em;
  font-weight: 400;
}
.display em { font-style: italic; color: var(--forest-600); }

.h2 {
  font-family: var(--serif);
  font-size: clamp(1.85rem, 3.1vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: -0.018em;
}
.h2 em { font-style: italic; color: var(--forest-600); }

.h3 {
  font-family: var(--serif);
  font-size: 1.375rem;
  line-height: 1.28;
  letter-spacing: -0.01em;
}

.lede {
  font-size: clamp(1rem, 1.1vw, 1.0938rem);
  line-height: 1.72;
  color: var(--muted);
  max-width: 56ch;
}
.lede--light { color: rgba(247, 246, 241, 0.74); }

.small { font-size: 0.8125rem; line-height: 1.62; color: var(--muted); }

.cn {
  font-family: var(--cn);
  font-size: 0.8125rem;
  letter-spacing: 0.2em;
  color: var(--forest-300);
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  --btn-bg: var(--forest);
  --btn-fg: var(--paper);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid var(--btn-bg);
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background 0.35s var(--ease), color 0.35s var(--ease),
              border-color 0.35s var(--ease);
}
.btn svg { width: 15px; height: 15px; transition: transform 0.35s var(--ease); }
.btn:hover { background: var(--ink); border-color: var(--ink); }
.btn:hover svg { transform: translateX(3px); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  border-color: rgba(13, 33, 26, 0.26);
}
.btn--ghost:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.btn--light { --btn-bg: var(--paper); --btn-fg: var(--forest); border-color: var(--paper); }
.btn--light:hover { background: var(--sage); border-color: var(--sage); color: var(--forest); }

.btn--line-light {
  --btn-bg: transparent;
  --btn-fg: var(--paper);
  border-color: rgba(255, 255, 255, 0.32);
}
.btn--line-light:hover { background: var(--paper); border-color: var(--paper); color: var(--forest); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--forest-600);
  padding-bottom: 3px;
  border-bottom: 1px solid rgba(26, 78, 59, 0.28);
  transition: gap 0.3s var(--ease), border-color 0.3s var(--ease);
}
.text-link svg { width: 13px; height: 13px; }
.text-link:hover { gap: 13px; border-color: var(--forest-600); }
.text-link--light { color: var(--sage); border-bottom-color: rgba(157, 187, 166, 0.4); }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 246, 241, 0.86);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.site-header.is-stuck {
  border-bottom-color: var(--line);
  background: rgba(247, 246, 241, 0.96);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  height: var(--header-h);
}

.brand { display: inline-flex; align-items: center; gap: 12px; flex: none; }
.brand-mark {
  width: 34px;
  height: 34px;
  background: var(--forest);
  border-radius: 2px;
  display: grid;
  place-items: center;
  position: relative;
  flex: none;
}
.brand-mark::after {
  content: "";
  position: absolute;
  inset: 3px;
  border: 1px solid rgba(247, 246, 241, 0.34);
  border-radius: 1px;
}
.brand-mark span {
  font-family: var(--cn);
  color: var(--paper);
  font-size: 1rem;
  line-height: 1;
  transform: translateY(-1px);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--serif); font-size: 1.1875rem; letter-spacing: -0.01em; }
.brand-sub {
  font-size: 0.5625rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--forest-300);
  margin-top: 3px;
}

.nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav > li { position: relative; }
.nav a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  position: relative;
  padding: 9px 12px;
  font-size: 0.8125rem;
  font-weight: 450;
  letter-spacing: 0.015em;
  color: var(--muted);
  border-radius: 2px;
  transition: color 0.25s var(--ease);
}
.nav a::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 3px;
  height: 1px;
  background: var(--forest);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after { transform: scaleX(1); }
.nav a.is-active { color: var(--ink); }
.nav a.is-active::after { transform: scaleX(1); }
.nav .caret {
  width: 9px;
  height: 9px;
  opacity: 0.6;
  transition: transform 0.3s var(--ease);
}
.nav > li:hover .caret { transform: rotate(180deg); }

/* Dropdown */
.dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: -8px;
  width: 330px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 30px 60px -40px rgba(13, 33, 26, 0.5);
  padding: 10px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
}
.nav > li:hover .dropdown,
.nav > li:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown a {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 10px 12px;
  font-size: 0.8125rem;
  border-radius: 2px;
}
.dropdown a::after { display: none; }
.dropdown a span {
  font-size: 0.625rem;
  letter-spacing: 0.14em;
  color: var(--forest-300);
  text-transform: uppercase;
}
.dropdown a:hover { background: var(--mint-2); color: var(--ink); }
.dropdown a.is-active { background: var(--mint-2); }
.dropdown .dropdown-all {
  grid-column: 1 / -1;
  margin-top: 6px;
  border-top: 1px solid var(--line-soft);
  padding-top: 10px;
  font-size: 0.75rem;
  color: var(--forest-600);
}

.header-actions { display: flex; align-items: center; gap: 12px; flex: none; }
.header-actions .btn { padding: 11px 18px; font-size: 0.8125rem; }
.tel-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  border-left: 1px solid var(--line);
  padding-left: 14px;
  margin-left: 2px;
}
.tel-link svg { width: 13px; height: 13px; color: var(--forest-600); }
.tel-link:hover { color: var(--ink); }

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 2px;
  cursor: pointer;
  padding: 0;
  place-items: center;
}
.nav-toggle span {
  display: block;
  width: 17px;
  height: 1px;
  background: var(--ink);
  position: relative;
  transition: background 0.2s;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 17px;
  height: 1px;
  background: var(--ink);
  transition: transform 0.3s var(--ease);
}
.nav-toggle span::before { top: -5px; }
.nav-toggle span::after { top: 5px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-5px) rotate(-45deg); }

/* Mobile drawer */
.mobile-menu {
  display: none;
  border-top: 1px solid var(--line);
  background: var(--paper);
  padding: 14px var(--gutter) 26px;
  max-height: calc(100vh - var(--header-h));
  overflow-y: auto;
}
.mobile-menu.is-open { display: block; }
.mobile-menu a.m-link {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 13px 0;
  font-family: var(--serif);
  font-size: 1.1875rem;
  border-bottom: 1px solid var(--line-soft);
}
.mobile-menu .m-label {
  display: block;
  margin-top: 18px;
  margin-bottom: 2px;
  font-size: 0.625rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--forest-300);
}
.mobile-menu .m-sub a {
  display: flex;
  justify-content: space-between;
  padding: 11px 0 11px 12px;
  font-size: 0.9375rem;
  color: var(--muted);
  border-bottom: 1px solid var(--line-soft);
}
.mobile-menu .m-sub a span { font-size: 0.6875rem; color: var(--sage); }
.mobile-menu .btn { margin-top: 22px; width: 100%; justify-content: center; }

/* --------------------------------------------------------------------------
   Hero (home)
   -------------------------------------------------------------------------- */
.hero.is-ready {
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: calc(100vh - var(--header-h) - 1px);
  min-height: calc(100dvh - var(--header-h) - 1px);
}
.hero-controls:not([hidden]) {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2px 18px;
  padding-block: 6px;
}
.hero-picker, .hero-transport { display: flex; align-items: center; flex-wrap: wrap; }
.hero-controls button {
  background: none;
  border: 0;
  min-width: 44px;
  min-height: 44px;
  padding: 4px 10px;
  font-size: .82rem;
  cursor: pointer;
}
.hero-picker button { border-bottom: 2px solid transparent; color: var(--muted); }
.hero-picker button span, .hero-imprint, .hero-portrait figcaption, .hero-register a span {
  font: 500 .68rem/1.45 var(--sans);
  letter-spacing: .12em;
  text-transform: uppercase;
}
.hero-picker button span { color: var(--forest-300); }
.hero-picker button[aria-current="true"] { color: var(--ink); border-color: var(--forest); font-weight: 600; }
.hero-transport { border-left: 1px solid var(--line); }
.hero-transport button:not([data-hero-play]) { font-size: 1.15rem; }
.hero-transport [data-hero-play] { min-width: 66px; }
.hero-controls button:hover { background: var(--mint); }
.hero.is-ready .hero-stage { display: grid; isolation: isolate; overflow: clip; }
.hero-slide { display: grid; align-items: center; min-width: 0; background: var(--paper); }
.hero.is-ready .hero-slide { grid-area: 1 / 1; visibility: hidden; }
.hero.is-ready .hero-slide.is-active { visibility: visible; z-index: 1; }
@media (prefers-reduced-motion: no-preference) {
  .hero.has-transition .hero-slide.is-active { animation: hero-enter .55s var(--ease) both; }
  .hero.has-transition .hero-slide.is-leaving { animation: hero-exit .55s var(--ease) both; }
  @keyframes hero-enter { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
  @keyframes hero-exit { from { visibility: visible; opacity: 1; transform: none; } to { visibility: hidden; opacity: 0; transform: translateY(-18px); } }
}
.hero-spread {
  display: grid;
  grid-template-columns: minmax(0, 1.14fr) minmax(0, .86fr);
  gap: clamp(24px, 6vw, 86px);
  align-items: center;
  padding-block: clamp(24px, 5vh, 66px);
  overflow-wrap: break-word;
}
.hero-story .display { margin-block: .28em; font-size: clamp(2.35rem, 5.2vw, 4.9rem); text-wrap: balance; }
.hero-story .lede { max-width: 47ch; }
.hero-links { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 20px; margin-top: clamp(16px, 3vh, 32px); }
.hero-links .text-link { min-height: 44px; }
#hero-profile { background: radial-gradient(ellipse at 80% 30%, var(--mint) 0%, var(--paper) 62%); }
.hero-portrait img { width: 100%; height: auto; aspect-ratio: 4 / 4.5; max-height: min(59vh, 625px); object-fit: cover; object-position: 50% 12%; }
.hero-portrait figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; padding-block: 9px; border-bottom: 1px solid var(--forest-300); }
#hero-practice { background: var(--forest); color: var(--paper); }
#hero-practice .display em, #hero-practice .eyebrow, .hero-register a span { color: var(--sage-soft); }
#hero-practice .lede { color: var(--mint); }
#hero-practice :focus-visible { outline-color: var(--paper); }
.hero-register { border-top: 3px double var(--sage); }
.hero-register .hero-imprint { padding-block: 12px; color: var(--sage-soft); }
.hero-register a {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 10px 4px;
  min-height: 44px;
  border-top: 1px solid var(--line-dark);
  font: 400 clamp(1.1rem, 2vw, 1.65rem)/1.25 var(--serif);
}
.hero-register a::after { content: '↗'; margin-left: auto; color: var(--sage-soft); font-size: .9rem; }
.hero-register a:hover { background: var(--forest-600); }
#hero-insights { background: #f1e9dd; }
#hero-insights em { color: var(--seal); }
.hero-extract {
  display: grid;
  align-content: space-between;
  gap: 18px;
  padding: clamp(22px, 3.2vw, 48px);
  min-height: clamp(205px, 45vh, 455px);
  border-top: 5px solid var(--seal);
  background: var(--paper);
  box-shadow: 5px 5px 0 #dfd3c1;
}
.hero-extract .hero-imprint { color: var(--seal); }
.hero-extract blockquote { margin: 0; font: italic 400 clamp(1.7rem, 3.2vw, 3.2rem)/1.12 var(--serif); text-wrap: balance; }
.hero-extract figcaption { border-top: 1px solid var(--line); padding-top: 8px; font-size: .78rem; color: var(--muted); }
.hero-extract figcaption span { padding-inline: 6px; }
@media (max-width: 640px) {
  .hero-spread { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .hero-portrait img { height: clamp(155px, 30vh, 310px); }
  .hero-register a { padding-block: 7px; }
  .hero-extract { min-height: 0; }
  .hero-controls:not([hidden]) { justify-content: flex-start; }
}
@media (max-width: 480px) {
  .hero-controls button { padding-inline: 6px; }
  .hero-picker button span { display: none; }
  .hero-transport [data-hero-play] { min-width: 50px; }
  .hero-controls:not([hidden]) { justify-content: space-between; column-gap: 4px; }
}
@media (min-width: 641px) and (max-height: 500px) {
  .hero-controls:not([hidden]) { padding-block: 0; }
  .hero-spread { padding-block: 10px; gap: 24px; }
  .hero-story .display { margin-block: .15em; font-size: clamp(1.9rem, 3.8vw, 3rem); }
  .hero-story .lede { font-size: .94rem; line-height: 1.45; }
  .hero-links { margin-top: 8px; }
  .hero-links .btn { padding: 8px 14px; min-height: 44px; }
  .hero-register a { min-height: 0; padding-block: 5px; }
  .hero-portrait img { height: 42vh; }
}

/* Full-bleed lead and lower slide rail, adapted to LegalHello's editorial palette. */
.hero.is-ready { grid-template-rows: 1fr auto; }
.hero.is-ready .hero-stage { grid-row: 1; grid-column: 1; }
.hero-controls:not([hidden]) { grid-row: 2; grid-column: 1; padding-block: 10px; }
.hero-picker { gap: clamp(4px, 1.4vw, 22px); }
.hero-picker button { position: relative; border-bottom: 2px solid var(--line); text-align: left; }
.hero-picker button[aria-current="true"] { border-color: var(--sage); }
.hero-picker button[aria-current="true"]::after { content: ""; height: 2px; position: absolute; inset: auto 0 -2px; background: var(--forest); transform-origin: left; }
@media (prefers-reduced-motion: no-preference) {
  .hero.is-timing .hero-picker button[aria-current="true"]::after { animation: hero-remaining var(--hero-dwell, 12s) linear both; }
  @keyframes hero-remaining { from { transform: scaleX(0); } to { transform: scaleX(1); } }
}
#hero-profile { position: relative; isolation: isolate; overflow: clip; background: #11251e; color: var(--paper); }
#hero-profile .hero-spread { min-height: clamp(440px, 65vh, 850px); }
#hero-profile .hero-story { position: relative; z-index: 2; grid-column: 1; }
#hero-profile .display em { color: #c1ddc8; }
#hero-profile .hero-discipline {
  margin: 0 0 .85rem;
  border-inline-start: 3px solid #d8bb8e;
  padding-inline-start: .7em;
  color: #fff9ed;
  font: 600 clamp(.95rem, 1.25vw, 1.2rem)/1.4 var(--sans);
  letter-spacing: .055em;
}
#hero-profile .hero-discipline [lang] { font-weight: 700; letter-spacing: .08em; }
#hero-profile .hero-discipline span { display: inline-block; }
#hero-profile .hero-role { display: flex; flex-wrap: wrap; gap: .12em .75em; align-items: baseline; margin: 0 0 .8rem; font-size: 1rem; line-height: 1.45; color: #eef2eb; }
#hero-profile .hero-role strong { color: #fff9ed; font-weight: 600; }
#hero-profile .lede { color: #eef2eb; }
#hero-profile .text-link { color: var(--paper); }
#hero-profile :focus-visible { outline-color: var(--paper); }
#hero-profile .hero-portrait { position: absolute; inset: 0; z-index: 0; }
#hero-profile .hero-portrait img { position: absolute; inset: 0 0 0 auto; width: 64%; height: 100%; max-height: none; aspect-ratio: auto; object-fit: cover; object-position: 26% 18%; }
#hero-profile .hero-portrait::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #11251e 16%, rgba(17,37,30,.97) 34%, rgba(17,37,30,.78) 47%, transparent 72%); }
#hero-profile .hero-portrait figcaption { position: absolute; z-index: 1; right: var(--gutter); bottom: 18px; color: white; background: #15271eaa; border: 0; padding: 5px 9px; }
#hero-practice { background: radial-gradient(ellipse at 93% 12%, #295740, transparent 62%), var(--forest); }
#hero-insights { background: linear-gradient(115deg, #f4eee3 18%, #e8d9c4 100%); }
body.hero-in-view .float-contact { visibility: hidden; }
@media (max-width: 640px) {
  #hero-profile { align-items: end; }
  #hero-profile .hero-spread { align-items: end; min-height: min(560px, 72svh); }
  #hero-profile .hero-story { padding-top: clamp(100px, 25svh, 240px); }
  #hero-profile .hero-portrait img { width: 100%; object-position: 50% 0; }
  #hero-profile .hero-portrait::after { background: linear-gradient(0deg, #0d2019 1%, rgba(13,32,25,.96) 22%, rgba(13,32,25,.8) 43%, transparent 75%); }
  #hero-profile .hero-portrait figcaption { display: none; }
  .hero-controls:not([hidden]) { padding-block: 4px; }
  .hero-picker { gap: 2px; }
}

/* --------------------------------------------------------------------------
   Trust strip
   -------------------------------------------------------------------------- */
.trust { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper); }
.trust-inner {
  display: flex;
  align-items: center;
  gap: clamp(22px, 4vw, 52px);
  padding-block: 24px;
  flex-wrap: wrap;
}
.trust-label {
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--forest-300);
  flex: none;
}
.trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  font-family: var(--serif);
  font-size: 0.9375rem;
  color: var(--muted);
}
.trust-list span { position: relative; }
.trust-list span + span::before {
  content: "·";
  position: absolute;
  left: -16px;
  color: var(--sage);
}

/* --------------------------------------------------------------------------
   Section heading (split)
   -------------------------------------------------------------------------- */
.sec-head {
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  gap: clamp(22px, 5vw, 72px);
  align-items: end;
  margin-bottom: clamp(34px, 4.2vw, 58px);
}
.sec-head .h2 { margin-top: 14px; }
.sec-head-right { padding-bottom: 4px; }
.sec-head-right .lede { max-width: 44ch; }
.sec-head-right .text-link { margin-top: 18px; }

/* --------------------------------------------------------------------------
   Practice cards (home 6-up / services 6-up)
   -------------------------------------------------------------------------- */
.practice-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.practice-card {
  position: relative;
  background: var(--paper);
  padding: clamp(22px, 2.3vw, 32px);
  display: flex;
  flex-direction: column;
  min-height: 236px;
  transition: background 0.4s var(--ease);
}
.practice-card:hover { background: var(--white); }
.practice-card .num {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.625rem;
  letter-spacing: 0.18em;
  color: var(--sage);
  font-variant-numeric: tabular-nums;
}
.practice-card .num .cn { font-size: 0.6875rem; letter-spacing: 0.16em; color: var(--forest-300); }
.practice-card .h3 { margin-top: 20px; font-size: 1.25rem; }
.practice-card p {
  margin-top: 11px;
  font-size: 0.875rem;
  line-height: 1.66;
  color: var(--muted);
}
.practice-card .go {
  margin-top: auto;
  padding-top: 20px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--forest-600);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}
.practice-card .go svg { width: 13px; height: 13px; }
.practice-card:hover .go { opacity: 1; transform: translateY(0); }
.practice-card::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 2px;
  background: var(--forest-600);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease);
}
.practice-card:hover::after { transform: scaleX(1); }

.practice-card--cta { background: var(--forest); }
.practice-card--cta:hover { background: var(--forest-600); }
.practice-card--cta .num { color: var(--sage); }
.practice-card--cta .h3 { color: var(--paper); }
.practice-card--cta p { color: rgba(247, 246, 241, 0.66); }
.practice-card--cta .go { color: var(--sage); opacity: 1; transform: none; }
.practice-card--cta::after { background: var(--sage); }

/* --------------------------------------------------------------------------
   Lawyer intro (home)
   -------------------------------------------------------------------------- */
.lawyer {
  display: grid;
  grid-template-columns: 0.4fr 0.6fr;
  gap: clamp(26px, 4.4vw, 64px);
  align-items: center;
}
.lawyer-figure { position: relative; }
.lawyer-photo {
  position: relative;
  aspect-ratio: 4 / 4.9;
  background:
    radial-gradient(115% 85% at 78% 4%, rgba(157, 187, 166, 0.3), transparent 58%),
    linear-gradient(160deg, #17452f 0%, #123a2b 55%, #0e2c21 100%);
  border: 1px solid rgba(13, 33, 26, 0.2);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.lawyer-photo::before {
  content: "";
  position: absolute;
  inset: 13px;
  border: 1px solid rgba(247, 246, 241, 0.2);
}
.lawyer-photo .mono {
  font-family: var(--cn);
  font-size: clamp(2.4rem, 5.4vw, 3.8rem);
  color: var(--paper);
  letter-spacing: 0.14em;
  writing-mode: vertical-rl;
  line-height: 1.1;
}
.lawyer-photo img,
.lawyer-photo picture {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.lawyer-photo figcaption {
  position: absolute;
  left: 18px;
  bottom: 16px;
  font-size: 0.5625rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(157, 187, 166, 0.9);
}
.lawyer-tag {
  position: absolute;
  right: -16px;
  top: 26px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 20px 40px -28px rgba(13, 33, 26, 0.5);
  padding: 10px 14px;
  font-size: 0.6875rem;
  line-height: 1.5;
  color: var(--forest-600);
  max-width: 150px;
}
.lawyer-tag b { display: block; font-size: 0.5625rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--forest-300); margin-bottom: 3px; font-weight: 500; }

.lawyer-copy .h2 { margin-top: 14px; }
.lawyer-copy .lede { margin-top: 20px; max-width: 48ch; }
.lawyer-facts {
  margin-top: 26px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 30px;
  border-top: 1px solid var(--line);
}
.lawyer-facts div {
  padding: 12px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.8125rem;
  color: var(--ink);
}
.lawyer-facts b {
  display: block;
  font-size: 0.5625rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--forest-300);
  font-weight: 500;
  margin-bottom: 2px;
}

/* --------------------------------------------------------------------------
   Principles (home) — 3 points
   -------------------------------------------------------------------------- */
.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 3.4vw, 56px);
}
.principle { position: relative; padding-top: 24px; border-top: 1px solid var(--line); }
.principle .p-num {
  font-family: var(--serif);
  font-size: 0.8125rem;
  color: var(--forest-300);
  letter-spacing: 0.08em;
}
.principle h3 { margin-top: 12px; font-size: 1.1875rem; }
.principle p { margin-top: 10px; font-size: 0.9375rem; line-height: 1.7; color: var(--muted); }
.principle .cn { display: block; margin-top: 16px; font-size: 0.6875rem; }

/* --------------------------------------------------------------------------
   Advantages (home) — 4 cells
   -------------------------------------------------------------------------- */
.adv-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.adv {
  background: var(--paper);
  padding: 26px 24px 30px;
}
.adv svg { width: 22px; height: 22px; color: var(--forest-600); }
.adv h3 { font-family: var(--serif); font-size: 1.0625rem; margin-top: 16px; line-height: 1.3; }
.adv p { margin-top: 8px; font-size: 0.8125rem; line-height: 1.66; color: var(--muted); }

/* --------------------------------------------------------------------------
   ESG / Japan band (dark)
   -------------------------------------------------------------------------- */
.band {
  position: relative;
  background: var(--forest);
  color: var(--paper);
  overflow: hidden;
}
.band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(70% 90% at 92% 0%, rgba(157, 187, 166, 0.16), transparent 62%);
  pointer-events: none;
}
.band-inner { position: relative; }
.band-head {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: clamp(22px, 5vw, 72px);
  align-items: end;
  margin-bottom: clamp(34px, 4.2vw, 56px);
}
.band-head .h2 { margin-top: 14px; color: var(--paper); }
.band-head .h2 em { font-style: italic; color: var(--sage); }
.band-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(22px, 3vw, 48px);
  border-top: 1px solid var(--line-dark);
  padding-top: 28px;
}
.band-pillar h3 { font-family: var(--serif); font-size: 1.125rem; color: var(--paper); line-height: 1.32; }
.band-pillar p { margin-top: 10px; font-size: 0.875rem; line-height: 1.7; color: rgba(247, 246, 241, 0.68); }
.band-pillar .cn { display: block; margin-top: 12px; color: rgba(157, 187, 166, 0.8); font-size: 0.6875rem; }
.band-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: clamp(30px, 3.6vw, 48px);
  padding-top: 24px;
  border-top: 1px solid var(--line-dark);
}
.band-foot p { font-size: 0.875rem; color: rgba(247, 246, 241, 0.62); max-width: 60ch; }

/* --------------------------------------------------------------------------
   Insight rows
   -------------------------------------------------------------------------- */
.insight-list { border-top: 1px solid var(--line); }
.insight-row {
  display: grid;
  grid-template-columns: 104px 1fr 168px 26px;
  gap: 22px;
  align-items: center;
  padding: 22px 12px 22px 4px;
  border-bottom: 1px solid var(--line);
  transition: background 0.35s var(--ease), padding-left 0.35s var(--ease);
}
.insight-row:hover { background: var(--white); padding-left: 14px; }
.insight-date {
  font-size: 0.75rem;
  color: var(--forest-300);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}
.insight-title {
  font-family: var(--serif);
  font-size: 1.0938rem;
  line-height: 1.38;
  letter-spacing: -0.005em;
}
.insight-title .sub {
  display: block;
  margin-top: 4px;
  font-family: var(--sans);
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--muted);
  letter-spacing: 0;
}
.insight-tag { font-size: 0.625rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--forest-300); }
.insight-kind {
  display: inline-block;
  margin-right: 8px;
  padding: 1px 7px 2px;
  border: 1px solid var(--seal);
  border-radius: 2px;
  font-size: 0.5rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--seal);
  vertical-align: 2px;
  line-height: 1.6;
}
.insight-arrow { justify-self: end; color: var(--forest-300); transition: transform 0.35s var(--ease), color 0.35s var(--ease); }
.insight-arrow svg { width: 16px; height: 16px; }
.insight-row:hover .insight-arrow { transform: translateX(4px); color: var(--forest-600); }

/* --------------------------------------------------------------------------
   CTA strip ("contact bar" — required on every page except home)
   -------------------------------------------------------------------------- */
.cta-band {
  position: relative;
  background: var(--mint);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.cta-band::after {
  content: "合";
  position: absolute;
  right: -2%;
  bottom: -36%;
  font-family: var(--cn);
  font-size: clamp(170px, 24vw, 320px);
  line-height: 1;
  color: rgba(18, 58, 43, 0.045);
  pointer-events: none;
}
.cta-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(26px, 5vw, 68px);
  align-items: center;
  padding-block: clamp(46px, 5.4vw, 76px);
}
.cta-inner .h2 { max-width: 22ch; margin-top: 14px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }

/* --------------------------------------------------------------------------
   Page hero (subpages) + breadcrumb
   -------------------------------------------------------------------------- */
.page-hero {
  position: relative;
  padding-top: clamp(38px, 4.8vw, 64px);
  padding-bottom: clamp(34px, 4.2vw, 56px);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(55% 80% at 88% 0%, rgba(157, 187, 166, 0.2), transparent 68%);
  pointer-events: none;
}
.page-hero-inner { position: relative; }
.crumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--forest-300);
  margin-bottom: 20px;
}
.crumb a:hover { color: var(--forest-600); }
.crumb .sep { color: var(--sage); }
.crumb [aria-current] { color: var(--muted); }
.page-hero h1 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
  max-width: 24ch;
}
.page-hero .lede { margin-top: 20px; max-width: 62ch; }
.page-hero .page-meta {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--forest-300);
}

/* --------------------------------------------------------------------------
   Practice overview cards (services.html)
   -------------------------------------------------------------------------- */
.svc-index {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.svc-index-item {
  background: var(--paper);
  padding: clamp(24px, 2.6vw, 36px);
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 18px;
  transition: background 0.4s var(--ease);
}
.svc-index-item:hover { background: var(--white); }
.svc-index-item .ic {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(26, 78, 59, 0.18);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--forest-600);
}
.svc-index-item .ic svg { width: 16px; height: 16px; }
.svc-index-item h3 { font-family: var(--serif); font-size: 1.1875rem; line-height: 1.3; }
.svc-index-item .cn { display: block; margin-top: 5px; font-size: 0.6875rem; }
.svc-index-item p { margin-top: 10px; font-size: 0.875rem; line-height: 1.66; color: var(--muted); }
.svc-index-item .go {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.75rem;
  color: var(--forest-600);
}
.svc-index-item .go svg { width: 13px; height: 13px; transition: transform 0.3s var(--ease); }
.svc-index-item:hover .go svg { transform: translateX(3px); }

/* --------------------------------------------------------------------------
   Practice detail page
   -------------------------------------------------------------------------- */
.svc-detail {
  display: grid;
  grid-template-columns: 0.3fr 0.7fr;
  gap: clamp(24px, 4.6vw, 68px);
  align-items: start;
}
.svc-nav { position: sticky; top: calc(var(--header-h) + 26px); }
.svc-nav .label {
  font-size: 0.5625rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--forest-300);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 6px;
}
.svc-nav a {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  padding: 10px 0;
  font-size: 0.8125rem;
  color: var(--muted);
  border-bottom: 1px solid var(--line-soft);
  transition: color 0.25s var(--ease), padding-left 0.25s var(--ease);
}
.svc-nav a .n { font-size: 0.625rem; color: var(--sage); font-variant-numeric: tabular-nums; }
.svc-nav a:hover { color: var(--ink); padding-left: 4px; }
.svc-nav a.is-current { color: var(--ink); }
.svc-nav a.is-current .n { color: var(--forest-600); }
.svc-nav .aside-note {
  margin-top: 24px;
  background: var(--mint-2);
  border: 1px solid rgba(26, 78, 59, 0.12);
  padding: 18px;
}
.svc-nav .aside-note h4 { font-family: var(--serif); font-size: 0.9375rem; }
.svc-nav .aside-note p { margin-top: 6px; font-size: 0.75rem; line-height: 1.6; color: var(--muted); }
.svc-nav .aside-note a { display: inline-flex; margin-top: 10px; font-size: 0.75rem; color: var(--forest-600); border-bottom: 1px solid rgba(26, 78, 59, 0.25); }

.svc-body .lede { max-width: 62ch; }
.svc-body .lede + .lede { margin-top: 14px; }

.block-title {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 22px;
}
.block-title h2 {
  font-family: var(--serif);
  font-size: 1.375rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.block-title .cn { font-size: 0.6875rem; }
.block-title .rule-line { flex: 1; height: 1px; background: var(--line); }

.scope {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.scope-item { background: var(--paper); padding: 18px 20px; }
.scope-item h4 {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--ink);
  display: flex;
  gap: 9px;
  align-items: baseline;
}
.scope-item h4 .i { font-size: 0.5625rem; color: var(--sage); font-variant-numeric: tabular-nums; letter-spacing: 0.1em; }
.scope-item p { margin-top: 6px; padding-left: 24px; font-size: 0.8125rem; line-height: 1.62; color: var(--muted); }

.matters { border-top: 1px solid var(--line); }
.matter {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 22px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line-soft);
  align-items: baseline;
}
.matter .kind {
  font-size: 0.625rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--forest-300);
}
.matter .desc { font-size: 0.9375rem; line-height: 1.62; }
.matter .desc b { font-weight: 500; }

.qa { border-top: 1px solid var(--line); }
.qa-item { padding: 16px 0; border-bottom: 1px solid var(--line-soft); }
.qa-item .q {
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.4;
  color: var(--ink);
}
.qa-item .a { margin-top: 7px; font-size: 0.875rem; line-height: 1.68; color: var(--muted); max-width: 64ch; }

.pull {
  margin: 30px 0;
  padding: 22px 24px;
  background: var(--mint-2);
  border-left: 2px solid var(--sage);
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--forest);
}

/* --------------------------------------------------------------------------
   Prose blocks
   -------------------------------------------------------------------------- */
.prose > p { font-size: 1.0625rem; line-height: 1.78; color: var(--muted); max-width: 66ch; }
.prose > p + p { margin-top: 16px; }
.prose .lead {
  font-family: var(--serif);
  font-size: clamp(1.1875rem, 1.7vw, 1.4375rem);
  line-height: 1.52;
  color: var(--ink);
  max-width: 44ch;
}
.prose .lead + p { margin-top: 20px; }
.prose h3 { font-family: var(--serif); font-size: 1.25rem; margin-top: 32px; margin-bottom: 10px; }
.prose a { color: var(--forest-600); border-bottom: 1px solid rgba(26, 78, 59, 0.25); }

/* --------------------------------------------------------------------------
   Facts / dark panels
   -------------------------------------------------------------------------- */
.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line-dark);
  border: 1px solid var(--line-dark);
}
.fact { background: var(--forest); padding: 26px 24px; }
.fact h4 {
  font-size: 0.5625rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sage);
  font-weight: 500;
}
.fact ul { margin-top: 12px; }
.fact li {
  font-size: 0.8125rem;
  line-height: 1.7;
  color: rgba(247, 246, 241, 0.78);
  border-bottom: 1px solid var(--line-dark);
  padding: 7px 0;
}
.fact li:last-child { border-bottom: 0; }
.fact li small { display: block; font-size: 0.6875rem; color: rgba(247, 246, 241, 0.46); line-height: 1.5; }

/* --------------------------------------------------------------------------
   About page
   -------------------------------------------------------------------------- */
.profile {
  display: grid;
  grid-template-columns: 0.34fr 0.66fr;
  gap: clamp(24px, 4.4vw, 58px);
  align-items: start;
}
.portrait {
  position: relative;
  aspect-ratio: 3 / 3.8;
  background:
    radial-gradient(115% 85% at 78% 4%, rgba(157, 187, 166, 0.3), transparent 58%),
    linear-gradient(160deg, #17452f 0%, #123a2b 55%, #0e2c21 100%);
  border: 1px solid rgba(13, 33, 26, 0.22);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.portrait::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(247, 246, 241, 0.22);
}
.portrait .mono {
  font-family: var(--cn);
  font-size: clamp(2.4rem, 5.6vw, 4.2rem);
  color: var(--paper);
  letter-spacing: 0.12em;
  writing-mode: vertical-rl;
  line-height: 1.1;
}
.portrait img,
.portrait picture {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.portrait figcaption {
  position: absolute;
  left: 18px;
  bottom: 16px;
  font-size: 0.5625rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(157, 187, 166, 0.9);
}
.profile-head h1 {
  font-family: var(--serif);
  font-size: clamp(1.85rem, 3.2vw, 2.7rem);
  line-height: 1.1;
  letter-spacing: -0.018em;
}
.profile-role { margin-top: 8px; font-size: 0.8125rem; letter-spacing: 0.04em; color: var(--forest-600); }

.factlist { margin: 24px 0 0; border-top: 1px solid var(--line); }
.factlist > div {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 18px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.factlist dt {
  font-size: 0.5625rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--forest-600);
  padding-top: 4px;
}
.factlist dd { margin: 0; font-size: 0.875rem; line-height: 1.62; color: var(--ink); }
.factlist dd small { display: block; color: var(--muted); font-size: 0.75rem; margin-top: 2px; }

.experience { border-top: 1px solid var(--line); }
.exp-group { border-bottom: 1px solid var(--line); padding: 20px 0; display: grid; grid-template-columns: 0.28fr 0.72fr; gap: 24px; }
.exp-group h3 {
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.35;
  color: var(--forest);
}
.exp-group h3 .cn { display: block; margin-top: 4px; font-size: 0.625rem; }
.exp-group ul li {
  position: relative;
  padding-left: 16px;
  font-size: 0.875rem;
  line-height: 1.68;
  color: var(--muted);
  margin-bottom: 7px;
}
.exp-group ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 1px;
  background: var(--sage);
}

/* --------------------------------------------------------------------------
   Insights page
   -------------------------------------------------------------------------- */
.feature {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  background: var(--white);
  border: 1px solid var(--line);
  margin-bottom: clamp(30px, 3.4vw, 44px);
  transition: border-color 0.4s var(--ease);
}
.feature:hover { border-color: var(--sage); }
.feature-art { position: relative; overflow: hidden; min-height: 290px; background: var(--forest); }
.feature-art svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.feature-body { padding: clamp(24px, 3.2vw, 44px); display: flex; flex-direction: column; justify-content: center; }
.feature-title {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.2vw, 1.8rem);
  line-height: 1.26;
  letter-spacing: -0.014em;
  margin-top: 14px;
  max-width: 28ch;
}
.feature-meta {
  display: flex;
  gap: 9px;
  margin-top: 22px;
  font-size: 0.625rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--forest-300);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 24px;
}
.chip {
  border: 1px solid var(--line);
  background: transparent;
  padding: 7px 15px;
  border-radius: 100px;
  font-size: 0.75rem;
  letter-spacing: 0.03em;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.chip:hover { border-color: var(--sage); color: var(--ink); }
.chip.is-active { background: var(--forest); border-color: var(--forest); color: var(--paper); }
.chip .count { font-size: 0.625rem; opacity: 0.55; margin-left: 4px; font-variant-numeric: tabular-nums; }

.pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 26px;
  font-size: 0.75rem;
  color: var(--forest-300);
}
.pager .pages { display: flex; gap: 4px; }
.pager .pages a, .pager .pages span {
  min-width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 2px;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}
.pager .pages .is-current { background: var(--forest); border-color: var(--forest); color: var(--paper); }

.briefing {
  margin-top: clamp(38px, 4.4vw, 58px);
  border-top: 1px solid var(--line);
  padding-top: clamp(28px, 3.4vw, 40px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(22px, 4vw, 52px);
  align-items: center;
}
.briefing-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.briefing-form input {
  flex: 1 1 220px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
  font-family: var(--sans);
  font-size: 0.9375rem;
  color: var(--ink);
}
.briefing-form input:focus { outline: none; border-bottom-color: var(--forest-600); }
.briefing-note { flex-basis: 100%; margin: 0; min-height: 1.1em; font-size: 0.75rem; color: var(--forest-600); }

/* --------------------------------------------------------------------------
   Article page
   -------------------------------------------------------------------------- */
.article-head { padding-bottom: clamp(26px, 3vw, 38px); border-bottom: 1px solid var(--line); }
.article-head h1 {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3.6vw, 2.9rem);
  line-height: 1.14;
  letter-spacing: -0.018em;
  max-width: 26ch;
  margin-top: 14px;
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  margin-top: 20px;
  font-size: 0.75rem;
  color: var(--forest-300);
}
.article-meta .tag {
  border: 1px solid rgba(26, 78, 59, 0.2);
  border-radius: 100px;
  padding: 3px 11px;
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--forest-600);
}
.article-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--sage); }

.article-layout {
  display: grid;
  grid-template-columns: 0.24fr 0.76fr;
  gap: clamp(24px, 4.4vw, 64px);
  padding-block: clamp(34px, 4.2vw, 54px);
  align-items: start;
}
.article-toc { position: sticky; top: calc(var(--header-h) + 26px); font-size: 0.75rem; }
.article-toc .label {
  font-size: 0.5625rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--forest-300);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 10px;
}
.article-toc a { display: block; padding: 6px 0; color: var(--muted); line-height: 1.5; }
.article-toc a:hover { color: var(--ink); }
.article-toc .share { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--forest-300); font-size: 0.6875rem; line-height: 1.6; }

.article-body { max-width: 68ch; }
.article-body > p { font-size: 1.0625rem; line-height: 1.8; color: var(--ink); }
.article-body > p + p { margin-top: 18px; }
.article-body > p.lead {
  font-family: var(--serif);
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--forest);
}
.article-body h2 {
  font-family: var(--serif);
  font-size: 1.4375rem;
  line-height: 1.3;
  margin-top: 38px;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.article-body h3 { font-family: var(--serif); font-size: 1.125rem; margin-top: 26px; margin-bottom: 8px; }
.article-body ul, .article-body ol { margin: 14px 0 18px; }
.article-body ul li {
  position: relative;
  padding-left: 20px;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--muted);
  margin-bottom: 8px;
}
.article-body ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 8px;
  height: 1px;
  background: var(--sage);
}
.article-body ol { counter-reset: ol; }
.article-body ol li {
  position: relative;
  padding-left: 26px;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--muted);
  margin-bottom: 8px;
  counter-increment: ol;
}
.article-body ol li::before {
  content: counter(ol) ".";
  position: absolute;
  left: 0;
  color: var(--forest-600);
  font-size: 0.8125rem;
  font-variant-numeric: tabular-nums;
}
.article-body blockquote {
  margin: 26px 0;
  padding: 20px 24px;
  background: var(--mint-2);
  border-left: 2px solid var(--sage);
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--forest);
}
.article-body .note {
  margin: 24px 0;
  border: 1px solid var(--line);
  background: var(--white);
  padding: 18px 20px;
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--muted);
}
.article-body .note b { color: var(--ink); font-weight: 500; }
.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 0.875rem;
}
.article-body th, .article-body td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.article-body th { font-weight: 500; font-size: 0.6875rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--forest-600); background: var(--mint-2); }

.article-foot {
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  font-size: 0.75rem;
  color: var(--forest-300);
}
.author-box {
  margin-top: 32px;
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 18px;
  align-items: center;
  background: var(--mint-2);
  padding: 20px;
  border: 1px solid rgba(26, 78, 59, 0.1);
}
.author-box .av {
  width: 64px;
  height: 64px;
  background: var(--forest);
  display: grid;
  place-items: center;
  color: var(--paper);
  font-family: var(--cn);
  font-size: 1.25rem;
}
.author-box h4 { font-family: var(--serif); font-size: 1rem; }
.author-box p { margin-top: 3px; font-size: 0.75rem; line-height: 1.6; color: var(--muted); }

.prevnext { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 36px; }
.prevnext a, .prevnext span { background: var(--paper); padding: 18px 20px; display: block; }
.prevnext a:hover { background: var(--white); }
.prevnext .dir { font-size: 0.5625rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--forest-300); }
.prevnext .t { margin-top: 6px; font-family: var(--serif); font-size: 0.9375rem; line-height: 1.4; }
.prevnext .empty .t { color: var(--forest-300); }

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: clamp(30px, 5vw, 76px);
  align-items: start;
}
.form { display: grid; gap: 20px; }
.field { display: grid; gap: 7px; }
.field label { font-size: 0.625rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--forest-600); }
.field input,
.field select,
.field textarea {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
  font-family: var(--sans);
  font-size: 0.9375rem;
  color: var(--ink);
  border-radius: 0;
  transition: border-color 0.3s var(--ease);
  appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2355665d' stroke-width='1.4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 2px center;
  padding-right: 22px;
}
.field textarea { resize: vertical; min-height: 108px; line-height: 1.6; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--forest-600); }
.field input::placeholder, .field textarea::placeholder { color: rgba(85, 102, 93, 0.55); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.check { display: flex; gap: 11px; align-items: flex-start; font-size: 0.75rem; line-height: 1.6; color: var(--muted); }
.check input { width: 15px; height: 15px; margin: 2px 0 0; accent-color: var(--forest); flex: none; }
.check a { color: var(--forest-600); border-bottom: 1px solid var(--line); }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 4px; }
.form-note { font-size: 0.6875rem; color: var(--forest-300); }
.form-error { font-size: 0.75rem; color: var(--seal); display: none; }
.form-error.is-visible { display: block; }
.form-success { display: none; border: 1px solid rgba(26, 78, 59, 0.2); background: var(--mint-2); padding: 26px; }
.form-success.is-visible { display: block; }
.form-success h3 { font-family: var(--serif); font-size: 1.25rem; }
.form-success p { margin-top: 8px; font-size: 0.875rem; color: var(--muted); }

.contact-aside { border-top: 1px solid var(--line); }
.office {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 18px;
}
.office h4 { font-family: var(--serif); font-size: 1.0625rem; }
.office .tag { font-size: 0.5625rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--forest-300); padding-top: 4px; }
.office p { font-size: 0.8125rem; line-height: 1.72; color: var(--muted); }
.office a { color: var(--forest-600); border-bottom: 1px solid rgba(26, 78, 59, 0.24); }
.office a:hover { border-color: var(--forest-600); }

.callout { margin-top: 24px; background: var(--forest); color: var(--paper); padding: 24px 22px; }
.callout h4 { font-family: var(--serif); font-size: 1.0625rem; }
.callout p { margin-top: 8px; font-size: 0.8125rem; line-height: 1.66; color: rgba(247, 246, 241, 0.72); }
.callout a { color: var(--sage); }

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */
.faq { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 0;
  font-family: var(--serif);
  font-size: clamp(0.9875rem, 1.3vw, 1.125rem);
  line-height: 1.42;
  color: var(--ink);
  transition: color 0.25s var(--ease);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-family: var(--sans);
  font-size: 1.125rem;
  color: var(--forest-300);
  flex: none;
  transition: transform 0.3s var(--ease);
}
.faq-item[open] summary::after { content: "–"; }
.faq-item summary:hover { color: var(--forest-600); }
.faq-item p {
  padding: 0 clamp(20px, 8vw, 120px) 22px 0;
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--muted);
  max-width: 74ch;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer { background: var(--ink); color: rgba(247, 246, 241, 0.72); padding-top: clamp(48px, 5.4vw, 72px); }
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.15fr;
  gap: clamp(26px, 4vw, 52px);
  padding-bottom: 40px;
}
.footer-brand .brand-mark { background: transparent; border: 1px solid rgba(247, 246, 241, 0.28); }
.footer-brand .brand-mark::after { border-color: rgba(247, 246, 241, 0.16); }
.footer-brand .brand-name { color: var(--paper); }
.footer-brand p { margin-top: 16px; font-size: 0.8125rem; line-height: 1.7; max-width: 34ch; color: rgba(247, 246, 241, 0.58); }
.footer-brand .footer-contacts { margin-top: 16px; font-size: 0.8125rem; line-height: 1.8; color: rgba(247, 246, 241, 0.72); }
.footer-brand .footer-contacts a { border-bottom: 1px solid rgba(247, 246, 241, 0.18); }
.footer-brand .footer-contacts a:hover { color: var(--paper); }
.footer-col h5 {
  font-size: 0.5625rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sage);
  margin: 0 0 14px;
  font-weight: 500;
}
.footer-col li { margin-bottom: 9px; }
.footer-col a { font-size: 0.8125rem; color: rgba(247, 246, 241, 0.72); transition: color 0.25s var(--ease); }
.footer-col a:hover { color: var(--paper); }
.footer-col .addr { font-size: 0.8125rem; line-height: 1.7; color: rgba(247, 246, 241, 0.6); }
.footer-col--firm .firm-link { display: inline-block; margin-bottom: 12px; opacity: 0.92; transition: opacity 0.25s var(--ease); }
.footer-col--firm .firm-link:hover { opacity: 1; }
.footer-col--firm .firm-link img { display: block; width: min(100%, 208px); height: auto; padding: 6px 9px; background: #fff; border-radius: 2px; }
.footer-col--firm .firm-summary { font-size: 0.8125rem; line-height: 1.65; color: rgba(247, 246, 241, 0.78); max-width: 36ch; margin: 0 0 14px; }
.footer-col--firm .firm-name { display: block; color: var(--paper); font-weight: 500; margin-bottom: 8px; }
.footer-col--firm .firm-list { margin-top: 10px; }
.qr {
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.qr img {
  width: 62px;
  height: 62px;
  object-fit: contain;
  background: var(--white);
  border: 3px solid #f7f6f1;
  border-radius: 2px;
}
.qr small { font-size: 0.625rem; line-height: 1.5; color: rgba(247, 246, 241, 0.5); max-width: 12ch; }
.footer-bottom {
  border-top: 1px solid rgba(247, 246, 241, 0.12);
  padding-block: 20px 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: center;
  justify-content: space-between;
  font-size: 0.6875rem;
  color: rgba(247, 246, 241, 0.42);
}
.footer-legal { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.footer-legal a:hover { color: var(--paper); }
.footer-disclaimer {
  font-size: 0.6875rem;
  line-height: 1.65;
  color: rgba(247, 246, 241, 0.34);
  max-width: 78ch;
  padding-bottom: 22px;
}

/* --------------------------------------------------------------------------
   Floating quick-contact
   -------------------------------------------------------------------------- */
.float-contact {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
}
.float-contact a, .float-contact button {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--forest);
  color: var(--paper);
  border: 1px solid var(--forest);
  box-shadow: 0 16px 30px -18px rgba(13, 33, 26, 0.6);
  cursor: pointer;
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}
.float-contact a:hover, .float-contact button:hover { background: var(--forest-600); transform: translateY(-2px); }
.float-contact svg { width: 18px; height: 18px; }
.float-contact .wx-panel {
  display: none;
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--line);
  padding: 12px;
  text-align: center;
  font-size: 0.6875rem;
  color: var(--muted);
  box-shadow: 0 20px 40px -26px rgba(13, 33, 26, 0.6);
}
.float-contact .wx-panel.is-open { display: block; }
.float-contact .wx-panel img {
  width: 108px;
  height: 108px;
  margin-bottom: 8px;
  object-fit: contain;
  background: var(--white);
  border: 4px solid var(--forest);
  border-radius: 2px;
  opacity: 0.85;
}

/* --------------------------------------------------------------------------
   Reveal animation (progressive enhancement)
   -------------------------------------------------------------------------- */
.reveal { opacity: 1; transform: none; }
.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.js .reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.07s; }
.reveal[data-delay="2"] { transition-delay: 0.14s; }
.reveal[data-delay="3"] { transition-delay: 0.21s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1180px) {
  .tel-link { display: none; }
  .nav a { padding: 9px 9px; }
}

@media (max-width: 1080px) {
  .nav { display: none; }
  .nav-toggle { display: grid; }
  .practice-grid { grid-template-columns: repeat(2, 1fr); }
  .adv-grid { grid-template-columns: repeat(2, 1fr); }
  .svc-detail { grid-template-columns: 1fr; }
  .svc-nav { position: static; display: none; }
  .lawyer { grid-template-columns: 0.42fr 0.58fr; }
  .profile { grid-template-columns: 0.4fr 0.6fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .article-layout { grid-template-columns: 1fr; }
  .article-toc { position: static; }
  .article-toc .label { margin-bottom: 8px; }
  .article-toc .toc-links { display: flex; flex-wrap: wrap; gap: 4px 18px; }
}

@media (max-width: 820px) {
  .sec-head, .band-head { grid-template-columns: 1fr; align-items: start; }
  .sec-head-right { padding-bottom: 0; }
  .principles { grid-template-columns: 1fr; gap: 0; }
  .principle { padding-block: 20px; }
  .band-pillars { grid-template-columns: 1fr; gap: 0; }
  .band-pillar { padding-block: 20px; border-bottom: 1px solid var(--line-dark); }
  .band-pillar:last-child { border-bottom: 0; }
  .cta-inner { grid-template-columns: 1fr; }
  .cta-actions { justify-content: flex-start; }
  .insight-row { grid-template-columns: 1fr 26px; gap: 6px 16px; padding: 18px 4px; }
  .insight-date { grid-column: 1; }
  .insight-title { grid-column: 1; font-size: 1.0625rem; }
  .insight-tag { grid-column: 1; }
  .insight-arrow { grid-row: 1 / span 3; grid-column: 2; align-self: center; }
  .scope { grid-template-columns: 1fr; }
  .matter { grid-template-columns: 1fr; gap: 4px; }
  .facts { grid-template-columns: 1fr; }
  .svc-index { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .lawyer { grid-template-columns: 1fr; gap: 30px; }
  .lawyer-photo { max-width: 320px; }
  .lawyer-tag { right: auto; left: 0; top: auto; bottom: -16px; }
  .profile { grid-template-columns: 1fr; }
  .portrait { max-width: 280px; }
  .factlist > div { grid-template-columns: 1fr; gap: 4px; }
  .exp-group { grid-template-columns: 1fr; gap: 8px; }
  .feature { grid-template-columns: 1fr; }
  .feature-art { min-height: 190px; }
  .briefing { grid-template-columns: 1fr; align-items: start; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .prevnext { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  :root { --header-h: 66px; }
  .filter-bar { flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; padding-bottom: 6px; }
  .filter-bar::-webkit-scrollbar { display: none; }
  .filter-bar .chip { flex: none; scroll-snap-align: start; }
  .header-actions .btn { display: none; }
  .practice-grid { grid-template-columns: 1fr; }
  .practice-card { min-height: 0; }
  .practice-card .go { opacity: 1; transform: none; }
  .adv-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-col--firm .firm-link img { max-width: 200px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .office { grid-template-columns: 1fr; gap: 5px; }
  .trust-inner { gap: 12px; }
  .trust-list { display: grid; gap: 6px; font-size: 0.875rem; }
  .trust-list span + span::before { display: none; }
  .lawyer-facts { grid-template-columns: 1fr; }
  .filter-bar { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 8px; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
  .chip { flex: none; }
  .float-contact { right: 14px; bottom: 14px; }
  .author-box { grid-template-columns: 1fr; }
}
