/* Cy Pres Settlement Funds — site styles
   Brand carried over from the CP/SF letterhead: slate #41434F, mist #F0F1F5,
   high-contrast serif (Playfair Display). Brass is the single accent. */

:root {
  --slate-950: #1e2028;
  --slate-900: #2a2c35;
  --slate: #41434f;
  --slate-600: #565968;
  --slate-500: #6b6e7c;
  --mist: #f0f1f5;
  --mist-2: #e5e7ee;
  --line: #d8dbe3;
  --white: #ffffff;
  --brass: #7d5e36;
  --brass-light: #cfae74;
  --on-dark: #e9eaf0;
  --on-dark-muted: #b4b7c3;

  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --container: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(64px, 9vw, 120px);
  --radius: 3px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--white);
  color: var(--slate-900);
  font-family: var(--sans);
  font-size: 1.125rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

[hidden] { display: none !important; }

img { display: block; max-width: 100%; height: auto; }

a { color: inherit; }

h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; }

h1, h2 {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--slate-950);
  letter-spacing: -0.012em;
}

h1 { font-size: clamp(2.3rem, 4.6vw, 3.6rem); line-height: 1.08; }
h2 { font-size: clamp(1.85rem, 3.4vw, 2.7rem); line-height: 1.15; }

h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.4rem;
  line-height: 1.25;
  color: var(--slate-950);
}

:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
}

.dark :focus-visible { outline-color: var(--brass-light); }

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--slate-950);
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

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

.eyebrow {
  display: inline-flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass);
}
.eyebrow::before {
  content: "";
  flex: none;
  margin-top: 0.8em;
  width: 28px;
  height: 1px;
  background: currentColor;
}
.dark .eyebrow { color: var(--brass-light); }

.lede {
  max-width: 60ch;
  font-size: clamp(1.15rem, 1.6vw, 1.3rem);
  line-height: 1.55;
  color: var(--slate-600);
}

.num,
.n { font-variant-numeric: lining-nums tabular-nums; }

/* ---------- Buttons & links ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn-primary { background: var(--slate); color: var(--white); }
.btn-primary:hover { background: var(--slate-950); }
.btn-ghost { border-color: var(--line); color: var(--slate); background: transparent; }
.btn-ghost:hover { border-color: var(--slate); }
.btn-light { background: var(--white); color: var(--slate-950); }
.btn-light:hover { background: var(--mist); }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: 0.95rem; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--slate);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
  transition: border-color 0.15s ease;
}
.text-link:hover { border-color: var(--slate); }
.text-link .arrow { transition: transform 0.15s ease; }
.text-link:hover .arrow { transform: translateX(3px); }
.dark .text-link { color: var(--white); border-color: rgba(255, 255, 255, 0.3); }
.dark .text-link:hover { border-color: var(--white); }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--slate);
}
.brand-mark {
  display: inline-grid;
  place-items: center;
  height: 40px;
  padding: 0 9px;
  background: var(--slate);
  color: var(--white);
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.03em;
  line-height: 1;
}
.brand-name {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.015em;
  white-space: nowrap;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 30px;
  padding: 0;
  list-style: none;
}
.site-nav a:not(.btn) {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--slate-600);
  text-decoration: none;
}
.site-nav a:not(.btn):hover { color: var(--slate-950); }
.site-nav a[aria-current="page"]:not(.btn) { color: var(--slate-950); box-shadow: inset 0 -2px 0 var(--brass); padding-bottom: 4px; }

.menu-toggle {
  display: none;
  flex: none;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--slate);
  font: 600 0.95rem var(--sans);
  cursor: pointer;
}
.menu-toggle .bars,
.menu-toggle .bars::before,
.menu-toggle .bars::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
}
.menu-toggle .bars { position: relative; }
.menu-toggle .bars::before,
.menu-toggle .bars::after { content: ""; position: absolute; left: 0; }
.menu-toggle .bars::before { top: -6px; }
.menu-toggle .bars::after { top: 6px; }
.menu-toggle[aria-expanded="true"] .bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .bars::before { top: 0; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .bars::after { top: 0; transform: rotate(-45deg); }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Hero ---------- */

.hero {
  background: var(--mist);
  padding: clamp(56px, 8vw, 104px) 0 clamp(56px, 7vw, 96px);
  border-bottom: 1px solid var(--line);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(40px, 5vw, 72px);
  align-items: center;
}
.hero h1 { margin-bottom: 24px; }
.hero .lede { margin-bottom: 36px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.fund-card {
  position: relative;
  padding: clamp(28px, 3vw, 40px);
  background: var(--slate-900);
  color: var(--on-dark);
  box-shadow: 0 30px 60px -30px rgba(30, 32, 40, 0.55);
}
.fund-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--brass-light);
}
.fund-card .label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass-light);
}
.fund-card h2 {
  margin: 14px 0 6px;
  font-size: clamp(1.5rem, 2.2vw, 1.85rem);
  color: var(--white);
}
.fund-card .agency { font-size: 1rem; color: var(--on-dark-muted); }
.fund-stat {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin: 28px 0 22px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.fund-stat .num {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(3.4rem, 5vw, 4.25rem);
  line-height: 0.9;
  color: var(--brass-light);
}
.fund-stat .desc { font-size: 1.02rem; line-height: 1.45; color: var(--on-dark); }
.fund-card .purpose { margin: 0 0 26px; font-size: 0.98rem; color: var(--on-dark-muted); }

/* ---------- Proof strip ---------- */

.proof { padding: clamp(40px, 5vw, 64px) 0; border-bottom: 1px solid var(--line); }
.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}
.proof-grid li { padding: 4px clamp(20px, 3vw, 40px); border-left: 1px solid var(--line); }
.proof-grid li:first-child { padding-left: 0; border-left: 0; }
.proof-grid .num {
  display: block;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.4rem, 4vw, 3.25rem);
  line-height: 1;
  color: var(--slate-950);
  margin-bottom: 10px;
}
.proof-grid .desc { color: var(--slate-600); font-size: 1.02rem; }
.footnote { margin-top: 28px; font-size: 0.9rem; color: var(--slate-500); max-width: 80ch; }

/* ---------- Generic sections ---------- */

.section { padding: var(--section) 0; }
.section.tint { background: var(--mist); }
.section-head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head h2 { margin-bottom: 20px; }

/* Who we work with */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 3vw, 48px);
}
.audience {
  display: flex;
  flex-direction: column;
  padding-top: 24px;
  border-top: 2px solid var(--slate);
}
.audience h3 { margin-bottom: 14px; }
.audience p { color: var(--slate-600); margin-bottom: 24px; }
.audience .text-link { margin-top: auto; align-self: flex-start; }

/* Funded project examples */
.kicker,
.audience .kicker {
  margin-bottom: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brass);
}
.examples-grid { row-gap: clamp(36px, 4vw, 56px); }

/* Designed for impact */
.impact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 3vw, 48px);
}
.impact-grid article { padding-top: 24px; border-top: 2px solid var(--brass); }
.impact-grid h3 { margin-bottom: 12px; }
.impact-grid p { color: var(--slate-600); }
.impact-grid .cite { margin-top: 12px; }

/* Approach */
.principles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
}
.principle {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 8px 20px;
  padding: 36px 40px 36px 0;
  border-bottom: 1px solid var(--line);
}
.principle:nth-child(even) { padding: 36px 0 36px 40px; border-left: 1px solid var(--line); }
.principle .n {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--brass);
}
.principle h3 { margin-bottom: 10px; }
.principle p { color: var(--slate-600); }
.cite {
  margin-top: 14px;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  color: var(--slate-500);
}
.cite em { font-style: italic; }
.section-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 40px;
}
.section-foot .source { font-size: 0.92rem; color: var(--slate-500); max-width: 70ch; }

/* Court quote */
.quote-band { background: var(--slate-900); color: var(--on-dark); padding: clamp(72px, 9vw, 120px) 0; }
.quote-band blockquote { max-width: 980px; }
.quote-band blockquote p {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.3;
  color: var(--white);
}
.quote-band blockquote p::before { content: "\201C"; margin-left: -0.45em; color: var(--brass-light); }
.quote-band blockquote p::after { content: "\201D"; color: var(--brass-light); }
.quote-band figcaption {
  margin-top: 28px;
  padding-top: 20px;
  max-width: 760px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 1rem;
  color: var(--on-dark-muted);
}
.quote-band figcaption strong { color: var(--white); font-weight: 600; }

/* Process */
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 40px);
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.step { position: relative; padding-top: 28px; border-top: 1px solid var(--line); }
.step::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 44px;
  height: 3px;
  background: var(--brass);
}
.step .n {
  display: block;
  margin-bottom: 14px;
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--brass);
}
.step h3 { margin-bottom: 12px; }
.step p { color: var(--slate-600); font-size: 1.05rem; }

/* Team */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 36px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.person img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  filter: grayscale(1) contrast(1.04);
  background: var(--mist-2);
  margin-bottom: 18px;
}
.person h3 { font-size: 1.2rem; margin-bottom: 4px; }
.person .role {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 10px;
}
.person p:last-child { font-size: 1rem; color: var(--slate-600); }

.legacy {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  margin-top: clamp(56px, 7vw, 88px);
  padding: clamp(28px, 4vw, 48px);
  background: var(--white);
  border: 1px solid var(--line);
}
.legacy img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; filter: grayscale(1) contrast(1.04); }
.legacy .label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 10px;
}
.legacy h3,
.legacy .legacy-title { font-size: 1.6rem; line-height: 1.25; margin-bottom: 12px; }
.legacy > div > p + p { margin-top: 12px; }
.legacy-links { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 24px; }
.legacy > div > p { color: var(--slate-600); max-width: 68ch; }
.legacy blockquote {
  margin-top: 22px;
  padding-left: 20px;
  border-left: 2px solid var(--brass);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
  line-height: 1.5;
  color: var(--slate-950);
  max-width: 68ch;
}
.legacy .src { margin-top: 10px; padding-left: 22px; font-size: 0.9rem; color: var(--slate-500); }

/* CTA band */
.cta-band { background: var(--slate); color: var(--on-dark); padding: clamp(64px, 8vw, 104px) 0; }
.cta-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 40px;
  align-items: end;
}
.cta-band h2 { color: var(--white); margin-bottom: 16px; }
.cta-band p { color: var(--on-dark); font-size: 1.15rem; max-width: 52ch; }
.cta-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.cta-actions .direct { font-size: 1rem; color: var(--on-dark-muted); }
.cta-actions .direct a { color: var(--white); text-underline-offset: 3px; }

/* Footer */
.site-footer { background: var(--slate-950); color: var(--on-dark-muted); padding: 64px 0 36px; font-size: 1rem; }
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.site-footer .brand { color: var(--white); margin-bottom: 20px; }
.site-footer .brand-mark { background: var(--white); color: var(--slate-950); }
.site-footer address { font-style: normal; line-height: 1.7; }
.site-footer .footer-heading {
  margin: 0 0 14px;
  font-family: var(--sans);
  line-height: 1.4;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white);
}
.site-footer ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.site-footer a { color: var(--on-dark-muted); text-decoration: none; }
.site-footer a:hover { color: var(--white); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 24px;
  font-size: 0.9rem;
}

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 48px; }
}

@media (max-width: 960px) {
  .menu-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 30px -20px rgba(30, 32, 40, 0.3);
  }
  .site-nav.open { display: block; }
  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 20px;
  }
  .site-nav li a:not(.btn) { display: block; padding: 14px 0; border-bottom: 1px solid var(--mist-2); font-size: 1.05rem; }
  .site-nav li:last-child { padding-top: 16px; }
  .site-nav .btn { width: 100%; }

  .hero-grid,
  .cta-grid { grid-template-columns: minmax(0, 1fr); }
  .audience-grid,
  .impact-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .principles { grid-template-columns: minmax(0, 1fr); }
  .principle,
  .principle:nth-child(even) { padding: 32px 0; border-left: 0; }
  .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  body { font-size: 1.0625rem; }
  .brand-name { font-size: 1.02rem; }
  .brand-mark { height: 36px; font-size: 0.92rem; }
  .hero-actions .btn { flex: 1 1 100%; }
  .proof-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .proof-grid li { padding: 0 0 0 20px; border-left: 2px solid var(--line); }
  .proof-grid li:first-child { padding-left: 20px; border-left: 2px solid var(--line); }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .principle { grid-template-columns: 40px minmax(0, 1fr); gap: 6px 14px; }
  .team-grid { gap: 28px 18px; }
  .person h3 { font-size: 1.08rem; }
  .person p:last-child { font-size: 0.95rem; }
  .legacy { grid-template-columns: minmax(0, 1fr); }
  .legacy img { max-width: 180px; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 480px) {
  .header-inner { gap: 12px; }
  .brand { gap: 10px; }
  .menu-toggle { width: 44px; min-height: 44px; padding: 0; justify-content: center; }
  .menu-toggle .menu-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
}

@media (max-width: 360px) {
  .brand-name { font-size: 0.92rem; }
  .brand-mark { padding: 0 7px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

.nowrap { white-space: nowrap; }

/* ==========================================================================
   Inner pages
   ========================================================================== */

.page-hero {
  background: var(--mist);
  border-bottom: 1px solid var(--line);
  padding: clamp(56px, 7vw, 96px) 0 clamp(48px, 6vw, 80px);
}
.page-hero h1 { max-width: 20ch; margin-bottom: 22px; }
.page-hero .lede { max-width: 64ch; }
.page-hero .hero-actions { margin-top: 32px; }
.page-hero-tall { padding-bottom: clamp(72px, 10vw, 140px); }
.credential {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--slate-600);
}
.credential::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brass);
}
.notice {
  margin-top: 28px;
  max-width: 64ch;
  padding: 16px 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 3px solid var(--brass);
  font-size: 1rem;
  color: var(--slate-600);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}
.split > div > h2 { margin-bottom: 18px; }

/* Long-form text */
.prose { color: var(--slate-900); }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin-top: 1.8em; }
.prose > h2:first-child { margin-top: 0; }
.prose > .report-card + h2 { margin-top: 1.4em; }
.prose h3 { font-size: 1.3rem; margin-top: 1.6em; }
.prose p,
.prose li { color: var(--slate-600); }
.prose ul,
.prose ol { padding-left: 1.25em; }
.prose li + li { margin-top: 0.5em; }
.prose a { color: var(--slate-950); text-decoration-color: var(--brass); text-underline-offset: 3px; }
.prose strong { color: var(--slate-950); font-weight: 600; }

.pin {
  margin-left: 3px;
  font-size: 0.86em;
  color: var(--slate-500);
  white-space: nowrap;
}
.pin::before { content: "("; }
.pin::after { content: ")"; }

.case-list { list-style: none; padding: 0 !important; border-top: 1px solid var(--line); }
.case-list li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); margin: 0 !important; }
.case-list .case { color: var(--slate-900); }
.case-list .tag {
  flex: none;
  align-self: center;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--slate-500);
}

.facts {
  position: sticky;
  top: 100px;
  padding: clamp(24px, 3vw, 36px);
  background: var(--mist);
  border-top: 3px solid var(--slate);
}
.facts-title { font-size: 1.35rem !important; margin-bottom: 18px; }
.facts dl { margin: 0; }
.facts dl > div { padding: 12px 0; border-top: 1px solid var(--line); }
.facts dt {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 2px;
}
.facts dd { margin: 0; color: var(--slate-950); font-size: 1.02rem; line-height: 1.45; }

.rules {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.rules-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rules article { background: var(--white); padding: clamp(24px, 3vw, 36px); }
.rules h3 { font-size: 1.2rem; margin-bottom: 10px; }
.rules p { color: var(--slate-600); font-size: 1.04rem; }
.rules .cite { margin-top: 12px; }
.criteria { margin-top: 28px; max-width: 80ch; color: var(--slate-600); }
.criteria strong { color: var(--slate-950); }

/* History list */
.history { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.history li {
  display: grid;
  grid-template-columns: 90px minmax(0, 1.3fr) minmax(0, 1.5fr) minmax(0, 0.8fr);
  gap: 6px 24px;
  align-items: baseline;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.history .yr { font-family: var(--serif); font-weight: 600; font-size: 1.1rem; color: var(--brass); font-variant-numeric: lining-nums; }
.history .fund { font-weight: 600; color: var(--slate-950); }
.history .for { color: var(--slate-600); font-size: 1rem; }
.history .sector { color: var(--slate-500); font-size: 0.92rem; }
.history li.current { background: var(--white); margin: 0 -16px; padding-left: 16px; padding-right: 16px; border-left: 3px solid var(--brass); }
.source-note { margin-top: 20px; font-size: 0.9rem; color: var(--slate-500); max-width: 90ch; }
.source-note a { color: var(--slate-600); text-underline-offset: 3px; }

/* Process phases */
.phase {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 24px clamp(32px, 5vw, 72px);
  padding: clamp(32px, 4vw, 48px) 0;
  border-top: 1px solid var(--line);
}
.phase:last-child { border-bottom: 1px solid var(--line); }
.phase-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 6px;
}
.phase-head h2 { font-size: clamp(1.6rem, 2.4vw, 2rem); }
.phase-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; }
.phase-steps li { position: relative; padding-left: 64px; }
.phase-steps li::before {
  content: attr(data-n);
  position: absolute;
  left: 0;
  top: 0;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--brass);
  font-variant-numeric: lining-nums;
  background: var(--white);
}
.phase-steps h3 { font-size: 1.3rem; margin: 6px 0 8px; }
.phase-steps p { color: var(--slate-600); max-width: 70ch; }

.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.checklist li { position: relative; padding-left: 34px; color: var(--slate-900); }
.checklist li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.35em;
  width: 16px;
  height: 9px;
  border-left: 2px solid var(--brass);
  border-bottom: 2px solid var(--brass);
  transform: rotate(-45deg);
}

/* Document layout with table of contents */
.doc-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}
.toc { position: sticky; top: 104px; }
.toc-title {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 12px;
}
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.toc a {
  display: block;
  padding: 7px 0 7px 16px;
  margin-left: -1px;
  border-left: 2px solid transparent;
  font-size: 0.98rem;
  color: var(--slate-600);
  text-decoration: none;
}
.toc a:hover { color: var(--slate-950); border-left-color: var(--brass); }
.doc { max-width: 760px; }
.doc h2 { scroll-margin-top: 100px; }

.report-card {
  padding: 24px 28px;
  background: var(--mist);
  border-left: 3px solid var(--slate);
}
.report-card .label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass);
}
.report-card .report-title {
  margin: 6px 0 8px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.3rem;
  line-height: 1.3;
  color: var(--slate-950);
}
.report-card p { font-size: 1rem; }

.big-list { counter-reset: big; list-style: none; padding: 0 !important; }
.big-list li { counter-increment: big; position: relative; padding: 16px 0 16px 56px; border-top: 1px solid var(--line); margin: 0 !important; }
.big-list li:last-child { border-bottom: 1px solid var(--line); }
.big-list li::before {
  content: counter(big);
  position: absolute;
  left: 8px;
  top: 12px;
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--brass);
  font-variant-numeric: lining-nums;
}
.step-list li,
.point-list li { padding-left: 4px; }
.step-list li::marker { font-weight: 700; color: var(--brass); }
.point-list li::marker { color: var(--brass); }

.pull {
  margin: 2em 0 !important;
  padding: 28px 32px;
  background: var(--slate-900);
  color: var(--white);
}
.pull p:first-child {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.35rem;
  line-height: 1.45;
  color: var(--white);
}
.pull .src { margin-top: 12px; font-size: 0.92rem; color: var(--on-dark-muted); }
.pull .pin { color: var(--on-dark-muted); }

.case-notes { margin: 0; }
.case-notes > div { padding: 18px 0; border-top: 1px solid var(--line); }
.case-notes > div:last-child { border-bottom: 1px solid var(--line); }
.case-notes dt { font-weight: 700; color: var(--slate-950); margin-bottom: 6px; }
.case-notes dd { margin: 0; color: var(--slate-600); }

.sources {
  margin-top: 3em !important;
  padding: 24px 28px;
  border: 1px solid var(--line);
  font-size: 0.98rem;
}
.sources h2 { font-size: 1.2rem !important; margin: 0 0 10px !important; font-family: var(--sans); font-weight: 700; letter-spacing: 0.02em; }
.sources p + p { margin-top: 8px; }

/* Team bios */
.bio {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  padding: clamp(32px, 4vw, 48px) 0;
  border-top: 1px solid var(--line);
}
.bio img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  filter: grayscale(1) contrast(1.04);
  background: var(--mist-2);
}
.bio h3 { font-size: 1.6rem; margin-bottom: 4px; }
.bio .role {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 16px;
}
.bio p:not(.role) { color: var(--slate-600); max-width: 70ch; }
.bio p + p:not(.role) { margin-top: 12px; }
.tint .bio { border-top: 0; padding-top: 0; }

/* Feature row (Attorneys General) */
.feature-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}
.feature {
  position: relative;
  padding: clamp(28px, 3vw, 40px);
  background: var(--slate-900);
  color: var(--on-dark);
}
.feature::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--brass-light); }
.feature .label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass-light);
}
.feature h3 { margin: 10px 0 12px; font-size: 1.6rem; color: var(--white); }
.feature p:not(.label) { color: var(--on-dark); margin-bottom: 22px; }
.feature-list > p { color: var(--slate-600); margin-bottom: 18px; }
.feature-list strong { color: var(--slate-950); }

/* Stages (class counsel) */
.stage-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  counter-reset: stage;
  border-top: 1px solid var(--line);
}
.stage-list li {
  counter-increment: stage;
  position: relative;
  padding: 28px 22px 0 0;
}
.stage-list li::before {
  content: "0" counter(stage);
  display: block;
  margin-bottom: 14px;
  font-family: var(--serif);
  font-weight: 600;
  color: var(--brass);
  font-variant-numeric: lining-nums;
}
.stage-list li::after {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 44px;
  height: 3px;
  background: var(--brass);
}
.stage-list h3 { font-size: 1.2rem; margin-bottom: 10px; }
.stage-list p { color: var(--slate-600); font-size: 1rem; }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}
.contact-form { display: grid; gap: 20px; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.field { display: grid; gap: 8px; }
.field label { font-weight: 600; font-size: 1rem; color: var(--slate-950); }
.field .req { color: var(--brass); }
.field .optional { font-weight: 400; color: var(--slate-500); }
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid #b9bdc9;
  border-radius: var(--radius);
  background: var(--white);
  color: var(--slate-950);
  font: inherit;
  font-size: 1.02rem;
}
.field textarea { resize: vertical; min-height: 160px; }
.field input:focus,
.field select:focus,
.field textarea:focus { outline: 2px solid var(--brass); outline-offset: 1px; border-color: var(--slate); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.form-actions .btn { min-width: 180px; cursor: pointer; }
.form-actions .btn:disabled { opacity: 0.7; cursor: progress; }
.privacy { font-size: 0.92rem; color: var(--slate-500); }
.form-status {
  padding: 14px 18px;
  border-left: 3px solid #a3392f;
  background: #fbefed;
  color: #6f231c;
  font-size: 1rem;
}
.form-success {
  padding: clamp(28px, 4vw, 44px);
  background: var(--mist);
  border-top: 3px solid var(--brass);
}
.form-success h2 { font-size: 1.6rem; margin-bottom: 10px; }
.form-success p { color: var(--slate-600); }
.contact-aside { display: grid; gap: 0; border-top: 3px solid var(--slate); background: var(--mist); padding: 8px clamp(24px, 3vw, 32px) 24px; }
.contact-card { padding: 18px 0; border-bottom: 1px solid var(--line); }
.contact-card h2 { font-family: var(--sans); font-size: 1rem; font-weight: 700; letter-spacing: 0.02em; color: var(--slate-950); }
.contact-card .role { font-size: 0.92rem; color: var(--slate-500); }
.contact-card p,
.contact-card address { margin-top: 4px; font-style: normal; color: var(--slate-600); font-size: 1rem; line-height: 1.6; }
.contact-card a { color: var(--slate-950); text-underline-offset: 3px; }
.contact-aside .note { padding-top: 18px; font-size: 0.92rem; color: var(--slate-500); }

/* FAQ */
.faq { border-top: 1px solid var(--line); margin-top: 1.4em !important; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  position: relative;
  padding: 18px 40px 18px 0;
  font-weight: 600;
  color: var(--slate-950);
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 6px;
  top: 14px;
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--brass);
}
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding: 0 0 18px; margin: 0; }

.link-list { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 14px; }

/* Inner-page responsive rules */
@media (max-width: 1080px) {
  .stage-list { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 36px; }
  .history li { grid-template-columns: 80px minmax(0, 1fr); }
  .history .for,
  .history .sector { grid-column: 2; }
}

@media (max-width: 960px) {
  .split,
  .feature-row,
  .contact-grid,
  .doc-layout { grid-template-columns: minmax(0, 1fr); }
  .facts { position: static; }
  .toc { position: static; padding: 18px 20px; background: var(--mist); }
  .rules-3 { grid-template-columns: minmax(0, 1fr); }
  .phase { grid-template-columns: minmax(0, 1fr); }
  .bio { grid-template-columns: 160px minmax(0, 1fr); }
}

@media (max-width: 640px) {
  .rules { grid-template-columns: minmax(0, 1fr); }
  .stage-list { grid-template-columns: minmax(0, 1fr); }
  .field-row { grid-template-columns: minmax(0, 1fr); }
  .bio { grid-template-columns: minmax(0, 1fr); }
  .bio img { max-width: 180px; }
  .case-list li { flex-direction: column; gap: 6px; }
  .case-list .tag { align-self: flex-start; }
  .history li.current { margin: 0; }
  .pull { padding: 22px; }
  .pull p:first-child { font-size: 1.2rem; }
}
