/* CJ Guo & Co. Tokens and components follow DESIGN.md. */

:root {
  --paper: #FAF9F6;
  --paper-2: #F1EFEA;
  --ink: #111111;
  --ink-2: #3A3A3A;
  --mute: #666462;
  --rule: #D8D5CF;
  --night: #0E0E0E;
  --night-ink: #F3F2EE;
  --night-mute: #A19F9A;
  --night-rule: #2C2B29;

  --serif: "Newsreader", "Iowan Old Style", "Times New Roman", serif;
  --sans: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --type: "Special Elite", "Courier New", monospace;

  --t-display: clamp(3.25rem, 1.9rem + 5.8vw, 6.5rem);
  --t-h1: clamp(2.5rem, 1.7rem + 3.4vw, 4.25rem);
  --t-h2: clamp(1.875rem, 1.5rem + 1.6vw, 2.75rem);
  --t-h3: clamp(1.375rem, 1.25rem + 0.55vw, 1.75rem);
  --t-lead: clamp(1.1875rem, 1.12rem + 0.3vw, 1.375rem);
  --t-body: 1.0625rem;
  --t-small: 0.875rem;
  --t-label: 0.75rem;

  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px;
  --s-7: 48px; --s-8: 64px; --s-9: 96px; --s-10: 128px; --s-11: 160px;

  --gutter: 24px;
  --max: 1240px;
  --section: var(--s-9);
}
@media (min-width: 900px) {
  :root { --gutter: 48px; --section: var(--s-11); }
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 var(--t-body)/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4 { margin: 0; font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
em { font-style: italic; }
address { font-style: normal; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
::selection { background: var(--ink); color: var(--paper); }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.wrap--read { max-width: calc(44rem + 2 * var(--gutter)); }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: var(--paper); padding: 12px 16px; }
.skip:focus { left: 8px; }

.icon { flex: none; }
.plain { list-style: none; margin: 0; padding: 0; }
.plain--inline { display: flex; flex-wrap: wrap; gap: var(--s-5); }
.muted { color: var(--mute); }

.label {
  display: block;
  font: 600 var(--t-label)/1.3 var(--sans);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mute);
  margin: 0 0 var(--s-4);
}
.eyebrow {
  display: flex; align-items: center; gap: 12px;
  font: 600 var(--t-label)/1.3 var(--sans);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin: 0 0 var(--s-5);
}
.eyebrow::before { content: ""; width: 7px; height: 7px; background: currentColor; flex: none; }
.eyebrow a { text-decoration: none; }
.eyebrow a:hover { text-decoration: underline; }
.eyebrow--light { color: var(--night-mute); }

/* ---------- buttons and links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px;
  font: 500 0.9375rem/1 var(--sans); letter-spacing: 0.01em;
  text-decoration: none; white-space: nowrap;
  border: 1px solid transparent; border-radius: 0;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn--sm { min-height: 42px; padding: 0 18px; font-size: 0.875rem; }
.btn--primary { background: var(--ink); color: var(--paper); }
.btn--primary:hover { background: #2A2A2A; }
.btn--outline { border-color: var(--ink); color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: var(--paper); }
.btn--light { background: var(--night-ink); color: var(--ink); }
.btn--light:hover { background: #fff; }
.btn--outline-light { border-color: #5a5955; color: var(--night-ink); }
.btn--outline-light:hover { border-color: var(--night-ink); background: var(--night-ink); color: var(--ink); }

.link-quiet {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 500; text-decoration: underline; text-underline-offset: 6px;
}
.link-quiet .icon { transition: transform .2s; }
.link-quiet:hover .icon { transform: translateX(4px); }

/* ---------- frame device (from the logo) ---------- */
.frame { position: relative; isolation: isolate; }
.frame::before, .frame::after {
  content: ""; position: absolute; border: 1px solid rgba(17, 17, 17, .45); pointer-events: none;
}
.frame::before { inset: 0 6% 4% 0; }
.frame::after { inset: 4% 0 0 6%; }
.frame__sq { position: absolute; width: 11px; height: 11px; background: var(--ink); z-index: 1; }
.frame__sq--tl { left: -3px; top: -3px; }
.frame__sq--br { right: calc(6% - 6px); bottom: 14%; }
.frame--sm .frame__sq { width: 8px; height: 8px; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(250, 249, 246, .94); backdrop-filter: saturate(1.2) blur(8px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header.is-scrolled { border-bottom-color: var(--rule); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--s-5); min-height: 80px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand__mark { width: 30px; height: auto; }
.wordmark { display: flex; flex-direction: column; gap: 4px; }
.wordmark__name { font: 500 1.0625rem/1 var(--serif); letter-spacing: 0.28em; text-transform: uppercase; margin-right: -0.28em; }
.wordmark__sub { font: 500 0.59rem/1 var(--sans); letter-spacing: 0.24em; text-transform: uppercase; color: var(--ink-2); }

.nav { display: none; align-items: center; gap: var(--s-6); }
.nav__list { display: flex; gap: var(--s-6); list-style: none; margin: 0; padding: 0; }
.nav__list a { font-size: 0.9375rem; font-weight: 500; text-decoration: none; padding: 6px 0; border-bottom: 1px solid transparent; }
.nav__list a:hover, .nav__list a[aria-current="page"] { border-bottom-color: var(--ink); }

.menu-toggle { display: inline-flex; align-items: center; gap: 12px; background: none; border: 0; padding: 10px 0; font: 500 0.9375rem/1 var(--sans); color: var(--ink); cursor: pointer; }
.menu-toggle__bars { width: 22px; height: 8px; border-top: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transition: transform .2s; }
.menu-open .menu-toggle { color: var(--night-ink); position: relative; z-index: 2; }
.menu-open .menu-toggle__bars { border-bottom-color: transparent; transform: translateY(3px); }
.menu-open .brand { position: relative; z-index: 2; color: var(--night-ink); }
.menu-open .brand__mark { filter: invert(1); }
.menu-open .wordmark__sub { color: var(--night-mute); }
.menu-open .site-header { background: var(--night); backdrop-filter: none; }

.mobile-menu { position: fixed; inset: 0; background: var(--night); color: var(--night-ink); padding-top: 112px; overflow-y: auto; z-index: 1; }
.mobile-menu__list { list-style: none; margin: 0 0 var(--s-7); padding: 0; border-top: 1px solid var(--night-rule); }
.mobile-menu__list a { display: block; padding: 14px 0; font: 400 2.125rem/1.15 var(--serif); text-decoration: none; border-bottom: 1px solid var(--night-rule); }
.mobile-menu__actions { display: grid; gap: var(--s-3); }
.mobile-menu__note { color: var(--night-mute); margin-top: var(--s-5); font-size: var(--t-small); }
.menu-open { overflow: hidden; }
@media (min-width: 960px) { .nav { display: flex; } .menu-toggle, .mobile-menu { display: none; } }
.menu-open .wa-float { display: none; }

/* ---------- hero (home) ---------- */
.hero { padding: var(--s-8) 0 0; }
.hero__grid { display: grid; gap: var(--s-8); align-items: center; }
.hero__title { font-size: var(--t-display); line-height: 0.98; letter-spacing: -0.025em; margin-bottom: var(--s-6); }
.hero__lead { font-size: var(--t-lead); color: var(--ink-2); max-width: 34ch; margin-bottom: var(--s-6); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.hero__mark { display: none; margin: 0; padding: 12% 14%; }
.hero__mark img, .hero__svg { width: 100%; height: auto; overflow: visible; }

/* The one motion moment on the site: the logo's frame draws itself once on load, then the corner squares set like a seal. */
@media (prefers-reduced-motion: no-preference) {
  .mark-frame rect { stroke-dasharray: 1; stroke-dashoffset: 1; animation: mark-draw 1.3s cubic-bezier(.65, 0, .35, 1) .2s forwards; }
  .mark-frame rect + rect { animation-delay: .45s; }
  .mark-glyph { opacity: 0; animation: mark-in 1.1s ease .7s forwards; }
  .mark-sq { transform-box: fill-box; transform-origin: center; transform: scale(0); animation: mark-set .45s cubic-bezier(.2, .9, .3, 1.2) 1.45s forwards; }
  .mark-sq + .mark-sq { animation-delay: 1.6s; }
}
@keyframes mark-draw { to { stroke-dashoffset: 0; } }
@keyframes mark-in { to { opacity: 1; } }
@keyframes mark-set { to { transform: scale(1); } }
.hero__mark::before, .hero__mark::after { display: none; }
@media (min-width: 900px) {
  .hero { padding-top: var(--s-9); }
  .hero__grid { grid-template-columns: 7fr 4fr; gap: var(--s-9); }
  .hero__mark { display: block; padding: 0; max-width: 340px; justify-self: end; }
}

/* A building printed very faintly behind the hero, in halftone, fading out towards the headline and the facts row */
.hero--ghost { position: relative; isolation: isolate; overflow: hidden; }
.hero--ghost::before, .hero--ghost::after {
  content: ""; position: absolute; z-index: -1; top: 0; right: 0; width: 100%; height: 340px; pointer-events: none;
  -webkit-mask-image: linear-gradient(to left, #000 30%, transparent 85%), linear-gradient(to top, transparent, #000 45%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to left, #000 30%, transparent 85%), linear-gradient(to top, transparent, #000 45%);
  mask-composite: intersect;
}
.hero--ghost::before { background: var(--hero-bg) center 30% / cover; filter: grayscale(1) contrast(1.4); opacity: .1; }
.hero--ghost::after { background: radial-gradient(circle, rgba(17, 17, 17, .5) .7px, transparent 1.3px) 0 0 / 3px 3px; opacity: .1; }
.hero--ghost .hero__mark { background: var(--paper); }
@media (min-width: 900px) {
  .hero--ghost::before, .hero--ghost::after { width: 62%; height: 78%; }
  .hero--ghost::before { opacity: .14; }
  .hero--ghost::after { opacity: .12; }
}

.ledger { display: grid; grid-template-columns: repeat(2, 1fr); margin: var(--s-8) 0 0; border-top: 1px solid var(--ink); }
.ledger > div { padding: var(--s-5) var(--s-4) var(--s-5) 0; border-bottom: 1px solid var(--rule); }
.ledger > div:nth-child(odd) { padding-right: var(--s-4); }
.ledger > div:last-child:nth-child(odd) { grid-column: 1 / -1; }
.ledger dt { font: 600 var(--t-label)/1.3 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--mute); margin-bottom: 8px; }
.ledger dd { margin: 0; font: 400 1.375rem/1.2 var(--serif); }
@media (min-width: 900px) {
  .ledger { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 1fr; margin-top: var(--s-9); }
  .ledger > div:last-child:nth-child(odd) { grid-column: auto; }
  .ledger > div { border-bottom: 0; padding: var(--s-5) var(--s-5) 0 0; }
  .ledger > div + div { border-left: 1px solid var(--rule); padding-left: var(--s-5); }
}

/* ---------- sections ---------- */
.section { padding: var(--section) 0; }
.section--tight-top { padding-top: 0; }
.section--line { border-top: 1px solid var(--rule); }
.section-title { font-size: var(--t-h2); line-height: 1.1; margin-bottom: var(--s-5); }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--s-4); margin-bottom: var(--s-7); }
.section-head .section-title { margin-bottom: 0; }

.split { display: grid; gap: var(--s-7); }
@media (min-width: 900px) {
  .split { grid-template-columns: 4fr 8fr; gap: var(--s-9); }
  .split__head { position: sticky; top: 120px; align-self: start; }
}

/* commitments */
.commitments { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.commitments li { display: grid; grid-template-columns: 56px 1fr; gap: var(--s-4); padding: var(--s-6) 0; border-bottom: 1px solid var(--rule); }
.commitments__num { font: 400 1.125rem/1.6 var(--serif); color: var(--mute); }
.commitments h3 { font-size: var(--t-h3); line-height: 1.2; margin-bottom: var(--s-3); }
.commitments p { color: var(--ink-2); margin: 0; max-width: 56ch; }
@media (min-width: 900px) { .commitments li { grid-template-columns: 96px 1fr; padding: var(--s-7) 0; } }

/* practice list (home) */
.practice-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.practice-list a {
  display: grid; grid-template-columns: 40px 1fr 24px; gap: 6px var(--s-4); align-items: baseline;
  padding: var(--s-5) 0; border-bottom: 1px solid var(--rule); text-decoration: none;
  transition: background-color .2s, padding .2s;
}
.practice-list__num { font: 400 1rem/1 var(--serif); color: var(--mute); grid-row: span 2; }
.practice-list__name { font: 400 var(--t-h3)/1.2 var(--serif); }
.practice-list__matters { grid-column: 2; font-size: var(--t-small); color: var(--mute); }
.practice-list__arrow { grid-column: 3; grid-row: 1; align-self: center; transition: transform .2s; }
.practice-list a:hover { background: var(--paper-2); }
.practice-list a:hover .practice-list__arrow { transform: translateX(4px); }
@media (min-width: 900px) {
  .practice-list a { grid-template-columns: 80px 5fr 6fr 24px; padding: var(--s-6) var(--s-3) var(--s-6) 0; }
  .practice-list__num { grid-row: auto; }
  .practice-list__matters { grid-column: 3; }
  .practice-list__arrow { grid-column: 4; }
  .practice-list a:hover { padding-left: var(--s-4); }
}

/* night sections */
.night { background: var(--night); color: var(--night-ink); }
.night ::selection { background: var(--night-ink); color: var(--ink); }
.matters { padding: var(--s-9) 0; }
.matters__list { margin: 0; font: 400 clamp(1.75rem, 1.2rem + 2.4vw, 3.25rem)/1.3 var(--serif); letter-spacing: -0.01em; }
.matters__list span { white-space: nowrap; }
.matters__list span:not(:last-child)::after {
  content: ""; display: inline-block; width: 0.16em; height: 0.16em; background: var(--night-mute);
  margin: 0 0.42em 0 0.5em; vertical-align: 0.24em;
}

/* people */
.people { display: grid; gap: var(--s-8); }
.people--compact { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-5); }
@media (min-width: 900px) { .people--compact { gap: var(--s-7); } }
.person__link { display: block; text-decoration: none; }
.person__photo { aspect-ratio: 4 / 5; background: var(--paper-2); display: grid; place-items: center; margin-bottom: var(--s-5); }
.person__photo::before { inset: 0 5% 3% 0; }
.person__photo::after { inset: 3% 0 0 5%; }
.person__photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); }
.person__initials { font: 400 clamp(2.5rem, 2rem + 3vw, 4.5rem)/1 var(--serif); letter-spacing: .08em; color: #8C8A86; }
.person__name { font-size: var(--t-h3); line-height: 1.2; margin-bottom: 6px; }
.person__role { font: 600 var(--t-label)/1.3 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--mute); margin-bottom: var(--s-4); }
.person__creds { font-size: var(--t-small); color: var(--mute); }
.person__text p { max-width: 56ch; color: var(--ink-2); }
@media (min-width: 900px) {
  .people { grid-template-columns: 1fr 1fr; gap: var(--s-9); }
  .person--full .person__photo { max-width: 360px; }
}

/* photographs as newspaper cuttings: torn newsprint, halftone print, tape, a typed caption label */
.paper-grid {
  background-image: linear-gradient(rgba(17, 17, 17, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(17, 17, 17, .05) 1px, transparent 1px);
  background-size: 28px 28px;
}
.cutting { --torn: polygon(0% 0.9%, 4% 1%, 8% 0.2%, 12% 0.4%, 16% 0.8%, 20% 0.9%, 24% 0.1%, 28% 1.6%, 32% 1.1%, 36% 0.7%, 40% 0.5%, 44% 1.4%, 48% 1.2%, 52% 0.1%, 56% 0.9%, 60% 0.4%, 64% 1.2%, 68% 0.3%, 72% 1%, 76% 0.9%, 80% 0.3%, 84% 0.1%, 88% 1.7%, 92% 1.7%, 96% 0.2%, 99.5% 0%, 99% 4%, 99.8% 8%, 99.5% 12%, 99.4% 16%, 99.3% 20%, 99.7% 24%, 99.8% 28%, 98.9% 32%, 99.5% 36%, 99.7% 40%, 99.4% 44%, 99.6% 48%, 99.8% 52%, 99.2% 56%, 99.6% 60%, 99.6% 64%, 99.9% 68%, 99% 72%, 99.7% 76%, 99% 80%, 99.5% 84%, 99.7% 88%, 99.3% 92%, 99.6% 96%, 100% 98.6%, 96% 98.8%, 92% 99.8%, 88% 99.6%, 84% 99.2%, 80% 99.8%, 76% 99.9%, 72% 99.3%, 68% 98.8%, 64% 98.8%, 60% 98.3%, 56% 99.4%, 52% 99.2%, 48% 99.1%, 44% 99.2%, 40% 98.5%, 36% 99.2%, 32% 99.2%, 28% 99.5%, 24% 99.6%, 20% 98.7%, 16% 99.8%, 12% 99.5%, 8% 98.6%, 4% 98.5%, 1% 100%, 1% 96%, 0.9% 92%, 0.8% 88%, 0.7% 84%, 0.6% 80%, 0% 76%, 0.3% 72%, 0.4% 68%, 0.2% 64%, 0.4% 60%, 0.7% 56%, 0.8% 52%, 0.3% 48%, 1% 44%, 0% 40%, 0.4% 36%, 0.6% 32%, 0.5% 28%, 0.1% 24%, 1.1% 20%, 0.5% 16%, 0.9% 12%, 0.6% 8%, 0.5% 4%); position: relative; margin: 0 0 var(--s-6); transform: rotate(-1.1deg); filter: drop-shadow(0 8px 12px rgba(17, 17, 17, .16)); }
.cutting:nth-child(2n) { --torn: polygon(0% 0.4%, 4% 0.6%, 8% 0.2%, 12% 1.3%, 16% 0.1%, 20% 0.5%, 24% 0.6%, 28% 1.5%, 32% 1.7%, 36% 1.1%, 40% 1.7%, 44% 0.8%, 48% 1.6%, 52% 1.7%, 56% 0.5%, 60% 1.1%, 64% 0.3%, 68% 1.5%, 72% 0.4%, 76% 0.1%, 80% 1%, 84% 0.2%, 88% 0.1%, 92% 1.4%, 96% 1.2%, 99.5% 0%, 98.9% 4%, 99.7% 8%, 99% 12%, 99.4% 16%, 99.5% 20%, 99.3% 24%, 98.9% 28%, 99.3% 32%, 99.9% 36%, 99.3% 40%, 99.9% 44%, 99.2% 48%, 99.1% 52%, 99.6% 56%, 99% 60%, 99.8% 64%, 99.1% 68%, 99.9% 72%, 99% 76%, 99% 80%, 99.2% 84%, 99.3% 88%, 98.9% 92%, 99.8% 96%, 100% 98.9%, 96% 99%, 92% 98.4%, 88% 99.5%, 84% 98.3%, 80% 99.5%, 76% 99.8%, 72% 98.9%, 68% 98.7%, 64% 99.1%, 60% 98.3%, 56% 98.8%, 52% 98.5%, 48% 99.2%, 44% 99.1%, 40% 99%, 36% 99.2%, 32% 98.7%, 28% 99.8%, 24% 99.4%, 20% 98.9%, 16% 98.4%, 12% 98.8%, 8% 98.7%, 4% 99.5%, 0.8% 100%, 0.4% 96%, 0.8% 92%, 1.1% 88%, 0.1% 84%, 0.7% 80%, 0.9% 76%, 0.2% 72%, 0.5% 68%, 0.8% 64%, 0.1% 60%, 0.6% 56%, 0.1% 52%, 0.3% 48%, 0.4% 44%, 0.3% 40%, 0.1% 36%, 0.4% 32%, 0.8% 28%, 0% 24%, 0.9% 20%, 1% 16%, 0.5% 12%, 0.4% 8%, 0.2% 4%); transform: rotate(.9deg); }
.cutting:nth-child(3n) { transform: rotate(-.5deg); }
.cutting__paper { position: relative; padding: 10px; background: #ECE9E1; clip-path: var(--torn); }
.cutting__paper img { width: 100%; height: auto; filter: grayscale(1) contrast(1.35) brightness(1.06); }
/* the printed dot screen, then newsprint grain over picture and margin alike */
.cutting__paper::before { content: ""; position: absolute; inset: 10px; background: radial-gradient(circle, rgba(17, 17, 17, .5) .7px, transparent 1.3px) 0 0 / 3px 3px; mix-blend-mode: multiply; opacity: .55; pointer-events: none; }
.cutting__paper::after { content: ""; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); mix-blend-mode: multiply; opacity: .35; pointer-events: none; }
.cutting__tape {
  position: absolute; z-index: 2; top: -13px; left: 50%; width: 96px; height: 28px; transform: translateX(-50%) rotate(-4deg);
  background: rgba(205, 200, 188, .72); box-shadow: 0 1px 2px rgba(17, 17, 17, .18);
  clip-path: polygon(0 8%, 6% 0, 12% 10%, 20% 2%, 100% 0, 96% 50%, 100% 100%, 88% 92%, 80% 100%, 0 100%, 4% 50%);
}
.cutting:nth-child(2n) .cutting__tape { left: 30%; transform: translateX(-50%) rotate(5deg); }
.cutting__label { position: relative; z-index: 2; margin: -18px 0 0 -6px; max-width: 92%; transform: rotate(.8deg); font: 400 .9375rem/2 var(--type); letter-spacing: .01em; }
.cutting__label span { background: var(--ink); color: var(--paper); padding: 3px 8px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.photo--wide { margin-bottom: var(--s-8); max-width: 860px; }
@media (min-width: 900px) { .photo--wide { margin-bottom: var(--s-9); } }

.partners-photo__names { list-style: none; margin: var(--s-6) 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-5); border-top: 1px solid var(--rule); }
.partners-photo__names a { display: block; padding-top: var(--s-4); text-decoration: none; }
.partners-photo__names .person__name { display: block; font: 400 var(--t-h3)/1.2 var(--serif); margin-bottom: 6px; }
.partners-photo__names .person__role { display: block; margin: 0; }
.partners-photo__names a:hover .person__name { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }

.places { display: grid; gap: var(--s-8); padding-top: var(--s-4); }
@media (min-width: 700px) { .places { grid-template-columns: repeat(3, 1fr); gap: var(--s-6); } }

/* timeline (Insights): a rail with the logo's solid squares as markers; each entry opens in place */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; border-top: 1px solid var(--ink); }
.timeline::before { content: ""; position: absolute; left: 5px; top: 0; bottom: 0; width: 1px; background: var(--ink); }
.timeline__item { position: relative; padding-left: 36px; border-bottom: 1px solid var(--rule); }
.timeline__item::before { content: ""; position: absolute; left: 0; top: 38px; width: 11px; height: 11px; background: var(--paper); border: 1px solid var(--ink); transition: background-color .2s; }
.timeline__item:has(.tl[open])::before { background: var(--ink); }
.tl__head { display: grid; grid-template-columns: 1fr 24px; gap: 6px var(--s-4); padding: var(--s-6) 0; cursor: pointer; list-style: none; }
.tl__head::-webkit-details-marker { display: none; }
.tl__date { grid-column: 1 / -1; font-size: var(--t-small); color: var(--mute); }
.tl__text { display: grid; gap: 6px; }
.tl__title { font: 400 var(--t-h3)/1.2 var(--serif); }
.tl__summary { color: var(--ink-2); max-width: 60ch; }
.tl__head:hover .tl__title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
.tl__toggle { position: relative; width: 18px; height: 18px; align-self: start; margin-top: 8px; }
.tl__toggle::before, .tl__toggle::after { content: ""; position: absolute; left: 0; top: 8px; width: 18px; height: 1.5px; background: var(--ink); transition: transform .25s; }
.tl__toggle::after { transform: rotate(90deg); }
.tl[open] .tl__toggle::after { transform: rotate(0); }
.tl__body { padding: 0 0 var(--s-7); max-width: 40rem; }
.tl__body .cutting { max-width: 460px; margin: var(--s-6) 0 var(--s-7); }
.tl__link { margin-top: var(--s-5); }
@media (prefers-reduced-motion: no-preference) {
  .tl[open] .tl__body { animation: tl-open .35s ease-out; }
}
@keyframes tl-open { from { opacity: 0; transform: translateY(-6px); } }
@media (min-width: 900px) {
  .timeline::before { left: calc(25% + 5px); }
  .timeline__item { padding-left: 0; }
  .timeline__item::before { left: 25%; top: 46px; }
  .tl__head { grid-template-columns: 25% 1fr 24px; gap: 0 var(--s-7); padding: var(--s-7) 0; align-items: start; }
  .tl__date { grid-column: auto; padding-top: 8px; }
  .tl__text { padding-left: var(--s-7); }
  .tl__body { margin-left: calc(25% + var(--s-7) + var(--s-7)); }
}

/* article pages: cuttings sit in the reading column */
.article__body .cutting { margin: var(--s-7) 0 var(--s-8); }

/* posts */
.post-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.post-row a { display: grid; gap: var(--s-3); padding: var(--s-6) 0; border-bottom: 1px solid var(--rule); text-decoration: none; transition: background-color .2s; }
.post-row__meta { display: flex; gap: var(--s-4); font-size: var(--t-small); color: var(--mute); }
.post-row__type { font-weight: 600; font-size: var(--t-label); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); align-self: center; }
.post-row__body { display: grid; gap: 8px; }
.post-row__title { font: 400 var(--t-h3)/1.2 var(--serif); }
.post-row__summary { color: var(--ink-2); max-width: 64ch; }
.post-row__arrow { display: none; }
.post-row a:hover .post-row__title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
.post-row--empty p { padding: var(--s-6) 0; color: var(--mute); border-bottom: 1px solid var(--rule); margin: 0; }
.post-list__note { margin-top: var(--s-6); }
@media (min-width: 900px) {
  .post-row a { grid-template-columns: 3fr 8fr 24px; gap: var(--s-6); align-items: start; padding: var(--s-7) 0; }
  .post-row__meta { flex-direction: column; gap: 8px; }
  .post-row__type { align-self: flex-start; }
  .post-row__arrow { display: block; padding-top: 6px; transition: transform .2s; }
  .post-row a:hover .post-row__arrow { transform: translateX(4px); }
}

/* contact panel */
.contact-panel { padding: var(--section) 0; }
.contact-panel__inner { display: grid; gap: var(--s-7); }
.contact-panel__title { font-size: var(--t-h1); line-height: 1.04; margin-bottom: var(--s-5); }
.contact-panel__title em { color: var(--night-mute); }
.contact-panel__lead { color: var(--night-mute); font-size: var(--t-lead); max-width: 40ch; margin: 0; }
.contact-panel__actions { display: grid; gap: var(--s-3); align-content: end; }
.contact-panel__actions .btn { justify-content: flex-start; }
.contact-panel__hours { color: var(--night-mute); font-size: var(--t-small); margin: var(--s-3) 0 0; }
@media (min-width: 900px) { .contact-panel__inner { grid-template-columns: 7fr 4fr; gap: var(--s-9); } }

/* ---------- inner pages ---------- */
.page-hero { padding: var(--s-8) 0 var(--s-9); }
.page-hero--small { padding-bottom: var(--s-7); }
.page-title { font-size: var(--t-h1); line-height: 1.04; letter-spacing: -0.02em; margin-bottom: var(--s-6); max-width: 21ch; }
.page-title em { color: var(--mute); }
.page-lead { font-size: var(--t-lead); color: var(--ink-2); max-width: 52ch; margin: 0; }
.page-lead a { text-underline-offset: 4px; }
@media (min-width: 900px) { .page-hero { padding: var(--s-9) 0 var(--s-10); } }

.prose { max-width: 66ch; }
.prose p, .prose li { color: var(--ink-2); }
.prose h2 { font-size: 1.75rem; line-height: 1.2; margin: 1.6em 0 0.5em; }
.prose h3 { font-size: 1.375rem; line-height: 1.25; margin: 1.5em 0 0.5em; }
.prose ul, .prose ol { padding-left: 1.2em; margin: 0 0 1em; }
.prose li { margin-bottom: 0.4em; }
.prose ul { list-style: none; padding-left: 0; }
.prose ul li { position: relative; padding-left: 1.4em; }
.prose ul li::before { content: ""; position: absolute; left: 0; top: 0.68em; width: 6px; height: 6px; background: var(--ink); }
.prose blockquote { margin: 1.5em 0; padding: 0 0 0 var(--s-5); border-left: 1px solid var(--ink); font: 400 1.5rem/1.4 var(--serif); }
.prose blockquote p { color: var(--ink); }
.prose--doc h2:first-child { margin-top: 0; }

/* practice page */
.practice-index { display: grid; gap: var(--s-7); padding-bottom: var(--section); }
.practice-index__nav { display: none; }
@media (min-width: 900px) {
  .practice-index { grid-template-columns: 3fr 8fr; gap: var(--s-9); }
  .practice-index__nav { display: block; position: sticky; top: 120px; align-self: start; }
  .practice-index__nav li { counter-increment: pa; }
  .practice-index__nav a { display: block; padding: 8px 0; font-size: 0.9375rem; text-decoration: none; color: var(--ink-2); border-bottom: 1px solid var(--rule); }
  .practice-index__nav a:hover { color: var(--ink); }
}
.area { display: grid; grid-template-columns: 1fr; padding: var(--s-7) 0; border-top: 1px solid var(--ink); }
.area + .area { border-top-color: var(--rule); }
.area__num { font: 400 1rem/1 var(--serif); color: var(--mute); margin-bottom: var(--s-4); }
.area__title { font-size: var(--t-h2); line-height: 1.1; margin-bottom: var(--s-5); }
.area > p { color: var(--ink-2); max-width: 60ch; font-size: 1.125rem; }
.area__matters { list-style: none; margin: var(--s-4) 0 0; padding: 0; display: grid; gap: 0 var(--s-6); }
.area__matters li { padding: 12px 0 12px 20px; border-bottom: 1px solid var(--rule); position: relative; }
.area__matters li::before { content: ""; position: absolute; left: 0; top: 1.3em; width: 6px; height: 6px; background: var(--ink); }
@media (min-width: 700px) { .area__matters { grid-template-columns: 1fr 1fr; } }
.area-note { margin-top: var(--s-7); font: 400 1.5rem/1.35 var(--serif); }

/* contact page */
.contact-grid { display: grid; gap: var(--s-4); margin-bottom: var(--section); }
@media (min-width: 800px) { .contact-grid { grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--ink); } }
.contact-card { display: grid; gap: 6px; padding: var(--s-6); border: 1px solid var(--ink); text-decoration: none; transition: background-color .2s, color .2s; }
@media (min-width: 800px) { .contact-card { border: 0; } .contact-card + .contact-card { border-left: 1px solid var(--ink); } }
.contact-card__icon { margin-bottom: var(--s-5); }
.contact-card__icon .icon { width: 28px; height: 28px; }
.contact-card .label { margin: 0; }
.contact-card__value { font: 400 1.5rem/1.25 var(--serif); overflow-wrap: anywhere; }
.contact-card__value--email { font-size: 1.125rem; line-height: 1.5; overflow-wrap: normal; }
.contact-card__hint { font-size: var(--t-small); color: var(--mute); }
.contact-card:hover { background: var(--ink); color: var(--paper); }
.contact-card:hover .label, .contact-card:hover .contact-card__hint { color: var(--night-mute); }
.contact-office__address { font: 400 1.5rem/1.4 var(--serif); color: var(--ink); margin-bottom: var(--s-4); }

/* article */
.article__head { padding: var(--s-8) 0 var(--s-7); }
.article__title { font-size: var(--t-h1); line-height: 1.06; letter-spacing: -0.02em; margin-bottom: var(--s-5); }
.article__summary { font-size: var(--t-lead); color: var(--ink-2); }
.article__meta { font-size: var(--t-small); color: var(--mute); padding-top: var(--s-5); border-top: 1px solid var(--ink); margin: var(--s-6) 0 0; }
.article__body { padding-bottom: var(--s-7); font-size: 1.125rem; }
.article__disclaimer { margin-top: var(--s-7); padding-top: var(--s-5); border-top: 1px solid var(--rule); font-size: var(--t-small); color: var(--mute) !important; }
.article__back { padding-bottom: var(--section); }
.article__back .icon { transform: rotate(180deg); }

/* 404 */
.notfound { padding: var(--s-9) 0 var(--s-10); }
.notfound__inner { display: grid; justify-items: start; }
.notfound__frame { width: 220px; aspect-ratio: 4 / 5; display: grid; place-items: center; margin-bottom: var(--s-7); }
.notfound__code { font: 400 4rem/1 var(--serif); }

/* ---------- footer ---------- */
.site-footer { background: var(--night); color: var(--night-ink); padding: var(--s-9) 0 calc(var(--s-6) + 72px); border-top: 1px solid var(--night-rule); }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer__top { display: grid; gap: var(--s-5); padding-bottom: var(--s-8); border-bottom: 1px solid var(--night-rule); }
/* The mark is sized in em so it always stands as tall as the name beside it. */
.site-footer__brand { display: flex; align-items: center; gap: 0.32em; font-size: clamp(2.25rem, 1.4rem + 4vw, 5.5rem); }
.site-footer__brand img { width: auto; height: 1.2em; }
.site-footer__name { font: 400 1em/1 var(--serif); letter-spacing: 0.14em; text-transform: uppercase; }
.site-footer__line { color: var(--night-mute); margin: 0; }
.site-footer__grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-7) var(--s-5); padding: var(--s-8) 0; }
.site-footer .label { color: var(--night-mute); }
.site-footer address, .site-footer li { line-height: 1.9; }
.site-footer__hours { color: var(--night-mute); font-size: var(--t-small); margin-top: var(--s-3); }
.site-footer .link-quiet { font-weight: 400; color: var(--night-mute); }
.site-footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-4); padding-top: var(--s-5); border-top: 1px solid var(--night-rule); font-size: var(--t-small); color: var(--night-mute); }
.site-footer__legal p { margin: 0; }
@media (min-width: 900px) {
  .site-footer__top { grid-template-columns: auto 1fr; align-items: end; gap: var(--s-7); }
  .site-footer__line { justify-self: end; text-align: right; }
  .site-footer__grid { grid-template-columns: 2fr 2fr 1fr 1fr; }
}

/* ---------- floating WhatsApp ---------- */
.wa-float {
  position: fixed; right: 16px; bottom: 16px; z-index: 40;
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 52px; min-width: 52px; justify-content: center; padding: 0 16px;
  background: var(--ink); color: var(--paper); text-decoration: none;
  font: 500 0.9375rem/1 var(--sans);
  box-shadow: 0 0 0 1px rgba(250, 249, 246, .25);
  transition: background-color .2s;
}
.wa-float .icon { width: 22px; height: 22px; }
.wa-float span { display: none; }
.wa-float:hover { background: #2A2A2A; }
@media (min-width: 900px) { .wa-float { right: 24px; bottom: 24px; padding: 0 20px; } .wa-float span { display: inline; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  .site-header, .wa-float, .contact-panel, .site-footer { display: none; }
}
