/* 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;

  --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 { width: 100%; height: auto; }
.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; }
}

.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 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: repeat(4, 1fr); margin-top: var(--s-9); }
  .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__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; }
}

/* 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__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 var(--s-6); 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); }
.site-footer__brand { display: flex; align-items: center; gap: var(--s-5); }
.site-footer__brand img { width: 44px; height: auto; }
.site-footer__name { font: 400 clamp(2.25rem, 1.4rem + 4vw, 5.5rem)/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; }
}
