/* Direction D · Letterhead (v2)
   White paper, one book serif used large and light, tracked caps as the second voice, aubergine ink, gold only in
   the mark and the hairlines. Centred at five points only: letterhead, hero, band, plate, footer. Everything else
   sits on one 12-column grid inside a 1200px frame: numerals and titles hang from column 1, section bodies run in
   columns 3-9, ledgers end on column 10, and columns 11-12 carry a sidenote per section (label, fact, link).

   Type scale, desktop: 104 / 64 / 40 / 28 / 22 / 18 / 12. Phone: 48 / 40 / 28 / 22 / 18 / 16 / 12. */

:root {
  --paper: #FFFFFF;
  --ink: #1F1A1E;        /* body text, 17.2:1 on white */
  --ink-2: #5A4E57;      /* secondary text, 7.9:1 */
  --aub: #3B1D38;        /* display ink, numerals, links, 14.8:1 */
  --mul: #6E4A66;        /* tracked caps labels and nav, 7.4:1 */
  --band: #2A1628;       /* the one colour band and the footer */
  --ivory: #F4EFE8;      /* text on band, 14.8:1 */
  --ivory-2: #BFAFB9;    /* secondary text on band, 8.1:1 */
  --gold-deep: #9E6E1E;  /* graphics on white only: mark, tee, group rules, link underline */
  --gold: #E0B66E;       /* the mark and focus ring on the band */
  --hair: #E6DFE4;       /* neutral hairline */

  --serif: "Spectral", "Noto Serif SC", Georgia, "Times New Roman", serif;
  --serif-sc: "Spectral SC", "Spectral", Georgia, serif;
  --sans: "Libre Franklin", "Helvetica Neue", Arial, sans-serif;
  --cjk: "Noto Serif SC", "Songti SC", "SimSun", serif;

  /* type scale */
  --t-hero: 104px;
  --t-title: 64px;
  --t-disp: 40px;
  --t-name: 28px;
  --t-text: 22px;
  --t-small: 18px;
  --t-caps: 12px;

  /* frame and grid */
  --frame: 1200px;
  --gut: clamp(20px, 8.34vw, 120px);
  --cg: 24px;            /* column gap */
  --sec: 144px;          /* section rhythm */
  --lh: 282px;           /* letterhead height, used to land the band's top edge at the foot of the first screen */
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 300;
  font-size: var(--t-text);
  line-height: 1.6;
  word-spacing: -.02em;
  font-kerning: normal;
  font-variant-ligatures: common-ligatures;
  font-variant-numeric: lining-nums;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
h1, h2, h3, p, ul, dl, dd, figure { margin: 0; }
ul { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
:lang(zh-Hans), :lang(zh-Hant) { font-family: var(--cjk); }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--band); color: var(--ivory); padding: 8px 14px;
  font: 500 12px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; z-index: 10; }
.skip:focus { left: 16px; }
:focus-visible { outline: 1px solid var(--aub); outline-offset: 4px; }

/* the one sans voice: tracked caps, never below 12px */
.lh-util, .lh-nav, .lh-menu summary, .lh-menu li, .eyebrow, .label, .role, .explore,
.foot-addr, .foot-nav, .foot-small {
  font-family: var(--sans);
  font-weight: 500;
  font-size: var(--t-caps);
  line-height: 1.4;
  letter-spacing: .2em;
  text-transform: uppercase;
  word-spacing: 0;
  font-feature-settings: "lnum", "tnum";
}
.label { color: var(--mul); }

/* the grid */
.wrap { width: min(var(--frame), 100% - 2 * var(--gut)); margin-inline: auto; }
.g12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--cg); }

/* ================= letterhead ================= */
.letterhead { min-height: var(--lh); text-align: center; padding: 24px var(--gut) 0; }
.lh-util {
  max-width: var(--frame); margin: 0 auto;
  display: flex; justify-content: space-between; line-height: 1; color: var(--mul);
}
.lh-util a { padding: 4px 0; }
.lh-util a[lang] { font-family: var(--cjk); font-weight: 400; font-size: 14px; letter-spacing: .3em; }
.lh-util a:hover, .lh-nav a:hover { color: var(--aub); }
.lh-logo { display: block; width: 288px; margin: 2px auto 0; }
.lh-logo img { width: 100%; }
.lh-nav ul { display: flex; justify-content: center; gap: 46px; margin-top: 30px; }
.lh-nav a {
  font-weight: 400; letter-spacing: .24em; color: var(--mul); line-height: 1;
  padding: 6px 0; border-bottom: 1px solid transparent; transition: color .2s, border-color .2s;
}
.lh-nav a:hover { border-bottom-color: var(--gold-deep); }
.lh-menu { display: none; }

/* the tee: the letterhead hairline with a plumb line hanging from its centre to the eyebrow */
.tee {
  position: relative; display: block; width: 160px; height: 1px; margin: 28px auto 0;
  background: var(--gold-deep);
  animation: tee-h .6s cubic-bezier(.3, .1, .2, 1) .1s both;
}
.tee::after {
  content: ""; position: absolute; left: calc(50% - .5px); top: 1px; width: 1px; height: 52px;
  background: var(--gold-deep); transform-origin: 50% 0;
  animation: tee-v .45s cubic-bezier(.3, .1, .2, 1) .6s both;
}
@keyframes tee-h { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes tee-v { from { transform: scaleY(0); } to { transform: scaleY(1); } }

/* ================= hero ================= */
.hero {
  min-height: min(calc(100svh - 40px - var(--lh)), 660px);   /* band's top edge shows at the foot of the first screen */
  text-align: center; padding: 70px var(--gut) 84px;
}
.eyebrow { letter-spacing: .32em; color: var(--mul); padding-left: .32em; line-height: 1; }
.hero h1 {
  margin: 36px auto 0;
  font-weight: 200;
  font-size: var(--t-hero);
  line-height: 1.04;
  letter-spacing: -.012em;
  word-spacing: 0;
  color: var(--aub);
  text-wrap: balance;
}
.hero h1 .l { display: block; }
.hero-lede { text-wrap: balance; max-width: 33em; margin: 36px auto 0; color: var(--ink-2); line-height: 1.55; }
.textlink {
  display: inline-block; margin-top: 22px;
  font-size: var(--t-text); line-height: 1.3; font-weight: 400; color: var(--aub);
  text-decoration: underline; text-decoration-color: var(--gold-deep);
  text-decoration-thickness: 1px; text-underline-offset: .32em;
  transition: text-decoration-thickness .2s;
}
.textlink:hover, .textlink:focus-visible { text-decoration-thickness: 2px; }
.textlink:focus-visible { outline: none; text-decoration-color: var(--aub); }

/* ================= the one colour band ================= */
.band { background: var(--band); color: var(--ivory); text-align: center; padding: 144px 24px 136px; }
.band p {
  max-width: 13.5em; margin: 0 auto; text-wrap: balance;
  font-weight: 200; font-size: var(--t-title); line-height: 1.14; letter-spacing: -.008em; word-spacing: 0;
}

/* ================= numbered sections ================= */
.sec { padding-top: var(--sec); }
.sec:last-of-type { padding-bottom: 136px; }

.head .num, .head h2 { grid-column: 1 / 11; }
.head .body { grid-column: 3 / 10; grid-row: 3; }
.head .note { grid-column: 11 / 13; grid-row: 3; align-self: start; }

.num {
  font-weight: 300; font-size: var(--t-text); line-height: 1; letter-spacing: .06em; color: var(--mul);
  font-feature-settings: "lnum";
}
.sec h2 {
  margin-top: 14px;
  font-weight: 300; font-size: var(--t-title); line-height: 1.04; letter-spacing: -.01em; word-spacing: 0; color: var(--aub);
}
.body { margin-top: 36px; }
.body > p + p { margin-top: 1em; }
.body p { text-wrap: pretty; }
.body .lead { font-size: var(--t-name); line-height: 1.45; color: var(--aub); }

.body-label { margin: 56px 0 20px; }
.clause + .clause { margin-top: 14px !important; }
.runin { font-family: var(--serif-sc); font-weight: 400; letter-spacing: .03em; color: var(--aub); margin-right: .3em; }

/* sidenote, columns 11-12 */
.note { margin-top: 44px; padding-top: 14px; border-top: 1px solid var(--gold-deep); }
.note-text { margin-top: 8px; font-size: var(--t-small); line-height: 1.45; color: var(--ink); text-wrap: balance; }
.note .explore { margin-top: 16px; }

.explore {
  display: inline-flex; align-items: center; gap: 12px;
  line-height: 1; letter-spacing: .22em; color: var(--aub); padding: 4px 0;
}
.explore::after { content: ""; width: 22px; height: 1px; background: currentColor; transition: width .25s; }
.explore:hover::after, .explore:focus-visible::after { width: 38px; }
.explore:lang(zh-Hans) { font-family: var(--cjk); font-weight: 400; font-size: 14px; letter-spacing: .3em; }

/* shared: a block whose label hangs in the margin (columns 1-2) */
.hang { grid-column: 1 / 3; }
.hang-tag { margin-top: 8px; font-size: var(--t-small); line-height: 1.45; color: var(--ink-2); text-wrap: balance; }

/* ----- 02 practices: one ruled ledger, three groups stacked ----- */
.ledger { margin-top: 80px; }
.grp { position: relative; }
.grp::before { content: ""; grid-column: 1 / 11; grid-row: 1; border-top: 1px solid var(--gold-deep); }
.grp .hang { grid-row: 2; padding-top: 34px; }
.grp .rows { grid-column: 3 / 11; grid-row: 2; }
.grp + .grp { margin-top: 0; }
.rows li {
  display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); column-gap: var(--cg); align-items: baseline;
  padding: 22px 0 24px;
}
.rows li + li { border-top: 1px solid var(--hair); }
.grp:last-child .rows li:last-child { border-bottom: 1px solid var(--hair); }
.rows a {
  grid-column: 1 / 5; justify-self: start;
  font-weight: 300; font-size: var(--t-name); line-height: 1.2; color: var(--aub);
  text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: 1px; text-underline-offset: .2em;
  transition: text-decoration-color .25s;
}
.rows a:hover { text-decoration-color: var(--gold-deep); }
.rows a:focus-visible { outline: none; text-decoration-color: var(--aub); text-decoration-thickness: 2px; }
.rows p { grid-column: 5 / 9; font-size: var(--t-small); line-height: 1.5; color: var(--ink-2); text-wrap: pretty; }

/* ----- 03 attorneys ----- */
.roster { margin-top: 80px; row-gap: 56px; }
.atty:nth-child(odd) { grid-column: 3 / 7; }
.atty:nth-child(even) { grid-column: 7 / 11; }
.atty h3 { font-weight: 300; font-size: var(--t-name); line-height: 1.15; color: var(--aub); }
.atty h3 a { text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: 1px;
  text-underline-offset: .2em; transition: text-decoration-color .25s; }
.atty h3 a:hover { text-decoration-color: var(--gold-deep); }
.atty h3 a:focus-visible { outline: none; text-decoration-color: var(--aub); text-decoration-thickness: 2px; }
.role { margin-top: 10px; color: var(--mul); }
.cred { margin-top: 12px; font-size: var(--t-small); line-height: 1.55; color: var(--ink-2); }

.staff { margin-top: 88px; }
.staff::before { content: ""; grid-column: 1 / 11; grid-row: 1; border-top: 1px solid var(--hair); }
.staff .hang { grid-row: 2; padding-top: 26px; }
.staff-list { grid-column: 3 / 11; grid-row: 2; padding-top: 20px; columns: 2; column-gap: var(--cg); }
.staff-list li { break-inside: avoid; padding: 0 0 14px; }
.s-name { display: block; font-size: var(--t-text); line-height: 1.35; color: var(--ink); font-weight: 400; }
.s-role { display: block; font-size: var(--t-small); line-height: 1.45; color: var(--ink-2); }

/* ----- 04 languages: a ledger of three ----- */
.langs { margin-top: 64px; }
.langs > div { align-items: baseline; padding: 18px 0 20px; position: relative; }
.langs > div::before { content: ""; position: absolute; top: 0; border-top: 1px solid var(--hair);
  left: calc((100% - 11 * var(--cg)) / 12 * 2 + 2 * var(--cg)); right: calc((100% - 11 * var(--cg)) / 12 * 2 + 2 * var(--cg)); }
.langs > div:last-child::after { content: ""; position: absolute; bottom: 0; border-top: 1px solid var(--hair);
  left: calc((100% - 11 * var(--cg)) / 12 * 2 + 2 * var(--cg)); right: calc((100% - 11 * var(--cg)) / 12 * 2 + 2 * var(--cg)); }
.langs dt { grid-column: 3 / 7; font-weight: 300; font-size: var(--t-disp); line-height: 1.3; color: var(--aub); }
.langs dt:lang(zh-Hans), .langs dt:lang(zh-Hant) { font-weight: 300; letter-spacing: .06em; }
.langs dd { grid-column: 7 / 11; font-size: var(--t-small); line-height: 1.45; color: var(--ink-2); }

/* ================= the one photograph: a frontispiece plate ================= */
.plate { margin: var(--sec) auto 0; width: min(640px, 100% - 2 * var(--gut)); }
.plate img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; background: #DADADC; }
.plate figcaption { margin-top: 16px; text-align: center; font-size: var(--t-small); line-height: 1.45; color: var(--ink-2); text-wrap: balance; }

/* ----- 05 contact: a ruled block, labels hung in the margin ----- */
.reach { margin-top: 72px; }
.reach > div { align-items: baseline; padding: 18px 0 20px; position: relative; }
.reach > div::before { content: ""; position: absolute; top: 0; left: 0; border-top: 1px solid var(--hair);
  right: calc((100% - 11 * var(--cg)) / 12 * 2 + 2 * var(--cg)); }
.reach > div:first-child::before { border-top-color: var(--gold-deep); }
.reach > div:last-child::after { content: ""; position: absolute; bottom: 0; left: 0; border-top: 1px solid var(--hair);
  right: calc((100% - 11 * var(--cg)) / 12 * 2 + 2 * var(--cg)); }
.reach .label { grid-column: 1 / 3; }
.reach p { grid-column: 3 / 11; font-size: var(--t-name); line-height: 1.35; color: var(--aub); }
.reach p a:not(.explore) { text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: 1px;
  text-underline-offset: .2em; transition: text-decoration-color .25s; }
.reach p a:not(.explore):hover { text-decoration-color: var(--gold-deep); }
.reach p a:not(.explore):focus-visible { outline: none; text-decoration-color: var(--aub); text-decoration-thickness: 2px; }
.reach .explore { margin-left: 18px; vertical-align: .3em; }
.after { margin-top: 44px; }
.after .textlink { grid-column: 3 / 11; justify-self: start; margin-top: 0; }

/* ================= footer ================= */
.foot { background: var(--band); color: var(--ivory); text-align: center; padding: 104px 24px 56px; }
.foot :focus-visible { outline-color: var(--gold); }
.foot-logo { width: 232px; margin: 0 auto; }
.foot-addr { margin-top: 44px; line-height: 2; color: var(--ivory-2); }
.foot-addr a:hover { color: var(--ivory); }
.foot-addr .fa { white-space: nowrap; }
.foot-nav ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 40px; margin-top: 28px; }
.foot-nav a { letter-spacing: .24em; color: var(--ivory); }
.foot-nav a[lang] { font-family: var(--cjk); font-weight: 400; font-size: 14px; letter-spacing: .3em; }
.foot-nav a:hover { color: var(--gold); }
.foot-legal { max-width: 40em; margin: 64px auto 0; padding-top: 34px; border-top: 1px solid rgba(244, 239, 232, .16); }
.foot-legal p { font-size: var(--t-small); line-height: 1.55; color: var(--ivory-2); }
.foot-legal p + p { margin-top: 10px; }
.foot-legal p { text-wrap: balance; }
.foot-legal .foot-dba { color: var(--ivory); }
.foot-legal .foot-small { margin-top: 26px; font-size: var(--t-caps); color: var(--ivory-2); }
.foot-small .fs { white-space: nowrap; }
.foot-small a:hover { color: var(--ivory); }

/* ================= between phone and desktop: the margin column folds into the body ================= */
@media (max-width: 1179px) {
  :root { --gut: 40px; --cg: 20px; --t-hero: clamp(64px, 9vw, 104px); --t-title: 56px; --sec: 120px; }
  .wrap { display: flex; flex-direction: column; }
  .head { display: contents; }                  /* the sidenote drops to the end of its section */
  .head .body, .head .note { margin-left: calc((100% - 11 * var(--cg)) / 12 + var(--cg)); }
  .head .body { max-width: 34em; }
  .head .note { order: 2; align-self: stretch; margin-top: 64px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; }
  .note-text { margin-top: 0; }
  .note .explore { margin-top: 0; margin-left: auto; }

  .hang { grid-column: 2 / 13; }
  .grp::before, .staff::before { grid-column: 2 / 13; }
  .grp .hang { padding-top: 24px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; }
  .grp .rows { grid-column: 2 / 13; grid-row: 3; margin-top: 4px; }
  .hang-tag { margin-top: 0; }
  .rows li { display: block; padding: 18px 0 20px; }
  .rows p { margin-top: 6px; max-width: 36em; }

  .atty:nth-child(odd) { grid-column: 2 / 7; }
  .atty:nth-child(even) { grid-column: 7 / 12; }
  .staff .hang { padding-top: 24px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; }
  .staff-list { grid-column: 2 / 12; grid-row: 3; padding-top: 16px; }

  .langs > div::before, .langs > div:last-child::after { left: calc((100% - 11 * var(--cg)) / 12 + var(--cg)); right: 0; }
  .langs dt { grid-column: 2 / 7; }
  .langs dd { grid-column: 7 / 13; }

  .reach > div::before, .reach > div:last-child::after { left: calc((100% - 11 * var(--cg)) / 12 + var(--cg)); right: 0; }
  .reach .label { grid-column: 2 / 13; }
  .reach p { grid-column: 2 / 13; margin-top: 6px; }
  .after .textlink { grid-column: 2 / 13; }
}

/* ================= phone ================= */
@media (max-width: 760px) {
  :root {
    --gut: 20px; --cg: 0px; --sec: 96px; --lh: 214px;
    --t-hero: 48px; --t-title: 40px; --t-disp: 40px; --t-name: 28px; --t-text: 18px; --t-small: 16px;
  }
  body { font-weight: 400; word-spacing: 0; }

  .letterhead { padding: 18px 16px 0; }
  .lh-util { font-size: var(--t-caps); }
  .lh-util a { padding: 10px 0; }               /* 44px-ish tap rows: Chinese link at left, tap-to-call at right */
  .lh-nav { display: none; }
  .lh-logo { width: 210px; margin-top: -2px; }
  .lh-menu { display: block; margin-top: 12px; }
  .lh-menu summary {
    list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 10px;
    line-height: 1; letter-spacing: .26em; color: var(--mul); padding: 12px 6px 12px 12px;
  }
  .lh-menu summary::-webkit-details-marker { display: none; }
  .lh-menu summary::after { content: "+"; font: 300 18px/1 var(--sans); letter-spacing: 0; color: var(--aub); }
  .lh-menu[open] summary::after { content: "\2013"; }
  .lh-menu ul { padding: 8px 0 6px; }
  .lh-menu li a { display: block; padding: 11px 0; letter-spacing: .24em; color: var(--aub); }
  .tee { margin-top: 8px; width: 120px; }
  .tee::after { height: 40px; }

  .hero { padding: 56px 20px 64px; }
  .hero h1 { margin-top: 28px; line-height: 1.06; }
  .hero h1 .l + .l { margin-top: .12em; }
  .hero-lede { margin-top: 28px; }
  .textlink { margin-top: 18px; font-size: 22px; }

  .band { padding: 80px 24px 88px; }
  .band p { max-width: 11em; line-height: 1.15; }

  .wrap { width: auto; margin: 0 var(--gut); }
  .g12 { display: block; }
  .head { display: contents; }
  .sec h2 { margin-top: 12px; }
  .body { margin-top: 24px; max-width: none; }
  .body .lead { font-size: 22px; line-height: 1.5; }
  .body-label { margin-top: 44px; }
  .head .body, .head .note { margin-left: 0; }
  .head .note { display: block; margin-top: 48px; padding-top: 16px; }
  .note-text { margin-top: 6px; }
  .note .explore { margin: 14px 0 0; }

  .ledger { margin-top: 56px; }
  .grp::before, .staff::before { content: none; }
  .grp { border-top: 1px solid var(--gold-deep); }
  .grp + .grp { margin-top: 40px; }
  .grp .hang { padding-top: 18px; display: block; }
  .hang-tag { margin-top: 4px; }
  .rows li { padding: 16px 0 18px; }
  .rows li:first-child { padding-top: 12px; }
  .grp:last-child .rows li:last-child { border-bottom: 0; }

  .roster { margin-top: 56px; }
  .atty + .atty { margin-top: 36px; }
  .staff { margin-top: 64px; border-top: 1px solid var(--hair); }
  .staff .hang { padding-top: 18px; display: block; }
  .staff-list { columns: 1; padding-top: 10px; }
  .staff-list li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
    padding: 12px 0; border-bottom: 1px solid var(--hair); }
  .staff-list li:last-child { border-bottom: 0; }
  .s-name, .s-role { display: inline; }
  .s-name { font-size: var(--t-text); }
  .s-role { text-align: right; }

  .langs { margin-top: 40px; }
  .langs > div { display: block; padding: 14px 0 16px; }
  .langs > div::before, .langs > div:last-child::after { left: 0; right: 0; }
  .langs dt { line-height: 1.25; }
  .langs dd { margin-top: 2px; }

  .plate { width: auto; margin-inline: var(--gut); }
  .plate figcaption { margin-top: 12px; }

  .reach { margin-top: 44px; }
  .reach > div { padding: 14px 0 16px; }
  .reach > div::before, .reach > div:last-child::after { left: 0; right: 0; }
  .reach p { font-size: 22px; margin-top: 6px; }
  .reach .explore { display: flex; width: max-content; margin: 12px 0 0; }
  .after { margin-top: 36px; }
  .sec:last-of-type { padding-bottom: 96px; }

  .foot { padding: 80px 20px 48px; }
  .foot-logo { width: 210px; }
  .foot-addr { margin-top: 36px; letter-spacing: .16em; }
  .foot-addr .fa { display: block; }
  .foot-addr .sep { display: none; }
  .foot-nav ul { gap: 14px 26px; }
  .foot-legal { margin-top: 48px; }
  .foot-small .fs { display: block; }
  .foot-small .fs + .fs { margin-top: 4px; }
  .foot-small .sep { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .tee, .tee::after { animation: none; }
  .explore::after, .rows a, .atty h3 a, .reach p a, .textlink { transition: none; }
}
