/*
  Bisani Legal — modern-counsel direction (canonical, no drift)
  Reference: Open Design direction library (off-white, system sans, muted slate-blue accent)
*/

:root {
  --bg:      oklch(98% 0.003 250);
  --surface: oklch(100% 0 0);
  --paper:   oklch(95% 0.004 250);
  --fg:      oklch(20% 0.005 250);
  --muted:   oklch(50% 0.005 250);
  --border:  oklch(91% 0.003 250);
  --rule:    oklch(82% 0.004 250);
  --accent:  oklch(45% 0.08 240);
  --accent-soft: oklch(45% 0.08 240 / 0.12);

  --font-display: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', system-ui, sans-serif;
  --font-body:    -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Inter', system-ui, sans-serif;
  --font-mono:    ui-monospace, 'SF Mono', 'JetBrains Mono', Menlo, monospace;

  --max:    1240px;
  --gutter: clamp(20px, 4vw, 56px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  color: var(--fg);
  background: var(--bg);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

.skip-link {
  position: absolute; top: -100px; left: 0;
  padding: 10px 14px; background: var(--fg); color: var(--bg);
  font-family: var(--font-mono); font-size: 12px; text-transform: uppercase;
  z-index: 100;
}
.skip-link:focus { top: 0; }

/* ─── Type scale ─────────────────────────────────────── */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.018em;
  margin: 0 0 0.4em;
  text-wrap: balance;
}
h1 { font-size: clamp(52px, 9vw, 112px); line-height: 1.04; letter-spacing: -0.028em; font-weight: 700; }
h2 { font-size: clamp(28px, 3.4vw, 42px); line-height: 1.12; letter-spacing: -0.022em; }
h3 { font-size: clamp(20px, 2vw, 24px); line-height: 1.2; letter-spacing: -0.014em; }
p  { text-wrap: pretty; }

/* ─── Layout primitives ─────────────────────────────── */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section--tight { padding: clamp(48px, 6vw, 80px) 0; }
.divider { border: 0; border-top: 1px solid var(--border); margin: 0; }

/* ─── Masthead ───────────────────────────────────────── */
.masthead {
  position: sticky; top: 0; z-index: 30;
  background: color-mix(in oklch, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.masthead__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding: 14px var(--gutter);
  max-width: var(--max); margin: 0 auto;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-display); font-size: 15px; letter-spacing: -0.01em;
}
.brand img { height: 30px; width: auto; }
.brand__rule { width: 1px; height: 22px; background: var(--rule); }
.brand__bar { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name { font-weight: 600; letter-spacing: -0.01em; }
.brand__suffix { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); margin-top: 2px; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a {
  font-size: 13.5px;
  color: var(--muted);
  transition: color .15s ease;
  position: relative;
  padding: 4px 0;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--fg); }
.nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 1px; background: var(--accent);
}
.nav__cta {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em;
  text-transform: uppercase; padding: 9px 16px;
  border: 1px solid var(--fg); color: var(--fg);
  transition: background .15s ease, color .15s ease;
}
.nav__cta:hover { background: var(--fg); color: var(--bg); }

@media (max-width: 760px) {
  .nav a:not(.nav__cta) { display: none; }
}

/* ─── Hero (home) ────────────────────────────────────── */
.hero {
  padding: clamp(72px, 10vw, 140px) 0 clamp(48px, 6vw, 80px);
  border-bottom: 1px solid var(--border);
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: end;
}
.hero__lede p { font-size: clamp(16px, 1.4vw, 19px); color: var(--muted); max-width: 36ch; }
.hero__meta {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px 28px;
  padding-top: 28px; border-top: 1px solid var(--rule);
}
.meta__row .meta__label { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); display: block; margin-bottom: 6px; }
.meta__row .meta__value { font-family: var(--font-display); font-weight: 500; font-size: 21px; line-height: 1.18; letter-spacing: -0.014em; }
@media (max-width: 820px) {
  .hero__grid { grid-template-columns: 1fr; }
}

/* ─── Section heading ────────────────────────────────── */
.section-head {
  display: grid; grid-template-columns: 1fr minmax(0, 56ch); gap: clamp(24px, 4vw, 56px);
  align-items: end; margin-bottom: clamp(36px, 4vw, 56px);
  padding-bottom: 28px; border-bottom: 1px solid var(--border);
}
.section-head h2 { margin: 0; }
.section-head p { color: var(--muted); margin: 0; }
@media (max-width: 720px) { .section-head { grid-template-columns: 1fr; } }

/* ─── Practice grid ──────────────────────────────────── */
.practice-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--border);
}
.practice-grid__cell {
  padding: 28px 28px 32px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 12px;
  background: var(--bg);
  transition: background .2s ease;
}
.practice-grid__cell:hover { background: var(--surface); }
.practice-grid__cell:nth-child(3n) { border-right: 0; }
.practice-grid__cell .num { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em; color: var(--muted); }
.practice-grid__cell h3 { margin: 0; }
.practice-grid__cell p { font-size: 14.5px; color: var(--muted); margin: 0; }
.practice-grid__cell .more { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); margin-top: auto; padding-top: 16px; }
@media (max-width: 880px) {
  .practice-grid { grid-template-columns: repeat(2, 1fr); }
  .practice-grid__cell:nth-child(3n) { border-right: 1px solid var(--border); }
  .practice-grid__cell:nth-child(2n) { border-right: 0; }
}
@media (max-width: 540px) {
  .practice-grid { grid-template-columns: 1fr; }
  .practice-grid__cell, .practice-grid__cell:nth-child(2n) { border-right: 0; }
}

/* ─── Pull quote ─────────────────────────────────────── */
.pullquote {
  display: grid; grid-template-columns: 4px 1fr; gap: 28px;
  padding: clamp(32px, 4vw, 56px) 0;
}
.pullquote::before {
  content: ""; background: var(--accent);
}
.pullquote q {
  display: block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.3;
  letter-spacing: -0.018em;
  quotes: "\201C" "\201D" "\2018" "\2019";
  text-wrap: balance;
}
.pullquote cite {
  display: block; margin-top: 16px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--muted); font-style: normal;
}

/* ─── Stats row ──────────────────────────────────────── */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.stats__cell {
  padding: 28px 24px;
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 10px;
}
.stats__cell:last-child { border-right: 0; }
.stats__cell .figure { font-family: var(--font-display); font-size: clamp(34px, 4vw, 52px); line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.stats__cell .label { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 720px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats__cell:nth-child(2n) { border-right: 0; }
  .stats__cell:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
}

/* ─── Insights list ──────────────────────────────────── */
.insights-list {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--border);
}
.insights-list article {
  padding: 28px 28px 32px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 14px;
}
.insights-list article:nth-child(2n) { border-right: 0; }
.insights-list .meta { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); display: flex; gap: 14px; }
.insights-list h3 { margin: 0; font-size: clamp(20px, 1.7vw, 23px); line-height: 1.25; }
.insights-list p { color: var(--muted); margin: 0; font-size: 14.5px; }
.insights-list a.read { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); margin-top: auto; }
@media (max-width: 760px) {
  .insights-list { grid-template-columns: 1fr; }
  .insights-list article { border-right: 0; }
}

/* ─── Team grid ──────────────────────────────────────── */
.team-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.team-card { display: flex; flex-direction: column; gap: 12px; }
.team-card .portrait {
  aspect-ratio: 4 / 5;
  background: linear-gradient(160deg, var(--paper), var(--bg));
  border: 1px solid var(--border);
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 500; font-size: 56px; color: var(--muted);
  letter-spacing: -0.04em;
}
.team-card h4 { font-family: var(--font-display); font-size: 22px; margin: 8px 0 2px; }
.team-card .role { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.team-card p { font-size: 14.5px; color: var(--muted); margin: 6px 0 0; }
@media (max-width: 880px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .team-grid { grid-template-columns: 1fr; } }

/* ─── Article body ───────────────────────────────────── */
.article-head { padding-top: clamp(48px, 6vw, 80px); padding-bottom: clamp(28px, 3vw, 40px); border-bottom: 1px solid var(--border); }
.article-head .eyebrow { display: block; margin-bottom: 18px; }
.article-head h1 { max-width: 22ch; }
.article-head .deck { font-size: clamp(17px, 1.4vw, 20px); color: var(--muted); max-width: 40ch; margin-top: 18px; }
.article-head .byline { display: flex; gap: 20px; margin-top: 32px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }

.article-body {
  max-width: 680px; margin: 0 auto;
  padding: clamp(40px, 5vw, 64px) var(--gutter);
}
.article-body p { font-size: 18px; line-height: 1.65; margin: 0 0 1.1em; }
.article-body p:first-of-type::first-letter {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 3.4em; float: left; line-height: 0.95;
  margin: 8px 10px 0 0; color: var(--accent);
  letter-spacing: -0.04em;
}
.article-body h2 { margin-top: 1.5em; font-size: clamp(22px, 2vw, 28px); }
.article-body h3 { margin-top: 1.4em; font-size: 19px; font-family: var(--font-body); font-weight: 600; letter-spacing: 0; }
.article-body ul, .article-body ol { padding-left: 22px; }
.article-body li { margin-bottom: 0.5em; line-height: 1.55; }
.article-body blockquote {
  margin: 1.4em 0; padding: 8px 0 8px 24px;
  border-left: 3px solid var(--accent);
  font-family: var(--font-display); font-weight: 500; font-size: 19px;
  line-height: 1.45; color: var(--fg); letter-spacing: -0.012em;
}
.article-body figure { margin: 1.6em 0; }
.article-body figure .img-block { aspect-ratio: 16 / 9; background: var(--paper); border: 1px solid var(--border); }
.article-body figcaption { margin-top: 10px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }

/* ─── Contact ────────────────────────────────────────── */
.contact-grid {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 5vw, 72px);
}
.contact-block dt { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); margin-top: 22px; margin-bottom: 4px; }
.contact-block dt:first-child { margin-top: 0; }
.contact-block dd { margin: 0; font-family: var(--font-display); font-weight: 500; font-size: 21px; line-height: 1.32; letter-spacing: -0.014em; }
.contact-block dd a:hover { color: var(--accent); }
.map-block {
  aspect-ratio: 4 / 3;
  background:
    linear-gradient(180deg, transparent 49%, var(--rule) 50%, transparent 51%) 0 0/100% 40px,
    linear-gradient(90deg, transparent 49%, var(--rule) 50%, transparent 51%) 0 0/40px 100%,
    var(--paper);
  border: 1px solid var(--border); position: relative;
  display: grid; place-items: center;
}
.map-pin {
  width: 12px; height: 12px; background: var(--accent); border-radius: 50%;
  box-shadow: 0 0 0 6px var(--accent-soft);
}
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; } }

/* ─── FAQ ────────────────────────────────────────────── */
.faq-list { border-top: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border); padding: 0; }
.faq-item summary {
  list-style: none; cursor: pointer;
  padding: 24px 0; display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center;
  font-family: var(--font-display); font-weight: 500; font-size: clamp(17px, 1.5vw, 20px);
  letter-spacing: -0.014em;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; font-family: var(--font-mono); color: var(--muted);
  font-size: 22px; transition: transform .2s ease;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item .answer { padding-bottom: 24px; max-width: 60ch; color: var(--muted); }

/* ─── Footer ─────────────────────────────────────────── */
.footer {
  margin-top: clamp(64px, 8vw, 120px);
  padding: clamp(48px, 6vw, 80px) 0 32px;
  background: var(--surface); border-top: 1px solid var(--border);
}
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer h4 { font-family: var(--font-mono); font-size: 10.5px; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); margin: 0 0 16px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.footer ul a { font-size: 14px; color: var(--fg); }
.footer ul a:hover { color: var(--accent); }
.footer__brand p { font-size: 14px; color: var(--muted); max-width: 32ch; }
.footer__legal {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-top: clamp(40px, 5vw, 56px);
  padding-top: 24px; border-top: 1px solid var(--border);
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted);
}
.disclaimer {
  margin-top: 32px; padding: 20px 24px;
  background: var(--bg); border: 1px solid var(--border);
  font-size: 12.5px; line-height: 1.55; color: var(--muted);
}
.disclaimer strong { color: var(--fg); }
@media (max-width: 760px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__legal { flex-direction: column; gap: 12px; align-items: flex-start; }
}
