/* ==================================================================
   Whitfield Crane LLP — institutional restraint
   White background, navy & brass, Cormorant + Inter
   ================================================================== */

:root {
  --paper: #ffffff;
  --paper-soft: #f4f3ef;     /* portrait placeholders, hover */
  --navy: #0e1b2c;
  --navy-soft: #1a2942;
  --charcoal: #1a1a1a;
  --charcoal-soft: #3a3a3a;
  --muted: #6e6c68;
  --brass: #8b7244;
  --brass-soft: #a89070;

  --hairline: rgba(14, 27, 44, 0.13);
  --hairline-strong: rgba(14, 27, 44, 0.28);
  --hairline-light: rgba(255, 255, 255, 0.18);

  --serif: "Cormorant Garamond", "EB Garamond", Garamond, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;

  --gutter: clamp(1.5rem, 4vw, 4rem);
  --section-y: clamp(5rem, 10vw, 9rem);
  --max: 1320px;
}

/* ============================================================== RESET */

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

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

body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.55;
  color: var(--charcoal);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "cv11";
}

img { max-width: 100%; display: block; }
ol, ul { list-style: none; padding: 0; margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
address { font-style: normal; }

::selection { background: var(--navy); color: var(--paper); }

/* ============================================================== HEADER */

.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .4s ease, background .4s ease;
}
.header.is-scrolled {
  border-bottom-color: var(--hairline);
  background: rgba(255, 255, 255, 0.94);
}

.header__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.05rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: .65rem;
}
.brand__mark {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.15rem;
  color: var(--navy);
  border: 1px solid var(--navy);
  padding: .12rem .45rem .18rem;
  line-height: 1;
  letter-spacing: .04em;
}
.brand__name {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.18rem;
  color: var(--navy);
  letter-spacing: .005em;
}
.brand__llp {
  font-family: var(--sans);
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-left: .25rem;
  vertical-align: 1px;
}

.nav { display: flex; align-items: center; }
.nav__list {
  display: flex;
  gap: 2.4rem;
}
.nav__list a {
  position: relative;
  font-size: .74rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--charcoal-soft);
  padding: .35rem 0;
  transition: color .25s ease;
}
.nav__list a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -.05rem;
  height: 1px;
  background: var(--brass);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s ease;
}
.nav__list a:hover { color: var(--navy); }
.nav__list a:hover::after,
.nav__list a.is-active::after { transform: scaleX(1); }
.nav__list a.is-active { color: var(--navy); }

.nav__toggle {
  display: none;
  width: 32px;
  height: 32px;
  position: relative;
}
.nav__toggle span {
  position: absolute;
  left: 4px; right: 4px;
  height: 1px;
  background: var(--navy);
  transition: transform .3s ease, top .3s ease, opacity .2s ease;
}
.nav__toggle span:nth-child(1) { top: 12px; }
.nav__toggle span:nth-child(2) { top: 19px; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { top: 16px; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { top: 16px; transform: rotate(-45deg); }

@media (max-width: 800px) {
  .nav__list {
    position: fixed;
    inset: 4.4rem 0 auto 0;
    flex-direction: column;
    background: var(--paper);
    padding: 1.4rem var(--gutter) 2rem;
    gap: 1.1rem;
    border-bottom: 1px solid var(--hairline);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .35s ease, transform .35s ease;
  }
  .nav__list.is-open {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }
  .nav__list a { font-size: .9rem; }
  .nav__toggle { display: block; }
}

/* ============================================================== HERO (HOME) */

.hero {
  min-height: 92vh;
  padding: 7rem var(--gutter) 4rem;
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.hero__masthead {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 1.2rem 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  margin-top: 1.5rem;
  margin-bottom: clamp(3rem, 8vw, 6rem);
}
.hero__masthead-item {
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
  font-feature-settings: "tnum";
}
.hero__masthead-item--center { text-align: center; }
.hero__masthead-item--right { text-align: right; }

.hero__inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(2rem, 5vw, 3.5rem);
}

.eyebrow {
  font-family: var(--sans);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--brass);
  margin: 0;
}

.hero__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.4rem, 7.6vw, 7.2rem);
  line-height: 0.98;
  letter-spacing: -0.012em;
  margin: 0;
  color: var(--navy);
}
.hero__line {
  display: block;
  overflow: hidden;
}
.hero__line--accent {
  font-style: italic;
  font-weight: 300;
  color: var(--charcoal);
}
.hero__line .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.35em);
  transition: opacity .85s cubic-bezier(.2,.6,.2,1), transform .85s cubic-bezier(.2,.6,.2,1);
}
.hero__line .word.is-in { opacity: 1; transform: none; }

.hero__meta {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: end;
  padding-top: clamp(1.5rem, 3vw, 2.4rem);
  border-top: 1px solid var(--hairline);
}
.hero__lede {
  font-size: 1.04rem;
  line-height: 1.55;
  color: var(--charcoal-soft);
  max-width: 48ch;
  margin: 0;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
  margin: 0;
}
.hero__stats > div { display: flex; flex-direction: column; gap: .25rem; }
.hero__stats dt {
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero__stats dd {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.7rem;
  color: var(--navy);
  font-feature-settings: "tnum";
  line-height: 1;
}

@media (max-width: 760px) {
  .hero__meta { grid-template-columns: 1fr; gap: 2rem; }
  .hero__stats { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================== PAGE HERO (INNER) */

.page-hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(7rem, 10vw, 9rem) var(--gutter) clamp(4rem, 7vw, 6rem);
  border-bottom: 1px solid var(--hairline);
}
.page-hero__masthead {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 1.2rem 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: clamp(2.5rem, 6vw, 4rem);
}
.page-hero__masthead-item--center { text-align: center; }
.page-hero__masthead-item--right { text-align: right; }
.page-hero__inner {
  display: flex;
  flex-direction: column;
  gap: clamp(1.5rem, 3vw, 2.4rem);
  max-width: 1080px;
}
.page-hero__title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.2rem, 5.6vw, 5.2rem);
  line-height: 1.02;
  letter-spacing: -0.012em;
  color: var(--navy);
  text-wrap: balance;
}
.page-hero__title .i {
  font-style: italic;
  font-weight: 300;
  color: var(--charcoal);
}
.page-hero__lede {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--charcoal-soft);
  max-width: 64ch;
  margin: 0;
}

/* ============================================================== SECTIONS */

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: var(--section-y) var(--gutter);
}

.section--dark {
  max-width: none;
  margin: 0;
  padding-left: 0;
  padding-right: 0;
  background: var(--navy);
  color: var(--paper);
}
.section--dark > .section__header,
.section--dark > .matters,
.section--dark > .section__cta {
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.section__header {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

.rule {
  height: 1px;
  background: var(--hairline);
  width: 100%;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.4s cubic-bezier(.2,.6,.2,1);
}
.rule.is-in { transform: scaleX(1); }
.rule--light { background: var(--hairline-light); }

.section__head-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: baseline;
}

.section__index {
  font-family: var(--sans);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--brass);
  font-feature-settings: "tnum";
}
.section--dark .section__index { color: var(--brass-soft); }

.section__title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 4.8vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
  color: var(--navy);
}
.section--dark .section__title { color: var(--paper); }

.section__lede {
  grid-column: 2;
  margin: 0;
  margin-left: clamp(1.5rem, 5vw, 4rem);
  font-size: 1rem;
  line-height: 1.6;
  max-width: 56ch;
  color: var(--charcoal-soft);
}
.section--dark .section__lede { color: rgba(255, 255, 255, .72); }

@media (max-width: 760px) {
  .section__head-row { grid-template-columns: 1fr; gap: .9rem; }
  .section__lede { grid-column: 1; margin-left: 0; }
}

.section__cta {
  margin: clamp(2rem, 4vw, 3rem) 0 0;
  font-size: .76rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.section__cta a {
  color: var(--brass);
  border-bottom: 1px solid color-mix(in oklab, var(--brass) 50%, transparent);
  padding-bottom: .25rem;
  transition: color .25s ease, border-color .25s ease;
}
.section__cta a:hover { color: var(--navy); border-bottom-color: var(--navy); }
.section--dark .section__cta a {
  color: var(--brass-soft);
  border-bottom-color: rgba(168, 144, 112, .4);
}
.section--dark .section__cta a:hover { color: var(--paper); border-bottom-color: var(--paper); }

/* ============================================================== PRACTICE GRID (HOME) */

.practice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--hairline);
}
.practice {
  padding: clamp(1.8rem, 3vw, 2.4rem) clamp(1.2rem, 2.5vw, 2.2rem);
  border-bottom: 1px solid var(--hairline);
  border-right: 1px solid var(--hairline);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.practice:nth-child(3n) { border-right: 0; }
.practice__number {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--brass);
}
.practice__title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.6rem;
  line-height: 1.1;
  color: var(--navy);
  letter-spacing: -0.005em;
}
.practice__body {
  margin: 0;
  font-size: .95rem;
  line-height: 1.6;
  color: var(--charcoal-soft);
}

@media (max-width: 960px) {
  .practice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .practice:nth-child(3n) { border-right: 1px solid var(--hairline); }
  .practice:nth-child(2n) { border-right: 0; }
}
@media (max-width: 600px) {
  .practice-grid { grid-template-columns: 1fr; }
  .practice { border-right: 0 !important; }
}

/* ============================================================== MATTERS (BASE — light page default) */

.matters {
  border-top: 1px solid var(--hairline);
}
.matter {
  display: grid;
  grid-template-columns: 100px 1fr 160px;
  gap: 2rem;
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--hairline);
  align-items: baseline;
}
.matter__year {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.5rem;
  color: var(--brass);
  font-feature-settings: "tnum";
}
.matter__text {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.05rem, 1.4vw, 1.32rem);
  line-height: 1.4;
  color: var(--charcoal);
  letter-spacing: -0.003em;
}
.matter__tag {
  text-align: right;
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
}

/* dark-section overrides (home matters block) */
.section--dark .matters { border-top-color: var(--hairline-light); }
.section--dark .matter { border-bottom-color: var(--hairline-light); }
.section--dark .matter__text { color: var(--paper); }
.section--dark .matter__year { color: var(--brass-soft); }
.section--dark .matter__tag { color: rgba(255, 255, 255, .55); }

@media (max-width: 760px) {
  .matter {
    grid-template-columns: 1fr;
    gap: .35rem;
  }
  .matter__tag { text-align: left; }
}

/* ============================================================== PEOPLE GRID (HOME) */

.people-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(2rem, 4vw, 3.4rem) clamp(1.4rem, 3vw, 2.4rem);
}
.person {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  color: inherit;
}
.person__portrait {
  aspect-ratio: 4 / 5;
  background: var(--paper-soft);
  overflow: hidden;
  margin-bottom: 1rem;
  position: relative;
}
.person__portrait::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(14, 27, 44, .12));
  pointer-events: none;
}
.person__portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  filter: grayscale(1) contrast(0.96) brightness(0.96);
  transition: transform 1.2s cubic-bezier(.2,.6,.2,1), filter .6s ease;
}
.person:hover .person__portrait img {
  transform: scale(1.025);
  filter: grayscale(1) contrast(1) brightness(1);
}
.person__name {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.55rem;
  line-height: 1.1;
  color: var(--navy);
  letter-spacing: -0.005em;
  position: relative;
  display: inline-block;
  transition: transform .35s cubic-bezier(.2,.6,.2,1);
}
.person__name::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: -.18rem;
  height: 1px;
  background: var(--brass);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .5s cubic-bezier(.2,.6,.2,1);
}
.person:hover .person__name { transform: translateX(.18rem); }
.person:hover .person__name::after { transform: scaleX(.6); }
.person__role {
  margin: 0;
  font-size: .74rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}
.person__bio {
  margin: .55rem 0 0;
  font-size: .92rem;
  line-height: 1.6;
  color: var(--charcoal-soft);
}

@media (max-width: 960px) { .people-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .people-grid { grid-template-columns: 1fr; } }

/* ============================================================== INSIGHTS GRID (HOME) */

.insights-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--hairline);
}
.insight {
  padding: clamp(2rem, 3vw, 2.8rem) clamp(1.4rem, 2.5vw, 2.2rem);
  border-right: 1px solid var(--hairline);
  display: flex;
  flex-direction: column;
  gap: .9rem;
}
.insight:last-child { border-right: 0; }
.insight__meta {
  margin: 0;
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
  font-feature-settings: "tnum";
}
.insight__title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.45rem;
  line-height: 1.18;
  color: var(--navy);
  letter-spacing: -0.005em;
  text-wrap: balance;
}
.insight__excerpt {
  margin: 0;
  font-size: .94rem;
  line-height: 1.6;
  color: var(--charcoal-soft);
}
.insight__cta {
  margin-top: auto;
  padding-top: 1.2rem;
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--brass);
}

@media (max-width: 900px) {
  .insights-grid { grid-template-columns: 1fr; }
  .insight { border-right: 0; border-bottom: 1px solid var(--hairline); }
  .insight:last-child { border-bottom: 0; }
}

/* ============================================================== OFFICES (HOME) */

.section--offices { padding-bottom: clamp(6rem, 12vw, 10rem); }
.offices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  border-top: 1px solid var(--hairline);
  padding-top: clamp(2rem, 4vw, 3.2rem);
}
.office { display: flex; flex-direction: column; gap: 1rem; }
.office__label {
  margin: 0;
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--brass);
}
.office__city {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1;
  color: var(--navy);
  letter-spacing: -0.01em;
}
.office__address {
  font-size: .98rem;
  line-height: 1.65;
  color: var(--charcoal);
  max-width: 32ch;
}
.office__contact {
  margin: 0;
  font-size: .92rem;
  line-height: 1.7;
  color: var(--charcoal-soft);
  font-feature-settings: "tnum";
  border-top: 1px solid var(--hairline);
  padding-top: 1rem;
  max-width: 32ch;
}
.office__contact a:hover { color: var(--navy); }

@media (max-width: 760px) { .offices { grid-template-columns: 1fr; } }

/* ============================================================== PRACTICE PAGE */

.practice-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 2fr);
  gap: clamp(2rem, 5vw, 5rem);
  padding: clamp(3rem, 6vw, 5rem) 0;
  align-items: start;
}
.practice-detail:first-child { padding-top: 0; }

.practice-detail__head {
  position: sticky;
  top: 6rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.practice-detail__numeral {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--brass);
}
.practice-detail__title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 3.6vw, 3rem);
  line-height: 1.02;
  letter-spacing: -0.012em;
  color: var(--navy);
  text-wrap: balance;
}
.practice-detail__body {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  scroll-margin-top: 6rem;
}
.practice-detail__lede {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 1.6vw, 1.5rem);
  font-weight: 400;
  line-height: 1.4;
  color: var(--charcoal);
  margin: 0;
  letter-spacing: -0.003em;
}
.practice-detail__long {
  margin: 0;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--charcoal-soft);
}

.practice-detail__cols {
  grid-column: 2;
  display: grid;
  grid-template-columns: 1.8fr 1fr;
  gap: clamp(2rem, 4vw, 3.6rem);
  margin-top: 2rem;
}
.practice-detail__label {
  margin: 0 0 1rem;
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--brass);
  padding-bottom: .9rem;
  border-bottom: 1px solid var(--hairline);
}
.practice-detail__list { display: grid; gap: .55rem; }
.practice-detail__list li {
  position: relative;
  padding-left: 1.4rem;
  font-size: .95rem;
  line-height: 1.55;
  color: var(--charcoal);
}
.practice-detail__list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--brass-soft);
}

.practice-detail__leads { display: flex; flex-direction: column; gap: .5rem; }
.practice-detail__leads a {
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--navy);
  border-bottom: 1px solid var(--hairline);
  padding-bottom: .35rem;
  display: inline-block;
  transition: color .25s ease, border-color .25s ease;
}
.practice-detail__leads a:hover { color: var(--brass); border-bottom-color: var(--brass); }

.practice-detail__sep {
  grid-column: 1 / -1;
  height: 1px;
  background: var(--hairline);
  margin-top: clamp(2.5rem, 5vw, 4rem);
}

@media (max-width: 900px) {
  .practice-detail { grid-template-columns: 1fr; gap: 1.6rem; }
  .practice-detail__head { position: static; }
  .practice-detail__cols { grid-column: 1; grid-template-columns: 1fr; gap: 2rem; margin-top: 1rem; }
}

/* ============================================================== MATTERS PAGE */

.section--matters-page { padding-top: clamp(3rem, 6vw, 5rem); }
.matters-block { margin-bottom: clamp(3rem, 5vw, 5rem); }
.matters-block:last-child { margin-bottom: 0; }
.matters-block__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 1rem 0;
  border-top: 1px solid var(--navy);
  border-bottom: 1px solid var(--hairline);
  margin-bottom: 0;
}
.matters-block__year {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--navy);
  line-height: 1;
  font-feature-settings: "tnum";
}
.matters-block__count {
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
}

.matter--page {
  grid-template-columns: 130px 1fr;
  gap: 1.5rem;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--hairline);
}
.matter__tag--leading {
  text-align: left;
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--brass);
  padding-top: .3rem;
}
.matter__text--page {
  color: var(--charcoal);
  font-size: clamp(1.02rem, 1.3vw, 1.18rem);
  line-height: 1.5;
}
@media (max-width: 760px) {
  .matter--page { grid-template-columns: 1fr; gap: .35rem; }
}

.section--note { padding-top: clamp(2rem, 4vw, 3rem); }
.note {
  max-width: 64ch;
  margin: 2rem 0 0;
  font-size: .95rem;
  line-height: 1.7;
  color: var(--charcoal-soft);
}
.note__label {
  display: inline;
  font-weight: 500;
  color: var(--navy);
  margin-right: .3rem;
}

/* ============================================================== PEOPLE PAGE */

.people-list { display: flex; flex-direction: column; gap: clamp(3rem, 6vw, 5rem); }

.person-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
  scroll-margin-top: 6rem;
}
.person-detail__portrait {
  aspect-ratio: 4 / 5;
  background: var(--paper-soft);
  overflow: hidden;
  position: sticky;
  top: 6rem;
}
.person-detail__portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  filter: grayscale(1) contrast(0.96) brightness(0.96);
}
.person-detail__body { display: flex; flex-direction: column; gap: .9rem; }
.person-detail__name {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 3.6vw, 3rem);
  line-height: 1;
  color: var(--navy);
  letter-spacing: -0.008em;
}
.person-detail__role {
  margin: 0;
  font-size: .76rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--brass);
}
.person-detail__bio {
  margin: 1rem 0 1.2rem;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--charcoal-soft);
  max-width: 60ch;
}
.person-detail__meta {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding-top: 1.2rem;
  border-top: 1px solid var(--hairline);
}
.person-detail__meta > div {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 1.5rem;
  align-items: baseline;
}
.person-detail__meta dt {
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
}
.person-detail__meta dd { margin: 0; font-size: .92rem; color: var(--charcoal); line-height: 1.55; }

@media (max-width: 900px) {
  .person-detail { grid-template-columns: 1fr; gap: 1.5rem; }
  .person-detail__portrait { position: static; max-width: 360px; }
  .person-detail__meta > div { grid-template-columns: 1fr; gap: .25rem; }
}

/* ----- Counsel grid ----- */

.section--counsel { padding-top: clamp(4rem, 7vw, 6rem); }
.counsel-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--hairline);
}
.counsel {
  padding: clamp(1.6rem, 3vw, 2.2rem) clamp(1.2rem, 2.5vw, 1.8rem);
  border-bottom: 1px solid var(--hairline);
  border-right: 1px solid var(--hairline);
  display: flex;
  flex-direction: column;
  gap: .65rem;
}
.counsel:last-child { border-right: 0; }
.counsel__name {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.25rem;
  line-height: 1.15;
  color: var(--navy);
}
.counsel__role {
  margin: 0;
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--brass);
}
.counsel__detail {
  margin: .35rem 0 0;
  font-size: .92rem;
  line-height: 1.6;
  color: var(--charcoal-soft);
}
@media (max-width: 900px) {
  .counsel-grid { grid-template-columns: 1fr; }
  .counsel { border-right: 0 !important; }
}

/* ----- Associates ----- */

.section--associates { padding-top: clamp(4rem, 7vw, 6rem); }
.associates {
  border-top: 1px solid var(--hairline);
  padding-top: clamp(2rem, 4vw, 3rem);
}
.associates ul {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .9rem 2rem;
}
.associates li {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.15rem;
  color: var(--charcoal);
  letter-spacing: -0.003em;
}
@media (max-width: 800px) { .associates ul { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .associates ul { grid-template-columns: 1fr; } }

/* ============================================================== INSIGHTS PAGE */

.insights-list { display: flex; flex-direction: column; }

.insight-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 3fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  padding: clamp(2.4rem, 4vw, 3.4rem) 0;
  border-top: 1px solid var(--hairline);
  scroll-margin-top: 6rem;
}
.insight-row:last-child { border-bottom: 1px solid var(--hairline); }
.insight-row__meta { display: flex; flex-direction: column; gap: .35rem; }
.insight-row__date {
  margin: 0;
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
  font-feature-settings: "tnum";
}
.insight-row__tag {
  margin: 0;
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--brass);
}
.insight-row__body { display: flex; flex-direction: column; gap: 1rem; }
.insight-row__title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.5rem, 2.6vw, 2.2rem);
  line-height: 1.12;
  letter-spacing: -0.008em;
  color: var(--navy);
  text-wrap: balance;
}
.insight-row__excerpt {
  margin: 0;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--charcoal-soft);
  max-width: 70ch;
}
.insight-row__authors {
  margin: .4rem 0 0;
  font-size: .82rem;
  color: var(--charcoal);
}
.insight-row__authors span {
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-right: .5rem;
}
.insight-row__cta {
  margin-top: 1rem;
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--brass);
}

@media (max-width: 760px) {
  .insight-row { grid-template-columns: 1fr; gap: .8rem; }
}

.section--subscribe { padding-top: clamp(4rem, 7vw, 6rem); }
.subscribe {
  display: grid;
  padding-top: clamp(2rem, 4vw, 3rem);
  max-width: 720px;
}
.subscribe__title {
  margin: .8rem 0 1rem;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  line-height: 1.15;
  color: var(--navy);
  letter-spacing: -0.005em;
}
.subscribe__body {
  margin: 0;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--charcoal-soft);
}
.subscribe__body a { color: var(--navy); border-bottom: 1px solid var(--hairline); }
.subscribe__body a:hover { color: var(--brass); border-bottom-color: var(--brass); }

/* ============================================================== ABOUT PAGE */

.section--about { padding-top: clamp(3rem, 6vw, 5rem); }
.about-block {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr);
  gap: clamp(2rem, 5vw, 5rem);
  padding: clamp(3rem, 5vw, 4.5rem) 0;
  border-top: 1px solid var(--hairline);
  align-items: start;
}
.about-block:last-child { border-bottom: 1px solid var(--hairline); }
.about-block__head {
  position: sticky;
  top: 6rem;
  display: flex;
  flex-direction: column;
  gap: .6rem;
}
.about-block__numeral {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--brass);
}
.about-block__title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  line-height: 1.05;
  letter-spacing: -0.008em;
  color: var(--navy);
}
.about-block__body { display: flex; flex-direction: column; gap: 1.2rem; }
.about-block__body p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--charcoal);
  max-width: 64ch;
}
.about-block__body p em { font-style: italic; color: var(--charcoal-soft); }

.timeline { display: flex; flex-direction: column; gap: 0; margin: .4rem 0 0; }
.timeline li {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 1.5rem;
  padding: .85rem 0;
  border-bottom: 1px solid var(--hairline);
  align-items: baseline;
}
.timeline li:last-child { border-bottom: 0; }
.timeline__year {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.15rem;
  color: var(--brass);
  font-feature-settings: "tnum";
}
.timeline__event {
  font-size: .95rem;
  line-height: 1.5;
  color: var(--charcoal);
}

@media (max-width: 900px) {
  .about-block { grid-template-columns: 1fr; gap: 1.4rem; padding: 2.5rem 0; }
  .about-block__head { position: static; }
}

/* ============================================================== OFFICES PAGE */

.section--offices-page { padding-top: clamp(3rem, 6vw, 5rem); padding-bottom: 0; }

.offices--page {
  border-top: 1px solid var(--hairline);
  padding-top: clamp(2.4rem, 5vw, 4rem);
  gap: clamp(2.5rem, 5vw, 5rem);
}
.office--page { gap: 1.4rem; }
.office__address--page {
  font-family: var(--serif);
  font-size: 1.2rem;
  line-height: 1.55;
  color: var(--charcoal);
  letter-spacing: -0.003em;
  max-width: none;
}
.office__details {
  display: grid;
  gap: .9rem;
  margin: 0;
  padding-top: 1.2rem;
  border-top: 1px solid var(--hairline);
}
.office__details > div {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1.5rem;
  align-items: baseline;
}
.office__details dt {
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
}
.office__details dd {
  margin: 0;
  font-size: .95rem;
  color: var(--charcoal);
  font-feature-settings: "tnum";
}
.office__details a { color: var(--charcoal); border-bottom: 1px solid var(--hairline); }
.office__details a:hover { color: var(--brass); border-bottom-color: var(--brass); }

.section--general-inquiries { padding-top: clamp(4rem, 7vw, 6rem); }
.inquiries {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--hairline);
}
.inquiry {
  padding: clamp(1.6rem, 3vw, 2.4rem) clamp(1.4rem, 3vw, 2.2rem);
  border-bottom: 1px solid var(--hairline);
  border-right: 1px solid var(--hairline);
  display: flex;
  flex-direction: column;
  gap: .7rem;
}
.inquiry:nth-child(2n) { border-right: 0; }
.inquiry__label {
  margin: 0;
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--brass);
}
.inquiry__detail {
  margin: 0;
  font-size: .94rem;
  line-height: 1.65;
  color: var(--charcoal-soft);
}
.inquiry__contact {
  margin: .4rem 0 0;
  font-size: .92rem;
  font-feature-settings: "tnum";
}
.inquiry__contact a {
  color: var(--navy);
  border-bottom: 1px solid var(--hairline);
}
.inquiry__contact a:hover { color: var(--brass); border-bottom-color: var(--brass); }
@media (max-width: 700px) {
  .inquiries { grid-template-columns: 1fr; }
  .inquiry { border-right: 0; }
}

/* ============================================================== FOOTER */

.footer {
  background: var(--navy);
  color: var(--paper);
  padding: clamp(4rem, 7vw, 6rem) var(--gutter) 2.5rem;
  margin-top: clamp(3rem, 6vw, 5rem);
}
.footer__top {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3.2rem);
  padding-bottom: 3rem;
}
.footer__col { display: flex; flex-direction: column; gap: .65rem; }
.footer__head {
  margin: 0 0 .4rem;
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--brass-soft);
}
.footer__col ul { display: flex; flex-direction: column; gap: .35rem; }
.footer__col ul a {
  font-size: .9rem;
  color: rgba(255, 255, 255, .78);
  transition: color .25s ease;
}
.footer__col ul a:hover { color: var(--paper); }

.footer__mark {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.6rem;
  color: var(--paper);
  letter-spacing: -0.005em;
}
.footer__mark span {
  font-family: var(--sans);
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brass-soft);
  margin-left: .3rem;
  vertical-align: 2px;
}

.footer__small {
  margin: 0;
  font-size: .85rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, .66);
}

.footer__rule {
  max-width: var(--max);
  margin: 0 auto;
  height: 1px;
  background: var(--hairline-light);
}

.footer__bottom {
  max-width: var(--max);
  margin: 0 auto;
  padding-top: 1.4rem;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.footer__legal {
  margin: 0;
  font-size: .76rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, .55);
  max-width: 76ch;
}
.footer__credit {
  margin: 0;
  font-size: .76rem;
  color: rgba(255, 255, 255, .45);
}
.footer__credit a {
  color: rgba(255, 255, 255, .8);
  border-bottom: 1px solid rgba(255, 255, 255, .25);
  transition: color .25s ease, border-color .25s ease;
}
.footer__credit a:hover { color: var(--paper); border-bottom-color: var(--paper); }

@media (max-width: 880px) {
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__col--brand { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .footer__top { grid-template-columns: 1fr; }
}

/* ============================================================== REVEALS */

[data-fade] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .9s ease, transform .9s ease;
}
[data-fade].is-in { opacity: 1; transform: none; }

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 1s cubic-bezier(.2,.6,.2,1), transform 1s cubic-bezier(.2,.6,.2,1);
}
[data-reveal].is-in { opacity: 1; transform: none; }

/* ============================================================== MOTION PREFS */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .hero__line .word { opacity: 1; transform: none; }
  [data-fade], [data-reveal] { opacity: 1; transform: none; }
  .rule { transform: scaleX(1); }
}

/* ============================================================== SAFETY NET
   No matter what scripts run or fail, always reveal content after 2s
   ================================================================== */
@keyframes wc-fail-safe-show { to { opacity: 1; transform: none; } }
[data-fade], [data-reveal], .hero__line .word {
  animation: wc-fail-safe-show 0.01s linear 2.5s forwards;
}
[data-fade].is-in, [data-reveal].is-in, .hero__line .word.is-in {
  animation: none;
}
