/* Hanken Grotesk (SIL Open Font License), self-hosted. One variable file per character set covers weights 400-600. */
@font-face { font-family: "Hanken Grotesk"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("../fonts/hanken-grotesk-latin-ext-var.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Hanken Grotesk"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("../fonts/hanken-grotesk-latin-var.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
/* System font resized to match, so text does not shift when the web font arrives. */
@font-face { font-family: "Hanken Fallback"; src: local("Arial"), local("Liberation Sans"), local("Arimo"); size-adjust: 100.1%; }

/* =====================================================================
   Eng Chambers — refined design system ("quiet chambers")
   One palette, one type scale, square corners, hairline rules.
   Loaded after styles.css and before any page stylesheet.
   ===================================================================== */
:root {
  --ink: #1b1814;
  --espresso: #191613;
  --espresso-2: #231f1a;
  --linen: #f4f1ea;
  --white: #fbfaf6;
  --paper: #fbfaf6;
  --stone: #dcd5c7;
  --muted: #5b554c;
  --bronze: #a0825a;
  --bronze-deep: #6f5335;
  --bronze-light: #c8ab7c;
  --bronze-tint: #ece5d8;
  --on-dark: #f3eee4;
  --on-dark-muted: #bdb3a2;
  --line-dark: rgba(243, 238, 228, 0.16);
  /* the old green tones now resolve to the espresso family */
  --sage: #231f1a; --sage-soft: #2c2721; --sage-deep: #191613;
  --on-sage: #f3eee4; --on-sage-muted: #bdb3a2;

  --font-body: "Hanken Grotesk", "Hanken Fallback", "Helvetica Neue", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;

  --fs-14: 0.9375rem;   /* 15px: the smallest running text */
  --fs-16: 1.0625rem;   /* 17px: body */
  --fs-20: 1.3125rem;
  --fs-label: 0.8125rem; /* 13px: uppercase labels only */

  --container: 1280px;
  --gutter: 32px;
  --section: 136px;
  --radius: 0px;
  --header-h: 84px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}
@media (max-width: 1023px) { :root { --section: 104px; } }
@media (max-width: 767px) { :root { --section: 80px; --header-h: 68px; --gutter: 22px; } }
@media (max-width: 379px) { :root { --gutter: 18px; } }

*, *::before, *::after { border-radius: 0 !important; }
.wa-float, input[type="radio"] { border-radius: 50% !important; }

body { font-size: var(--fs-16); line-height: 1.68; color: var(--ink); background: var(--linen); font-kerning: normal; }
::selection { background: var(--bronze-light); color: var(--espresso); }

h1, h2, h3, h4 { font-weight: 400; letter-spacing: -0.012em; line-height: 1.12; }
body h2,
body .why-head h2, body .pa-head h2, body .reviews-head h2 { font-size: clamp(2.125rem, 4vw, 3.375rem); font-weight: 400; line-height: 1.08; }
h3 { font-size: 1.625rem; line-height: 1.2; }
h1 em, h2 em { color: var(--bronze-deep); }
:lang(zh) h1, :lang(zh) h2, :lang(zh) h3, :lang(zh) h4 { font-weight: 500; letter-spacing: 0; }
.prose, .lede { text-wrap: pretty; }

a { text-decoration-thickness: 1px; text-underline-offset: 4px; transition: color 200ms var(--ease); }

body .kicker {
  gap: 16px; margin-bottom: 24px;
  font: 500 var(--fs-label)/1.4 var(--font-body); letter-spacing: 0.22em;
}
body .kicker::before { width: 40px; }
:lang(zh) body .kicker, body:lang(zh) .kicker { letter-spacing: 0.1em; }

/* ---------- Buttons: one shape everywhere ---------- */
body .btn {
  min-height: 54px; padding: 0 30px; gap: 12px;
  font: 500 0.875rem/1.2 var(--font-body); letter-spacing: 0.11em; text-transform: uppercase;
  border-radius: 0; border: 1px solid transparent;
  transition: background-color 280ms var(--ease), color 280ms var(--ease), border-color 280ms var(--ease);
}
:lang(zh) body .btn, body:lang(zh) .btn { letter-spacing: 0.06em; font-size: 0.9375rem; }
body .btn svg { width: 18px; height: 18px; }
body .btn--primary { background: var(--espresso); color: var(--on-dark); }
body .btn--primary:hover { background: var(--bronze-deep); color: #fff; }
body .btn--ghost { border-color: var(--ink); color: var(--ink); }
body .btn--ghost:hover { background: var(--ink); color: var(--on-dark); }
body .btn--light, body .on-dark .btn--primary { background: var(--on-dark); color: var(--espresso); }
body .btn--light:hover, body .on-dark .btn--primary:hover { background: var(--bronze-light); color: var(--espresso); }
body .btn--outline-light { border-color: rgba(243, 238, 228, 0.45); color: var(--on-dark); }
body .btn--outline-light:hover { border-color: var(--on-dark); background: var(--on-dark); color: var(--espresso); }
body .btn:active { transform: none; }

body .text-link, body .pa-all, body .area-cta {
  font-size: 0.875rem; font-weight: 500; letter-spacing: 0.11em; text-transform: uppercase;
  text-decoration: none; padding-bottom: 6px; min-height: 0;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  transition: color 250ms var(--ease), background-size 400ms var(--ease);
}
:lang(zh) body .text-link, :lang(zh) body .pa-all, :lang(zh) body .area-cta { letter-spacing: 0.06em; }
body .area-cta { display: inline-flex; align-items: center; gap: 12px; border: 0; color: var(--ink); }
body .area-cta svg { width: 18px; height: 18px; transition: transform 300ms var(--ease); }
@media (hover: hover) {
  body .area-cta:hover { color: var(--bronze-deep); }
  body .area-cta:hover svg { transform: translateX(5px); }
}

/* ---------- Header ---------- */
body .site-header { background: rgba(244, 241, 234, 0.94); border-bottom-color: rgba(27, 24, 20, 0.1); }
@supports (backdrop-filter: blur(8px)) {
  body .site-header { background: rgba(244, 241, 234, 0.86); backdrop-filter: blur(14px) saturate(1.2); }
  body .site-header--overlay:not(.is-solid) { background: transparent; backdrop-filter: none; }
}
body .site-header--overlay:not(.is-solid) { background: transparent; border-bottom-color: transparent; }
body .header-inner { gap: 28px; }
body .brand img { height: 50px; }
body .nav-list { gap: 2px; }
body .nav-list a { font-size: 0.9375rem; letter-spacing: 0.015em; padding: 0 14px; border-bottom: 0; position: relative; }
@media (min-width: 900px) {
  body .nav-list > li > a::after {
    content: ""; position: absolute; left: 14px; right: 14px; bottom: 8px; height: 1px;
    background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform 350ms var(--ease);
  }
  body .nav-list > li > a:hover::after, body .nav-list > li > a[aria-current="page"]::after { transform: scaleX(1); }
  body .nav-list > li > a[aria-current="page"]::after { background: var(--bronze); }
  body .nav-list a[aria-current="page"] { font-weight: 400; }
  body .nav-list .has-sub > a { padding-right: 4px; }
  body .nav-list .has-sub > a::after { right: 4px; }
  body .nav-sub {
    left: -14px; min-width: 340px; padding: 14px 0; border-radius: 0;
    background: var(--paper); border: 1px solid rgba(27, 24, 20, 0.1);
    box-shadow: 0 30px 60px -34px rgba(25, 22, 19, 0.4);
    transition: opacity 260ms var(--ease), transform 260ms var(--ease), visibility 0s linear 260ms;
  }
  body .nav-list .nav-sub a, body .site-header--overlay:not(.is-solid) .nav-list .nav-sub a {
    min-height: 44px; padding: 8px 28px; font-size: 0.9375rem; border-radius: 0;
    transition: color 200ms var(--ease), padding-left 300ms var(--ease), background-color 200ms var(--ease);
  }
  body .nav-list .nav-sub a:hover, body .nav-list .nav-sub a:focus-visible,
  body .site-header--overlay:not(.is-solid) .nav-list .nav-sub a:hover { background: transparent; color: var(--bronze-deep); padding-left: 34px; }
  body .nav-sub-all { margin: 10px 28px 0; padding-top: 10px; }
  body .nav-list .nav-sub-all a, body .site-header--overlay:not(.is-solid) .nav-list .nav-sub-all a {
    padding-left: 0; padding-right: 0; font-size: var(--fs-label); letter-spacing: 0.12em; text-transform: uppercase;
  }
  body .nav-list .nav-sub-all a:hover { padding-left: 0; }
}
@media (max-width: 1180px) and (min-width: 900px) {
  body .nav-list a { padding: 0 9px; font-size: 0.875rem; }
  body .nav-list > li > a::after { left: 9px; right: 9px; }
  body .brand img { height: 42px; }
}

/* Language switch: three quiet labels rather than a boxed control */
body .lang-switch { border: 0; gap: 2px; overflow: visible; }
body .lang-switch button, body .lang-switch button + button {
  min-width: 0; min-height: 44px; padding: 0 9px; border: 0; background: transparent;
  font: 500 var(--fs-label)/1 var(--font-body); letter-spacing: 0.08em; color: var(--muted); position: relative;
}
body .lang-switch button[aria-pressed="true"] { background: transparent; color: var(--ink); }
body .lang-switch button[aria-pressed="true"]::after {
  content: ""; position: absolute; left: 9px; right: 9px; bottom: 9px; height: 1px; background: var(--bronze);
}
body .lang-switch button:not([aria-pressed="true"]):hover { background: transparent; color: var(--ink); }
body .site-header--overlay:not(.is-solid) .lang-switch button { color: rgba(243, 238, 228, 0.66); background: transparent; }
body .site-header--overlay:not(.is-solid) .lang-switch button[aria-pressed="true"] { background: transparent; color: var(--on-dark); }
body .site-header--overlay:not(.is-solid) .lang-switch button:not([aria-pressed="true"]):hover { background: transparent; color: var(--on-dark); }
body .site-header--overlay:not(.is-solid) .lang-switch button[aria-pressed="true"]::after { background: var(--bronze-light); }

/* Header consultation button returns on wide screens */
@media (min-width: 1320px) {
  body .header-cta { display: inline-flex; min-height: 44px; padding: 0 22px; font-size: var(--fs-label); margin-left: 8px; }
  body .site-header--overlay:not(.is-solid) .header-cta { background: transparent; border-color: rgba(243, 238, 228, 0.45); color: var(--on-dark); }
  body .site-header--overlay:not(.is-solid) .header-cta:hover { background: var(--on-dark); color: var(--espresso); }
}

body .nav-toggle { border: 0; width: 44px; height: 44px; margin-right: -8px; color: var(--ink); }
body .nav-toggle svg { width: 26px; height: 26px; stroke-width: 1.25; }
@media (max-width: 899px) {
  body .brand img { height: 44px; }
  body .header-inner { gap: 10px; }
  body .header-actions { gap: 6px; }
  body .lang-switch button, body .lang-switch button + button { padding: 0 7px; }
  body .lang-switch button[aria-pressed="true"]::after { left: 7px; right: 7px; }
  body .nav { background: var(--linen); padding: 4px var(--gutter) 32px; border-bottom-color: rgba(27, 24, 20, 0.1); max-height: calc(100dvh - var(--header-h)); overflow-y: auto; }
  body .nav-list a { min-height: 58px; font-size: 1.5rem; border-bottom: 1px solid rgba(27, 24, 20, 0.1); padding: 0; }
  body .nav-list .nav-sub { border-left: 1px solid var(--bronze); padding-left: 18px; }
  body .nav-list .nav-sub a { font-size: var(--fs-16); min-height: 46px; border-bottom: 0; }
  body .nav .btn { margin-top: 28px; }
}
@media (max-width: 379px) { body .brand img { height: 38px; } }

/* ---------- Hero (home) ---------- */
body .hero-full h1 { font-size: clamp(2.875rem, 6.4vw, 5.75rem); line-height: 1; letter-spacing: -0.02em; margin-bottom: 32px; }
body .hero-full h1 em, body .on-dark h1 em, body .on-dark h2 em { color: var(--bronze-light); }
body .hero-lede { font-size: 1.1875rem; line-height: 1.62; max-width: 44ch; margin-bottom: 44px; color: rgba(243, 238, 228, 0.8); }
body .hero-full-copy { max-width: 760px; }
body .hero-foot-inner { padding-block: 30px; }
body .proof-ico { display: none; }
body .hero-proof li, body .hero-proof li:first-child { display: flex; flex-direction: column; gap: 6px; padding: 0 40px; }
body .hero-proof li:first-child { padding-left: 0; }
body .hero-proof strong { font-size: 1.375rem; align-self: auto; letter-spacing: 0; }
body .hero-proof span { font-size: 0.9375rem; color: var(--on-dark-muted); max-width: 32ch; }
body .scroll-cue { font-size: var(--fs-label); letter-spacing: 0.22em; }
@media (max-width: 899px) {
  body .hero-full-inner { padding-bottom: 44px; }
  body .hero-proof { display: grid; grid-template-columns: 1fr; gap: 0; width: 100%; }
  body .hero-proof li, body .hero-proof li:first-child, body .hero-proof li:last-child {
    flex-direction: row; align-items: baseline; gap: 14px; padding: 13px 0; border-left: 0; border-top: 1px solid var(--line-dark); grid-column: auto;
  }
  body .hero-proof li:first-child { border-top: 0; padding-top: 0; }
  body .hero-proof strong { font-size: 1.1875rem; flex: none; }
  body .hero-proof span { font-size: 0.875rem; }
  body .hero-foot-inner { padding-block: 22px; }
}
@media (max-width: 559px) {
  body .hero-lede { font-size: 1.0625rem; margin-bottom: 34px; }
  body .hero-full .btn-row { gap: 10px; }
  body .hero-proof li, body .hero-proof li:first-child, body .hero-proof li:last-child { flex-direction: column; gap: 2px; padding: 12px 0; }
  body .hero-proof li:first-child { padding-top: 0; }
}

/* ---------- The firm ---------- */
body .intro--layered { padding-block: var(--section); }
body .intro--layered .intro-grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: clamp(56px, 8vw, 128px); }
body .intro--layered .intro-title { font-size: clamp(2.125rem, 4vw, 3.375rem); max-width: 16ch; margin-bottom: 40px; }
body .intro .prose { font-size: 1.125rem; line-height: 1.72; color: var(--muted); max-width: 54ch; margin-bottom: 36px; }
body .intro-arch { width: min(100%, 460px); margin-right: 0; }
body .intro-arch-tone { display: none; }
body .intro-arch-photo { box-shadow: none; aspect-ratio: 4 / 5; }
body .intro-arch::after { content: ""; position: absolute; inset: 16px; border: 1px solid rgba(243, 238, 228, 0.34); pointer-events: none; z-index: 2; }
body .intro-arch-note { left: 44px; right: 44px; bottom: 44px; font-size: clamp(1.5rem, 2.2vw, 1.9375rem); line-height: 1.2; }
body .intro-arch-note::before { width: 40px; height: 1px; margin-bottom: 20px; }
@media (max-width: 899px) {
  body .intro--layered .intro-grid { grid-template-columns: 1fr; gap: 56px; }
  body .intro-arch { width: 100%; max-width: 460px; }
  body .intro-arch-photo { aspect-ratio: 5 / 4; }
  body .intro-arch-note { left: 34px; right: 34px; bottom: 32px; }
}

/* ---------- Practice areas: a typographic index ---------- */
.ec-index { display: grid; grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr); gap: clamp(48px, 8vw, 128px); align-items: start; }
.ec-index-head { position: sticky; top: calc(var(--header-h) + 56px); }
.ec-index-head h2 { margin-bottom: 28px; }
.ec-index-head p:not(.kicker) { color: var(--on-dark-muted); max-width: 42ch; margin-bottom: 36px; }
body .on-dark .pa-all { color: var(--on-dark); display: inline-flex; }
body .on-dark .pa-all:hover { color: var(--bronze-light); }
.ec-index-list { list-style: none; margin: 0; padding: 0; counter-reset: pa; border-top: 1px solid var(--line-dark); }
.ec-index-list li { counter-increment: pa; border-bottom: 1px solid var(--line-dark); }
.ec-index-list a {
  position: relative; display: grid; grid-template-columns: 64px minmax(0, 1fr) 24px; align-items: baseline; gap: 0 8px;
  padding: 27px 4px 27px 0; color: var(--on-dark); text-decoration: none;
  transition: padding-left 450ms var(--ease);
}
.ec-index-list a::before {
  content: counter(pa, decimal-leading-zero);
  font: 400 1rem/1 var(--font-display); letter-spacing: 0.1em; color: var(--bronze-light);
}
.ec-index-list a::after {
  content: ""; position: absolute; left: 0; top: -1px; height: 1px; width: 100%; background: var(--bronze-light);
  transform: scaleX(0); transform-origin: left; transition: transform 600ms var(--ease);
}
.ec-index-list h3 { margin: 0; font-size: clamp(1.5rem, 2.3vw, 2.0625rem); line-height: 1.15; color: inherit; transition: color 300ms var(--ease); }
.ec-index-list svg { width: 22px; height: 22px; align-self: center; color: var(--bronze-light); opacity: 0.55; transition: transform 450ms var(--ease), opacity 300ms var(--ease); }
@media (hover: hover) {
  .ec-index-list a:hover::after, .ec-index-list a:focus-visible::after { transform: scaleX(1); }
  .ec-index-list a:hover h3 { color: var(--bronze-light); }
  .ec-index-list a:hover svg { opacity: 1; transform: translateX(6px); }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) { .ec-index-list a:hover { padding-left: 12px; } }
@media (max-width: 1023px) {
  .ec-index { grid-template-columns: 1fr; gap: 48px; }
  .ec-index-head { position: static; }
}
@media (max-width: 559px) {
  .ec-index-list a { grid-template-columns: 44px minmax(0, 1fr) 20px; padding: 21px 0; }
  .ec-index-list h3 { font-size: 1.4375rem; }
}

/* ---------- Why Eng Chambers: heading left, four principles right ---------- */
.why-split { display: grid; grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr); gap: clamp(48px, 8vw, 128px); align-items: start; }
body .why-split .why-head { display: block; margin: 0; }
body .why-split .why-head h2 { margin-bottom: 36px; }
body .why-split .why-intro p { font-size: var(--fs-16); max-width: 46ch; margin-bottom: 16px; }
body .why-split .why-grid { margin: 0; grid-template-columns: 1fr 1fr; gap: 0 56px; border-top: 1px solid var(--stone); }
body .why-split .why-grid li { border-top: 0; border-bottom: 1px solid var(--stone); padding: 36px 0 40px; }
body .why-ico { display: none; }
body .why-grid h3 { font-size: 1.625rem; margin-bottom: 12px; }
body .why-grid p { font-size: var(--fs-16); line-height: 1.65; }
@media (max-width: 1023px) { .why-split { grid-template-columns: 1fr; gap: 48px; } }
@media (max-width: 639px) {
  body .why-split .why-grid { grid-template-columns: 1fr; }
  body .why-split .why-grid li { padding: 28px 0 30px; }
}

/* ---------- How we work ---------- */
.section--paper { background: var(--paper); border-block: 1px solid rgba(27, 24, 20, 0.08); }
body .section-head { margin-bottom: 64px; gap: 0; }
body .steps { gap: 0; }
body .steps li, body .steps--light li { border-top: 1px solid var(--ink); padding: 28px 36px 0 0; }
body .steps li + li { padding-left: 0; }
body .steps li::before, body .steps--light li::before {
  content: counter(step, decimal-leading-zero);
  display: block; font: italic 400 1.375rem/1 var(--font-display); letter-spacing: 0.04em; color: var(--bronze-deep); margin-bottom: 44px;
}
body .steps h3, body .steps--light h3 { font-size: 1.625rem; margin-bottom: 14px; }
body .steps p { font-size: var(--fs-16); line-height: 1.65; max-width: 30ch; }
@media (max-width: 1023px) { body .steps { row-gap: 56px; } }
@media (max-width: 559px) {
  body .steps { row-gap: 40px; }
  body .steps li::before, body .steps--light li::before { margin-bottom: 22px; }
  body .steps p { max-width: none; }
}

/* ---------- Client reviews: quotations, not cards ---------- */
body .reviews { background: var(--linen); }
body .reviews-head { margin-bottom: 64px; }
body .reviews-head h2 { margin-bottom: 22px; }
body .reviews-rating { font-size: 0.9375rem; }
body .review-stars { color: var(--bronze); font-size: 0.8125rem; letter-spacing: 0.18em; }
body .reviews-track { gap: 0; padding-bottom: 8px; }
body .review-card, body .review-card:hover {
  flex-basis: clamp(300px, 30vw, 400px); min-height: 400px; background: transparent;
  padding: 4px 48px 4px 40px; border-left: 1px solid var(--stone); border-radius: 0;
}
body .review-card.is-dim { transform: none; opacity: 0.4; }
body .review-top { margin-bottom: 30px; justify-content: flex-start; }
body .review-avatar { display: none; }
body .review-tag { padding: 0; border: 0; font-size: var(--fs-label); letter-spacing: 0.2em; text-transform: uppercase; color: var(--bronze-deep); }
:lang(zh) body .review-tag { letter-spacing: 0.08em; }
body .review-mark { display: none; }
body .review-quote { margin: 0 0 36px; }
body .review-quote p { font-size: clamp(1.4375rem, 1.9vw, 1.75rem); line-height: 1.28; letter-spacing: -0.005em; }
body .review-who { padding-left: 0; border-left: 0; gap: 6px; }
body .review-who strong { font-size: 1rem; letter-spacing: 0.01em; }
body .review-src { font-size: 0.875rem; }
body .reviews-controls { margin-top: 48px; }
body .reviews-btn { width: 54px; height: 54px; background: transparent; color: var(--ink); border: 1px solid var(--ink); transition: background-color 280ms var(--ease), color 280ms var(--ease), opacity 200ms var(--ease); }
body .reviews-btn svg { width: 20px; height: 20px; stroke-width: 1.25; }
body .reviews-btn:hover:not(:disabled) { background: var(--ink); color: var(--on-dark); }
body .reviews-btn:active:not(:disabled) { transform: none; }
body .reviews-nav { gap: 0; }
body .reviews-nav .reviews-btn + .reviews-btn { margin-left: -1px; }
@media (max-width: 767px) {
  body .reviews-head { margin-bottom: 44px; }
  body .review-card, body .review-card:hover { flex-basis: 82vw; min-height: 0; padding: 2px 28px 2px 24px; }
  body .review-top { margin-bottom: 22px; }
}

/* ---------- Article cards ---------- */
body .pub-thumb { border-radius: 0; aspect-ratio: 4 / 3; }
body .pub-thumb::after { box-shadow: none; }
body .pub-grid--photo { gap: 64px 40px; }
body .pub-card-body { padding-top: 26px; gap: 12px; }
body .pub-card--photo .pub-meta { font-size: var(--fs-label); letter-spacing: 0.14em; text-transform: uppercase; }
:lang(zh) body .pub-card--photo .pub-meta { letter-spacing: 0.05em; }
body .pub-card--photo h3 { font-size: clamp(1.4375rem, 1.8vw, 1.6875rem); line-height: 1.2; }
body .pub-sum { font-size: 1rem; line-height: 1.62; }
body .pub-more { font-size: var(--fs-label); letter-spacing: 0.14em; text-transform: uppercase; padding-top: 12px; }
@media (max-width: 899px) { body .pub-grid--photo { gap: 48px 24px; } }

/* ---------- Enquiry band ---------- */
body .contact-feature { padding-block: 152px; }
body .contact-feature-card { width: min(100%, 620px); padding: 64px 60px; background: rgba(25, 22, 19, 0.93); }
@supports (backdrop-filter: blur(12px)) { body .contact-feature-card { background: rgba(25, 22, 19, 0.88); backdrop-filter: blur(14px); } }
body .contact-feature-card h2 { margin-bottom: 22px; }
body .contact-feature-card > p:not(.kicker) { font-size: 1.0625rem; margin-bottom: 36px; max-width: 44ch; }
body .contact-mini { margin-top: 44px; padding-top: 32px; gap: 20px; font-size: 0.9375rem; }
body .contact-mini li { grid-template-columns: 132px 1fr; }
body .contact-mini span:first-child { font-size: var(--fs-label); letter-spacing: 0.16em; text-transform: uppercase; padding-top: 3px; }
:lang(zh) body .contact-mini span:first-child { letter-spacing: 0.06em; }
body .contact-mini .tel-note { color: var(--on-dark-muted); font-size: 0.875rem; }
@media (max-width: 639px) {
  body .contact-feature { padding-block: 200px 0; }
  body .contact-feature-card { padding: 48px var(--gutter) 60px; }
  body .contact-mini li { grid-template-columns: 1fr; gap: 4px; }
}

/* ---------- Footer ---------- */
body .site-footer { padding-block: 96px 36px; font-size: 0.9375rem; background: var(--espresso); border-top: 1px solid var(--line-dark); }
body .footer-grid { gap: 56px 48px; grid-template-columns: 1.5fr 1fr 0.8fr 1.1fr; }
body .footer-brand img { width: 132px; margin-bottom: 24px; }
body .footer-brand p { max-width: 32ch; line-height: 1.65; }
body .site-footer h2 { font-size: var(--fs-label); letter-spacing: 0.2em; margin-bottom: 20px; color: var(--bronze-light); line-height: 1.4; }
:lang(zh) body .site-footer h2 { letter-spacing: 0.08em; }
body .site-footer ul { gap: 2px; }
body .site-footer li a { min-height: 34px; color: rgba(243, 238, 228, 0.86); transition: color 200ms var(--ease); }
body .site-footer li a:hover { color: var(--bronze-light); text-decoration: none; }
body .site-footer address { line-height: 1.7; }
body .footer-base { margin-top: 80px; padding-top: 28px; font-size: 0.875rem; color: rgba(189, 179, 162, 0.82); }
@media (max-width: 899px) {
  body .site-footer { padding-block: 72px 32px; }
  body .footer-grid { grid-template-columns: 1fr 1fr; }
  body .site-footer li a { min-height: 44px; }
  body .footer-base { margin-top: 56px; padding-bottom: 72px; }
}
@media (max-width: 559px) { body .footer-grid { grid-template-columns: 1fr; gap: 44px; } }

/* ---------- WhatsApp: smaller and out of the reading line on phones ---------- */
body .wa-float { width: 54px; height: 54px; right: 24px; bottom: 24px; background: #1f6f48; box-shadow: 0 10px 24px -10px rgba(25, 22, 19, 0.5); }
body .wa-float svg { width: 26px; height: 26px; }
@media (max-width: 767px) {
  body .wa-float { width: 46px; height: 46px; right: 12px; bottom: 14px; }
  body .wa-float svg { width: 23px; height: 23px; }
}

/* ---------- Motion: one gentle arrival, never when reduced motion is requested ---------- */
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { visibility: visible !important; opacity: 1 !important; transform: none !important; }
}

/* ---------- Phone menu: solid panel, aligned rules ---------- */
@media (max-width: 899px) {
  body .site-header:has(.nav.is-open), body .site-header--overlay:has(.nav.is-open) { background: var(--linen); backdrop-filter: none; border-bottom-color: rgba(27, 24, 20, 0.1); }
  body .site-header--overlay:has(.nav.is-open) .brand img { filter: none; opacity: 1; }
  body .site-header--overlay:has(.nav.is-open) .lang-switch button { color: var(--muted); }
  body .site-header--overlay:has(.nav.is-open) .lang-switch button[aria-pressed="true"] { color: var(--ink); }
  body .site-header--overlay:has(.nav.is-open) .nav-toggle { color: var(--ink); }
  body .has-sub > a { flex: 1; }
  body .sub-toggle { width: 58px; height: 58px; border-bottom: 1px solid rgba(27, 24, 20, 0.1); }
}

/* The oversized "PRACTICE" watermark is retired. */
body .pa-watermark { display: none; }

/* ---------- "Read more" on every article: photo cards, most relevant first (filled in by the build) ----------
   Under the text (phones, tablets) it is a row of cards to swipe. On a computer screen, when it is given
   a narrow column beside the text, it becomes a list that stays in view and scrolls inside itself.
   The same rules serve both article layouts. */
@media (min-width: 1024px) { body .article-body { grid-template-columns: minmax(0, 1fr) 312px; gap: 72px; } }
body .article-aside { align-self: stretch; min-width: 0; container: related / inline-size; }
body .article-aside .article-aside-inner { position: static; max-height: none; display: block; overflow: visible; border-left: 0; border-top: 1px solid var(--bronze); padding: 26px 0 0; }
body .article-aside .article-aside-inner .aside-head { font: 500 var(--fs-label)/1.4 var(--font-body); letter-spacing: 0.22em; text-transform: uppercase; color: var(--bronze-deep); margin: 0 0 16px; }
:lang(zh) body .article-aside .article-aside-inner .aside-head { letter-spacing: 0.1em; }
body .article-aside .ins-next-list { display: flex; gap: 18px; margin: 0; padding: 0 0 6px; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; }
.article-aside .ins-next-list::-webkit-scrollbar { display: none; }
.article-aside .ins-next-list:focus-visible { outline: 2px solid var(--bronze-deep); outline-offset: 4px; }
body .article-aside .ins-next-card { flex: 0 0 min(290px, 72%); display: grid; grid-template-columns: 1fr; gap: 14px; align-items: start; align-content: start; padding: 0; margin: 0; border: 0; min-height: 0; scroll-snap-align: start; color: var(--ink); text-decoration: none; }
.article-aside .ins-next-thumb { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--stone); }
.article-aside .ins-next-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease); }
.article-aside .ins-next-body { display: grid; gap: 5px; min-width: 0; }
.article-aside .ins-next-meta { font: 500 var(--fs-label)/1.3 var(--font-body); letter-spacing: 0.04em; color: var(--bronze-deep); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.article-aside .ins-next-time::before { content: " · "; }
.article-aside .ins-next-title { font: 400 1.25rem/1.22 var(--font-display); color: var(--ink); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; transition: color 200ms var(--ease); }
:lang(zh) .article-aside .ins-next-title { font-family: "Noto Serif SC", var(--font-display); font-size: 1.0625rem; line-height: 1.45; }
.article-aside .ins-next-card:hover .ins-next-title, .article-aside .ins-next-card:focus-visible .ins-next-title { color: var(--bronze-deep); }
@media (hover: hover) { .article-aside .ins-next-card:hover .ins-next-thumb img { transform: scale(1.06); } }
body .article-aside .article-aside-inner .aside-all { margin-top: 22px; }

/* Side column: computer screens only, and only when the list has a narrow column of its own. */
@media (min-width: 1024px) {
  @container related (max-width: 420px) {
    body .article-aside .article-aside-inner { position: sticky; top: calc(var(--header-h) + 24px); max-height: calc(100vh - var(--header-h) - 48px); display: flex; flex-direction: column; border-top: 0; border-left: 1px solid var(--stone); padding: 2px 0 0 26px; }
    body .article-aside .article-aside-inner > * { flex: none; }
    body .article-aside .article-aside-inner > .ins-next-list { display: block; flex: 1 1 auto; min-height: 0; overflow-x: hidden; overflow-y: auto; scroll-snap-type: none; margin: 0 -8px 0 0; padding: 0 8px 0 0; scrollbar-width: thin; scrollbar-color: #cfc6b6 transparent;
      -webkit-mask-image: linear-gradient(#000 calc(100% - 34px), transparent); mask-image: linear-gradient(#000 calc(100% - 34px), transparent); }
    body .article-aside .ins-next-card { grid-template-columns: 80px minmax(0, 1fr); gap: 14px; align-items: center; padding: 13px 0; border-bottom: 1px solid var(--stone); }
    body .article-aside .ins-next-card:last-child { border-bottom: 0; margin-bottom: 26px; }
    body .article-aside .ins-next-card:first-child { grid-template-columns: 1fr; gap: 12px; padding-top: 0; }
    .article-aside .ins-next-card:first-child .ins-next-thumb { aspect-ratio: 16 / 9; }
    .article-aside .ins-next-title { font-size: 1.125rem; }
    .article-aside .ins-next-card:first-child .ins-next-title { font-size: 1.3125rem; }
    body .article-aside .article-aside-inner .aside-all { margin-top: 10px; align-self: flex-start; }
  }
}
@media (prefers-reduced-motion: reduce) { .article-aside .ins-next-thumb img { transition: none; } }

/* Table titles in articles: a small label above the table, not a line inside it. */
body .prose table caption { caption-side: top; text-align: left; background: transparent; border: 0; padding: 0 0 12px; font: 500 var(--fs-label)/1.4 var(--font-body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--bronze-deep); }
:lang(zh) body .prose table caption { letter-spacing: 0.06em; }

/* ---------- Video heroes (Home, Divorce & Family Law) ----------
   A full-width picture behind the opening words, toned to the site's warm palette. The still frame
   shows first; on screens 900px and wider a short muted loop fades in over it once the page has
   loaded (main.js). Phones keep the still frame, which drifts slowly. */
.hero-full--video { --grade: grayscale(0.5) sepia(0.42) saturate(0.95) brightness(0.74) contrast(1.06); }
.hero-full--page { --grade: sepia(0.28) saturate(0.85) brightness(0.66) contrast(1.04); }
body .hero-full--video .hero-media img,
.hero-full--video .hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; filter: var(--grade); }
.hero-full--video .hero-video { opacity: 0; transition: opacity 1.6s var(--ease); }
.hero-full--video .hero-video.is-playing { opacity: 1; }
body .hero-full--video::before {
  background:
    linear-gradient(90deg, rgba(22, 17, 12, 0.86) 0%, rgba(22, 17, 12, 0.6) 40%, rgba(22, 17, 12, 0.22) 75%, rgba(22, 17, 12, 0.12) 100%),
    linear-gradient(0deg, rgba(22, 17, 12, 0.88) 0%, rgba(22, 17, 12, 0) 36%),
    linear-gradient(180deg, rgba(22, 17, 12, 0.62) 0%, rgba(22, 17, 12, 0) 24%);
}
@keyframes ec-drift { from { transform: scale(1.04) translate3d(0, 0, 0); } to { transform: scale(1.14) translate3d(-2%, -1.5%, 0); } }
@media (max-width: 899px) {
  body .hero-full--video::before { background: linear-gradient(0deg, rgba(22, 17, 12, 0.95) 0%, rgba(22, 17, 12, 0.76) 48%, rgba(22, 17, 12, 0.4) 100%); }
  .hero-full--page .hero-media img { object-position: 62% 50%; }
}
@media (max-width: 899px) and (prefers-reduced-motion: no-preference) {
  .hero-full--video .hero-media img { animation: ec-drift 24s ease-in-out 1s infinite alternate both; }
}

/* Inner page with a full-width hero: the header sits over the picture, as on Home */
body.page-hero-overlay #smooth-content { padding-top: 0; }
/* (when the hero is pinned while scrolling, the animation script wraps it in a .pin-spacer) */
.page-hero-overlay #main > .hero-full + *, .page-hero-overlay #main > .pin-spacer + * { position: relative; z-index: 2; background: var(--linen); }
.hero-full--page { min-height: 92vh; min-height: 92svh; }
.hero-full--page .breadcrumb { margin: 0 0 28px; }
.hero-full--page .breadcrumb ol { color: var(--on-dark-muted); }
.hero-full--page .breadcrumb a, .hero-full--page .breadcrumb li { color: rgba(243, 238, 228, 0.78); text-decoration-color: rgba(243, 238, 228, 0.35); }
.hero-full--page .breadcrumb [aria-current] { color: var(--on-dark); }
.hero-full--page h1 { max-width: 13ch; }
/* Divorce page: on wide screens the picture is set wider than the frame so the mother and child walk
   to the right of the headline instead of behind it. */
@media (min-width: 900px) {
  body .hero-full--page .hero-media img, .hero-full--page .hero-video { inset: -11% -24% -11% 0; width: 124%; height: 122%; max-width: none; }
}

/* SEO (20 Nov 2026): the keyword kicker now sits inside the H1 so search engines read
   "Employment Lawyers · Kuala Lumpur" etc. as part of the heading. Keep its own look. */
h1 > .el-eyebrow, h1 > .cv-eyebrow { display: block; }

/* ---------- Articles: one layout for all of them (Nov 2026) ----------
   Text on the left, "Read more" on the right, "In this article" on top; everything in the text
   column shares one width; larger text is the only size. */
@media (min-width: 1024px) { body .article-body { grid-template-columns: minmax(0, 760px) 312px; justify-content: space-between; gap: 64px; } }
body .article-main .prose, body .article-main .prose:lang(zh) { max-width: none; }
body .article-main .toc--inline { padding: 0; margin: 0 0 32px; }
body .article-main .toc--inline summary { padding: 0 26px; min-height: 60px; }
body .article-main .toc--inline ol { padding: 0 26px 14px; }
body .article-main .art-short { box-shadow: none; }
body .article-main .prose h2 { font-size: clamp(1.75rem, 2.5vw, 2.25rem); line-height: 1.16; margin: 1.7em 0 .55em; }
body .article-main .prose h3, body .article-main .art-rich h3 { font-size: 1.5rem !important; line-height: 1.22; color: var(--ink); margin: 1.5em 0 .4em !important; }
body .article-main .prose > :first-child { margin-top: 0; }
body .article-main .prose :is(.art-case p, .art-facts dd, .art-examples li, .art-check li, td, th) { font-size: 1.0625rem; line-height: 1.6; }
body .article-main .art-case { padding: 20px 24px 18px; }
body .article-main .art-case h4 { font-size: 1.3125rem; }
body .article-main .art-case:not(.art-case--wide) h4 { padding-right: 0; }
body .article-main .art-steps li { padding: 16px 0 16px 56px; }
body .article-main .prose > ul:not([class]) > li, body .article-main .prose > ol:not([class]) > li { margin-bottom: .55em; }
body .article-main .art-chart--plain { --label: 250px; --val: 104px; }
body .article-main .art-chart--plain .art-bars { gap: 10px; }
body .article-main .art-chart--plain .art-bars li { font-size: 15px; }
body .article-main .art-chart--plain .l { text-align: left; }
body .article-main .art-chart--plain .t { background: var(--bronze-tint); height: 14px; border: 0; }
body .article-main .art-chart--plain .b { top: 0; bottom: 0; background: var(--bronze); }
body .article-main .art-chart--plain .is-zero .b { display: none; }
body .article-main .art-refs summary { padding: 18px 0; }
body .article-main .art-refs :is(li, p) { font-size: 1rem; line-height: 1.55; }
@media (max-width: 767px) {
  body .article-main .prose h2 { font-size: 1.6875rem; }
  body .article-main .prose h3, body .article-main .art-rich h3 { font-size: 1.375rem !important; }
  body .article-main .toc--inline summary { padding: 0 18px; }
  body .article-main .toc--inline ol { padding: 0 18px 10px; }
  body .article-main .art-steps li { padding-left: 46px; }
  .table-wrap--stack { border: 0 !important; background: transparent !important; }
  .table-wrap--stack thead { display: none; }
  .table-wrap--stack :is(table, tbody, tr, td, caption) { display: block; width: 100%; }
  .table-wrap--stack tr { background: var(--white); border: 1px solid var(--stone); padding: 10px 16px; margin-bottom: 12px; }
  .table-wrap--stack td { border: 0 !important; padding: 6px 0 !important; }
  .table-wrap--stack td::before { content: attr(data-label); display: block; font: 500 13px/1.4 var(--font-body); color: var(--bronze-deep); }
}
body .article-main .prose table caption { padding: 14px 14px 12px; }
body .article-main .art-case h3 { font-size: 1.3125rem !important; margin: 0 0 8px !important; }
