/* ==========================================================================
   O'Brien & Co. CPAs, Boston, MA
   Design system: "Editorial Luxury", warm paper, evergreen ink, brass accent
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Surfaces */
  --paper:        #FAF8F4;
  --paper-sink:   #F2EEE6;
  --paper-warm:   #EFE9DE;

  /* Ink ramp: contrast ratios are against --paper.
     Everything down to --ink-45 is safe for TEXT and clears WCAG AA (4.5:1).
     --ink-30 is DECORATION ONLY: arrow glyphs, hairlines, list bullets.
     Never set text to --ink-30; that is what made the first pass unreadable. */
  --ink:          #14181B;                /* 16.4:1 */
  --ink-80:       rgba(20, 24, 27, 0.82); /*  9.8:1 */
  --ink-60:       rgba(20, 24, 27, 0.64); /*  5.2:1, body secondary */
  --ink-45:       rgba(20, 24, 27, 0.62); /*  4.9:1, captions, meta, labels */
  --ink-30:       rgba(20, 24, 27, 0.30); /*  1.9:1, NON-TEXT ONLY */

  /* Brand */
  --evergreen:      #1B3A34;
  --evergreen-deep: #10241F;
  --evergreen-soft: rgba(27, 58, 52, 0.08);
  --brass:          #A9834F;   /* 3.4:1, graphics, rules and type above 24px */
  --brass-deep:     #7E6234;   /* 5.4:1, brass as small text */
  --brass-soft:     rgba(169, 131, 79, 0.14);

  /* Hairlines */
  --line:        rgba(20, 24, 27, 0.10);
  --line-soft:   rgba(20, 24, 27, 0.06);
  --line-light:  rgba(255, 255, 255, 0.12);

  /* Radii */
  --r-shell: 2rem;
  --r-core:  1.5rem;
  --r-pill:  999px;

  /* Motion */
  --ease:      cubic-bezier(0.32, 0.72, 0, 1);
  --ease-soft: cubic-bezier(0.22, 1, 0.36, 1);

  /* Rhythm */
  --gutter:  clamp(1.25rem, 4vw, 2.75rem);
  --bay:     clamp(6rem, 11vw, 11rem);
  --measure: 1220px;

  /* Layers */
  --z-grain:   10;
  --z-nav:     100;
  --z-overlay: 200;

  /* Type */
  --display: "Fraunces", "Iowan Old Style", "Palatino Linotype", ui-serif, Georgia, serif;
  --sans:    "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* --------------------------------------------------------------------------
   2. Reset & base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.68;
  font-weight: 400;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

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

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

button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 300;
  font-variation-settings: "SOFT" 0, "WONK" 0, "opsz" 120;
  letter-spacing: -0.028em;
  line-height: 1.02;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }

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

:focus-visible {
  outline: 1.5px solid var(--evergreen);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Paper grain: fixed, never attached to scrolling content */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: var(--z-grain);
  pointer-events: none;
  opacity: 0.038;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* --------------------------------------------------------------------------
   3. Layout primitives
   -------------------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--measure);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.bay { padding-block: var(--bay); }
.bay--tight { padding-block: clamp(4rem, 7vw, 7rem); }

.rule {
  height: 1px;
  background: var(--line);
  border: 0;
  margin: 0;
}

/* --------------------------------------------------------------------------
   4. Type utilities
   -------------------------------------------------------------------------- */
.display {
  font-size: clamp(2.85rem, 7vw, 5.9rem);
  line-height: 0.96;
  letter-spacing: -0.035em;
}

.h2 {
  font-size: clamp(2.05rem, 4.4vw, 3.5rem);
  line-height: 1.03;
}

.h3 {
  font-size: clamp(1.3rem, 2.1vw, 1.7rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.h4 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
  line-height: 1.35;
}

.lede {
  font-size: clamp(1.0625rem, 1.35vw, 1.25rem);
  line-height: 1.62;
  color: var(--ink-60);
  max-width: 46ch;
}

.body-sm { font-size: 0.9375rem; line-height: 1.68; color: var(--ink-60); }

.muted { color: var(--ink-60); }

.ital { font-style: italic; font-variation-settings: "SOFT" 0, "WONK" 1, "opsz" 120; }

.brass { color: var(--brass); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.75rem 0.375rem 0.625rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.5);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-60);
}

.eyebrow::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brass);
  flex: none;
}

.eyebrow--light {
  border-color: var(--line-light);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.7);
}

.label {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-45);
}

.num {
  font-family: var(--display);
  font-variation-settings: "SOFT" 0, "WONK" 0, "opsz" 144;
  font-weight: 300;
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  letter-spacing: -0.04em;
  line-height: 1;
}

/* --------------------------------------------------------------------------
   5. Buttons: pill + nested "button-in-button" icon
   -------------------------------------------------------------------------- */
.btn {
  --btn-bg: var(--evergreen);
  --btn-fg: #F7F5F0;
  --btn-nest: rgba(255, 255, 255, 0.14);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.5rem 0.5rem 0.5rem 1.4rem;
  border-radius: var(--r-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: -0.008em;
  white-space: nowrap;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 18px 40px -22px rgba(16, 36, 31, 0.85);
  transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease), background-color 0.6s var(--ease);
}

.btn__icon {
  display: grid;
  place-items: center;
  width: 2.125rem;
  height: 2.125rem;
  border-radius: 50%;
  background: var(--btn-nest);
  flex: none;
  transition: transform 0.6s var(--ease), background-color 0.6s var(--ease);
}

.btn__icon svg { width: 14px; height: 14px; }

.btn:hover { transform: translateY(-2px); box-shadow: inset 0 1px 0 rgba(255,255,255,0.18), 0 26px 50px -24px rgba(16, 36, 31, 0.9); }
.btn:hover .btn__icon { transform: translate(3px, -1px) scale(1.06); background: rgba(255, 255, 255, 0.24); }
.btn:active { transform: scale(0.98); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  --btn-nest: rgba(20, 24, 27, 0.06);
  border: 1px solid var(--line);
  box-shadow: none;
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.7); box-shadow: 0 18px 40px -30px rgba(20,24,27,0.5); }
.btn--ghost:hover .btn__icon { background: rgba(20, 24, 27, 0.1); }

.btn--paper {
  --btn-bg: #F7F5F0;
  --btn-fg: var(--evergreen-deep);
  --btn-nest: rgba(16, 36, 31, 0.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.9), 0 18px 40px -24px rgba(0,0,0,0.55);
}
.btn--paper:hover .btn__icon { background: rgba(16, 36, 31, 0.14); }

.btn--sm { padding: 0.375rem 0.375rem 0.375rem 1.125rem; font-size: 0.875rem; gap: 0.75rem; }
.btn--sm .btn__icon { width: 1.75rem; height: 1.75rem; }
.btn--sm .btn__icon svg { width: 12px; height: 12px; }

/* Quiet text link with sliding rule */
.tlink {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 500;
  padding-block: 0.25rem;
}
.tlink::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  opacity: 0.25;
  transform: scaleX(1);
  transform-origin: left;
  transition: transform 0.7s var(--ease), opacity 0.7s var(--ease);
}
.tlink:hover::after { opacity: 0.7; transform: scaleX(0.94); }
.tlink svg { width: 13px; height: 13px; transition: transform 0.6s var(--ease); }
.tlink:hover svg { transform: translate(3px, -1px); }

/* --------------------------------------------------------------------------
   6. Double-bezel (shell + core)
   -------------------------------------------------------------------------- */
.shell {
  padding: 0.5rem;
  border-radius: var(--r-shell);
  background: rgba(20, 24, 27, 0.035);
  border: 1px solid var(--line-soft);
}

.core {
  border-radius: calc(var(--r-shell) - 0.5rem);
  background: #FDFCFA;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 30px 70px -46px rgba(16, 36, 31, 0.45);
  overflow: hidden;
}

.shell--dark { background: rgba(255, 255, 255, 0.07); border-color: var(--line-light); }
.shell--dark .core {
  background: var(--evergreen-deep);
  color: rgba(255, 255, 255, 0.86);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 40px 80px -50px rgba(0, 0, 0, 0.8);
}

/* --------------------------------------------------------------------------
   7. Navigation: floating glass island
   -------------------------------------------------------------------------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-nav);
  padding: 1.25rem var(--gutter) 0;
  pointer-events: none;
}

.nav__island {
  pointer-events: auto;
  max-width: var(--measure);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.5rem 0.5rem 0.5rem 1.375rem;
  border-radius: var(--r-pill);
  border: 1px solid rgba(255, 255, 255, 0.6);
  background: rgba(250, 248, 244, 0.72);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    0 20px 50px -34px rgba(16, 36, 31, 0.55);
  transition: transform 0.7s var(--ease), box-shadow 0.7s var(--ease), background-color 0.7s var(--ease);
}

.nav.is-stuck .nav__island {
  transform: translateY(-2px) scale(0.988);
  background: rgba(250, 248, 244, 0.9);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.9), 0 26px 60px -34px rgba(16, 36, 31, 0.7);
}

/* --------------------------------------------------------------------------
   Brand: the "O'" monogram
   A Didone O (thick sides, thin top, matching Fraunces) with the apostrophe
   that is unique to the name. Colors live here, not in the markup, so one
   piece of SVG serves both the light nav and the dark footer.
   -------------------------------------------------------------------------- */
.brand { display: inline-flex; align-items: center; gap: 0.625rem; }
.brand__mark { width: 30px; height: 30px; flex: none; overflow: visible; }

.brand__o {
  fill: var(--evergreen);
  transition: fill 0.6s var(--ease);
}

.brand__ap {
  fill: none;
  stroke: var(--brass);
  stroke-width: 3;
  stroke-linecap: round;
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 0.7s var(--ease), stroke 0.6s var(--ease);
}

/* the apostrophe lifts a hair on hover, the only motion the mark needs */
.brand:hover .brand__ap { transform: translateY(-1.2px) rotate(-7deg); }

.brand__apo { color: var(--brass-deep); }

.brand--light .brand__o { fill: #F7F5F0; }
.brand--light .brand__ap { stroke: #C7A473; }
.brand--light .brand__apo { color: #C7A473; }

.brand__type { display: flex; flex-direction: column; line-height: 1; }
.brand__name {
  font-family: var(--display);
  font-variation-settings: "SOFT" 0, "WONK" 0, "opsz" 30;
  font-weight: 400;
  font-size: 1.02rem;
  letter-spacing: -0.015em;
}
.brand__sub {
  font-size: 0.5rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink-45);
  margin-top: 3px;
  font-weight: 600;
}

.brand--light .brand__name { color: #F7F5F0; }
.brand--light .brand__sub { color: rgba(255, 255, 255, 0.62); }

/* Desktop links */
.nav__links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav__link {
  position: relative;
  display: inline-block;
  padding: 0.5rem 0.9rem;
  border-radius: var(--r-pill);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-60);
  transition: color 0.5s var(--ease);
}

.nav__link::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--r-pill);
  background: rgba(20, 24, 27, 0.05);
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.nav__link:hover { color: var(--ink); }
.nav__link:hover::before { opacity: 1; transform: scale(1); }

.nav__link.is-current { color: var(--ink); }
.nav__link.is-current::before { opacity: 1; transform: scale(1); background: rgba(27, 58, 52, 0.08); }

.nav__cta { display: inline-flex; }

.nav__link--mega {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
}
.nav__link--mega .chev {
  width: 9px;
  height: 6px;
  opacity: 0.45;
  transition: transform 0.55s var(--ease), opacity 0.55s var(--ease);
}
.nav__item.is-open .nav__link--mega { color: var(--ink); }
.nav__item.is-open .nav__link--mega::before { opacity: 1; transform: scale(1); }
.nav__item.is-open .nav__link--mega .chev { transform: rotate(180deg); opacity: 0.8; }

/* --------------------------------------------------------------------------
   7b. Mega menu
   -------------------------------------------------------------------------- */
.mega {
  pointer-events: none;
  max-width: var(--measure);
  margin: 0.5rem auto 0;
  padding-bottom: 2rem;
}

.mega__shell {
  pointer-events: auto;
  border-radius: 1.75rem;
  border: 1px solid rgba(255, 255, 255, 0.65);
  background: rgba(250, 248, 244, 0.86);
  -webkit-backdrop-filter: blur(26px) saturate(165%);
  backdrop-filter: blur(26px) saturate(165%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 34px 80px -44px rgba(16, 36, 31, 0.6);
  overflow: hidden;
  opacity: 0;
  transform: translateY(-0.75rem) scale(0.985);
  transform-origin: 50% 0;
  transition:
    opacity 0.42s var(--ease),
    transform 0.52s var(--ease);
}

.nav.is-mega-open .mega__shell { opacity: 1; transform: none; }
.nav:not(.is-mega-open) .mega__shell { pointer-events: none; }

.mega__viewport {
  position: relative;
  height: 0;
  transition: height 0.52s var(--ease);
}

.mega__panel {
  position: absolute;
  inset: 0 0 auto;
  padding: clamp(1.5rem, 2.4vw, 2.125rem);
  opacity: 0;
  transform: translateY(0.5rem);
  pointer-events: none;
  transition: opacity 0.34s var(--ease), transform 0.44s var(--ease);
}

.mega__panel.is-active {
  opacity: 1;
  transform: none;
  pointer-events: auto;
  transition-delay: 0.06s;
}

.mega__grid { display: grid; gap: clamp(1rem, 2vw, 1.75rem); }
.mega__grid--services   { grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 0.92fr); }
.mega__grid--industries { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mega__grid--resources  { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.mega__grid--firm       { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.mega__col--span2       { grid-column: span 2; }

.mega__kicker {
  display: block;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-45);
  margin-bottom: 1rem;
}

/* Column head: pillar link */
.mega__head {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0.75rem;
  margin: -0.625rem -0.75rem 0.75rem;
  border-radius: 0.9rem;
  transition: background-color 0.5s var(--ease);
}
.mega__head:hover { background: rgba(27, 58, 52, 0.06); }

.mega__ico {
  display: grid;
  place-items: center;
  width: 2.125rem;
  height: 2.125rem;
  border-radius: 50%;
  background: var(--evergreen-soft);
  color: var(--evergreen);
  flex: none;
  transition: transform 0.6s var(--ease), background-color 0.6s var(--ease);
}
.mega__ico svg { width: 15px; height: 15px; }
.mega__head:hover .mega__ico { transform: scale(1.07) rotate(-5deg); background: rgba(27, 58, 52, 0.14); }

.mega__ht { display: block; font-size: 0.9375rem; font-weight: 600; letter-spacing: -0.012em; }
.mega__hd { display: block; font-size: 0.75rem; color: var(--ink-45); margin-top: 0.1rem; line-height: 1.35; }

/* Link lists */
.mega__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.1rem; }
.mega__list a {
  display: block;
  padding: 0.5rem 0.75rem;
  margin-inline: -0.75rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  color: var(--ink-60);
  transition: background-color 0.45s var(--ease), color 0.45s var(--ease), transform 0.45s var(--ease);
}
.mega__list a:hover { background: rgba(27, 58, 52, 0.06); color: var(--ink); transform: translateX(3px); }

/* Industry tiles */
.mega__tiles {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.375rem;
}
.mega__tile {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.875rem;
  border-radius: 0.9rem;
  transition: background-color 0.45s var(--ease), transform 0.45s var(--ease);
}
.mega__tile:hover { background: rgba(27, 58, 52, 0.06); transform: translateX(3px); }
.mega__tile.is-feature { background: rgba(169, 131, 79, 0.10); }
.mega__tile.is-feature:hover { background: rgba(169, 131, 79, 0.17); }
.mega__tilet { font-size: 0.875rem; font-weight: 500; color: var(--ink-80); letter-spacing: -0.008em; }

/* Article rows */
.mega__posts { list-style: none; margin: 0 0 1.25rem; padding: 0; display: grid; gap: 0.25rem; }
.mega__post {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.875rem;
  padding: 0.75rem 0.875rem;
  margin-inline: -0.875rem;
  border-radius: 0.9rem;
  transition: background-color 0.45s var(--ease);
}
.mega__post:hover { background: rgba(27, 58, 52, 0.06); }
.mega__post-cat {
  padding: 0.2rem 0.55rem;
  border-radius: var(--r-pill);
  background: var(--brass-soft);
  color: #7E6234;
  font-size: 0.5625rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}
.mega__post-t { font-size: 0.8125rem; color: var(--ink-80); line-height: 1.4; }
.mega__post-a { color: var(--ink-30); transition: transform 0.5s var(--ease), color 0.5s var(--ease); }
.mega__post-a svg { width: 13px; height: 13px; }
.mega__post:hover .mega__post-a { color: var(--evergreen); transform: translate(3px, -2px); }

/* Feature card */
.mega__col--feature { display: flex; }
.mega__card {
  width: 100%;
  padding: 1.375rem;
  border-radius: 1.25rem;
  background: linear-gradient(160deg, rgba(27, 58, 52, 0.07), rgba(169, 131, 79, 0.07));
  border: 1px solid var(--line-soft);
  display: flex;
  flex-direction: column;
}
.mega__cardtitle {
  font-family: var(--display);
  font-variation-settings: "SOFT" 0, "WONK" 0, "opsz" 40;
  font-weight: 300;
  font-size: 1.25rem;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin: 0 0 0.625rem;
}
.mega__cardbody { font-size: 0.8125rem; color: var(--ink-60); line-height: 1.55; margin-bottom: 1.25rem; }
.mega__card .btn { align-self: flex-start; }

.mega__all {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.875rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--ink-60);
  transition: color 0.5s var(--ease);
}
.mega__all svg { width: 13px; height: 13px; transition: transform 0.5s var(--ease); }
.mega__all:hover { color: var(--evergreen); }
.mega__all:hover svg { transform: translateX(3px); }

/* Person card */
.mega__person {
  display: grid;
  grid-template-columns: 6.25rem 1fr;
  gap: 1.25rem;
  align-items: center;
  width: 100%;
  padding: 1.25rem;
  border-radius: 1.25rem;
  background: linear-gradient(160deg, rgba(27, 58, 52, 0.07), rgba(169, 131, 79, 0.07));
  border: 1px solid var(--line-soft);
  transition: transform 0.6s var(--ease), background-color 0.6s var(--ease);
}
.mega__person:hover { transform: translateY(-2px); }
.mega__person img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 1rem;
  filter: saturate(0.95);
}
.mega__persontxt { display: block; }
.mega__persontxt .mega__cardtitle { font-size: 1.125rem; }

/* Hamburger */
.burger {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: rgba(20, 24, 27, 0.05);
  place-items: center;
  flex: none;
}
.burger__bars { position: relative; width: 17px; height: 11px; }
.burger__bars span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.6s var(--ease), opacity 0.35s var(--ease);
}
.burger__bars span:nth-child(1) { top: 0; }
.burger__bars span:nth-child(2) { top: 50%; margin-top: -0.75px; }
.burger__bars span:nth-child(3) { bottom: 0; }

body.is-menu-open .burger__bars span:nth-child(1) { transform: translateY(4.75px) rotate(45deg); }
body.is-menu-open .burger__bars span:nth-child(2) { opacity: 0; transform: scaleX(0.2); }
body.is-menu-open .burger__bars span:nth-child(3) { transform: translateY(-4.75px) rotate(-45deg); }

/* Full-screen menu: accordion mirror of the mega menu */
.menu {
  position: fixed;
  inset: 0;
  z-index: var(--z-overlay);
  background: rgba(250, 248, 244, 0.93);
  -webkit-backdrop-filter: blur(34px) saturate(170%);
  backdrop-filter: blur(34px) saturate(170%);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.55s var(--ease), visibility 0.55s var(--ease);
}

body.is-menu-open .menu { opacity: 1; visibility: visible; }

/* Lift the island above the overlay so the morphing hamburger stays visible
   and clickable, it is the only close affordance on a phone. */
body.is-menu-open .nav { z-index: calc(var(--z-overlay) + 1); }

.menu__scroll {
  height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 6.75rem var(--gutter) 3rem;
}

.menu__nav { display: block; }

.macc { border-bottom: 1px solid var(--line); }

.macc__trigger,
.macc__direct {
  width: 100%;
  display: grid;
  grid-template-columns: 2.25rem 1fr auto;
  align-items: center;
  gap: 0.75rem;
  padding: 1.15rem 0;
  text-align: left;
  transform: translateY(2.25rem);
  opacity: 0;
  transition: transform 0.8s var(--ease), opacity 0.8s var(--ease);
}
.macc__direct { border-bottom: 1px solid var(--line); }

.macc .idx,
.macc__direct .idx {
  font-family: var(--sans);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--brass-deep);
}

.macc__label {
  font-family: var(--display);
  font-variation-settings: "SOFT" 0, "WONK" 0, "opsz" 80;
  font-weight: 300;
  font-size: clamp(1.75rem, 8.5vw, 2.5rem);
  letter-spacing: -0.032em;
  line-height: 1.05;
}

.macc__trigger .plus,
.macc__direct svg {
  width: 17px;
  height: 17px;
  color: var(--ink-45);
  transition: transform 0.55s var(--ease), color 0.55s var(--ease);
}
.macc.is-open .macc__trigger .plus { transform: rotate(135deg); color: var(--evergreen); }
.macc__direct:hover svg { transform: translate(3px, -2px); color: var(--evergreen); }

body.is-menu-open .macc__trigger,
body.is-menu-open .macc__direct { transform: translateY(0); opacity: 1; }
body.is-menu-open .macc:nth-of-type(1) .macc__trigger { transition-delay: 0.10s; }
body.is-menu-open .macc:nth-of-type(2) .macc__trigger { transition-delay: 0.16s; }
body.is-menu-open .macc:nth-of-type(3) .macc__trigger { transition-delay: 0.22s; }
body.is-menu-open .macc:nth-of-type(4) .macc__trigger { transition-delay: 0.28s; }
body.is-menu-open .macc__direct { transition-delay: 0.34s; }

/* Height animation via grid-template-rows, contained inside a fixed overlay.
   overflow:hidden on the panel as well as the item, because padding on the
   inner element would otherwise leak a couple of lines while collapsed. */
.macc__panel {
  display: grid;
  grid-template-rows: 0fr;
  overflow: hidden;
  transition: grid-template-rows 0.55s var(--ease);
}
.macc.is-open .macc__panel { grid-template-rows: 1fr; }
.macc__panel > * { min-height: 0; overflow: hidden; }
.macc__inner > :last-child { margin-bottom: 1.25rem; }

.macc__group {
  margin: 1rem 0 0.5rem;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-45);
}
.macc__group a { color: inherit; }
.macc__group:first-child { margin-top: 0; }

.macc__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.1rem; }
.macc__list a {
  display: block;
  padding: 0.55rem 0.75rem;
  margin-inline: -0.75rem;
  border-radius: 0.75rem;
  font-size: 0.9375rem;
  color: var(--ink-60);
  transition: background-color 0.45s var(--ease), color 0.45s var(--ease);
}
.macc__list a:hover { background: rgba(27, 58, 52, 0.06); color: var(--ink); }

.macc__more { margin: 1rem 0 0; }
.macc__more a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--evergreen);
}
.macc__more svg { width: 13px; height: 13px; }

.menu__foot {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.5rem;
  transform: translateY(2rem);
  opacity: 0;
  transition: transform 0.85s var(--ease) 0.42s, opacity 0.85s var(--ease) 0.42s;
}
body.is-menu-open .menu__foot { transform: translateY(0); opacity: 1; }

/* --------------------------------------------------------------------------
   8. Scroll reveal
   -------------------------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(3.25rem);
  filter: blur(9px);
  transition:
    opacity 0.95s var(--ease-soft) var(--d, 0s),
    transform 0.95s var(--ease-soft) var(--d, 0s),
    filter 0.95s var(--ease-soft) var(--d, 0s);
  will-change: transform, opacity;
}

[data-reveal].is-in {
  opacity: 1;
  transform: none;
  filter: blur(0);
  will-change: auto;
}

/* --------------------------------------------------------------------------
   9. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding-top: clamp(9rem, 16vw, 13.5rem);
  padding-bottom: clamp(4rem, 8vw, 7rem);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -22%;
  right: -14%;
  width: 62vw;
  height: 62vw;
  max-width: 900px;
  max-height: 900px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(27, 58, 52, 0.10), rgba(27, 58, 52, 0) 62%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: -30%;
  left: -18%;
  width: 46vw;
  height: 46vw;
  max-width: 620px;
  max-height: 620px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(169, 131, 79, 0.13), rgba(169, 131, 79, 0) 65%);
  pointer-events: none;
}

.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
}

.hero__title { margin-top: 1.5rem; }
.hero__title .line { display: block; }

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 2.25rem;
}

.hero__proof {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
  margin-top: 2.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}

.hero__proof span { font-size: 0.75rem; letter-spacing: 0.06em; color: var(--ink-45); }

/* Hero panel: z-axis stack */
.hero__stack { position: relative; }

.panel { padding: clamp(1.5rem, 2.4vw, 2rem); }

.panel__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--line-soft);
}

.pillars { list-style: none; margin: 0; padding: 0; }

.pillars li {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line-soft);
  transition: transform 0.6s var(--ease);
}
.pillars li:last-child { border-bottom: 0; padding-bottom: 0.25rem; }
.pillars li:hover { transform: translateX(4px); }

.pillars .ico {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--evergreen-soft);
  color: var(--evergreen);
  flex: none;
}
.pillars .ico svg { width: 17px; height: 17px; }
.pillars .ttl { display: block; font-weight: 600; font-size: 0.9375rem; letter-spacing: -0.01em; }
.pillars .sub { display: block; font-size: 0.8125rem; color: var(--ink-45); line-height: 1.4; margin-top: 0.15rem; }
.pillars .arw { color: var(--ink-30); }
.pillars .arw svg { width: 14px; height: 14px; }

.badge-float {
  position: absolute;
  left: -1.75rem;
  bottom: -1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.125rem 0.75rem 0.875rem;
  border-radius: var(--r-pill);
  background: rgba(253, 252, 250, 0.92);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.9), 0 24px 50px -28px rgba(16, 36, 31, 0.6);
  transform: rotate(-2deg);
}

.badge-float .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--brass);
  box-shadow: 0 0 0 4px var(--brass-soft);
  flex: none;
}
.badge-float .txt { font-size: 0.75rem; font-weight: 500; line-height: 1.3; }
.badge-float .txt em { display: block; font-style: normal; color: var(--ink-45); font-size: 0.6875rem; }

/* --------------------------------------------------------------------------
   9b. Cinematic hero: full-bleed video
   -------------------------------------------------------------------------- */
.hero--film {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 88vh;
  min-height: 100svh;
  padding-top: 9.5rem;
  padding-bottom: clamp(1.75rem, 3.5vw, 3rem);
  overflow: hidden;
  background: var(--evergreen-deep);
  color: rgba(255, 255, 255, 0.76);
}

.hero__media {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #0E1F1B url("../img/hero-boston.jpg") center 42% / cover no-repeat;
}

.hero__media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
  filter: saturate(1.04) contrast(1.05);
}

/* Two stacked ramps. The left one carries the headline; it falls to zero by 78% so the
   skyline stays untouched. The vertical one is a top band for the nav and a bottom band
   for the rail, transparent through the middle. */
.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg,
      rgba(7, 12, 10, 0.94) 0%,
      rgba(7, 12, 10, 0.91) 24%,
      rgba(7, 12, 10, 0.84) 40%,
      rgba(7, 12, 10, 0.68) 54%,
      rgba(7, 12, 10, 0.48) 66%,
      rgba(7, 12, 10, 0.27) 78%,
      rgba(7, 12, 10, 0.11) 90%,
      rgba(7, 12, 10, 0.04) 100%),
    linear-gradient(180deg, rgba(7, 12, 10, 0.58) 0%, rgba(7, 12, 10, 0) 22%, rgba(7, 12, 10, 0) 56%, rgba(7, 12, 10, 0.78) 100%);
}

.hero__inner { position: relative; width: 100%; }
.hero__lead { max-width: min(44rem, 66vw); }

.hero--film .display { color: #F7F5F0; font-size: clamp(2.5rem, 5.6vw, 4.7rem); }
/* Opaque, not translucent: text at partial alpha picks up the backdrop and loses contrast
   exactly where the footage is brightest. */
.hero--film .lede { color: #EDEFEA; max-width: 41ch; }
.hero--film .hero__proof { border-top-color: rgba(255, 255, 255, 0.18); }
.hero--film .hero__proof span { color: #B4BAB3; }

/* Bottom glass rail: practice areas */
.hero__rail {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 0.62fr);
  gap: 0.5rem;
  padding: 0.5rem;
  border-radius: 1.75rem;
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: rgba(8, 19, 16, 0.52);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.13);
}

.rail__item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.875rem;
  padding: 1rem 1.125rem;
  border-radius: 1.3rem;
  background: rgba(255, 255, 255, 0.045);
  transition: background-color 0.6s var(--ease), transform 0.6s var(--ease);
}
.rail__item:hover { background: rgba(255, 255, 255, 0.11); transform: translateY(-2px); }

.rail__ico {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.09);
  color: #E4D8C2;
  flex: none;
}
.rail__ico svg { width: 16px; height: 16px; }

.rail__t { display: block; font-size: 0.9375rem; font-weight: 600; color: #F7F5F0; letter-spacing: -0.01em; }
.rail__d { display: block; font-size: 0.75rem; color: rgba(255, 255, 255, 0.60); margin-top: 0.15rem; line-height: 1.35; }

.rail__a { color: rgba(255, 255, 255, 0.32); transition: transform 0.6s var(--ease), color 0.6s var(--ease); }
.rail__a svg { width: 14px; height: 14px; }
.rail__item:hover .rail__a { color: #E4D8C2; transform: translate(3px, -2px); }

.rail__all {
  display: grid;
  place-items: center;
  gap: 0.35rem;
  padding: 1rem;
  border-radius: 1.3rem;
  background: rgba(232, 223, 207, 0.10);
  text-align: center;
  transition: background-color 0.6s var(--ease), transform 0.6s var(--ease);
}
.rail__all:hover { background: rgba(232, 223, 207, 0.18); transform: translateY(-2px); }
.rail__all .n {
  font-family: var(--display);
  font-variation-settings: "SOFT" 0, "WONK" 0, "opsz" 60;
  font-weight: 300;
  font-size: 1.5rem;
  line-height: 1;
  color: #F7F5F0;
  letter-spacing: -0.02em;
}
.rail__all .c { font-size: 0.6875rem; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255, 255, 255, 0.55); }

/* --------------------------------------------------------------------------
   10. Marquee
   -------------------------------------------------------------------------- */
.marquee {
  position: relative;
  overflow: hidden;
  padding-block: 1.75rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.marquee__track {
  display: flex;
  width: max-content;
  animation: slide 46s linear infinite;
}

.marquee:hover .marquee__track { animation-play-state: paused; }

.marquee__group {
  display: flex;
  align-items: center;
  gap: 3.5rem;
  padding-right: 3.5rem;
  flex: none;
}

.marquee__item {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
  color: var(--ink-60);
  white-space: nowrap;
}
.marquee__item::before {
  content: "";
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--brass);
  opacity: 0.6;
}

@keyframes slide {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

/* --------------------------------------------------------------------------
   11. Section headers
   -------------------------------------------------------------------------- */
.shead {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.78fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: end;
  margin-bottom: clamp(2.75rem, 5vw, 4.5rem);
}

.shead__eyebrow { margin-bottom: 1.5rem; }
.shead__aside { padding-bottom: 0.4rem; }

/* --------------------------------------------------------------------------
   12. Bento: services
   -------------------------------------------------------------------------- */
.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.25rem;
}

.bento > .cell-7 { grid-column: span 7; }
.bento > .cell-5 { grid-column: span 5; }
.bento > .cell-6 { grid-column: span 6; }
.bento > .cell-4 { grid-column: span 4; }
.bento > .cell-8 { grid-column: span 8; }
.bento > .cell-12 { grid-column: span 12; }

.card {
  position: relative;
  height: 100%;
  padding: clamp(1.6rem, 2.6vw, 2.25rem);
  display: flex;
  flex-direction: column;
  transition: transform 0.75s var(--ease);
}

.card__ico {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--evergreen-soft);
  color: var(--evergreen);
  margin-bottom: 1.75rem;
  transition: transform 0.75s var(--ease), background-color 0.75s var(--ease);
}
.card__ico svg { width: 20px; height: 20px; }

.shell:hover .card { transform: translateY(-3px); }
.shell:hover .card__ico { transform: scale(1.06) rotate(-4deg); background: rgba(27, 58, 52, 0.13); }

.card__title { margin-bottom: 0.875rem; }
.card__body { color: var(--ink-60); font-size: 0.9375rem; line-height: 1.65; }

.card__list {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 1.5rem 0 0;
  border-top: 1px solid var(--line-soft);
  display: grid;
  gap: 0.75rem;
}

.card__list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: start;
  font-size: 0.875rem;
  color: var(--ink-60);
}

.card__list li::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--brass);
  margin-top: 0.6rem;
}

.card__foot { margin-top: auto; padding-top: 2rem; }

/* Dark card: every ink-token color has to be re-stated, or it stays dark-on-dark */
.card--dark { color: rgba(255, 255, 255, 0.74); }
.card--dark .h3, .card--dark .h2 { color: #F7F5F0; }
.card--dark .card__ico { background: rgba(255,255,255,0.09); color: #E8DFCF; }
.card--dark .card__body { color: rgba(255, 255, 255, 0.74); }
.card--dark .card__list { border-color: var(--line-light); }
.card--dark .card__list li { color: rgba(255,255,255,0.70); }
.card--dark .label { color: rgba(255,255,255,0.62); }
.card--dark .tlink { color: #F7F5F0; }

/* --------------------------------------------------------------------------
   13. Stats
   -------------------------------------------------------------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
}

.stats > div {
  background: var(--paper);
  padding: clamp(1.75rem, 3vw, 2.75rem) clamp(1rem, 2vw, 1.75rem);
}

.stats .num { margin-bottom: 0.5rem; }
.stats .cap { font-size: 0.8125rem; color: var(--ink-45); line-height: 1.45; }

/* --------------------------------------------------------------------------
   14. Approach: numbered editorial rows
   -------------------------------------------------------------------------- */
.steps { border-top: 1px solid var(--line); }

.step {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(1rem, 3vw, 3rem);
  align-items: start;
  padding-block: clamp(1.75rem, 3vw, 2.5rem);
  border-bottom: 1px solid var(--line);
  position: relative;
  transition: transform 0.7s var(--ease);
}

.step::before {
  content: "";
  position: absolute;
  inset: 0 -1.5rem;
  border-radius: 1.25rem;
  background: rgba(27, 58, 52, 0.035);
  opacity: 0;
  transform: scale(0.985);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  pointer-events: none;
  z-index: -1;
}
.step:hover::before { opacity: 1; transform: scale(1); }

.step__idx {
  font-family: var(--display);
  font-variation-settings: "SOFT" 0, "WONK" 0, "opsz" 100;
  font-weight: 300;
  font-size: 1.75rem;
  color: var(--brass);
  letter-spacing: -0.02em;
  line-height: 1;
  padding-top: 0.2rem;
}

/* --------------------------------------------------------------------------
   15. Feature split (Elaine / quote)
   -------------------------------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.portrait { position: relative; }
.portrait img {
  width: 100%;
  /* height:auto is load-bearing: a presentational height attribute would
     otherwise beat aspect-ratio and stretch the headshot */
  height: auto;
  aspect-ratio: 1 / 1.06;
  object-fit: cover;
  object-position: 50% 28%;
  border-radius: calc(var(--r-shell) - 0.5rem);
  filter: saturate(0.94) contrast(1.02);
}

.portrait__tag {
  position: absolute;
  right: -1.25rem;
  bottom: 1.5rem;
  padding: 0.75rem 1.125rem;
  border-radius: var(--r-pill);
  background: rgba(253, 252, 250, 0.94);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.7);
  box-shadow: 0 24px 50px -30px rgba(16, 36, 31, 0.65);
  transform: rotate(-1.5deg);
}
.portrait__tag strong { display: block; font-size: 0.875rem; font-weight: 600; letter-spacing: -0.01em; }
.portrait__tag span { font-size: 0.6875rem; color: var(--ink-45); letter-spacing: 0.04em; }

.quote {
  font-family: var(--display);
  font-variation-settings: "SOFT" 0, "WONK" 0, "opsz" 110;
  font-weight: 300;
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  line-height: 1.22;
  letter-spacing: -0.028em;
}

.sig {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2.25rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}

/* --------------------------------------------------------------------------
   16. Dark CTA band
   -------------------------------------------------------------------------- */
.band {
  position: relative;
  overflow: hidden;
  background: var(--evergreen-deep);
  color: rgba(255, 255, 255, 0.78);
  border-radius: 2.5rem;
  padding: clamp(3rem, 6vw, 5.5rem) clamp(1.75rem, 5vw, 4.5rem);
}

.band::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -10%;
  width: 46rem; height: 46rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(169, 131, 79, 0.20), rgba(169, 131, 79, 0) 62%);
  pointer-events: none;
}
.band::after {
  content: "";
  position: absolute;
  bottom: -55%;
  left: -12%;
  width: 40rem; height: 40rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(120, 190, 170, 0.14), rgba(120, 190, 170, 0) 60%);
  pointer-events: none;
}

.band__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: end;
}

.band .h2 { color: #F7F5F0; }
.band__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: flex-end; }

/* --------------------------------------------------------------------------
   17. Page header (interior pages)
   -------------------------------------------------------------------------- */
.phead {
  position: relative;
  padding-top: clamp(9rem, 15vw, 12.5rem);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
  overflow: hidden;
}

.phead::before {
  content: "";
  position: absolute;
  top: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: 70vw; height: 40vw;
  max-width: 1000px;
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 50%, rgba(27, 58, 52, 0.09), rgba(27, 58, 52, 0) 65%);
  pointer-events: none;
}

.phead__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(0, 0.84fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: end;
}

.crumb { font-size: 0.75rem; letter-spacing: 0.06em; color: var(--ink-45); margin-bottom: 1.75rem; }
.crumb a { color: var(--ink-45); }
.crumb a:hover { color: var(--ink); }

/* --------------------------------------------------------------------------
   18. Service detail blocks
   -------------------------------------------------------------------------- */
.svc {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
  padding-block: clamp(3rem, 6vw, 5.5rem);
  border-top: 1px solid var(--line);
}

.svc__sticky { position: sticky; top: 7.5rem; }

.svc__ico {
  display: grid;
  place-items: center;
  width: 3.25rem; height: 3.25rem;
  border-radius: 50%;
  background: var(--evergreen-soft);
  color: var(--evergreen);
  margin-bottom: 1.75rem;
}
.svc__ico svg { width: 21px; height: 21px; }

.spec {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.spec__item { padding: 1.5rem; height: 100%; }
.spec__item .h4 { margin-bottom: 0.5rem; }
.spec__item p { font-size: 0.875rem; color: var(--ink-60); line-height: 1.6; }

/* --------------------------------------------------------------------------
   19. Contact
   -------------------------------------------------------------------------- */
.contact {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.form { display: grid; gap: 1rem; }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }

.field { display: grid; gap: 0.5rem; }
.field > .label { padding-left: 0.25rem; }

.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 0.9375rem;
  color: var(--ink);
  background: #FDFCFA;
  border: 1px solid var(--line);
  border-radius: 0.875rem;
  padding: 0.875rem 1rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition: border-color 0.5s var(--ease), box-shadow 0.5s var(--ease), transform 0.5s var(--ease);
  appearance: none;
}

.field textarea { min-height: 8.5rem; resize: vertical; line-height: 1.6; }

/* lighter than filled input text so the two stay distinguishable, but not the
   1.9:1 that --ink-30 would give */
.field input::placeholder, .field textarea::placeholder { color: rgba(20, 24, 27, 0.52); }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: rgba(27, 58, 52, 0.4);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.9), 0 0 0 4px rgba(27, 58, 52, 0.08);
}

.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%2314181B' stroke-width='1.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form__note { font-size: 0.75rem; color: var(--ink-45); line-height: 1.55; }

.form__sent {
  display: none;
  align-items: flex-start;
  gap: 0.875rem;
  padding: 1rem 1.125rem;
  border-radius: 1rem;
  background: var(--evergreen-soft);
  border: 1px solid rgba(27, 58, 52, 0.14);
  font-size: 0.875rem;
  color: var(--evergreen);
  line-height: 1.55;
}
.form__sent.is-on { display: flex; }

.info { list-style: none; margin: 0; padding: 0; }
.info li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line-soft);
}
.info li:last-child { border-bottom: 0; }
.info .ico {
  display: grid; place-items: center;
  width: 2.375rem; height: 2.375rem;
  border-radius: 50%;
  background: var(--evergreen-soft);
  color: var(--evergreen);
  flex: none;
}
.info .ico svg { width: 16px; height: 16px; }
.info .k { font-size: 0.625rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-45); font-weight: 600; }
.info .v { font-size: 0.9375rem; font-weight: 500; letter-spacing: -0.01em; margin-top: 0.25rem; }
.info .v a:hover { color: var(--evergreen); }
.info .v small { display: block; font-size: 0.8125rem; font-weight: 400; color: var(--ink-45); margin-top: 0.2rem; letter-spacing: 0; }

.faq {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.75rem, 3.5vw, 3rem);
}
.faq__q { margin-bottom: 0.625rem; }
.faq__a { font-size: 0.9375rem; color: var(--ink-60); line-height: 1.65; }

/* --------------------------------------------------------------------------
   20. Values / grid of small blocks
   -------------------------------------------------------------------------- */
.vals {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.tl { border-top: 1px solid var(--line); }
.tl__row {
  display: grid;
  grid-template-columns: 9rem minmax(0, 1fr);
  gap: clamp(1rem, 3vw, 2.5rem);
  padding-block: clamp(1.5rem, 2.6vw, 2.25rem);
  border-bottom: 1px solid var(--line);
}
.tl__yr {
  font-family: var(--display);
  font-variation-settings: "SOFT" 0, "WONK" 0, "opsz" 100;
  font-weight: 300;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  color: var(--brass);
  line-height: 1.2;
}

/* --------------------------------------------------------------------------
   21. Footer
   -------------------------------------------------------------------------- */
.foot {
  background: var(--evergreen-deep);
  color: rgba(255, 255, 255, 0.62);
  padding-top: clamp(4rem, 7vw, 6rem);
  margin-top: clamp(4rem, 7vw, 6rem);
}

.foot__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) repeat(3, minmax(0, 0.75fr));
  gap: clamp(2rem, 4vw, 3rem);
  padding-bottom: clamp(3rem, 5vw, 4.5rem);
}

.foot h4 {
  font-family: var(--sans);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.56);
  margin-bottom: 1.25rem;
}

.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; }
.foot a { font-size: 0.9375rem; transition: color 0.5s var(--ease); }
.foot a:hover { color: #F7F5F0; }

.foot__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.75rem;
  border-top: 1px solid var(--line-light);
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.58);
}
.foot__bottom nav { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.foot__bottom a { font-size: 0.75rem; }

/* --------------------------------------------------------------------------
   22. Service index (services.html): full directory of specializations
   -------------------------------------------------------------------------- */
.dir { display: grid; gap: clamp(2.5rem, 5vw, 4rem); }

.dir__group { display: grid; grid-template-columns: minmax(0, 0.62fr) minmax(0, 1.38fr); gap: clamp(1.5rem, 4vw, 3.5rem); }

.dir__head { position: sticky; top: 7.5rem; align-self: start; }
.dir__head .h3 { margin-bottom: 0.875rem; }

.dir__list { display: grid; gap: 0.75rem; border-top: 1px solid var(--line); padding-top: 0.75rem; }

.dir__item {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
  align-items: center;
  padding: 1.125rem 0.25rem;
  border-bottom: 1px solid var(--line-soft);
  transition: transform 0.65s var(--ease);
}

.dir__item::before {
  content: "";
  position: absolute;
  inset: 0 -1.25rem;
  border-radius: 1rem;
  background: rgba(27, 58, 52, 0.04);
  opacity: 0;
  transform: scale(0.98);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
  z-index: -1;
}
.dir__item:hover { transform: translateX(5px); }
.dir__item:hover::before { opacity: 1; transform: scale(1); }

.dir__item .t { font-weight: 600; font-size: 0.9375rem; letter-spacing: -0.01em; }
.dir__item .d { font-size: 0.8125rem; color: var(--ink-45); line-height: 1.5; margin-top: 0.2rem; }
.dir__item .a { color: var(--ink-30); transition: transform 0.6s var(--ease), color 0.6s var(--ease); }
.dir__item:hover .a { color: var(--evergreen); transform: translate(3px, -2px); }
.dir__item .a svg { width: 15px; height: 15px; }

/* --------------------------------------------------------------------------
   23. Industries
   -------------------------------------------------------------------------- */
.inds { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }

.ind { padding: clamp(1.5rem, 2.5vw, 2rem); height: 100%; display: flex; flex-direction: column; }
.ind__top { display: flex; align-items: center; gap: 0.875rem; margin-bottom: 1.25rem; }
.ind__ico {
  display: grid; place-items: center;
  width: 2.625rem; height: 2.625rem;
  border-radius: 50%;
  background: var(--evergreen-soft);
  color: var(--evergreen);
  flex: none;
  transition: transform 0.7s var(--ease), background-color 0.7s var(--ease);
}
.ind__ico svg { width: 18px; height: 18px; }
.shell:hover .ind__ico { transform: scale(1.07) rotate(-5deg); background: rgba(27, 58, 52, 0.13); }

.ind p { font-size: 0.9375rem; color: var(--ink-60); line-height: 1.62; }

.ind__tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: auto; padding-top: 1.5rem; }
.tag {
  display: inline-block;
  padding: 0.3rem 0.65rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.55);
  font-size: 0.6875rem;
  letter-spacing: 0.02em;
  color: var(--ink-60);
}

/* --------------------------------------------------------------------------
   24. Team
   -------------------------------------------------------------------------- */
.people { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }

.person { padding: 0.5rem 0.5rem 1.5rem; height: 100%; }
.person__img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1.08;
  object-fit: cover;
  border-radius: calc(var(--r-shell) - 0.5rem);
  filter: saturate(0.94);
  transition: transform 0.9s var(--ease);
}
.shell:hover .person__img { transform: scale(1.015); }

.person__ph {
  width: 100%;
  aspect-ratio: 1 / 1.08;
  border-radius: calc(var(--r-shell) - 0.5rem);
  background:
    radial-gradient(circle at 50% 34%, rgba(27, 58, 52, 0.12), rgba(27, 58, 52, 0) 58%),
    var(--paper-warm);
  display: grid;
  place-items: center;
}
.person__ph span {
  font-family: var(--display);
  font-variation-settings: "SOFT" 0, "WONK" 0, "opsz" 100;
  font-weight: 300;
  font-size: 2.25rem;
  letter-spacing: 0.02em;
  color: rgba(27, 58, 52, 0.32);
}

.person__meta { padding: 1.375rem 1rem 0; }
.person__meta .n { font-weight: 600; font-size: 1rem; letter-spacing: -0.015em; }
.person__meta .r { font-size: 0.8125rem; color: var(--brass-deep); margin-top: 0.25rem; letter-spacing: 0.01em; }
.person__meta .b { font-size: 0.8125rem; color: var(--ink-45); line-height: 1.55; margin-top: 0.75rem; }

/* --------------------------------------------------------------------------
   25. Insights
   -------------------------------------------------------------------------- */
.posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }

.post { padding: clamp(1.5rem, 2.4vw, 1.875rem); height: 100%; display: flex; flex-direction: column; }
.post__meta { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.25rem; }
.post__cat {
  padding: 0.25rem 0.6rem;
  border-radius: var(--r-pill);
  background: var(--brass-soft);
  color: #7E6234;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.post__date { font-size: 0.75rem; color: var(--ink-45); }
.post__title { font-size: 1.1875rem; line-height: 1.24; margin-bottom: 0.75rem; }
.post p { font-size: 0.875rem; color: var(--ink-60); line-height: 1.62; }
.post__foot { margin-top: auto; padding-top: 1.75rem; display: flex; flex-direction: column; align-items: flex-start; }
.post__read { font-size: 0.75rem; color: var(--ink-45); }
.post__soon { font-size: 0.75rem; color: var(--ink-45); margin-top: 0.875rem; font-style: italic; }
.post__title a { transition: color 0.5s var(--ease); }
.post__title a:hover { color: var(--evergreen); }
.ind__top .h4 a:hover { color: var(--evergreen); }

.feature {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  padding: clamp(1.75rem, 3vw, 2.75rem);
}

.deadlines { list-style: none; margin: 0; padding: 0; }
.deadlines li {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 1.25rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line-soft);
  align-items: baseline;
}
.deadlines li:last-child { border-bottom: 0; padding-bottom: 0; }
.deadlines .dt { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em; color: var(--brass-deep); text-transform: uppercase; }
.deadlines .dv { font-size: 0.875rem; color: var(--ink-60); line-height: 1.5; }

/* --------------------------------------------------------------------------
   26. Careers
   -------------------------------------------------------------------------- */
.roles { display: grid; gap: 0.75rem; }

.role {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.5rem;
  align-items: center;
  padding: clamp(1.25rem, 2.2vw, 1.75rem);
  transition: transform 0.65s var(--ease);
}
.shell:hover .role { transform: translateX(4px); }

.role__t { font-weight: 600; font-size: 1.0625rem; letter-spacing: -0.015em; }
.role__m { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.75rem; }

.perks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 1.25rem; overflow: hidden; }
.perk { background: var(--paper); padding: clamp(1.25rem, 2.2vw, 1.75rem); }
.perk .h4 { margin-bottom: 0.5rem; }
.perk p { font-size: 0.875rem; color: var(--ink-60); line-height: 1.6; }

/* --------------------------------------------------------------------------
   26b. Profile: fact list, CV timeline, credentials
   -------------------------------------------------------------------------- */
.spec__ico {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--evergreen-soft);
  color: var(--evergreen);
  margin-bottom: 1.125rem;
  transition: transform 0.65s var(--ease), background-color 0.65s var(--ease);
}
.spec__ico svg { width: 17px; height: 17px; }
.shell:hover .spec__ico { transform: scale(1.07) rotate(-5deg); background: rgba(27, 58, 52, 0.13); }

.factlist { list-style: none; margin: 1.125rem 0 0; padding: 0; }
.factlist li {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line-soft);
  align-items: baseline;
}
.factlist li:last-child { border-bottom: 0; padding-bottom: 0; }
.factlist .k { font-size: 0.625rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-45); }
.factlist .v { font-size: 0.875rem; color: var(--ink-80); line-height: 1.45; }

/* CV */
.cv { border-top: 1px solid var(--line); }

.cv__org {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(1.25rem, 4vw, 3.5rem);
  padding-block: clamp(1.75rem, 3vw, 2.75rem);
  border-bottom: 1px solid var(--line);
}

.cv__orghead { display: grid; grid-template-columns: auto 1fr; gap: 0.875rem; align-items: start; }
.cv__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ink-30);
  margin-top: 0.45rem;
  flex: none;
}
.cv__dot.is-current { background: var(--brass); box-shadow: 0 0 0 4px var(--brass-soft); }
.cv__meta { font-size: 0.75rem; color: var(--ink-45); margin-top: 0.4rem; letter-spacing: 0.02em; }

.cv__roles { display: grid; gap: 1.75rem; }
.cv__roletop {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  margin-bottom: 0.75rem;
}
.cv__roletitle { font-size: 0.9375rem; font-weight: 600; letter-spacing: -0.012em; margin: 0; }
.cv__years {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brass-deep);
  white-space: nowrap;
}
.cv__pts { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.cv__pts li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: var(--ink-60);
  line-height: 1.6;
}
.cv__pts li::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--ink-30);
  margin-top: 0.6rem;
}

/* Credentials */
.creds { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.cred { display: grid; grid-template-columns: auto 1fr; gap: 1.125rem; padding: 1.5rem; height: 100%; align-items: start; }
.cred__ico {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--evergreen-soft);
  color: var(--evergreen);
  flex: none;
  transition: transform 0.65s var(--ease);
}
.cred__ico svg { width: 18px; height: 18px; }
.shell:hover .cred__ico { transform: scale(1.07) rotate(-5deg); }
.cred__by { font-size: 0.875rem; color: var(--ink-60); margin-top: 0.4rem; }
.cred__on { font-size: 0.75rem; color: var(--ink-45); margin-top: 0.3rem; letter-spacing: 0.02em; }

/* --------------------------------------------------------------------------
   26c. Industry detail page
   -------------------------------------------------------------------------- */
.pains { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.pain { padding: 1.625rem; height: 100%; }
.pain__q {
  font-family: var(--display);
  font-variation-settings: "SOFT" 0, "WONK" 1, "opsz" 60;
  font-weight: 300;
  font-style: italic;
  font-size: 1.125rem;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--evergreen);
  margin-bottom: 0.875rem;
}
.pain p { font-size: 0.875rem; color: var(--ink-60); line-height: 1.62; }

.svcgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.svcgrid a {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.875rem;
  padding: 1.125rem 1.25rem;
  height: 100%;
  transition: transform 0.6s var(--ease);
}
.shell:hover .svcgrid a { transform: none; }
.svcgrid .t { font-size: 0.875rem; font-weight: 600; letter-spacing: -0.01em; }
.svcgrid .d { display: block; font-size: 0.75rem; color: var(--ink-45); margin-top: 0.2rem; line-height: 1.4; }
.svcgrid .a { color: var(--ink-30); transition: transform 0.6s var(--ease), color 0.6s var(--ease); }
.svcgrid .a svg { width: 14px; height: 14px; }
.shell:hover .svcgrid .a { color: var(--evergreen); transform: translate(3px, -2px); }

/* --------------------------------------------------------------------------
   26d. Article page
   -------------------------------------------------------------------------- */
.art { display: grid; grid-template-columns: minmax(0, 0.3fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.art__meta { position: sticky; top: 7.5rem; align-self: start; }
.art__meta .label { display: block; margin-bottom: 0.5rem; }
.art__metaitem { padding-block: 0.875rem; border-bottom: 1px solid var(--line-soft); }
.art__metaitem:first-of-type { padding-top: 0; }
.art__metaitem .v { font-size: 0.875rem; color: var(--ink-80); }

.art__body { max-width: 66ch; }
.art__body > p:first-of-type {
  font-size: clamp(1.0625rem, 1.35vw, 1.25rem);
  line-height: 1.62;
  color: var(--ink-80);
}
.art__pull {
  margin: 2.5rem 0;
  padding: 1.75rem 0 1.75rem 1.75rem;
  border-left: 2px solid var(--brass);
  font-family: var(--display);
  font-variation-settings: "SOFT" 0, "WONK" 0, "opsz" 90;
  font-weight: 300;
  font-size: clamp(1.25rem, 2.2vw, 1.7rem);
  line-height: 1.28;
  letter-spacing: -0.025em;
  color: var(--ink);
}

/* --------------------------------------------------------------------------
   27. Long-form / legal prose
   -------------------------------------------------------------------------- */
.prose { max-width: 68ch; }
.prose h2 {
  font-size: clamp(1.35rem, 2.2vw, 1.7rem);
  letter-spacing: -0.02em;
  margin: 3rem 0 1rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--line);
}
.prose h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.prose h3 { font-family: var(--sans); font-weight: 600; font-size: 1rem; letter-spacing: -0.01em; margin: 2rem 0 0.625rem; }
.prose p { color: var(--ink-60); font-size: 0.9375rem; line-height: 1.75; margin-bottom: 1rem; }
.prose ul { margin: 0 0 1.25rem; padding: 0; list-style: none; display: grid; gap: 0.625rem; }
.prose ul li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  font-size: 0.9375rem;
  color: var(--ink-60);
  line-height: 1.7;
}
.prose ul li::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--brass);
  margin-top: 0.62rem;
}
.prose a { color: var(--evergreen); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose strong { color: var(--ink); font-weight: 600; }

.toc { position: sticky; top: 7.5rem; align-self: start; }
.toc ul { list-style: none; margin: 0.75rem 0 0; padding: 0; display: grid; gap: 0.5rem; }
.toc a { font-size: 0.875rem; color: var(--ink-45); transition: color 0.5s var(--ease); }
.toc a:hover { color: var(--evergreen); }

.legal { display: grid; grid-template-columns: minmax(0, 0.32fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }

/* --------------------------------------------------------------------------
   28. Related links / 404
   -------------------------------------------------------------------------- */
.rel { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.rel__card { padding: 1.5rem; height: 100%; display: flex; flex-direction: column; transition: transform 0.65s var(--ease); }
.shell:hover .rel__card { transform: translateY(-3px); }
.rel__card .label { margin-bottom: 0.875rem; }
.rel__card .h4 { margin-bottom: 0.5rem; }
.rel__card p { font-size: 0.8125rem; color: var(--ink-45); line-height: 1.55; }
.rel__card .go { margin-top: auto; padding-top: 1.5rem; color: var(--ink-30); }
.rel__card .go svg { width: 15px; height: 15px; transition: transform 0.6s var(--ease); }
.shell:hover .rel__card .go svg { transform: translate(3px, -2px); }

.oops {
  min-height: 78vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding-top: 9rem;
}
.oops__code {
  font-family: var(--display);
  font-variation-settings: "SOFT" 0, "WONK" 0, "opsz" 144;
  font-weight: 300;
  font-size: clamp(6rem, 20vw, 14rem);
  line-height: 0.86;
  letter-spacing: -0.05em;
  color: rgba(27, 58, 52, 0.16);
}

/* --------------------------------------------------------------------------
   29. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .hero__grid { grid-template-columns: 1fr; gap: 3.5rem; }
  .hero__lead { max-width: none; }
  .hero__rail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .badge-float { left: auto; right: 1rem; bottom: -1.25rem; }
  .bento > .cell-7, .bento > .cell-5,
  .bento > .cell-6, .bento > .cell-4,
  .bento > .cell-8 { grid-column: span 12; }
  .split { grid-template-columns: 1fr; }
  .portrait { max-width: 26rem; }
  .svc { grid-template-columns: 1fr; }
  .svc__sticky { position: static; }
  .contact { grid-template-columns: 1fr; }
  .foot__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vals { grid-template-columns: 1fr; }
  .dir__group { grid-template-columns: 1fr; }
  .dir__head { position: static; }
  .people { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .posts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature { grid-template-columns: 1fr; }
  .legal { grid-template-columns: 1fr; }
  .toc { position: static; }
  .rel { grid-template-columns: 1fr; }
  .cv__org { grid-template-columns: 1fr; gap: 1.5rem; }
  .creds { grid-template-columns: 1fr; }
  .svcgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .art { grid-template-columns: 1fr; }
  .art__meta { position: static; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
  .art__metaitem { padding-top: 0; border-bottom: 0; }
}

@media (max-width: 1180px) {
  .mega__grid--services { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mega__grid--services .mega__col--feature { grid-column: span 3; }
  .mega__grid--services .mega__card { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 1.5rem; }
  .mega__grid--services .mega__cardbody { margin-bottom: 0; }
  .mega__grid--firm { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mega__grid--resources { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mega__col--span2 { grid-column: span 2; }
}

@media (max-width: 900px) {
  .nav__primary, .nav__cta { display: none; }
  .mega { display: none; }
  .burger { display: grid; }
  .nav__island { padding-right: 0.4rem; }
  .shead { grid-template-columns: 1fr; align-items: start; }
  .band__inner { grid-template-columns: 1fr; align-items: start; }
  .band__actions { justify-content: flex-start; }
  .phead__grid { grid-template-columns: 1fr; align-items: start; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --r-shell: 1.5rem; }

  .step {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  .step__idx { font-size: 1.25rem; }
  .step::before { inset: 0 -1rem; }

  .spec { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .faq { grid-template-columns: 1fr; }
  .tl__row { grid-template-columns: 1fr; gap: 0.5rem; }
  .band { border-radius: 1.75rem; }
  .portrait__tag { right: 0.75rem; transform: none; }
  .badge-float { transform: none; }
  .hero__actions .btn { width: 100%; justify-content: space-between; }
  /* Portrait crops the frame hard and the text spans the full width, so the side ramp
     stops working. Swap to a vertical one. The rail is dropped: the three practice
     areas reappear as full cards two screens down. */
  .hero--film { min-height: 0; padding-top: 8rem; padding-bottom: 3.5rem; }
  .hero__rail { display: none; }
  .hero--film .lede { max-width: none; }
  .hero__scrim {
    background: linear-gradient(180deg,
      rgba(7, 12, 10, 0.82) 0%,
      rgba(7, 12, 10, 0.76) 24%,
      rgba(7, 12, 10, 0.88) 62%,
      rgba(7, 12, 10, 0.95) 100%);
  }
  .inds { grid-template-columns: 1fr; }
  .people { grid-template-columns: 1fr; }
  .posts { grid-template-columns: 1fr; }
  .perks { grid-template-columns: 1fr; }
  .role { grid-template-columns: 1fr; gap: 1.25rem; align-items: start; }
  .deadlines li { grid-template-columns: 1fr; gap: 0.25rem; }
  .dir__item { grid-template-columns: 1fr auto; gap: 1rem; }
  .dir__item::before { inset: 0 -1rem; }
  .pains { grid-template-columns: 1fr; }
  .svcgrid { grid-template-columns: 1fr; }
  .factlist li { grid-template-columns: 1fr; gap: 0.2rem; }
  .art__meta { grid-template-columns: 1fr; gap: 0; }
  .art__metaitem { padding-block: 0.75rem; border-bottom: 1px solid var(--line-soft); }
}

@media (max-width: 540px) {
  .stats { grid-template-columns: 1fr; }
  .foot__grid { grid-template-columns: 1fr; }
  .brand__sub { letter-spacing: 0.2em; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; filter: none; }
  .marquee__track { animation: none; }
  /* Hold the poster frame instead of playing the hero loop */
  .hero__media video { display: none; }
}

@media print {
  .nav, .menu, .band, .marquee { display: none; }
  body { background: #fff; }
}
