/* M&A Risk Partners — shared design system */

:root {
  /* Palette: pine + cream + brass */
  --ink: oklch(0.22 0.055 255);
  --ink-soft: oklch(0.36 0.045 255);
  --ink-mute: oklch(0.50 0.030 255);
  --paper: oklch(0.97 0.008 80);
  --paper-warm: oklch(0.94 0.014 70);
  --sand: oklch(0.91 0.020 75);
  --sand-deep: oklch(0.84 0.024 70);
  --brass: oklch(0.55 0.075 70);
  --brass-deep: oklch(0.46 0.08 65);
  --brass-soft: oklch(0.92 0.025 75);
  --rule: oklch(0.22 0.055 255 / 0.14);
  --rule-soft: oklch(0.22 0.055 255 / 0.07);

  /* Layout */
  --max: 1480px;
  --pad-x: clamp(1.375rem, 5vw, 5.5rem);
  --header: 76px;

  /* Easing */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-snap: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);

  /* Type */
  --serif: "Newsreader", "Iowan Old Style", "Hoefler Text", "Source Serif Pro", Georgia, serif;
  --sans: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;

  /* Photo treatment */
  --photo-grade: contrast(1.03) saturate(0.72) sepia(0.10);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-weight: 400;
  font-variant-numeric: lining-nums proportional-nums;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body.menu-open { overflow: hidden; }

img, svg { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

button, input, select, textarea { font: inherit; color: inherit; }

button { cursor: pointer; }

/* Layout primitives */
.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

.section { padding: clamp(4rem, 7.5vw, 7rem) 0; }

/* Type tokens */
.eyebrow {
  font-family: var(--sans);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass);
  margin: 0 0 1.4rem;
}

.eyebrow.on-dark { color: var(--paper-warm); opacity: 0.78; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--ink);
  margin: 0 0 1.25rem;
  letter-spacing: -0.012em;
  font-optical-sizing: auto;
  font-variant-numeric: oldstyle-nums;
}

h1 {
  font-size: clamp(2.75rem, 6.6vw, 6rem);
  line-height: 1.0;
  letter-spacing: -0.028em;
  font-weight: 400;
}

h2 {
  font-size: clamp(2.125rem, 4.6vw, 4rem);
  line-height: 1.04;
  letter-spacing: -0.022em;
}

h3 {
  font-size: clamp(1.4rem, 2.4vw, 1.875rem);
  line-height: 1.2;
  letter-spacing: -0.014em;
}

.lede {
  font-family: var(--sans);
  font-size: clamp(1.0625rem, 1.4vw, 1.3125rem);
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 60ch;
  margin: 0;
  font-weight: 400;
}

p { margin: 0 0 1.125rem; max-width: 64ch; }

.body-copy {
  color: var(--ink-soft);
  font-size: 1.0625rem;
  line-height: 1.7;
  max-width: 60ch;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1.375rem;
  font-family: var(--sans);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--paper);
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 999px;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
  white-space: nowrap;
  min-height: 3rem;
}

.btn::after {
  content: "→";
  font-family: var(--serif);
  font-size: 1rem;
  font-style: italic;
  transition: transform 0.3s var(--ease);
}

.btn:hover { background: var(--brass-deep); border-color: var(--brass-deep); }
.btn:hover::after { transform: translateX(4px); }

.btn.ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--rule);
}
.btn.ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.btn.on-dark { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn.on-dark:hover { background: var(--brass); color: var(--paper); border-color: var(--brass); }

.btn.ghost-on-dark {
  background: transparent;
  color: var(--paper);
  border-color: rgba(247, 243, 235, 0.32);
}
.btn.ghost-on-dark:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.25rem;
}

/* Photo treatment */
.photo {
  position: relative;
  background: var(--ink);
  overflow: hidden;
}
.photo > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: var(--photo-grade);
  transform: scale(1.001);
}
.photo.tint::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, oklch(0.22 0.055 255 / 0.45) 100%);
  pointer-events: none;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header);
  z-index: 60;
  background: oklch(0.97 0.008 80 / 0.85);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.site-header.scrolled {
  background: oklch(0.97 0.008 80 / 0.96);
  border-bottom-color: var(--rule-soft);
}

.scroll-progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 1.5px;
  width: 100%;
  transform-origin: left;
  transform: scaleX(var(--scroll-progress, 0));
  background: var(--brass);
  z-index: 1;
  will-change: transform;
}

.nav {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  height: 100%;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}
.brand img {
  width: 168px;
  height: auto;
  transition: opacity 0.4s var(--ease), transform 0.5s var(--ease);
}
.site-header.scrolled .brand img { transform: scale(0.94); }

.nav-links {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 2rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-soft);
  letter-spacing: 0.005em;
}
.nav-links a { transition: color 0.2s var(--ease); position: relative; }
.nav-links a:hover { color: var(--brass-deep); }
.nav-links a.is-active { color: var(--ink); }
.nav-links a.is-active:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 1.5px;
  background: var(--brass);
}
.nav-links .btn { color: var(--paper); }

.menu-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 36px;
  background: transparent;
  border: 0;
  padding: 8px 4px;
  flex-direction: column;
  justify-content: space-between;
}
.menu-toggle span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.menu-open .menu-toggle span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

main { padding-top: var(--header); }

/* PAGE HERO (used on subpages) */
.page-hero {
  background: var(--paper);
  padding: clamp(4rem, 8vw, 7rem) 0 clamp(3rem, 5vw, 5rem);
  border-bottom: 1px solid var(--rule);
}

.page-hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: clamp(1.75rem, 5vw, 5rem);
  align-items: end;
}

.page-hero h1 {
  font-size: clamp(2.5rem, 5.4vw, 4.5rem);
  line-height: 1.02;
  margin: 0;
  max-width: 16ch;
}

.page-hero h1 em {
  font-style: italic;
  font-weight: 400;
  color: var(--brass);
}

.page-hero .lede {
  padding-top: 0.75rem;
  max-width: 56ch;
}

/* HOME HERO (full-bleed) */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header));
  max-height: 960px;
  background: var(--ink);
  overflow: hidden;
  isolation: isolate;
  color: var(--paper);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  transform: translate3d(0, var(--hero-photo-y, 0), 0);
  will-change: transform;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.05) saturate(0.7) sepia(0.10) brightness(0.78);
  transform: scale(1.08);
  opacity: 0;
  animation: heroPhotoIn 1.8s var(--ease-snap) 0.1s forwards;
  will-change: transform, opacity;
}

@keyframes heroPhotoIn {
  to { opacity: 1; transform: scale(1); }
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(100deg, oklch(0.14 0.06 255 / 0.88) 0%, oklch(0.16 0.06 255 / 0.62) 42%, oklch(0.16 0.06 255 / 0.30) 100%),
    radial-gradient(ellipse at 25% 65%, oklch(0.12 0.06 255 / 0.45), transparent 65%),
    linear-gradient(180deg, oklch(0.12 0.06 255 / 0.10) 0%, transparent 30%, oklch(0.12 0.06 255 / 0.40) 100%);
}

.hero-text {
  position: relative;
  z-index: 2;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(4rem, 10vw, 8rem) var(--pad-x) clamp(3rem, 6vw, 5rem);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: calc(100vh - var(--header));
  max-height: 960px;
}
.hero-text > * {
  opacity: 0;
  transform: translateY(20px);
  animation: heroIn 1s var(--ease-snap) forwards;
  max-width: 56rem;
}
.hero-text > *:nth-child(1) { animation-delay: 0.15s; }
.hero-text > *:nth-child(2) { animation-delay: 0.30s; }
.hero-text > *:nth-child(3) { animation-delay: 0.46s; }
.hero-text > *:nth-child(4) { animation-delay: 0.62s; }

@keyframes heroIn {
  to { opacity: 1; transform: translateY(0); }
}

.hero h1 {
  color: var(--paper);
  max-width: 18ch;
  text-shadow: 0 1px 30px oklch(0.12 0.06 255 / 0.45);
  margin-bottom: 1.5rem;
}

.hero h1 em {
  font-style: italic;
  font-weight: 400;
  color: oklch(0.78 0.085 70);
  letter-spacing: -0.02em;
}

.hero-lede {
  font-size: clamp(1.0625rem, 1.45vw, 1.375rem);
  line-height: 1.55;
  color: oklch(0.94 0.014 70 / 0.86);
  max-width: 54ch;
  margin: 0;
  font-weight: 400;
}

.hero .actions { margin-top: 2.25rem; }

.hero-meta {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  max-width: 30rem;
  padding-top: 1.5rem;
  border-top: 1px solid oklch(0.97 0.008 80 / 0.22);
}
.hero-meta div span {
  display: block;
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
  color: oklch(0.94 0.014 70 / 0.62);
  margin-bottom: 0.5rem;
}
.hero-meta div strong {
  display: block;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.1875rem;
  color: var(--paper);
  letter-spacing: -0.012em;
}

/* Practice cards (uniform grid) */
.practice-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1.125rem, 2vw, 1.75rem);
}

.practice {
  position: relative;
  overflow: hidden;
  background: var(--paper-warm);
  display: flex;
  flex-direction: column;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.practice:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px oklch(0.22 0.055 255 / 0.10);
}

.practice .photo {
  aspect-ratio: 4 / 5;
  width: 100%;
}
.practice .photo > img {
  filter: var(--photo-grade) brightness(0.94);
  transition: transform 0.9s var(--ease), filter 0.7s var(--ease);
}
.practice:hover .photo > img {
  transform: scale(1.04);
  filter: var(--photo-grade) brightness(1.0);
}

.practice .meta {
  padding: 1.375rem 1.375rem 1.625rem;
  background: var(--paper);
  border-top: 1px solid var(--rule);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.practice-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.875rem;
  color: var(--brass);
  display: block;
  margin-bottom: 0.625rem;
  font-variant-numeric: oldstyle-nums;
}

.practice h3 {
  font-size: clamp(1.25rem, 1.6vw, 1.5rem);
  margin-bottom: 0.625rem;
  line-height: 1.18;
  letter-spacing: -0.018em;
}

.practice p {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0;
}

/* Editorial split (used on practices, about) */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5.5rem);
  align-items: center;
}
.split.media-left .split-media { order: -1; }
.split-media {
  aspect-ratio: 4 / 5;
}

.split-num {
  font-family: var(--serif);
  font-style: italic;
  color: var(--brass);
  font-size: 1rem;
  letter-spacing: 0;
  margin-bottom: 0.875rem;
  font-variant-numeric: oldstyle-nums;
  display: block;
}

.split h2 { max-width: 14ch; margin-bottom: 1.5rem; }

.split-spec {
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}
.split-spec dt {
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink-mute);
  margin-bottom: 0.4rem;
}
.split-spec dd {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  line-height: 1.4;
  color: var(--ink);
  letter-spacing: -0.005em;
}

/* Charter (Standards) */
.charter {
  background: var(--paper);
  padding: clamp(4.5rem, 8vw, 7.5rem) 0 clamp(3.5rem, 6vw, 6rem);
  border-top: 1px solid var(--rule);
}

.charter-head {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  gap: clamp(1.75rem, 5vw, 5.5rem);
  align-items: end;
  margin-bottom: clamp(2.75rem, 5vw, 4.5rem);
}
.charter-head h2 { max-width: 16ch; margin: 0; }
.charter-head .lede { padding-top: 0.625rem; }

.charter-list {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

.standard {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1.1fr) minmax(0, 2.2fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  padding: clamp(1.75rem, 3.5vw, 2.5rem) 0;
  border-top: 1px solid var(--rule);
  align-items: baseline;
  position: relative;
}
.standard:last-child { border-bottom: 1px solid var(--rule); }

.standard-num {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.125rem;
  color: var(--brass);
  letter-spacing: 0.01em;
  font-variant-numeric: oldstyle-nums;
}

.standard-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  color: var(--ink);
  line-height: 1.2;
  letter-spacing: -0.014em;
}

.standard-title em {
  display: block;
  font-style: italic;
  font-weight: 400;
  color: var(--brass);
  font-size: 0.72em;
  margin-top: 0.35em;
  letter-spacing: -0.005em;
}

.standard-body {
  color: var(--ink-soft);
  font-size: 1.0625rem;
  line-height: 1.65;
  max-width: 56ch;
}

/* About copy block */
.about-band { background: var(--paper-warm); border-top: 1px solid var(--rule); }
.about-band .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}
.about-band .photo { aspect-ratio: 4 / 5; max-height: 720px; }
.about-band h2 { max-width: 16ch; }

.stats-row {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.75rem;
}
.stat strong {
  display: block;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.25rem, 4vw, 3.25rem);
  line-height: 1;
  color: var(--brass);
  margin-bottom: 0.625rem;
  letter-spacing: -0.022em;
  font-variant-numeric: lining-nums;
}
.stat span {
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--ink-soft);
  display: block;
  max-width: 22ch;
}

/* Process (dark) */
.process { background: var(--ink); color: var(--paper); }
.process h2, .process h3 { color: var(--paper); }
.process-head { max-width: 720px; margin-bottom: clamp(3.5rem, 6vw, 5rem); }
.process-head .lede { color: var(--paper-warm); opacity: 0.78; }

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 2.75rem);
}
.step .photo {
  aspect-ratio: 4 / 3;
  margin-bottom: 1.625rem;
  border: 1px solid oklch(0.97 0.008 80 / 0.08);
}
.step .photo > img { filter: var(--photo-grade) brightness(0.85); }
.step-num {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.9375rem;
  color: var(--brass-soft);
  margin-bottom: 0.625rem;
  font-variant-numeric: oldstyle-nums;
}
.step h3 { margin-bottom: 0.875rem; font-size: clamp(1.4rem, 2vw, 1.75rem); letter-spacing: -0.018em; }
.step p {
  color: var(--paper-warm);
  opacity: 0.78;
  font-size: 0.9375rem;
  line-height: 1.65;
  max-width: 38ch;
  margin: 0;
}

/* Coverage list */
.coverage-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  gap: clamp(2.5rem, 5vw, 5.25rem);
  align-items: start;
}
.coverage-list {
  list-style: none;
  margin: 0;
  padding: 0;
  columns: 2;
  column-gap: 3.5rem;
  column-rule: 1px solid var(--rule);
}
.coverage-list li {
  break-inside: avoid;
  padding: 0.875rem 0;
  border-bottom: 1px solid var(--rule);
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.0625rem, 1.4vw, 1.25rem);
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  letter-spacing: -0.008em;
}
.coverage-list li::after {
  content: attr(data-tag);
  font-family: var(--sans);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
  align-self: center;
}

/* Industries lab */
.industries-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: end;
  margin-bottom: clamp(2.25rem, 4vw, 3.5rem);
}
.industry-lab {
  display: grid;
  grid-template-columns: minmax(220px, 0.55fr) minmax(0, 1.45fr);
  gap: clamp(1.5rem, 2.5vw, 2.5rem);
  align-items: stretch;
}
.industry-buttons { border-top: 1px solid var(--rule); align-self: start; }
.industry-buttons-head {
  font-family: var(--sans);
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink-mute);
  padding: 0 0 0.875rem;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.industry-buttons-head em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 0.875rem;
  color: var(--brass);
  letter-spacing: 0;
  text-transform: none;
}
.industry-button {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--rule);
  background: transparent;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem 0;
  text-align: left;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.9375rem;
  letter-spacing: -0.005em;
  transition: color 0.25s var(--ease), padding-left 0.25s var(--ease);
}
.industry-button::after {
  content: "→";
  font-family: var(--serif);
  font-style: italic;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
  color: var(--brass);
}
.industry-button:hover { color: var(--ink); }
.industry-button.is-active { color: var(--brass-deep); padding-left: 12px; }
.industry-button.is-active::after { opacity: 1; transform: translateX(0); }

.industry-detail {
  background: var(--paper-warm);
  padding: clamp(1.75rem, 3.2vw, 3rem);
  position: relative;
  border-left: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: clamp(1.25rem, 2.2vw, 1.875rem);
}
.industry-detail > * {
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease);
}
.industry-detail.is-changing > * { opacity: 0; transform: translateY(6px); }

.industry-head { display: flex; flex-direction: column; gap: 0.25rem; }
.industry-detail h3 {
  font-size: clamp(1.625rem, 2.6vw, 2.25rem);
  margin: 0;
  color: var(--ink);
  letter-spacing: -0.024em;
}
.industry-lead {
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.6;
  max-width: 64ch;
  margin: 0;
}
.industry-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--rule);
  background: var(--paper);
}
.industry-stat {
  padding: clamp(1rem, 1.6vw, 1.25rem);
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.industry-stat:nth-child(2n) { border-right: 0; }
.industry-stat:nth-last-child(-n+2) { border-bottom: 0; }
.industry-stat-label {
  display: block;
  font-family: var(--sans);
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink-mute);
  margin-bottom: 0.5rem;
}
.industry-stat-value {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.35;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.industry-actions-block {
  padding-top: clamp(1rem, 1.6vw, 1.5rem);
  border-top: 1px solid var(--rule);
}
.industry-actions-label {
  font-family: var(--sans);
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink-mute);
  margin-bottom: 0.875rem;
}
.industry-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.industry-actions li {
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--ink-soft);
  padding-left: 1rem;
  position: relative;
}
.industry-actions li::before {
  content: "+";
  position: absolute;
  left: 0;
  color: var(--brass);
  font-weight: 600;
}

/* Market access cells */
.market-head { max-width: 760px; margin-bottom: clamp(2.5rem, 4vw, 3.75rem); }
.market-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
.market-cell {
  background: var(--paper);
  padding: clamp(1.625rem, 2.6vw, 2.25rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 14rem;
}
.market-cell h3 { font-size: clamp(1.25rem, 1.6vw, 1.5rem); margin-bottom: 0.875rem; letter-spacing: -0.018em; }
.market-cell p { font-size: 0.9375rem; line-height: 1.6; color: var(--ink-soft); margin: 0; max-width: 32ch; }
.market-tag {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.875rem;
  color: var(--brass);
  margin-bottom: 1.125rem;
  font-variant-numeric: oldstyle-nums;
}
.market-note {
  margin-top: clamp(1.75rem, 3vw, 2.5rem);
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.9375rem;
  color: var(--ink-mute);
  max-width: 70ch;
  line-height: 1.6;
}

/* Pre-CTA */
.pre-cta {
  position: relative;
  color: var(--paper);
  overflow: hidden;
  isolation: isolate;
}
.pre-cta .photo-bg { position: absolute; inset: 0; z-index: -1; }
.pre-cta .photo-bg img {
  width: 100%; height: 100%; object-fit: cover;
  filter: var(--photo-grade) brightness(0.55);
}
.pre-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, oklch(0.14 0.06 255 / 0.55), oklch(0.14 0.06 255 / 0.78));
  z-index: -1;
}
.pre-cta .wrap {
  padding-top: clamp(7.5rem, 14vw, 12.5rem);
  padding-bottom: clamp(7.5rem, 14vw, 12.5rem);
  text-align: center;
}
.pre-cta .eyebrow { max-width: none; }
.pre-cta h2 { color: var(--paper); max-width: 22ch; margin: 0 auto 1.5rem; }
.pre-cta .lede { color: var(--paper-warm); opacity: 0.85; max-width: 56ch; margin: 0 auto; }
.pre-cta .actions { justify-content: center; }

/* Contact */
.contact-wrap {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.3fr);
  gap: clamp(2.5rem, 5vw, 5.25rem);
  align-items: start;
}
.contact-info h2 { max-width: 14ch; }
.contact-lines { margin-top: 2.25rem; border-top: 1px solid var(--rule); }
.contact-line {
  padding: 1.125rem 0;
  border-bottom: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 1.125rem;
  align-items: baseline;
}
.contact-line span {
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 600;
}
.contact-line a, .contact-line p {
  font-family: var(--serif);
  font-size: 1.25rem;
  color: var(--ink);
  margin: 0;
  letter-spacing: -0.012em;
  font-variant-numeric: oldstyle-nums;
}
.contact-line a:hover { color: var(--brass-deep); }

/* Form */
form.review-form {
  background: var(--paper);
  padding: clamp(1.75rem, 3.4vw, 2.75rem);
  border: 1px solid var(--rule);
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.125rem;
}
.field { display: flex; flex-direction: column; gap: 0.5rem; }
.field.full { grid-column: 1 / -1; }
label {
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink-mute);
}
input, select, textarea {
  width: 100%;
  background: var(--paper-warm);
  border: 1px solid transparent;
  border-bottom: 1px solid var(--rule);
  padding: 0.75rem 0.875rem;
  min-height: 3rem;
  color: var(--ink);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
  font-family: var(--sans);
  font-size: 1rem;
}
textarea { min-height: 9rem; resize: vertical; font-family: var(--sans); }
input:focus, select:focus, textarea:focus {
  outline: none;
  background: var(--paper);
  border-color: var(--brass);
}
.form-foot {
  display: flex;
  align-items: center;
  gap: 1.125rem;
  margin-top: 1.625rem;
  flex-wrap: wrap;
}
.form-status {
  font-size: 0.9375rem;
  color: var(--ink-soft);
  font-style: italic;
  font-family: var(--serif);
  margin: 0;
  letter-spacing: -0.005em;
}
.form-note {
  margin-top: 1rem;
  font-size: 0.8125rem;
  color: var(--ink-mute);
  max-width: 50ch;
  line-height: 1.55;
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(4rem, 7vw, 6rem) 0 2.25rem;
}
.site-footer .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr));
  gap: clamp(2rem, 4vw, 4rem);
}
.footer-brand p {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.4rem, 2vw, 1.75rem);
  line-height: 1.3;
  color: var(--paper);
  max-width: 22ch;
  margin: 0 0 1.75rem;
  letter-spacing: -0.014em;
}
.footer-brand img { width: 168px; filter: brightness(0) invert(1); opacity: 0.9; }

.footer-col h4 {
  font-family: var(--sans);
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--paper-warm);
  opacity: 0.62;
  margin: 0 0 1.125rem;
}
.footer-col a, .footer-col p, .footer-col span {
  display: block;
  color: var(--paper-warm);
  opacity: 0.85;
  font-size: 0.9375rem;
  line-height: 1.7;
  margin-bottom: 0.375rem;
  font-family: var(--sans);
}
.footer-col a:hover { opacity: 1; color: var(--brass-soft); }

.footer-bottom {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.25rem var(--pad-x) 0;
  margin-top: clamp(3.5rem, 6vw, 5rem);
  border-top: 1px solid oklch(0.97 0.008 80 / 0.12);
  display: flex;
  justify-content: space-between;
  gap: 1.125rem;
  flex-wrap: wrap;
  font-size: 0.75rem;
  color: var(--paper-warm);
  opacity: 0.62;
  letter-spacing: 0.005em;
}

/* Reveal */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.85s var(--ease-snap), transform 0.85s var(--ease-snap);
  transition-delay: calc(var(--reveal-i, 0) * 90ms);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

[data-photo-reveal] {
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 1s var(--ease-snap), transform 1.2s var(--ease-snap);
  transition-delay: calc(var(--reveal-i, 0) * 80ms);
}
[data-photo-reveal].is-visible {
  opacity: 1;
  transform: scale(1);
}

/* FAQ */
.faq-list { border-top: 1px solid var(--rule); margin-top: 2.5rem; }
.faq-item {
  border-bottom: 1px solid var(--rule);
  padding: 1.5rem 0;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  font-family: var(--serif);
  font-size: clamp(1.125rem, 1.6vw, 1.5rem);
  color: var(--ink);
  letter-spacing: -0.014em;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-family: var(--sans);
  font-weight: 400;
  color: var(--brass);
  font-size: 1.5rem;
  transition: transform 0.3s var(--ease);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p {
  margin: 1rem 0 0;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.65;
  max-width: 64ch;
}

/* Responsive */
@media (max-width: 1100px) {
  .hero { max-height: none; }
  .hero-text { padding: clamp(5rem, 12vw, 7rem) var(--pad-x) clamp(2.5rem, 6vw, 4rem); }
  .hero h1 { max-width: 22ch; }

  .charter-head,
  .practices-head,
  .industries-head,
  .about-band .wrap,
  .coverage-wrap,
  .contact-wrap,
  .page-hero .wrap,
  .split {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .standard {
    grid-template-columns: 60px 1fr;
    gap: 1.125rem;
  }
  .standard-body { grid-column: 2 / -1; }

  .practice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .industry-lab { grid-template-columns: 1fr; }
  .industry-detail { border-left: 0; border-top: 1px solid var(--rule); }
  .industry-stats { grid-template-columns: 1fr; }
  .industry-stat { border-right: 0; }
  .industry-stat:nth-last-child(-n+2) { border-bottom: 1px solid var(--rule); }
  .industry-stat:last-child { border-bottom: 0; }

  .market-grid { grid-template-columns: repeat(2, 1fr); }
  .site-footer .wrap { grid-template-columns: 1fr 1fr; }

  .nav-links {
    position: fixed;
    inset: var(--header) 0 auto 0;
    background: var(--paper);
    flex-direction: column;
    align-items: flex-start;
    padding: 2.25rem var(--pad-x);
    gap: 1.375rem;
    font-size: 1.5rem;
    font-family: var(--serif);
    font-weight: 400;
    letter-spacing: -0.012em;
    color: var(--ink);
    border-bottom: 1px solid var(--rule);
    display: none;
  }
  .nav-links a.is-active::after { display: none; }
  .menu-open .nav-links { display: flex; }
  .menu-toggle { display: flex; }

  .split.media-left .split-media { order: 0; }
}

@media (max-width: 720px) {
  .practice-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .market-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: 1fr; }
  .coverage-list { columns: 1; column-rule: 0; }
  .industry-actions { grid-template-columns: 1fr; gap: 0.625rem; }
  .form-grid { grid-template-columns: 1fr; }
  .hero-meta { grid-template-columns: 1fr; gap: 1rem; }
  .hero h1 { max-width: 100%; }
  .site-footer .wrap { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
  .contact-line { grid-template-columns: 1fr; gap: 0.25rem; }
  .split-spec { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  [data-reveal], [data-photo-reveal] { opacity: 1; transform: none; }
}

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 2px;
}

/* Skip-to-content link (accessibility) */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 0.75rem 1rem;
  z-index: 100;
  font-family: var(--sans);
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 0 0 0.25rem 0;
}
.skip-link:focus {
  left: 0;
  top: 0;
  outline: 2px solid var(--brass);
  outline-offset: 2px;
}

/* ------------ HOME-SPECIFIC ------------ */
.home-section { padding: clamp(4rem, 7.5vw, 6.5rem) 0; }
.home-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: clamp(2rem, 5vw, 5rem); align-items: end; margin-bottom: clamp(2.25rem, 4vw, 3.5rem); }
.home-head h2 { max-width: 14ch; margin: 0; }
.home-head .lede { padding-top: 0.625rem; }
.home-head .head-link { font-family: var(--sans); font-weight: 600; font-size: 0.875rem; letter-spacing: 0.02em; color: var(--brass-deep); display: inline-flex; align-items: center; gap: 0.5rem; transition: color 0.25s var(--ease), gap 0.25s var(--ease); }
.home-head .head-link::after { content: "→"; font-family: var(--serif); font-style: italic; }
.home-head .head-link:hover { color: var(--ink); gap: 0.75rem; }

.charter-teaser { background: var(--paper-warm); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.charter-mini { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.charter-mini-item { background: var(--paper-warm); padding: clamp(1.5rem, 2.4vw, 2rem); }
.charter-mini-item .num { font-family: var(--serif); font-style: italic; font-size: 0.875rem; color: var(--brass); display: block; margin-bottom: 0.625rem; font-variant-numeric: oldstyle-nums; }
.charter-mini-item h3 { font-size: clamp(1.125rem, 1.4vw, 1.375rem); margin-bottom: 0.5rem; letter-spacing: -0.014em; }
.charter-mini-item h3 em { font-style: italic; color: var(--brass); font-weight: 400; display: block; font-size: 0.78em; margin-top: 0.25em; }
.charter-mini-item p { color: var(--ink-soft); font-size: 0.9375rem; line-height: 1.6; margin: 0; }
@media (max-width: 900px) { .charter-mini { grid-template-columns: 1fr; } }

.industries-teaser { background: var(--paper); }
.industry-cloud {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--rule);
}
.industry-cloud li {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--rule);
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  letter-spacing: -0.02em;
  color: var(--ink);
  display: flex;
  align-items: baseline;
  gap: 0.875rem;
}
.industry-cloud li:nth-child(odd) { border-right: 1px solid var(--rule); padding-right: 1.5rem; }
.industry-cloud li:nth-child(even) { padding-left: 1.5rem; }
.industry-cloud li::before {
  content: counter(list, decimal-leading-zero);
  counter-increment: list;
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--brass);
  font-weight: 600;
  font-variant-numeric: lining-nums;
}
.industry-cloud { counter-reset: list; }
@media (max-width: 720px) {
  .industry-cloud { grid-template-columns: 1fr; }
  .industry-cloud li:nth-child(odd) { border-right: 0; padding-right: 0; }
  .industry-cloud li:nth-child(even) { padding-left: 0; }
}

/* ------------ PRACTICES-SPECIFIC ------------ */
.practice-section { padding: clamp(4rem, 7vw, 6.5rem) 0; border-top: 1px solid var(--rule); }
.practice-section:nth-child(even) { background: var(--paper-warm); }
.practice-section .split h2 em { color: var(--brass); font-style: italic; font-weight: 400; }
.coverage-tags { margin-top: 1.5rem; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.coverage-tag {
  font-family: var(--sans);
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
}
.practice-section:nth-child(even) .coverage-tag { background: var(--paper); }
