/* F2 Advisory — theme styles. Vanilla CSS, no build step.
   Direction: institutional. Graphite and light grey, logo red as accent only, wide grotesque
   display (Archivo, 112% width) echoing the wordmark, IBM Plex Sans text.
   Contrast (WCAG 2.2 AA): body #3a4046 on #fff 10.4:1; muted #5c646b on #f3f4f6 5.6:1;
   --accent-light #f0a399 on --ink 7.6:1; #d5d9dd on --ink 11.6:1. */

:root {
  --red: #871f16;
  --red-dark: #6a1811;
  --accent-light: #f0a399;
  --ink: #1e2327;
  --body: #3a4046;
  --muted: #5c646b;
  --on-ink: #d5d9dd;
  --on-ink-muted: #aab1b8;
  --paper: #f3f4f6;
  --white: #ffffff;
  --line: #dde1e5;
  --line-ink: rgb(255 255 255 / 14%);
  --serif: 'Archivo', system-ui, sans-serif;
  --sans: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --display: 'Archivo', system-ui, sans-serif;
  --display-weight: 600;
  --display-stretch: 112%;
  --display-tracking: -0.02em;
  --container: 1200px;
  --gutter: clamp(20px, 4vw, 48px);
  --section: clamp(64px, 8vw, 120px);
  --section-sm: clamp(40px, 5vw, 64px);
  --radius: 2px;
  --header-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 24px); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); font-size: 1.0625rem; line-height: 1.65; color: var(--body); background: var(--white); }
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; transition: color .2s var(--ease); }
a:hover { color: var(--red-dark); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 2px; }
.section--ink :focus-visible, .hero :focus-visible, .page-hero:not(.page-hero--plain) :focus-visible { outline-color: var(--accent-light); }
button { font: inherit; }
address { font-style: normal; }

h1, h2, h3, h4 { font-family: var(--display); font-weight: var(--display-weight); font-stretch: var(--display-stretch); color: var(--ink); line-height: 1.08; letter-spacing: var(--display-tracking); margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 1.4rem + 2.6vw, 3.6rem); line-height: 1.04; }
h2 { font-size: clamp(1.55rem, 1.2rem + 1.3vw, 2.2rem); }
h3, .h3 { font-size: clamp(1.2rem, 1.05rem + .6vw, 1.45rem); }
h4, .h4 { font-family: var(--sans); font-size: 1.05rem; font-weight: 600; letter-spacing: 0; font-stretch: 100%; }
p { margin: 0 0 1em; }
.lede { font-size: clamp(1.1rem, 1rem + .35vw, 1.25rem); line-height: 1.6; max-width: 62ch; text-wrap: pretty; }
.eyebrow { display: flex; align-items: center; gap: .75rem; font-family: var(--display); font-stretch: 110%; font-size: .72rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--red); margin: 0 0 1.1rem; }
.eyebrow::before { content: ''; width: 28px; height: 1px; background: currentColor; }
.eyebrow--light { color: var(--accent-light); }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 1rem; top: -4rem; background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 100; border-radius: var(--radius); }
.skip-link:focus { top: 1rem; color: #fff; }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.narrow { max-width: 780px; }
.section { padding-block: var(--section); }
.section--sm, .section--tight { padding-block: var(--section-sm); }
.section--paper { background: var(--paper); }
.section--ink { background: var(--ink); color: var(--on-ink); }
.section--ink h2, .section--ink h3 { color: var(--white); }
.section--ink .lede { color: var(--on-ink); }
.section--ink a:not(.button) { color: var(--white); text-decoration-color: rgb(255 255 255 / 40%); text-underline-offset: .28em; }
.section--ink a:not(.button):hover { text-decoration-color: var(--white); }
.section__head { max-width: 780px; margin-bottom: clamp(32px, 4vw, 56px); }

/* Prose */
.prose p { margin-bottom: 1.15em; }
.prose p:last-child { margin-bottom: 0; }
.prose--lg { font-size: 1.125rem; line-height: 1.7; }
.prose h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }

/* Buttons */
.button { display: inline-flex; align-items: center; justify-content: center; gap: .6em; font-family: var(--sans); font-weight: 600; font-size: .98rem; line-height: 1; padding: 1em 1.45em; border-radius: var(--radius); background: var(--red); color: var(--white); text-decoration: none; border: 1.5px solid var(--red); cursor: pointer; transition: background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease); }
.button:hover { background: var(--red-dark); border-color: var(--red-dark); color: var(--white); }
.button svg { transition: transform .25s var(--ease); }
.button:hover svg { transform: translateX(3px); }
.button--light { background: var(--white); color: var(--ink); border-color: var(--white); }
.button--light:hover { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.button--outline-light { background: transparent; color: var(--white); border-color: rgb(255 255 255 / 55%); }
.button--outline-light:hover { background: rgb(255 255 255 / 8%); border-color: var(--white); color: var(--white); }
.button--ghost { background: transparent; color: var(--red); }
.button--ghost:hover { background: var(--paper); color: var(--red-dark); }
.button--small { padding: .75em 1.1em; font-size: .9rem; }
.icon-link { display: inline-flex; align-items: center; gap: .5em; font-weight: 500; text-decoration: none; }
.founder__copy .icon-link { margin-top: 1.6rem; }
.icon-link:hover { text-decoration: underline; }

/* Media + placeholders */
.ph { position: relative; display: grid; place-content: center; text-align: center; gap: .4rem; padding: 1.5rem; width: 100%; background: linear-gradient(160deg, #ece8e3, #dfd9d2); border: 1px solid #cfc7bf; color: #4f4944; }
.ph__tag { font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--red); }
.ph__label { font-family: var(--sans); font-size: 1rem; line-height: 1.4; max-width: 30ch; }
.media { overflow: hidden; }
.media img { width: 100%; height: 100%; object-fit: cover; object-position: var(--hero-focus, 50% 50%); }
.media--portrait { aspect-ratio: 3 / 4; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 1px solid transparent; transition: border-color .25s, box-shadow .25s; }
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 24px rgb(27 25 24 / 6%); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; min-height: var(--header-h); }
.brand img { height: 52px; width: auto; }
.site-nav > ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: clamp(1.1rem, 2.2vw, 2.2rem); }
.site-nav a, .site-nav__sub-toggle { font-weight: 500; font-size: .95rem; color: var(--ink); text-decoration: none; background: none; border: 0; padding: .45rem 0; cursor: pointer; }
.site-nav > ul > li > a:not(.button) { background-image: linear-gradient(currentColor, currentColor); background-size: 0 1px; background-position: 0 100%; background-repeat: no-repeat; transition: background-size .25s var(--ease), color .2s; }
.site-nav > ul > li > a:not(.button):hover, .site-nav > ul > li > a[aria-current] { background-size: 100% 1px; color: var(--red); }
.site-nav__sub-toggle:hover { color: var(--red); }
.site-nav .site-nav__cta a.button { background: var(--red); border: 1.5px solid var(--red); color: var(--white); padding: .8em 1.2em; font-weight: 600; }
.site-nav .site-nav__cta a.button:hover { background: var(--red-dark); border-color: var(--red-dark); }
.has-sub { position: relative; }
.site-nav__caret { display: inline-block; width: .45em; height: .45em; margin-left: .45em; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: translateY(-.25em) rotate(45deg); transition: transform .25s var(--ease); }
.has-sub.is-open .site-nav__caret { transform: translateY(.05em) rotate(225deg); }
.site-nav__sub { position: absolute; top: calc(100% + 16px); left: 50%; width: 460px; transform: translate(-50%, 8px); background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--red); box-shadow: 0 24px 60px rgb(27 25 24 / 14%); padding: .5rem; opacity: 0; visibility: hidden; transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s; }
.site-nav__sub::after { content: ''; position: absolute; top: -20px; left: 0; right: 0; height: 20px; }
.has-sub.is-open .site-nav__sub { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.site-nav__sub-list { list-style: none; margin: 0; padding: 0; display: grid; }
.site-nav .site-nav__sub-list a { display: block; padding: .8rem .9rem; text-decoration: none; border-bottom: 1px solid var(--line); }
.site-nav__sub-list li:last-child a { border-bottom: 0; }
.site-nav .site-nav__sub-list a:hover, .site-nav .site-nav__sub-list a:focus-visible { background: var(--paper); }
.site-nav__sub-title, .site-nav__sub-lede { display: block; }
.site-nav__sub-title { font-family: var(--display); font-weight: 600; font-stretch: 105%; font-size: 1rem; color: var(--ink); line-height: 1.25; }
.site-nav__sub-list a[aria-current] .site-nav__sub-title { color: var(--red); }
.site-nav__sub-lede { font-size: .85rem; color: var(--muted); line-height: 1.4; margin-top: .2rem; }
.site-nav .site-nav__sub-all { display: flex; align-items: center; gap: .4em; margin: .3rem 0 0; padding: .75rem .9rem .45rem; font-size: .85rem; font-weight: 500; color: var(--muted); white-space: nowrap; border-top: 1px solid var(--line); }
.site-nav .site-nav__sub-all:hover { color: var(--red); }
.site-nav__sub-all svg { width: 15px; height: 15px; }
.nav-toggle { display: none; position: relative; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; }
.nav-toggle__bar, .nav-toggle__bar::before, .nav-toggle__bar::after { position: absolute; left: 10px; width: 24px; height: 2px; background: var(--ink); transition: transform .25s var(--ease), background .2s; content: ''; }
.nav-toggle__bar { top: 21px; }
.nav-toggle__bar::before { top: -7px; }
.nav-toggle__bar::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar::after { transform: translateY(-7px) rotate(-45deg); }

/* Home hero: full-bleed photo, headline panel sits over it */
.hero { position: relative; background: var(--ink); color: var(--on-ink); isolation: isolate; }
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media .media, .hero__media .ph { position: absolute; inset: 0; height: 100%; aspect-ratio: auto !important; }
.hero__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgb(30 35 39 / 55%) 0%, rgb(30 35 39 / 10%) 55%, rgb(30 35 39 / 0%) 100%); }
.hero__media .ph { border: 0; }
.hero__inner { position: relative; z-index: 1; width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; display: grid; grid-template-columns: minmax(0, 640px) 1fr; min-height: min(84vh, 800px); align-items: end; padding-top: clamp(120px, 22vh, 240px); }
.hero__copy { background: var(--ink); padding: clamp(32px, 4vw, 56px) clamp(28px, 4vw, 56px); border-top: 3px solid var(--red); }
.hero h1 { color: var(--white); font-size: clamp(2.1rem, 1.4rem + 2.6vw, 3.5rem); margin-bottom: .45em; }
.hero__intro { font-size: 1.05rem; line-height: 1.6; color: var(--on-ink); margin-bottom: 1.6rem; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.3rem; }
.icon-link--light { color: var(--white); padding: .5em 0; }
.icon-link--light:hover { color: var(--white); text-decoration: underline; text-underline-offset: .28em; }
.hero__tags { list-style: none; margin: 1.6rem 0 0; padding: 1.2rem 0 0; border-top: 1px solid var(--line-ink); display: flex; flex-wrap: wrap; gap: .3rem 1.2rem; }
.hero__tags li { font-size: .82rem; color: var(--on-ink-muted); }

/* About */
.statement { font-size: clamp(1.6rem, 1.05rem + 1.8vw, 2.6rem); line-height: 1.15; max-width: 26ch; margin-bottom: clamp(32px, 4vw, 56px); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: start; padding-top: clamp(28px, 3vw, 40px); border-top: 1px solid var(--line); }

/* Practice list (home) */
.practice-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.practice-list__item { border-bottom: 1px solid var(--line); }
.practice-list__link { display: grid; grid-template-columns: 4.5rem 1fr auto; gap: clamp(16px, 3vw, 40px); align-items: center; padding: clamp(24px, 3vw, 36px) 0; text-decoration: none; color: inherit; }
.practice-list__num { font-family: var(--sans); font-weight: 600; font-size: .85rem; letter-spacing: .1em; color: var(--red); align-self: start; padding-top: .6rem; }
.practice-list__title { font-size: clamp(1.35rem, 1.1rem + .9vw, 1.9rem); margin: 0 0 .35rem; transition: color .2s; }
.practice-list__lede { display: block; color: var(--body); max-width: 68ch; }
.practice-list__arrow { display: grid; place-items: center; width: 52px; height: 52px; border: 1px solid #c9c1b8; border-radius: 50%; color: var(--ink); transition: background .25s var(--ease), color .25s, border-color .25s, transform .25s var(--ease); }
.practice-list__link:hover .practice-list__title { color: var(--red); }
.practice-list__link:hover .practice-list__arrow { background: var(--red); border-color: var(--red); color: var(--white); transform: translateX(4px); }
.practice-list__link:focus-visible { outline-offset: 6px; }

/* Founder */
.founder { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.founder__media { position: sticky; top: calc(var(--header-h) + 24px); }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); margin: 1.6rem 0 2.2rem; border-top: 1px solid var(--ink); }
.stats__item { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: .4rem; padding: 1.3rem 1.4rem 1.3rem 0; border-bottom: 1px solid var(--line); }
.stats__item:nth-child(odd) { border-right: 1px solid var(--line); }
.stats__item:nth-child(even) { padding-left: 1.4rem; }
.stats__value { margin: 0; font-family: var(--display); font-weight: 500; font-stretch: 100%; letter-spacing: -0.01em; font-size: clamp(2rem, 1.5rem + 1.6vw, 2.9rem); line-height: 1; color: var(--ink); }
.stats__label { font-size: .9rem; line-height: 1.45; color: var(--muted); }

/* Logo wall: hairline grid */
.logo-wall { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); background: var(--white); }
.logo-wall__item { display: grid; place-items: center; aspect-ratio: 3 / 2; padding: 1rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.logo-wall__item img { max-height: 84px; max-width: 72%; width: auto; object-fit: contain; } /* Round 4 (Lorne): logos always in full colour, no grey-until-hover */
.logo-wall__text { font-family: var(--sans); font-weight: 500; font-size: .95rem; color: var(--muted); text-align: center; line-height: 1.25; }

/* CTA band */
.cta-band { display: grid; grid-template-columns: 1.3fr .7fr; gap: clamp(24px, 4vw, 64px); align-items: end; }
.cta-band h2 { font-size: clamp(1.8rem, 1.3rem + 1.8vw, 2.8rem); }
.cta-band .lede { margin: 0; }
.cta-band__actions { display: grid; gap: 1.4rem; justify-items: start; }
.cta-band__details { display: grid; gap: .55rem; font-size: 1rem; justify-items: start; }

/* Practice-area hero */
.page-hero { position: relative; background: var(--ink); color: var(--on-ink); isolation: isolate; }
.page-hero__media { position: absolute; inset: 0; z-index: 0; }
.page-hero__media .media, .page-hero__media .ph { position: absolute; inset: 0; height: 100%; aspect-ratio: auto !important; }
.page-hero__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgb(30 35 39 / 50%) 0%, rgb(30 35 39 / 5%) 60%); }
.page-hero__inner { position: relative; z-index: 1; width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; display: grid; grid-template-columns: minmax(0, 620px) 1fr; min-height: min(58vh, 540px); align-items: end; padding-top: clamp(80px, 14vh, 160px); }
.page-hero__copy { background: var(--ink); padding: clamp(28px, 3.5vw, 48px) clamp(28px, 4vw, 56px); border-top: 3px solid var(--red); display: flex; flex-direction: column; align-items: flex-start; }
.page-hero h1 { color: var(--white); margin-bottom: .45em; }
.page-hero__lede { font-size: 1.05rem; line-height: 1.6; max-width: 56ch; margin-bottom: 1.5rem; color: var(--on-ink); }

/* Plain page hero (contact, utility, insights) */
.page-hero--plain { background: var(--paper); color: var(--body); padding-block: clamp(40px, 6vw, 88px) clamp(28px, 4vw, 48px); border-bottom: 1px solid var(--line); }
.page-hero--plain h1 { color: var(--ink); }
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 1.4rem; }
.crumbs a { color: var(--muted); }
.crumbs span { margin-inline: .4em; }
.crumbs--light, .crumbs--light a { color: var(--on-ink-muted); }
.crumbs--light a:hover { color: var(--white); }
.byline { color: var(--muted); font-size: .95rem; }

/* Practice-area document layout */
.doc { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); padding-block: var(--section-sm) var(--section); }
.toc { position: sticky; top: calc(var(--header-h) + 32px); align-self: start; }
.toc__title { font-size: .75rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: .8rem; }
.toc__list { list-style: none; margin: 0 0 1.6rem; padding: 0; border-left: 1px solid var(--line); }
.toc__list a { display: block; padding: .45rem 0 .45rem 1rem; margin-left: -1px; border-left: 2px solid transparent; color: var(--body); text-decoration: none; font-size: .95rem; line-height: 1.35; transition: color .2s, border-color .2s; }
.toc__list a:hover, .toc__list a.is-active { color: var(--red); border-left-color: var(--red); }
.doc__body { max-width: 800px; }
.doc__section { padding-top: clamp(40px, 5vw, 64px); margin-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--line); }
.summary + .doc__section { border-top: 0; margin-top: 0; padding-top: 0; }
.doc__section > h2 { font-size: clamp(1.7rem, 1.3rem + 1.3vw, 2.3rem); margin-bottom: 1.2rem; }
.summary { background: var(--paper); border-left: 3px solid var(--red); border-top: 1px solid var(--line); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: clamp(22px, 3vw, 34px) clamp(24px, 3.5vw, 40px); margin-bottom: clamp(40px, 5vw, 64px); }
.summary__title { font-family: var(--sans); font-size: .75rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--red); margin-bottom: .9rem; }
.summary__list { margin: 0; padding-left: 1.15em; display: grid; gap: .55rem; color: var(--ink); font-size: 1.05rem; line-height: 1.5; }
.summary__list li::marker { color: var(--red); }

.check-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 2rem; }
.check-list li { display: flex; gap: .7rem; align-items: flex-start; padding: .85rem 0; border-bottom: 1px solid var(--line); line-height: 1.45; }
.check-list svg { flex: none; color: var(--red); margin-top: .18em; }

.steps { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.steps__item { display: grid; grid-template-columns: 4rem 1fr; gap: 1rem; padding: 1.4rem 0; border-bottom: 1px solid var(--line); }
.steps__num { font-family: var(--sans); font-weight: 600; font-size: .85rem; letter-spacing: .1em; line-height: 1; color: var(--red); padding-top: .35rem; }
.steps__title { font-family: var(--sans); font-size: 1.1rem; font-weight: 600; margin: 0 0 .3rem; letter-spacing: 0; }
.steps__item p { margin: 0; }

.faq { border-top: 1px solid var(--ink); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary { list-style: none; cursor: pointer; padding: 1.2rem 3rem 1.2rem 0; position: relative; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__q { font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); font-stretch: 105%; margin: 0; line-height: 1.3; transition: color .2s; }
.faq__item summary::before, .faq__item summary::after { content: ''; position: absolute; right: .5rem; top: 50%; width: 14px; height: 1.5px; background: var(--red); transition: transform .25s var(--ease); }
.faq__item summary::after { transform: rotate(90deg); }
.faq__item[open] summary::after { transform: rotate(0); }
.faq__item summary:hover .faq__q { color: var(--red); }
.faq__answer { padding: 0 0 1.4rem; max-width: 64ch; }
.faq__answer p { margin: 0; }

.terms { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 2.5rem; }
.terms__item { padding: 1.2rem 0; border-top: 1px solid var(--line); }
.terms dt { font-family: var(--display); font-weight: 600; font-stretch: 105%; font-size: 1.05rem; color: var(--ink); margin-bottom: .3rem; }
.terms dd { margin: 0; font-size: .98rem; }

/* Panels + contact */
.panel { background: var(--paper); padding: clamp(24px, 3vw, 40px); border-top: 3px solid var(--red); }
.panel__title { font-family: var(--sans); font-size: .78rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--ink); margin-bottom: 1.1rem; }
.panel__download { margin-top: 2rem; padding-top: 1.8rem; border-top: 1px solid var(--line); }
.contact-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.contact-list__label { display: block; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; }

/* Gravity Forms (theme-styled) */
.gform_wrapper fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.gform_wrapper legend { padding: 0; }
.gform_wrapper .gform_fields { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; list-style: none; margin: 0; padding: 0; }
.gform_wrapper .gfield { grid-column: span 2; }
.gform_wrapper .gfield--width-half { grid-column: span 1; }
.gform_wrapper .gfield_label, .gform_wrapper legend.gfield_label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: .45rem; color: var(--ink); }
.gform_wrapper .gfield_required { color: var(--red); margin-left: .2em; }
.gform_wrapper input[type="text"], .gform_wrapper input[type="email"], .gform_wrapper input[type="tel"], .gform_wrapper textarea, .gform_wrapper select { width: 100%; font: inherit; padding: .85rem .95rem; border: 1px solid #8f867d; border-radius: var(--radius); background: var(--white); color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.gform_wrapper input:focus, .gform_wrapper textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgb(135 31 22 / 18%); }
.gform_wrapper textarea { min-height: 160px; resize: vertical; }
.gform_wrapper .ginput_complex { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.gform_wrapper .ginput_complex label { display: block; font-size: .82rem; color: var(--muted); margin-top: .3rem; }
.gform_wrapper .gform_footer { margin-top: 1.4rem; }
.gform_wrapper .gfield_description { font-size: .88rem; color: var(--muted); margin-top: .35rem; }
.gform_wrapper .gfield_validation_message, .gform_wrapper .validation_error { color: var(--red); font-size: .9rem; margin-top: .4rem; }
.gform_wrapper .gform_validation_container, .gform_wrapper .gfield--type-honeypot { display: none !important; }
.gform_confirmation_message { background: var(--paper); border-left: 3px solid var(--red); padding: 1rem 1.2rem; }

/* Footer */
.site-footer { background: var(--paper); color: var(--body); padding-block: clamp(56px, 6vw, 88px) 2rem; border-top: 1px solid var(--line); }
.site-footer a { color: var(--ink); text-decoration: none; }
.site-footer a:hover { color: var(--red); text-decoration: underline; }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: clamp(32px, 5vw, 72px); padding-bottom: 2.5rem; border-bottom: 1px solid var(--line); }
.site-footer__brand img { height: 64px; width: auto; margin-bottom: 1rem; }
.site-footer__tag { max-width: 34ch; font-size: .95rem; color: var(--muted); }
.site-footer__heading { font-family: var(--sans); font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 1rem; }
.site-footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.site-footer .icon-link { font-weight: 400; gap: .45em; }
.site-footer .icon-link svg { width: 17px; height: 17px; color: var(--muted); }
.site-footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-top: 1.5rem; font-size: .88rem; color: var(--muted); }
.site-footer__legal p { margin: 0; }
.site-footer__legal-links { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.4rem; }

/* Reveal animation (opacity + small rise; off under reduced motion) */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--delay, 0ms); }
.reveal--delay { --delay: 120ms; }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .practice-list__arrow, .button, .button svg { transition: none; }
}

/* Responsive */
@media (max-width: 1024px) {
  .doc { grid-template-columns: 1fr; }
  .toc { position: static; padding: 1.2rem 1.4rem; background: var(--paper); }
  .toc__list { columns: 2; column-gap: 2rem; margin-bottom: 0; }
  .toc__list li { break-inside: avoid; }
  .toc__cta { display: none; }
}
@media (max-width: 960px) {
  /* Mobile: the photo becomes a normal 16:10 block above the panel instead of a full-height backdrop. */
  .hero__media, .page-hero__media { position: relative; inset: auto; z-index: 0; aspect-ratio: 16 / 10; min-height: 0; }
  .hero__media .media, .hero__media .ph, .page-hero__media .media, .page-hero__media .ph { position: absolute; inset: 0; }
  .hero__media::after, .page-hero__media::after { background: linear-gradient(180deg, rgb(30 35 39 / 0%) 70%, rgb(30 35 39 / 45%) 100%); }
  .hero__inner, .page-hero__inner { grid-template-columns: 1fr; min-height: 0; padding-top: 0; width: 100%; }
  .hero__copy, .page-hero__copy { padding: clamp(32px, 7vw, 56px) var(--gutter); border-top-width: 3px; }
  .about-grid, .founder, .contact-grid, .cta-band { grid-template-columns: 1fr; }
  .founder__media { position: static; max-width: 480px; }
  .logo-wall { grid-template-columns: repeat(3, 1fr); }
  /* lone last tile (25 logos): span the row and keep the logo the same size */
  .logo-wall__item:last-child:nth-child(3n + 1) { grid-column: 1 / -1; aspect-ratio: 9 / 2; }
  .logo-wall__item:last-child:nth-child(3n + 1) img { max-width: 24%; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
}

/* Hero panel side: add .hero--panel-right / .page-hero--panel-right to put the copy panel on the right (desktop only; mobile stacks). */
.hero--panel-right .hero__inner { grid-template-columns: 1fr minmax(0, 640px); }
.hero--panel-right .hero__copy { grid-column: 2; }
.hero--panel-right .hero__media::after { background: linear-gradient(270deg, rgb(30 35 39 / 55%) 0%, rgb(30 35 39 / 10%) 55%, rgb(30 35 39 / 0%) 100%); }
.page-hero--panel-right .page-hero__inner { grid-template-columns: 1fr minmax(0, 620px); }
.page-hero--panel-right .page-hero__copy { grid-column: 2; }
.page-hero--panel-right .page-hero__media::after { background: linear-gradient(270deg, rgb(30 35 39 / 50%) 0%, rgb(30 35 39 / 5%) 60%); }

@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .site-nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-bottom: 1px solid var(--line); box-shadow: 0 16px 40px rgb(27 25 24 / 10%); padding: .5rem var(--gutter) 1.4rem; display: none; max-height: calc(100vh - var(--header-h)); overflow-y: auto; }
  .site-nav.is-open { display: block; }
  .site-nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav > ul > li { border-bottom: 1px solid var(--line); }
  .site-nav > ul > li:last-child { border: 0; }
  .site-nav a, .site-nav__sub-toggle { display: block; width: 100%; text-align: left; padding: .95rem 0; }
  .site-nav > ul > li > a:not(.button) { background-image: none; }
  .site-nav__sub { position: static; width: auto; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 .6rem; display: none; }
  .site-nav__sub::after { display: none; }
  .has-sub.is-open .site-nav__sub { display: block; transform: none; }
  .site-nav .site-nav__sub-list a { padding: .7rem 0 .7rem .9rem; border-bottom: 0; border-left: 2px solid var(--line); }
  .site-nav__sub-title { font-size: 1.08rem; }
  .site-nav__sub-all { border-top: 0; padding-left: .9rem; }
  .site-nav__cta { padding-top: 1rem; }
  .site-nav__cta a.button { display: inline-flex; width: auto; }
  .practice-list__link { grid-template-columns: 2.6rem 1fr; }
  .practice-list__arrow { display: none; }
  .check-list, .terms { grid-template-columns: 1fr; }
  .toc__list { columns: 1; }
  .logo-wall { grid-template-columns: repeat(2, 1fr); }
  .logo-wall__item:last-child:nth-child(3n + 1) img { max-width: 72%; }
  .logo-wall__item:last-child:nth-child(odd) { grid-column: 1 / -1; aspect-ratio: 3 / 1; }
  .logo-wall__item:last-child:nth-child(odd) img { max-width: 36%; }
  .site-footer__grid { grid-template-columns: 1fr; }
  .gform_wrapper .gfield--width-half { grid-column: span 2; }
  .gform_wrapper .ginput_complex { grid-template-columns: 1fr; }
  .author-box { grid-template-columns: 1fr; }
}

/* ---- Distinct-from-EST overrides (2026-10-09) ----
   1. Eyebrows: no leading rule; small red bar beneath instead.
   2. Practice areas: tiles with a graphite top rule, no row numbers. */
.eyebrow { display: block; }
.eyebrow::before { content: none; }
.eyebrow::after { content: ''; display: block; width: 24px; height: 2px; margin-top: .55rem; background: currentColor; }

.practice-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: clamp(16px, 2vw, 24px); border-top: 0; }
.practice-list__item { border-bottom: 0; }
.practice-list__link { display: flex; flex-direction: column; align-items: flex-start; gap: .85rem; height: 100%; padding: clamp(24px, 3vw, 36px); background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--ink); transition: border-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease); }
.practice-list__link:hover { border-top-color: var(--red); transform: translateY(-3px); box-shadow: 0 16px 40px rgb(30 35 39 / 10%); }
.practice-list__num { display: none; }
.practice-list__title { margin: 0; }
.practice-list__lede { color: var(--body); margin-top: .45rem; } /* round 1: more air under tile headlines */
.practice-list__arrow { display: inline-flex; align-items: center; gap: .5em; width: auto; height: auto; margin-top: auto; padding-top: .8rem; border: 0; border-radius: 0; font-size: .92rem; font-weight: 600; color: var(--red); }
.practice-list__arrow::before { content: 'View consulting service'; }
.practice-list__link:hover .practice-list__arrow { background: none; color: var(--red-dark); transform: none; }
.practice-list__link:hover .practice-list__arrow svg { transform: translateX(3px); }
.practice-list__arrow svg { transition: transform .25s var(--ease); }
@media (max-width: 720px) {
  .practice-list__link { display: flex; }
  .practice-list__arrow { display: inline-flex; }
}
@media (prefers-reduced-motion: reduce) {
  .practice-list__link, .practice-list__arrow svg { transition: none; }
  .practice-list__link:hover { transform: none; }
}

/* ---- round 2 (Lorne, 2026-10-22) ---- */
/* no one-word orphans in summary bullets, FAQ answers, or tile text */
.summary__list li, .faq__answer p, .practice-list__lede, .terms dd { text-wrap: pretty; }
/* footer service names on one line so "Expert Witness..." doesn't read as a gap */
@media (min-width: 900px) { .site-footer__grid { grid-template-columns: 1.1fr 1.3fr 1fr; } .site-footer__list a { white-space: nowrap; } }
/* tighter gap between Key terms and "Additional consulting services" */
.is-practice-area .doc { padding-block-end: var(--section-sm); }
.is-practice-area .doc + .section--paper { padding-block-start: var(--section-sm); }
/* logo wall: equal optical size; width set inline per logo from its aspect ratio (f2_logo_img) */
.logo-wall__item img { max-width: none; max-height: none; height: auto; }

/* ---- round 3 (Lorne, 2026-10-22): compact logo wall on phones, 3 across ---- */
@media (max-width: 480px) {
  .logo-wall { grid-template-columns: repeat(3, 1fr); }
  .logo-wall__item { padding: .5rem; aspect-ratio: 4 / 3; }
  /* Round 4 (Lorne): phones show 24 logos in 8 full rows. Dave's is hidden and Absolut takes its slot
     (Häagen-Dazs moves after it). Desktop keeps all 25. */
  .logo-wall__item:last-child:nth-child(odd) { grid-column: auto; aspect-ratio: 4 / 3; }
  .logo-wall__item--daves-hot-chicken { display: none; }
  .logo-wall__item--haagen-dazs { order: 1; }
}

/* Round 4 (Lorne, 2026-10-26): desktop heroes use the mobile structure on every page.
   Photo is a full-width band on top (whole photo visible, no copy box over it); the dark copy area sits below:
   headline left, intro + actions right. hero_panel_side no longer applies on desktop; hero_focus still sets the crop. */
@media (min-width: 961px) {
  .hero__media, .page-hero__media { position: relative; inset: auto; z-index: 0; aspect-ratio: auto; }
  .hero__media, .page-hero__media { height: clamp(340px, 36vw, 540px); } /* same band height on every page */
  .hero__media::after, .page-hero__media::after,
  .hero--panel-right .hero__media::after, .page-hero--panel-right .page-hero__media::after { background: linear-gradient(180deg, rgb(30 35 39 / 0%) 75%, rgb(30 35 39 / 40%) 100%); }
  .hero__inner, .page-hero__inner,
  .hero--panel-right .hero__inner, .page-hero--panel-right .page-hero__inner { display: block; min-height: 0; padding-top: 0; }
  .hero__copy, .page-hero__copy,
  .hero--panel-right .hero__copy, .page-hero--panel-right .page-hero__copy {
    display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); column-gap: clamp(40px, 5vw, 96px); align-items: start;
    padding: clamp(40px, 4vw, 64px) 0 clamp(48px, 5vw, 80px); border-top: 3px solid var(--red); background: var(--ink); grid-column: auto; }
  .hero__copy > *, .page-hero__copy > * { grid-column: 2; }
  .hero__copy > .eyebrow, .page-hero__copy > .crumbs { grid-column: 1 / -1; grid-row: 1; }
  .hero__copy > h1, .page-hero__copy > h1 { grid-column: 1; grid-row: 2 / span 4; margin-bottom: 0; }
  .hero__intro, .page-hero__lede { margin-top: .35rem; max-width: 62ch; }
  .page-hero__copy > .button { justify-self: start; }
}
