/* =============================================================
   Ervaid Law - Stylesheet
   Type:    Fraunces (serif) + Inter (sans) + Instrument Serif (italic)
            All free via Google Fonts
   Palette: Paper / Ink / Oxblood / Gold
   ============================================================= */

/* ---------- Tokens ---------- */
:root {
  --paper:     #FAF8F4;
  --paper-2:   #EFEEE7;
  --ink:       #0E0E10;
  --ink-2:     #2B2A28;
  --muted:     #6B6358;
  --rule:      #DAD6CC;
  --brand:     #1F2EA2;          /* Ervaid blue - matches logo (kept for accents) */
  --brand-2:   #15206F;
  --brand-soft:#E1E4F2;
  --ink-navy:  #07112B;          /* very dark navy, near-black with blue undertone */
  --gold:      #B89968;
  --gold-soft: #E6D9C2;
  --green:     #4F9D69;

  --serif:  'Newsreader', 'Iowan Old Style', Georgia, serif;
  --sans:   'Inter', system-ui, -apple-system, "Segoe UI", sans-serif;
  --italic: 'Instrument Serif', Georgia, serif;

  --max-w:   1800px;
  /* Gutter floor dropped from 1.25rem (20px) to .9rem (14px) so that on
     320-360px viewports - and inside the Buildhaus iframe previews -
     content gets full breathing room instead of losing 40px to padding. */
  --gutter:  clamp(.9rem, 4vw, 4.5rem);
  --section: clamp(3rem, 8vw, 8rem);

  --ease:     cubic-bezier(.2, .7, .2, 1);
  --dur:      600ms;
  --dur-fast: 240ms;

  --shadow-1: 0 1px 2px rgba(14,14,16,.04), 0 4px 16px rgba(14,14,16,.06);
  --shadow-2: 0 12px 40px rgba(14,14,16,.08);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Reset ---------- */
*, *::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: clamp(1rem, 0.95rem + 0.18vw, 1.0625rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul { padding: 0; margin: 0; list-style: none; }
p { margin: 0 0 1em; }
hr { border: none; border-top: 1px solid var(--rule); margin: 0; }

/* ---------- Accessibility ---------- */
.skip {
  position: absolute; top: -100px; left: 0;
  background: var(--ink); color: var(--paper);
  padding: .75rem 1rem; z-index: 1000;
  transition: top var(--dur-fast);
}
.skip:focus { top: 0; }
:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- Layout ---------- */
.container {
  width: 100%; max-width: var(--max-w);
  padding-left: var(--gutter); padding-right: var(--gutter);
  margin-inline: auto;
}
.section { padding-block: var(--section); }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }

/* ---------- Typography ---------- */
.eyebrow {
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .2em;
  color: var(--muted);
  margin: 0 0 1.25rem;
  font-weight: 400;
}
.h-display {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.6rem, 1.4rem + 5.6vw, 6.5rem);
  line-height: 0.98;
  letter-spacing: -0.025em;
  margin: 0;
  color: var(--ink);
}
.h-section {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2rem, 1.2rem + 3vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 1.5rem;
}
em, .italic {
  font-family: var(--italic);
  font-style: italic;
  font-weight: 300;
}

.lead {
  font-size: clamp(1.05rem, 0.9rem + 0.5vw, 1.3rem);
  max-width: 60ch;
  color: var(--ink-2);
  line-height: 1.5;
  margin: 0;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 75%, transparent);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-fast), background var(--dur-fast);
}
.site-header.is-scrolled {
  border-bottom-color: var(--rule);
  background: color-mix(in srgb, var(--paper) 92%, transparent);
}
.header-row {
  display: flex; align-items: center; gap: 2rem;
  height: 76px;
}
.brand {
  display: inline-flex; align-items: baseline; gap: .5rem;
  font-family: var(--serif);
}
.brand-mark {
  font-size: 1.45rem;
  font-weight: 400;
  letter-spacing: -0.01em;
}
.brand-dot { color: var(--brand); }
.brand-sub {
  font-family: var(--sans);
  font-size: .65rem;
  text-transform: uppercase;
  letter-spacing: .28em;
  color: var(--muted);
  padding-left: .55rem;
  margin-left: .15rem;
  border-left: 1px solid var(--rule);
  align-self: stretch;
  display: inline-flex; align-items: center;
}

.primary-nav { margin-inline-start: auto; }
.primary-nav > ul { display: flex; gap: 2.25rem; align-items: center; }
.primary-nav > ul > li > a {
  position: relative;
  font-size: .72rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--ink-2);
  padding-block: .5rem;
  transition: color var(--dur-fast);
  display: inline-block;
}
.primary-nav > ul > li > a:hover,
.primary-nav > ul > li > a[aria-current="page"] { color: var(--brand); }
/* No underline animation - clean uppercase nav */
.primary-nav > ul > li > a::after { content: none; }

.has-sub { position: relative; }
.has-sub > a::after { content: none; }
.has-sub > a > .chev {
  display: inline-block; width: 6px; height: 6px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: translateY(-3px) rotate(45deg);
  margin-left: .5rem; opacity: .55;
}
.has-sub .sub {
  position: absolute; top: 100%; left: -1rem; min-width: 260px;
  background: var(--paper); padding: .65rem;
  border: 1px solid var(--rule); border-radius: 4px;
  box-shadow: var(--shadow-2);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity var(--dur-fast), transform var(--dur-fast), visibility var(--dur-fast);
}
.has-sub:hover .sub, .has-sub:focus-within .sub {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.has-sub .sub a {
  display: block; padding: .75rem .9rem; font-size: .92rem;
  border-radius: 2px;
  color: var(--ink-2);
}
.has-sub .sub a:hover { background: var(--paper-2); color: var(--brand); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .9rem 1.5rem;
  font-size: .92rem; font-weight: 400;
  border: 1px solid transparent;
  border-radius: 999px;
  transition: transform var(--dur-fast), background var(--dur-fast),
              color var(--dur-fast), border-color var(--dur-fast);
  white-space: nowrap;
}
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--brand); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-pill {
  background: transparent;
  color: var(--ink-2);
  border-color: var(--rule);
  font-size: .85rem;
  padding: .55rem 1rem;
}
.btn-pill:hover { border-color: var(--ink); color: var(--ink); }
.btn .arrow { transition: transform var(--dur-fast); }
.btn:hover .arrow { transform: translateX(3px); }

.urgent .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(79,157,105,.6);
  animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(79,157,105,.55); }
  70%  { box-shadow: 0 0 0 8px rgba(79,157,105,0); }
  100% { box-shadow: 0 0 0 0 rgba(79,157,105,0); }
}

.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
  padding-top: clamp(3rem, 6vw, 6rem);
  padding-bottom: clamp(4rem, 8vw, 8rem);
  border-bottom: 1px solid var(--rule);
}
.hero-h {
  font-family: var(--serif);
  font-weight: 200;            /* extralight */
  font-size: clamp(2.2rem, 1rem + 4.5vw, 5rem);
  line-height: 0.98;
  letter-spacing: -0.008em;
  margin: 0 0 .85rem;
  max-width: 22ch;
}
.hero-h .line {
  display: block;
  opacity: 0; transform: translateY(.4em);
  animation: rise var(--dur) var(--ease) forwards;
}
.hero-h .line:nth-child(1) { animation-delay: .05s; }
.hero-h .line:nth-child(2) { animation-delay: .15s; }
.hero-h .line:nth-child(3) { animation-delay: .25s; }
@keyframes rise { to { opacity: 1; transform: translateY(0); } }

.hero-sub {
  font-size: clamp(1.05rem, 0.9rem + 0.5vw, 1.3rem);
  max-width: 54ch;
  color: var(--ink-2);
  margin: 0 0 1.5rem;
  line-height: 1.45;
}
.hero-ctas { display: flex; gap: .75rem; flex-wrap: wrap; }
.hero-meta {
  margin-top: clamp(3rem, 6vw, 5rem);
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.5rem;
  font-size: .9rem;
  color: var(--ink-2);
  padding-top: 1.75rem;
  border-top: 1px solid var(--rule);
}
.hero-meta strong {
  color: var(--muted);
  display: block;
  font-weight: 400;
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .18em;
  margin-bottom: .35rem;
}

/* ---------- Practice areas (homepage) ---------- */
.practice {
  border-bottom: 1px solid var(--rule);
}
.practice-intro {
  display: grid; gap: 2rem;
  grid-template-columns: 1fr;
  margin-bottom: clamp(3rem, 6vw, 5rem);
  align-items: end;
}
@media (min-width: 900px) {
  .practice-intro { grid-template-columns: 2fr 1fr; gap: 4rem; }
}

.practice-grid {
  display: grid; gap: 0;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}
@media (min-width: 800px) {
  .practice-grid { grid-template-columns: 1fr 1fr; }
}
.practice-card {
  padding: clamp(2rem, 4vw, 3.5rem);
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  position: relative;
  background: var(--paper);
  transition: background var(--dur-fast);
  display: flex; flex-direction: column;
}
.practice-card:hover { background: var(--paper-2); }
.practice-card .num {
  font-family: var(--italic);
  font-style: italic;
  font-size: 1.1rem; color: var(--brand);
  display: block; margin-bottom: 1.5rem;
}
.practice-card h3 {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(1.7rem, 1rem + 1.8vw, 2.6rem);
  margin: 0 0 1.25rem; line-height: 1.05;
  letter-spacing: -0.02em;
}
.practice-card .blurb {
  color: var(--ink-2); margin-bottom: 1.75rem;
  max-width: 42ch;
}
.practice-card .areas {
  border-top: 1px solid var(--rule);
}
.practice-card .areas li {
  padding: .65rem 0;
  border-bottom: 1px solid var(--rule);
  font-size: .92rem; color: var(--ink-2);
  display: flex; align-items: baseline; gap: .75rem;
}
.practice-card .areas li::before {
  content: '·';
  color: var(--brand);
  flex-shrink: 0;
}
.practice-card .more {
  display: inline-flex; align-items: center; gap: .5rem;
  margin-top: 1.75rem;
  font-weight: 400; color: var(--brand);
  align-self: flex-start;
}
.practice-card .more .arrow { transition: transform var(--dur-fast); }
.practice-card:hover .more .arrow { transform: translateX(4px); }

/* ---------- Approach ---------- */
.approach {
  background: var(--ink); color: var(--paper);
}
.approach .h-section { color: var(--paper); }
.approach .approach-grid {
  display: grid; gap: 3rem;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .approach .approach-grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
    gap: 5rem;
  }
}
.approach .lead-stmt {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.6rem, 1rem + 1.8vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -0.018em;
  color: var(--paper);
  margin: 0;
}
.approach .lead-stmt em { color: var(--gold-soft); font-family: var(--italic); }
.principles { display: grid; gap: 2.5rem; }
.principle h4 {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 400;
  margin: 0 0 .6rem;
  letter-spacing: -0.01em;
}
.principle p {
  color: rgba(250,248,244,.72);
  margin: 0;
  font-size: .98rem;
}
.principle .num {
  font-family: var(--italic);
  font-style: italic;
  color: var(--gold-soft);
  font-size: 1.1rem;
  display: block;
  margin-bottom: .65rem;
}
.principle .principle-icon {
  width: 32px; height: 32px;
  display: block;
  color: var(--gold-soft);
  margin-bottom: 1rem;
  opacity: 0.85;
  transition: transform .4s var(--ease), opacity .25s ease, color .25s ease;
}
.principle:hover .principle-icon {
  transform: translateY(-1px) rotate(-2deg);
  opacity: 1;
  color: var(--paper);
}

/* ---------- Featured matter ---------- */
.matter {
  display: grid; gap: 0;
  grid-template-columns: 1fr;
  border-bottom: 1px solid var(--rule);
}
@media (min-width: 900px) {
  .matter { grid-template-columns: 5fr 7fr; align-items: stretch; }
}
.matter-art {
  background:
    radial-gradient(circle at 25% 30%, rgba(31,46,162,.18), transparent 55%),
    radial-gradient(circle at 75% 75%, rgba(184,153,104,.28), transparent 55%),
    linear-gradient(135deg, var(--paper-2), #EAE2D0);
  min-height: 420px;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: clamp(2rem, 4vw, 3rem);
  overflow: hidden;
}
.matter-art::after {
  content: '';
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(0deg, rgba(14,14,16,.025) 0 1px, transparent 1px 80px),
    repeating-linear-gradient(90deg, rgba(14,14,16,.025) 0 1px, transparent 1px 80px);
}
.matter-art .meta {
  position: relative;
  font-family: var(--italic);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--ink);
  line-height: 1.4;
}
.matter-art .meta strong {
  display: block;
  font-family: var(--serif);
  font-style: normal;
  font-weight: 300;
  font-size: 2rem;
  margin-bottom: .25rem;
  color: var(--brand);
}
.matter-content {
  padding: clamp(2.5rem, 5vw, 5rem);
  display: flex; flex-direction: column;
  justify-content: center;
}
.matter-content .quote {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.4rem, 1rem + 1.4vw, 2.2rem);
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin: 0 0 2rem;
}
.matter-content .quote::before {
  content: '\201C';
  color: var(--brand);
  font-size: 1.6em;
  line-height: 0;
  vertical-align: -0.18em;
  margin-right: .05em;
  font-family: var(--italic);
}
.matter-content .attrib {
  color: var(--muted); font-size: .85rem;
  text-transform: uppercase; letter-spacing: .14em;
}

/* ---------- Insights teaser ---------- */
.insights-grid {
  display: grid; gap: 2rem;
  grid-template-columns: 1fr;
}
@media (min-width: 700px) { .insights-grid { grid-template-columns: repeat(2, 1fr); gap: 2.5rem; } }
@media (min-width: 1000px) { .insights-grid { grid-template-columns: repeat(3, 1fr); gap: 3rem; } }
.insight {
  display: block;
  padding-top: 1.5rem;
  border-top: 1px solid var(--ink);
}
.insight .insight-meta {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--muted);
  margin-bottom: 1rem;
}
.insight h3 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 1.5rem;
  line-height: 1.2;
  letter-spacing: -0.012em;
  margin: 0 0 1rem;
  transition: color var(--dur-fast);
}
.insight:hover h3 { color: var(--brand); }
.insight p { font-size: .95rem; color: var(--ink-2); margin: 0; }

.section-head {
  display: grid; gap: 1.5rem;
  grid-template-columns: 1fr;
  margin-bottom: clamp(3rem, 5vw, 4rem);
  align-items: end;
}
@media (min-width: 800px) {
  .section-head { grid-template-columns: 1fr auto; gap: 3rem; }
}
.section-head .h-section { margin: 0; }

/* ---------- CTA strip ---------- */
.cta-strip {
  background: var(--ink-navy);
  color: var(--paper);
  text-align: center;
}
.cta-strip .h-section { color: var(--paper); }
.cta-strip p {
  max-width: 52ch;
  margin: 0 auto 2.5rem;
  font-size: 1.1rem;
  color: rgba(250,248,244,.85);
}
.cta-strip .btn-primary { background: var(--paper); color: var(--ink-navy); }
.cta-strip .btn-primary:hover { background: var(--ink); color: var(--paper); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding-block: 5rem 2rem;
  font-size: .92rem;
}
.footer-grid {
  display: grid; gap: 3rem;
  grid-template-columns: 1fr;
}
@media (min-width: 600px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; gap: 4rem; } }

.footer-brand h4 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 1.6rem;
  margin: 0 0 1rem;
}
.footer-brand p {
  color: rgba(250,248,244,.65);
  max-width: 36ch;
  margin: 0 0 1.5rem;
  font-size: .92rem;
  line-height: 1.55;
}

.site-footer h5 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1rem;
  margin: 0 0 1.25rem;
  color: var(--paper);
}
.site-footer ul li { padding: .3rem 0; }
.site-footer a {
  color: rgba(250,248,244,.7);
  transition: color var(--dur-fast);
}
.site-footer a:hover { color: var(--paper); }

.regulatory {
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(250,248,244,.15);
  display: grid; gap: 1.5rem;
  grid-template-columns: 1fr;
  font-size: .8rem;
  color: rgba(250,248,244,.55);
  line-height: 1.6;
}
@media (min-width: 900px) {
  .regulatory { grid-template-columns: 1fr auto; align-items: center; }
}
.regulatory p { margin: 0; max-width: 80ch; }
.regulatory a {
  text-decoration: underline;
  text-underline-offset: 2px;
  color: rgba(250,248,244,.75);
}

/* ---------- Cookie banner ---------- */
.cookie {
  position: fixed;
  left: var(--gutter); right: var(--gutter); bottom: var(--gutter);
  z-index: 100;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 8px;
  box-shadow: var(--shadow-2);
  padding: 1.5rem;
  display: grid; gap: 1rem;
  grid-template-columns: 1fr;
  max-width: 720px;
  margin-inline: auto;
  transform: translateY(140%);
  opacity: 0;
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.cookie.is-visible { transform: translateY(0); opacity: 1; }
@media (min-width: 700px) {
  .cookie {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
}
.cookie p {
  margin: 0;
  font-size: .9rem;
  color: var(--ink-2);
  line-height: 1.5;
}
.cookie a {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cookie-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.cookie .btn { padding: .65rem 1.1rem; font-size: .85rem; }

/* ---------- Page header (inner pages) ---------- */
.page-head {
  padding-block: clamp(4rem, 8vw, 7rem) clamp(2.5rem, 5vw, 4.5rem);
  border-bottom: 1px solid var(--rule);
}
.page-head .h-display {
  font-size: clamp(2.4rem, 1.4rem + 4.4vw, 5.5rem);
  max-width: 16ch;
  margin-bottom: 1.25rem;
}
.crumbs {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .2em;
  color: var(--muted);
  margin-bottom: 1.75rem;
}
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--brand); }
.crumbs .sep { margin: 0 .6rem; opacity: .5; }

/* ---------- Two-col content ---------- */
.two-col {
  display: grid; gap: 3rem;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .two-col { grid-template-columns: 5fr 7fr; gap: 5rem; }
}
.two-col .side h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.5rem;
  margin: 0 0 1rem;
  letter-spacing: -0.01em;
}
.two-col .side .eyebrow { margin-bottom: 1rem; }

.rich p { color: var(--ink-2); }
.rich h2 {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(1.6rem, 1rem + 1.4vw, 2.2rem);
  letter-spacing: -0.015em;
  margin: 2.5rem 0 1rem;
}

/* ---------- Services list ---------- */
.services-list {
  border-top: 1px solid var(--ink);
  margin-top: 1rem;
}
.services-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: baseline;
  gap: 2rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--rule);
}
.services-list .num {
  font-family: var(--italic);
  font-style: italic;
  color: var(--brand);
  font-size: 1rem;
}
.services-list .title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.2rem, 1rem + 0.5vw, 1.5rem);
  letter-spacing: -0.01em;
  margin: 0 0 .35rem;
}
.services-list .desc {
  color: var(--muted);
  font-size: .95rem;
  margin: 0;
}

/* ---------- Pricing block ---------- */
.pricing-block {
  background: var(--paper-2);
  padding: clamp(2rem, 4vw, 3rem);
  border-radius: 4px;
  margin-top: 3rem;
}
.pricing-block h3 {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 400;
  margin: 0 0 1rem;
}
.pricing-block p { margin: 0 0 1rem; color: var(--ink-2); }
.pricing-block table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.5rem;
}
.pricing-block th, .pricing-block td {
  padding: .85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--rule);
  font-size: .92rem;
}
.pricing-block th {
  font-family: var(--sans);
  font-weight: 400;
  text-transform: uppercase;
  font-size: .72rem;
  letter-spacing: .12em;
  color: var(--muted);
}
.pricing-block td.price {
  font-family: var(--serif);
  font-size: 1.05rem;
  white-space: nowrap;
  text-align: right;
}

/* ---------- Team grid ---------- */
.team-grid {
  display: grid; gap: 3rem 2.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 600px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .team-grid { grid-template-columns: repeat(3, 1fr); } }

/* Solo-practice team layout: one feature card + counsel card, side-by-side. */
.team-grid--solo { gap: 3rem 4rem; }
@media (min-width: 900px) {
  .team-grid--solo {
    grid-template-columns: 1.4fr 1fr;
    align-items: start;
  }
}
.team-card--feature .portrait { aspect-ratio: 5/6; }
.team-card--feature .name { font-size: clamp(1.6rem, 2.4vw, 2.2rem); }
.team-card--feature p { font-size: 1rem; line-height: 1.7; margin-bottom: .8rem; }
.portrait--counsel {
  background:
    radial-gradient(ellipse at 50% 25%, rgba(31,46,162,.06), transparent 60%),
    linear-gradient(160deg, var(--paper-2), var(--brand-soft)) !important;
}
.team-card .portrait {
  aspect-ratio: 4/5;
  background:
    radial-gradient(ellipse at 50% 25%, rgba(14,14,16,.1), transparent 55%),
    linear-gradient(160deg, var(--paper-2), var(--gold-soft));
  margin-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
}
.team-card .portrait::before {
  content: attr(data-initials);
  position: absolute;
  inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(3rem, 8vw, 5rem);
  color: rgba(14,14,16,.18);
  letter-spacing: -0.02em;
}
.team-card .portrait::after {
  content: '';
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(45deg, transparent 0 40px, rgba(14,14,16,.018) 40px 80px);
}
.team-card .name {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.3rem;
  margin: 0 0 .25rem;
  letter-spacing: -0.01em;
}
.team-card .role {
  font-size: .75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .15em;
  margin: 0 0 1rem;
}
.team-card p { font-size: .92rem; color: var(--ink-2); margin: 0; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid; gap: 3rem;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1fr; gap: 5rem; } }

.contact-info dl { display: grid; gap: 1.75rem; margin: 0; }
.contact-info dt {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--muted);
  margin-bottom: .5rem;
  font-weight: 400;
}
.contact-info dd {
  margin: 0;
  font-size: 1.15rem;
  font-family: var(--serif);
  font-weight: 300;
  line-height: 1.4;
}
.contact-info dd a:hover { color: var(--brand); }

.form { display: grid; gap: 1.25rem; }
.field { display: grid; gap: .4rem; }
.field label {
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--muted);
  font-weight: 400;
}
.field input,
.field textarea,
.field select {
  font: inherit;
  padding: .9rem 1rem;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 2px;
  color: var(--ink);
  transition: border-color var(--dur-fast);
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--brand);
  outline: 3px solid rgba(31, 46, 162, .14);
  outline-offset: 0;
}
.field textarea { min-height: 140px; resize: vertical; }
.field-row { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 600px) { .field-row { grid-template-columns: 1fr 1fr; } }
.form .consent {
  display: flex; gap: .75rem; align-items: flex-start;
  font-size: .85rem; color: var(--muted);
  margin: .5rem 0 1rem;
}
.form .consent input { margin-top: .15em; }

/* ---------- Mobile nav ---------- */
@media (max-width: 900px) {
  .primary-nav,
  .urgent-cta { display: none; }
  .nav-toggle {
    display: inline-flex;
    width: 44px; height: 44px;
    margin-inline-start: auto;
    background: transparent;
    border: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    padding: 0;
  }
  .nav-toggle span {
    width: 22px; height: 1px;
    background: var(--ink);
    transition: transform var(--dur-fast), opacity var(--dur-fast);
  }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }
  .mobile-nav {
    position: fixed;
    inset: 76px 0 0 0;
    background: var(--paper);
    padding: 2rem var(--gutter) 4rem;
    z-index: 40;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform var(--dur) var(--ease);
    visibility: hidden;
  }
  .mobile-nav.is-open {
    transform: translateX(0);
    visibility: visible;
  }
  .mobile-nav ul { display: grid; gap: 0; margin-bottom: 2rem; }
  .mobile-nav > ul > li > a,
  .mobile-nav .sub-mobile a {
    display: block;
    padding: 1rem 0;
    font-family: var(--serif);
    font-size: 1.5rem;
    font-weight: 300;
    border-bottom: 1px solid var(--rule);
    color: var(--ink);
  }
  .mobile-nav .sub-mobile a {
    font-size: 1.15rem;
    padding-left: 1.5rem;
    color: var(--ink-2);
  }
  .mobile-nav .urgent-mobile {
    display: inline-flex;
    margin-top: 1rem;
  }
}
@media (min-width: 901px) {
  .mobile-nav { display: none; }
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.reveal.is-in { opacity: 1; transform: translateY(0); }

/* ---------- Print ---------- */
@media print {
  .site-header, .site-footer, .cookie, .nav-toggle, .cta-strip,
  .hero-ctas, .urgent { display: none !important; }
  body { color: black; background: white; }
  a { color: black; text-decoration: underline; }
  .h-display, .h-section { page-break-after: avoid; }
}


/* =============================================================
   VISUAL UPGRADE
   Image-led hero, scrolling marquee, color-block sections,
   stats band, image-led practice cards, photo CTA, dropcaps
   ============================================================= */

/* When the hero is an image, we want it under the sticky header */
body.has-hero-image .site-header {
  position: fixed;          /* overlay the hero, no flow space taken */
  top: 0;
  left: 0;
  right: 0;
  background: transparent;
  border-bottom-color: transparent;
  color: var(--paper);
  -webkit-backdrop-filter: none;
          backdrop-filter: none;
}
body.has-hero-image .site-header.is-scrolled {
  /* Translucent dark with backdrop-blur so content shows through behind
     the header instead of getting hard-cropped on scroll. */
  background: color-mix(in srgb, var(--ink) 72%, transparent);
  border-bottom-color: rgba(250,248,244,.12);
  color: var(--paper);
  -webkit-backdrop-filter: saturate(140%) blur(18px);
          backdrop-filter: saturate(140%) blur(18px);
}
body.has-hero-image .site-header .brand-mark,
body.has-hero-image .site-header .primary-nav > ul > li > a,
body.has-hero-image .site-header .nav-toggle span {
  color: var(--paper);
}
body.has-hero-image .site-header .brand-sub {
  color: rgba(250,248,244,.55);
  border-left-color: rgba(250,248,244,.2);
}
body.has-hero-image .site-header .nav-toggle span { background: var(--paper); }
body.has-hero-image .site-header .btn-pill {
  border-color: rgba(250,248,244,.3);
  color: var(--paper);
}
body.has-hero-image .site-header .btn-pill:hover { border-color: var(--paper); }

/* ---------- Image hero ---------- */
.hero-image {
  position: relative;
  min-height: 100vh;
  min-height: 100lvh;
  margin-top: 0;            /* header is fixed-positioned now, no compensation needed */
  padding-top: 6rem;
  padding-bottom: 1.75rem;
  display: flex;
  align-items: flex-end;
  color: var(--paper);
  background-color: var(--ink);
  overflow: hidden;
}
@media (max-width: 900px) {
  .hero-image {
    padding-top: 5.5rem;
  }
}
/* Static photo layer - same library subject as the video so the swap is invisible.
   Acts as the poster while video loads, and as the fallback on mobile / slow connections. */
.hero-image::before {
  content: '';
  position: absolute;
  inset: -3% -3% -3% -3%;
  background-image: url('https://images.unsplash.com/photo-1521587760476-6c12a4b040da?w=2800&q=85&auto=format&fit=crop');
  background-size: cover;
  background-position: center;
  filter: grayscale(0.95) contrast(1.06) brightness(0.9);
  z-index: 0;
  animation: hero-ken-burns 28s cubic-bezier(.35, 0, .65, 1) infinite alternate;
  will-change: transform;
}

/* 4K video layer - sits above the static photo, fades in once it can play */
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.95) contrast(1.06) brightness(0.9);
  z-index: 0;
  opacity: 0;
  transition: opacity 800ms cubic-bezier(.4, 0, .2, 1);
  pointer-events: none;
}
.hero-video.is-ready {
  opacity: 1;
}

/* Mobile / tablet: video still plays. The video uses muted + playsinline + autoplay
   so iOS and Android allow it. Static photo behind acts as the poster while loading. */
/* (Previously hid the video on small screens to save bandwidth, kept here for reference.)
@media (max-width: 900px) {
  .hero-video { display: none; }
}
*/

/* Honor data-saver and reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  .hero-video {
    display: none;
  }
  .hero-image::before {
    animation: none;
  }
}

@keyframes hero-ken-burns {
  0%   { transform: scale(1.0)   translate3d(0, 0, 0); }
  100% { transform: scale(1.08)  translate3d(-1.4%, -1%, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-image::before {
    animation: none;
    transform: none;
  }
}
/* Overlay layer - darkening gradient + brand-blue duotone tint */
.hero-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(14,14,16,.5) 0%, rgba(14,14,16,.2) 35%, rgba(14,14,16,.95) 100%),
    linear-gradient(180deg, rgba(31,46,162,.16), rgba(20,30,80,.22)),
    radial-gradient(ellipse at 85% 15%, rgba(31,46,162,.22), transparent 55%),
    radial-gradient(ellipse at 10% 90%, rgba(31,46,162,.18), transparent 55%);
  z-index: 1;
  pointer-events: none;
}
.hero-image .container { position: relative; z-index: 2; }
.hero-image .eyebrow {
  color: rgba(250,248,244,.85);
  text-shadow: 0 1px 4px rgba(14,14,16,.4);
  margin-bottom: .75rem;
}
.hero-image .hero-h {
  color: var(--paper);
  text-shadow: 0 3px 22px rgba(14,14,16,.5);
}
.hero-image .hero-h em { color: var(--gold-soft); }
.hero-image .hero-sub {
  color: rgba(250,248,244,.95);
  max-width: 50ch;
  text-shadow: 0 1px 8px rgba(14,14,16,.45);
}
.hero-image .btn-ghost {
  color: var(--paper);
  border-color: rgba(250,248,244,.4);
}
.hero-image .btn-ghost:hover {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}
.hero-image .hero-meta {
  border-top-color: rgba(250,248,244,.2);
  color: rgba(250,248,244,.85);
}
.hero-image .hero-meta strong {
  color: rgba(250,248,244,.5);
}
.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .25em;
  color: rgba(250,248,244,.6);
  z-index: 2;
}
.hero-scroll::after {
  content: '';
  width: 1px;
  height: 28px;
  background: rgba(250,248,244,.45);
  animation: drop 2.4s var(--ease) infinite;
  transform-origin: top;
}
@keyframes drop {
  0%   { transform: scaleY(0); }
  50%  { transform: scaleY(1); }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* Smaller hero image variant for inner pages */
.page-head-image {
  position: relative;
  margin-top: 0;
  padding-top: 9rem;
  padding-bottom: clamp(3rem, 5vw, 5rem);
  color: var(--paper);
  background-color: var(--ink);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
@media (max-width: 900px) {
  .page-head-image {
    padding-top: 7.5rem;
  }
}
.page-head-image::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(14,14,16,.78) 0%, rgba(14,14,16,.65) 45%, rgba(14,14,16,.92) 100%);
}
.page-head-image::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, transparent 0%, rgba(31,46,162,.28) 100%);
}
.page-head-image .container { position: relative; z-index: 1; }
.page-head-image .h-display {
  color: var(--paper);
  text-shadow: 0 2px 14px rgba(14,14,16,.45);
}
.page-head-image .lead {
  color: rgba(250,248,244,.95);
  text-shadow: 0 1px 6px rgba(14,14,16,.5);
}
.page-head-image .crumbs { color: rgba(250,248,244,.7); }
.page-head-image .crumbs a { color: rgba(250,248,244,.8); }
.page-head-image .crumbs a:hover { color: var(--gold-soft); }

/* ---------- Marquee ---------- */
.marquee {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(2rem, 4vw, 3rem) 0;
  border-top: 1px solid rgba(250,248,244,.08);
  border-bottom: 1px solid rgba(250,248,244,.08);
  overflow: hidden;
}
.marquee-track {
  display: flex;
  width: max-content;
  gap: 4rem;
  animation: marquee 50s linear infinite;
  font-family: var(--italic);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(2rem, 1rem + 3vw, 4rem);
  line-height: 1;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.marquee-track > span {
  display: inline-flex; align-items: center; gap: 4rem;
}
.marquee-dot {
  display: inline-block;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--brand);
  margin: 0 1rem;
  transform: translateY(-.4em);
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee {
  to { transform: translateX(calc(-50% - 2rem)); }
}

/* ---------- Color-block sections ---------- */
.cb-brand {
  background: var(--ink-navy);
  color: var(--paper);
}
.cb-brand .h-section,
.cb-brand .h-display { color: var(--paper); }
.cb-brand .eyebrow,
.cta-photo .eyebrow,
.cta-strip .eyebrow {
  color: rgba(250, 248, 244, .92);
}

.cb-cream {
  background: var(--paper-2);
}

.cb-dark {
  background: var(--ink);
  color: var(--paper);
}
.cb-dark .h-section,
.cb-dark .h-display { color: var(--paper); }
.cb-dark .eyebrow { color: var(--gold-soft); }

/* ---------- Intro statement (oxblood block) ---------- */
.intro-block .h-display {
  font-size: clamp(2rem, 1.2rem + 3vw, 4rem);
  max-width: 22ch;
  line-height: 1.04;
  margin-bottom: 0;
}
.intro-block .intro-grid {
  display: grid; gap: 3rem;
  grid-template-columns: 1fr;
  align-items: end;
}
@media (min-width: 900px) {
  .intro-block .intro-grid {
    /* Headline takes its natural width, brief copy hugs the right edge of the
       container. Eliminates both the dead-centre gap and the right-edge gap
       that the old 7fr/5fr split produced on wide screens. */
    grid-template-columns: auto 1fr;
    gap: clamp(2.5rem, 5vw, 5rem);
  }
  .intro-block .intro-meta {
    justify-self: end;
  }
}
.intro-block .intro-meta {
  border-left: 1px solid rgba(250,248,244,.25);
  padding-left: 2rem;
  font-family: var(--sans);
  font-style: normal;
  font-size: 1.05rem;
  color: rgba(250,248,244,.85);
  line-height: 1.6;
  max-width: 52ch;
}
.intro-block .intro-meta strong {
  display: block;
  font-family: var(--sans);
  font-style: normal;
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .2em;
  color: rgba(250,248,244,.55);
  margin-bottom: .75rem;
  font-weight: 400;
}

/* ---------- Stats row ---------- */
.stats-row {
  margin-top: clamp(3rem, 6vw, 5rem);
  display: grid;
  gap: 2.5rem 1rem;
  grid-template-columns: 1fr 1fr;
}
@media (min-width: 800px) { .stats-row { grid-template-columns: repeat(4, 1fr); } }
.stat {
  border-top: 1px solid currentColor;
  padding-top: 1.5rem;
  opacity: .98;
}
.cb-brand .stat { border-top-color: rgba(250,248,244,.3); }
.stat .num {
  display: block;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.5rem, 1.5rem + 4vw, 5.5rem);
  line-height: 0.92;
  letter-spacing: -0.035em;
  margin-bottom: 1.25rem;
}
.stat .num em {
  font-family: var(--italic);
  font-style: italic;
  font-weight: 300;
  font-size: .42em;
  vertical-align: .22em;
  margin-left: .04em;
  letter-spacing: 0;
  color: var(--gold-soft);
}
.stat .label {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 400;
  line-height: 1.45;
  max-width: 22ch;
}
.cb-brand .stat .label { color: rgba(250,248,244,.85); }

/* ---------- Image-led practice cards ---------- */
.practice-image {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--rule);
}
.pi-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-bottom: 1px solid var(--rule);
}
@media (min-width: 800px) {
  .pi-card {
    grid-template-columns: 1fr 1fr;
    min-height: 540px;
  }
  .pi-card.reverse .pi-img { order: 2; }
}
.pi-img {
  background-size: cover;
  background-position: center;
  min-height: 320px;
  position: relative;
}
.pi-img::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(14,14,16,.15), rgba(31,46,162,.18));
}
.pi-img .num-overlay {
  position: absolute;
  top: 1.5rem; left: 1.5rem;
  font-family: var(--italic);
  font-style: italic;
  color: rgba(250,248,244,.9);
  font-size: 1.1rem;
  z-index: 1;
}
.pi-content {
  padding: clamp(2.5rem, 5vw, 4.5rem);
  display: flex; flex-direction: column;
  justify-content: center;
  background: var(--paper);
}
.pi-content .icon {
  width: 44px; height: 44px;
  color: var(--brand);
  margin-bottom: 1.5rem;
}
.pi-content h3 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.8rem, 1rem + 2vw, 2.8rem);
  margin: 0 0 1.25rem;
  letter-spacing: -0.022em;
  line-height: 1.05;
}
.pi-content .blurb {
  color: var(--ink-2);
  margin-bottom: 1.25rem;
  max-width: 42ch;
  line-height: 1.55;
}
.pi-content .areas {
  display: grid; gap: 0;
  font-size: .92rem;
  color: var(--ink-2);
  margin-bottom: 1.5rem;
  line-height: 1.45;
}
.pi-content .areas li {
  padding: .25rem 0 .25rem 1.25rem;
  position: relative;
}
.pi-content .areas li::before {
  content: '';
  position: absolute;
  left: 0; top: .8em;
  width: 8px; height: 1px;
  background: var(--brand);
}
.pi-content .more {
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 400; color: var(--brand);
  align-self: flex-start;
  margin-top: .5rem;
}
.pi-content .more .arrow { transition: transform var(--dur-fast); }
.pi-content .more:hover .arrow { transform: translateX(4px); }

/* ---------- Featured matter (image version) ---------- */
.matter-photo {
  background-size: cover;
  background-position: center;
  min-height: 480px;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: clamp(2rem, 4vw, 3rem);
  overflow: hidden;
}
.matter-photo::after {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(14,14,16,.25) 0%, rgba(14,14,16,.45) 50%, rgba(14,14,16,.88) 100%);
}
.matter-photo .meta {
  position: relative; z-index: 1;
  font-family: var(--italic); font-style: italic;
  font-size: 1.1rem; color: var(--paper);
  line-height: 1.4;
  text-shadow: 0 1px 6px rgba(14,14,16,.5);
}
.matter-photo .meta strong {
  display: block;
  font-family: var(--serif); font-style: normal;
  font-weight: 300;
  font-size: clamp(2.5rem, 1rem + 3vw, 3.6rem);
  margin-bottom: .25rem;
  color: var(--gold-soft);
  letter-spacing: -0.02em;
  line-height: 1;
}

/* ---------- Decorative SVG city silhouette ---------- */
.silhouette {
  width: 100%;
  max-width: 540px;
  height: auto;
  opacity: .25;
  color: var(--gold-soft);
  margin-top: 2rem;
}

/* ---------- Insights with images ---------- */
.insight {
  display: block;
  padding-top: 0;
  border-top: none;
}
.insight-img {
  display: block;
  aspect-ratio: 4/3;
  background-size: cover;
  background-position: center;
  margin-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
  background-color: var(--paper-2);
}
.insight-img::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(31,46,162,.05), rgba(14,14,16,.12));
  transition: opacity var(--dur-fast);
}
.insight:hover .insight-img::after { opacity: 0; }

/* Asymmetric featured insight */
.insights-asym { display: grid; gap: 3rem; }
.insight-feature {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 800px) {
  .insight-feature {
    grid-template-columns: 7fr 5fr;
    gap: 3rem;
    align-items: center;
  }
  .insight-feature .insight-img {
    aspect-ratio: 16/10;
    margin-bottom: 0;
  }
  .insight-feature h3 {
    font-size: clamp(1.8rem, 1rem + 1.6vw, 2.6rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
  }
  .insight-feature p {
    font-size: 1.05rem;
  }
}

/* ---------- Photo CTA ---------- */
.cta-photo {
  position: relative;
  background-color: var(--brand);
  background-size: cover;
  background-position: center;
  color: var(--paper);
  text-align: center;
  overflow: hidden;
  padding-block: clamp(5rem, 10vw, 9rem);
}
.cta-photo::before {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(135deg, rgba(31,46,162,.94) 0%, rgba(13,17,68,.97) 100%);
}
.cta-photo .container { position: relative; z-index: 1; }
.cta-photo .h-display {
  color: var(--paper);
  font-size: clamp(2.6rem, 1.4rem + 4vw, 5rem);
  margin-bottom: 1.5rem;
  max-width: 22ch;
  margin-inline: auto;
}
.cta-photo .lead {
  color: rgba(250,248,244,.88);
  margin: 0 auto 2.5rem;
  text-align: center;
}
.cta-photo .btn-primary { background: var(--paper); color: var(--brand); }
.cta-photo .btn-primary:hover { background: var(--ink); color: var(--paper); }
.cta-photo .btn-ghost {
  color: var(--paper);
  border-color: rgba(250,248,244,.5);
}
.cta-photo .btn-ghost:hover { background: var(--paper); color: var(--brand); border-color: var(--paper); }
.cta-photo .actions {
  display: inline-flex; gap: 1rem; flex-wrap: wrap; justify-content: center;
}

/* ---------- Dropcap ---------- */
.dropcap::first-letter {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 4.4em;
  line-height: 0.85;
  float: left;
  margin: .12em .15em -.05em 0;
  color: var(--brand);
}

/* ---------- About-snippet (image + text) ---------- */
.about-snippet {
  display: grid;
  gap: 0;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
@media (min-width: 900px) {
  .about-snippet { grid-template-columns: 6fr 6fr; min-height: 560px; }
}
.about-snippet .as-img {
  background-size: cover;
  background-position: center;
  min-height: 360px;
  position: relative;
}
.about-snippet .as-img::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, transparent, rgba(31,46,162,.12));
}
.about-snippet .as-content {
  padding: clamp(2.5rem, 5vw, 5rem);
  display: flex; flex-direction: column; justify-content: center;
}
.about-snippet h2 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2rem, 1.2rem + 2vw, 3.2rem);
  letter-spacing: -0.022em;
  line-height: 1.05;
  margin: 0 0 1.5rem;
}
.about-snippet p {
  color: var(--ink-2);
  max-width: 50ch;
}
.about-snippet .signature {
  margin-top: 2rem;
  font-family: var(--italic);
  font-style: italic;
  color: var(--brand);
  font-size: 1.15rem;
}

/* ---------- Section heading on dark ---------- */
.cb-dark .lead-stmt em { color: var(--gold-soft); }

/* ---------- Refined logomark ---------- */
.brand-svg {
  height: 28px;
  width: auto;
  color: currentColor;
}

/* ---------- Page-head accent rule ---------- */
.page-head-image .accent-line {
  width: 60px;
  height: 1px;
  background: var(--gold-soft);
  margin-bottom: 1.75rem;
}

/* ---------- Team portrait with photo override option ---------- */
.team-card .portrait[data-photo] {
  background-size: cover;
  background-position: center top;
}
.team-card .portrait[data-photo]::before {
  display: none;
}
.team-card .portrait[data-photo]::after {
  background:
    linear-gradient(180deg, transparent 50%, rgba(14,14,16,.18) 100%);
}

/* ---------- Hide brand-sub on mobile when hero image to avoid clutter ---------- */
@media (max-width: 600px) {
  body.has-hero-image .brand-sub { display: none; }
}


/* =============================================================
   POLISH PASS - actual logo, brand-blue, image zoom hovers,
   sectors grid, notable matters, recognition strip,
   refined animations
   ============================================================= */

/* ---------- Logo image ---------- */
.brand {
  align-items: center;
  gap: 0;
}
.brand-logo {
  height: 50px;
  width: auto;
  display: block;
  transition: opacity var(--dur-fast);
}
.brand:hover .brand-logo { opacity: .8; }
.brand-mark, .brand-sub { display: none; }

body.has-hero-image .site-header:not(.is-scrolled) .brand-logo,
body.has-hero-image .site-header.is-scrolled .brand-logo {
  filter: brightness(0) invert(1);
}
.site-footer .brand-logo {
  filter: brightness(0) invert(1);
  height: 60px;
  margin-bottom: 1.5rem;
}
.cb-brand .brand-logo,
.cb-dark .brand-logo {
  filter: brightness(0) invert(1);
}

/* Brand dot in legacy footer wordmark - re-color to match */
.footer-brand h4 span,
.brand-dot {
  color: var(--brand) !important;
}

/* Ensure header is tall enough for logo */
.header-row { height: 88px; }
@media (min-width: 901px) {
  .mobile-nav { inset-block-start: 88px; }
}

/* ---------- Refined nav typography ---------- */
.primary-nav > ul { gap: 2.25rem; }

/* ---------- Image zoom on hover (practice + insight) ---------- */
.pi-img,
.insight-img {
  overflow: hidden;
}
.pi-img,
.matter-photo {
  background-size: cover;
  transition: background-size var(--dur) var(--ease);
}
.pi-card:hover .pi-img {
  background-size: 108%;
}
.insight-img {
  transition: transform var(--dur) var(--ease), filter var(--dur-fast);
}
.insight:hover .insight-img {
  transform: scale(1.03);
}

/* Better hover on practice cards: subtle lift + arrow */
.pi-card { transition: background var(--dur-fast); }
.pi-card .pi-content {
  transition: transform var(--dur) var(--ease);
}
.pi-card:hover .more { color: var(--brand-2); }
.pi-card:hover .more .arrow { transform: translateX(6px); }

/* ---------- Refined hero (sharper, more dramatic) ---------- */
.hero-image {
  background-image:
    linear-gradient(180deg, rgba(14,14,16,.55) 0%, rgba(14,14,16,.2) 35%, rgba(14,14,16,.95) 100%),
    url('https://images.unsplash.com/photo-1513635269975-59663e0ac1ad?w=2800&q=85&auto=format&fit=crop');
}
.hero-image::before {
  background:
    radial-gradient(ellipse at 80% 10%, rgba(31,46,162,.22), transparent 55%),
    radial-gradient(ellipse at 10% 90%, rgba(31,46,162,.18), transparent 55%);
}
.hero-image .hero-h em { color: var(--paper); font-weight: 300; }

/* Hero word reveal (refined over line reveal) */
.hero-h .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(.6em);
  animation: rise var(--dur) var(--ease) forwards;
}

/* ---------- Image hero scroll parallax ---------- */
.hero-image,
.page-head-image {
  background-attachment: scroll;
}
@media (min-width: 1024px) and (hover: hover) and (prefers-reduced-motion: no-preference) {
  .hero-image { background-attachment: fixed; }
}

/* ---------- Animated stat counter ---------- */
.stat .num {
  display: block;
}
.stat[data-animated] .num-value {
  display: inline-block;
}

/* ---------- Sectors section ---------- */
.sectors {
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}
.sectors .sectors-grid {
  display: grid;
  gap: 0;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
  margin-top: clamp(2rem, 4vw, 3rem);
}
@media (min-width: 600px) { .sectors .sectors-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .sectors .sectors-grid { grid-template-columns: repeat(4, 1fr); } }

.sector-tile {
  padding: clamp(1.75rem, 3vw, 2.25rem);
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: 200px;
  overflow: hidden;
  background: var(--paper);
  transition: background var(--dur-fast), color var(--dur-fast);
  cursor: default;
}
.sector-tile::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--brand);
  transform: translateY(101%);
  transition: transform var(--dur) var(--ease);
  z-index: 0;
}
.sector-tile:hover::before { transform: translateY(0); }
.sector-tile > * { position: relative; z-index: 1; transition: color var(--dur-fast); }
.sector-tile:hover { color: var(--paper); }
.sector-tile .num {
  font-family: var(--italic);
  font-style: italic;
  color: var(--brand);
  font-size: .95rem;
  transition: color var(--dur-fast);
}
.sector-tile:hover .num { color: var(--gold-soft); }
.sector-tile h4 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.2rem, 1rem + 0.4vw, 1.45rem);
  margin: 0;
  letter-spacing: -0.012em;
  line-height: 1.15;
}
.sector-tile .desc {
  font-size: .85rem;
  color: var(--muted);
  margin: 0;
  margin-top: auto;
  line-height: 1.5;
  transition: color var(--dur-fast);
}
.sector-tile:hover .desc { color: rgba(250,248,244,.8); }

/* ---------- Notable matters ---------- */
.notable {
  background: var(--paper-2);
}
.notable-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
  margin-top: clamp(2rem, 4vw, 3rem);
}
@media (min-width: 700px) { .notable-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .notable-grid { grid-template-columns: repeat(4, 1fr); } }

.matter-card {
  background: var(--paper);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  border: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.matter-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-2);
}
.matter-card .matter-cat {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--brand);
  font-weight: 400;
}
.matter-card .matter-fig {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.2rem, 1.4rem + 2vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 0;
}
.matter-card .matter-fig em {
  font-family: var(--italic);
  font-style: italic;
  font-weight: 300;
  font-size: .42em;
  color: var(--brand);
  vertical-align: .22em;
  margin-left: .04em;
  letter-spacing: 0;
  line-height: 1;
}
.matter-card .matter-desc {
  font-size: .92rem;
  color: var(--ink-2);
  line-height: 1.55;
  margin: 0;
  flex: 1;
}
.matter-card .matter-meta {
  font-size: .78rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .12em;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
}

/* ---------- Recognition / memberships strip ---------- */
.recognition {
  background: var(--brand);
  color: var(--paper);
  border-top: 1px solid rgba(255,255,255,.08);
  border-bottom: 1px solid rgba(255,255,255,.08);
  padding-block: clamp(3rem, 5vw, 4rem);
}
.recognition .label {
  color: rgba(255,255,255,.62) !important;
}
.recognition .recognition-name {
  color: var(--paper) !important;
}
.recognition .recognition-ref {
  color: rgba(255,255,255,.7) !important;
}
.recognition .recognition-row {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 800px) {
  .recognition .recognition-row {
    /* Label left, badges + text fill the rest. No empty right margin on wide screens. */
    grid-template-columns: auto 1fr;
    gap: clamp(2.5rem, 5vw, 6rem);
  }
  .recognition .recognition-badges {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: clamp(1.5rem, 3vw, 3rem);
  }
  .recognition .recognition-text {
    text-align: right;
    margin-left: auto;
  }
}
.recognition .label {
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .2em;
  color: var(--muted);
  font-weight: 400;
}
.recognition .recognition-list {
  display: flex; flex-wrap: wrap;
  gap: 2rem 3rem;
}
.recognition .item {
  display: flex;
  flex-direction: column;
  gap: .25rem;
}
.recognition .item .name {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: -0.005em;
  color: var(--ink);
}
.recognition .item .ref {
  font-size: .75rem;
  color: var(--muted);
  letter-spacing: .03em;
}

/* Real official accreditation badges in the recognition section.
   Sit on brand blue, with both badges on white cards side-by-side. */
.recognition .recognition-badges {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  align-items: flex-start;
}
.recognition .badge-pair {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 1rem;
  align-items: stretch;
}
.recognition .recognition-badge {
  flex-shrink: 0;
  background: #ffffff;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: .5rem;
  box-shadow: 0 6px 18px -10px rgba(0,0,0,.35);
}
.recognition .recognition-badge.sra-digital-badge {
  width: 200px;
  height: 100px;
  text-decoration: none;
  transition: transform 0.2s ease;
}
.recognition .recognition-badge.sra-digital-badge:hover {
  transform: translateY(-2px);
}
.recognition .recognition-badge.sra-digital-badge img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}
.recognition .recognition-badge.law-society-badge {
  width: 200px;
  height: 100px;
}
.recognition .recognition-badge.law-society-badge img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}
.recognition .recognition-text {
  display: flex;
  flex-direction: column;
  gap: .35rem;
}
.recognition .recognition-name {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: -0.005em;
  margin: 0;
}
.recognition .recognition-ref {
  font-size: .8rem;
  letter-spacing: .02em;
  margin: 0;
}
@media (max-width: 700px) {
  .recognition .badge-pair {
    gap: .65rem;
  }
  .recognition .recognition-badge.sra-digital-badge,
  .recognition .recognition-badge.law-society-badge {
    width: 150px;
    height: 95px;
    padding: .5rem .65rem;
  }
}

/* ---------- Refined intro stat block - very dark navy ---------- */
.cb-brand.intro-block {
  background: var(--ink-navy);    /* no radial highlight; was making it look brighter */
}

/* ---------- Animated entrance helpers ---------- */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}
.fade-up.is-in { opacity: 1; transform: translateY(0); }

.fade-in {
  opacity: 0;
  transition: opacity 1.2s var(--ease);
}
.fade-in.is-in { opacity: 1; }

/* Stagger child fade-ups */
.stagger > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.stagger.is-in > * { opacity: 1; transform: translateY(0); }
.stagger.is-in > *:nth-child(1) { transition-delay: 0ms; }
.stagger.is-in > *:nth-child(2) { transition-delay: 80ms; }
.stagger.is-in > *:nth-child(3) { transition-delay: 160ms; }
.stagger.is-in > *:nth-child(4) { transition-delay: 240ms; }
.stagger.is-in > *:nth-child(5) { transition-delay: 320ms; }
.stagger.is-in > *:nth-child(6) { transition-delay: 400ms; }
.stagger.is-in > *:nth-child(7) { transition-delay: 480ms; }
.stagger.is-in > *:nth-child(8) { transition-delay: 560ms; }

/* ---------- Word-by-word reveal for [data-split-words] ----------
   Wraps each word in main.js, then slides it up word-by-word once the
   element scrolls into view. Used on section h2s for richer entrance
   without overwhelming. */
[data-split-words] .word-wrap {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  line-height: inherit;
  padding: 0.18em 0.04em 0.12em;
  margin: -0.18em -0.04em -0.12em;
}
[data-split-words] .word {
  display: inline-block;
  transform: translateY(115%);
  opacity: 0;
  transition:
    transform 1.1s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}
[data-split-words].words-in .word {
  transform: translateY(0);
  opacity: 1;
}
[data-split-words].words-in {
  --release-delay: 1.8s;
}
[data-split-words].words-in .word-wrap {
  animation: word-unmask 0.01s linear forwards;
  animation-delay: var(--release-delay);
}
@keyframes word-unmask {
  to { overflow: visible; }
}
@media (prefers-reduced-motion: reduce) {
  [data-split-words] .word {
    transform: none; opacity: 1; transition: none;
  }
}

/* ---------- Card hover micro-interactions ---------- */
.sector-tile {
  transition: transform .35s var(--ease), background .25s ease;
  padding: 1.5rem 1.25rem;
  border-radius: 4px;
}
.sector-tile:hover {
  transform: translateY(-3px);
  background: rgba(31, 46, 162, 0.04);
}
.sector-tile .sector-icon {
  transition: transform .4s var(--ease), color .25s ease;
}
.sector-tile:hover .sector-icon {
  transform: rotate(-3deg) scale(1.08);
  color: var(--brand);
}

.team-card {
  transition: transform .35s var(--ease);
}
.team-card:hover { transform: translateY(-2px); }
.team-card .portrait {
  transition: transform .6s var(--ease);
}
.team-card:hover .portrait { transform: scale(1.015); }

.insight {
  transition: transform .35s var(--ease);
}
.insight:hover { transform: translateY(-2px); }
.insight .insight-img {
  transition: transform .9s var(--ease), filter .4s ease;
}
.insight:hover .insight-img { transform: scale(1.04); filter: saturate(1.05); }

.pi-card .pi-img {
  transition: transform 1.1s var(--ease), filter .5s ease;
}
.pi-card:hover .pi-img { transform: scale(1.03); }

/* Arrow nudge on .more / .signature / .arrow */
.more, .signature, a .arrow {
  transition: gap .25s var(--ease), color .2s ease, transform .25s var(--ease);
}
.more:hover .arrow,
.signature:hover .arrow,
a:hover > .arrow { transform: translateX(4px); }
.more:hover,
.signature:hover { gap: .6rem; }

/* ---------- Refined buttons (subtle elevation) ---------- */
.btn-primary {
  box-shadow: 0 1px 0 rgba(255,255,255,.05) inset;
}
.btn-primary:hover {
  box-shadow: 0 6px 20px rgba(31,46,162,.22);
}

/* ---------- Refined hero meta divider ---------- */
.hero-image .hero-meta strong {
  color: rgba(250,248,244,.55);
}

/* ---------- Page-head accent rule (now blue) ---------- */
.page-head-image .accent-line { background: var(--gold-soft); }

/* ---------- More dramatic section heads ---------- */
.section-head .h-section {
  margin-bottom: 0;
}

/* ---------- Smooth anchor offset for sticky header ---------- */
[id] { scroll-margin-top: 100px; }

/* ---------- Reduce existing border-radius variance ---------- */
.pricing-block,
.field input, .field textarea, .field select { border-radius: 3px; }

/* ---------- Cookie banner refinement ---------- */
.cookie { border-radius: 6px; }
.cookie .btn { border-radius: 999px; }

/* ---------- Footer logo container ---------- */
.footer-brand .logo-wrap {
  display: inline-block;
  margin-bottom: 1.25rem;
}

/* ---------- Mobile refinements ---------- */
@media (max-width: 900px) {
  .header-row { height: 64px; }
  .brand-logo { height: 34px; }
  .mobile-nav { inset-block-start: 64px; }
  /* Anchor jumps need to clear the sticky header. */
  html { scroll-padding-top: 72px; }
}


/* =============================================================
   HERO 'DEFENDING' - Italianno calligraphic script
   No underline, no pen-tip. Each line fades in; the script
   word does the visual work with its distinctive shape.
   ============================================================= */

.hero-h .word {
  display: inline;
  opacity: 1;
  transform: none;
  animation: none;
}

.hero-h .line {
  display: block;
  opacity: 0;
  transform: translateY(.5em);
  animation: line-rise 1.1s var(--ease) forwards;
}
.hero-h .line:nth-child(1) { animation-delay: .15s; }
.hero-h .line:nth-child(2) { animation-delay: .35s; }
.hero-h .line:nth-child(3) { animation-delay: .55s; }
@keyframes line-rise {
  to { opacity: 1; transform: translateY(0); }
}

/* Each 'Defending' - italic of the same display serif; no separate font */
.hero-h .defending {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  color: var(--paper);
}

/* Focal-point words ('your', 'you') - italic + light brand blue.
   Lightened from var(--brand) so it pops on the dark hero. */
.hero-h .accent {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 200;
  color: #8FA5F5;
}

@media (prefers-reduced-motion: reduce) {
  .hero-h .line {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
}


/* =============================================================
   MOBILE-FIRST POLISH PASS
   Touch targets, reduced spacing, hover scoping, tap states
   ============================================================= */

/* Scope hover-only effects so touch devices don't get stuck states */
@media (hover: hover) {
  .pi-card:hover .pi-img { background-size: 108%; }
  .insight:hover .insight-img { transform: scale(1.03); }
  .matter-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-2);
  }
  .sector-tile:hover::before { transform: translateY(0); }
  .sector-tile:hover { color: var(--paper); }
  .sector-tile:hover .num { color: var(--gold-soft); }
  .sector-tile:hover .desc { color: rgba(250,248,244,.8); }
}
@media (hover: none) {
  /* On touch: subtle persistent accents instead of hover states */
  .sector-tile { border-bottom-width: 2px; border-bottom-color: var(--brand); }
  .matter-card { border-top: 2px solid var(--brand); }
  .pi-img { background-size: 105%; }
}

/* Touch-friendly tap targets - 44px minimum */
@media (max-width: 900px) {
  .nav-toggle { width: 48px; height: 48px; }
  .btn { min-height: 44px; padding: .85rem 1.4rem; }
  .btn-pill { min-height: 38px; }
  .field input, .field textarea, .field select { font-size: 16px; /* prevent iOS zoom */ }
  .form .consent input { width: 22px; height: 22px; flex-shrink: 0; }
}

/* Tighter mobile rhythm */
@media (max-width: 700px) {
  :root {
    --section: clamp(2.25rem, 7vw, 5rem);
    --gutter: clamp(.9rem, 4.5vw, 1.5rem);
  }
  .section--tight { padding-block: clamp(2rem, 5vw, 2.5rem); }

  /* Mobile hero: roughly one viewport tall with generous internal spacing.
     Content sits in the lower two-thirds of the viewport, meta block at
     the bottom. The "lvh" unit accounts for iOS Safari's bottom bar so
     nothing ends up under the address bar. */
  .hero-image {
    min-height: 100vh;
    min-height: 100lvh;
    padding-top: 7rem;
    padding-bottom: 2.5rem;
    align-items: flex-end;
  }
  .hero-image .container {
    padding-top: 0;
    width: 100%;
  }
  .hero-image .eyebrow {
    margin-bottom: 1.25rem;
    font-size: .65rem;
    letter-spacing: .14em;
  }
  /* Tighten eyebrow letter-spacing on mobile generally - the default
     0.2em reads as gappy at small sizes. */
  .eyebrow { letter-spacing: .14em; }
  .recognition .label,
  .recognition-text .recognition-name,
  .recognition-text .recognition-ref { letter-spacing: normal; }
  .hero-h {
    /* Bigger on mobile for real impact; allow each phrase to wrap to two
       lines naturally. Tight line-height + tight margin pulls the lead
       paragraph close so the block reads as one statement. Min shifted
       down so 320px viewports still fit each phrase cleanly. */
    font-size: clamp(2.0rem, 8.5vw, 3.4rem);
    line-height: 1.0;
    margin-bottom: .85rem;
    max-width: 100%;
    letter-spacing: -0.02em;
  }
  .hero-h .line { margin: 0; }
  .hero-image .hero-sub { margin-top: 0; }
  .hero-h .line { display: block; }
  .hero-sub {
    font-size: 1rem;
    margin-bottom: 2rem;
    line-height: 1.5;
    max-width: 34ch;
  }
  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
    gap: .7rem;
    margin-bottom: 0;
  }
  .hero-ctas .btn { justify-content: center; min-height: 48px; }

  /* Hero-meta: stack each row instead of awkward 3-column wrap.
     Each row reads cleanly as a single line, no overflow. */
  .hero-meta {
    margin-top: 2.25rem !important;
    padding-top: 1.5rem !important;
    flex-direction: column;
    align-items: flex-start;
    gap: .9rem !important;
    font-size: .82rem;
    border-top: 1px solid rgba(250, 248, 244, .18) !important;
  }
  .hero-meta > div {
    display: flex;
    align-items: baseline;
    gap: .7rem;
    width: 100%;
  }
  .hero-meta strong {
    font-size: .58rem;
    letter-spacing: .18em;
    margin-bottom: 0;
    flex-shrink: 0;
    min-width: 5.5rem;
    color: rgba(250, 248, 244, .42) !important;
  }

  /* The SRA credential is no longer in the hero (moved to footer),
     but if one still appears anywhere, give it sane mobile sizing. */
  .sra-credential {
    margin-top: .6rem;
    padding: .6rem .9rem .6rem 1.05rem;
    gap: .75rem;
    width: 100%;
    max-width: 100%;
  }
  .sra-credential .seal-icon { width: 24px; height: 24px; }
  .sra-credential .cred-org { font-size: .85rem; }
  .sra-credential .cred-no { font-size: .68rem; }
  .sra-credential .cred-label { font-size: .58rem; }

  .h-display { font-size: clamp(2.1rem, 7vw, 3rem); }
  .h-section { font-size: clamp(1.7rem, 6vw, 2.4rem); }

  .intro-block .h-display { font-size: clamp(1.85rem, 7vw, 2.6rem); }
  .intro-block .intro-meta {
    border-left: none;
    border-top: 1px solid rgba(250,248,244,.25);
    padding-left: 0;
    padding-top: 1.5rem;
    font-size: 1.05rem;
  }
  .stats-row { gap: 1.5rem .5rem; }
  .stat .num { font-size: 2.6rem; margin-bottom: .5rem; }
  .stat .label { font-size: .68rem; letter-spacing: .12em; }

  .practice-image .pi-img { min-height: 260px; }
  .pi-content { padding: 2rem 1.5rem; }
  .pi-content .icon { width: 36px; height: 36px; }

  .sector-tile { min-height: 160px; padding: 1.5rem 1.25rem; }
  .sector-tile h4 { font-size: 1.15rem; }
  .sector-tile .desc { font-size: .82rem; }

  .matter-card { padding: 1.5rem 1.25rem; }
  .matter-card .matter-fig { font-size: 2.4rem; }

  .approach .approach-grid { gap: 2rem; }
  .approach .lead-stmt { font-size: 1.5rem; }
  .silhouette { display: none; }

  .about-snippet .as-img { min-height: 240px; }
  .about-snippet .as-content { padding: 2rem 1.5rem; }
  .about-snippet h2 { font-size: 1.85rem; }
  .dropcap::first-letter { font-size: 3.4em; }

  .matter-photo { min-height: 280px; }
  .matter-content { padding: 2rem 1.5rem; }

  .insight-feature { gap: 1.25rem; }
  .insight-feature h3 { font-size: 1.4rem; }

  .recognition .recognition-list { gap: 1.5rem 2rem; }
  .recognition .item .name { font-size: 1rem; }

  .cta-photo { padding-block: 4rem; }
  .cta-photo .h-display { font-size: clamp(2rem, 7vw, 3rem); }
  .cta-photo .lead { font-size: 1rem; }
  .cta-photo .actions { flex-direction: column; align-items: stretch; gap: .75rem; }
  .cta-photo .actions .btn { justify-content: center; }

  .page-head-image { padding-top: 6rem; padding-bottom: 2.5rem; }
  .page-head-image .h-display { font-size: clamp(2rem, 7vw, 2.8rem); }
  .page-head-image .lead { font-size: 1rem; }

  .pricing-block { padding: 1.5rem 1.25rem; }
  .pricing-block table { font-size: .85rem; }
  .pricing-block th, .pricing-block td { padding: .65rem .5rem; }

  .services-list li { gap: 1rem; padding: 1.25rem 0; }
  .services-list .title { font-size: 1.1rem; }

  .team-card .portrait { aspect-ratio: 1/1; }

  .contact-info dl { gap: 1.25rem; }
  .contact-info dd { font-size: 1rem; }
  .field-row { gap: 1rem; grid-template-columns: 1fr; }

  .cookie {
    left: .75rem; right: .75rem; bottom: .75rem;
    padding: 1rem;
  }
  .cookie p { font-size: .85rem; }
  .cookie-actions .btn { flex: 1; justify-content: center; }

  .site-footer { padding-block: 3.5rem 1.5rem; }
  .footer-grid { gap: 2rem; }
  .footer-brand .brand-logo { height: 50px; }
}

/* =============================================================
   PROCESS / TIMELINE LIST
   For 'How we work' (about) and 'First 24 hours' (criminal)
   ============================================================= */
.process-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--rule);
  margin-top: 1rem;
}
.process-list .step {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--rule);
  align-items: baseline;
  transition: padding-left var(--dur-fast);
}
@media (min-width: 700px) {
  .process-list .step {
    grid-template-columns: 6rem 1fr 2fr;
    gap: 2rem;
  }
}
.process-list .step:hover { padding-left: .75rem; }
.process-list .step-num {
  font-family: var(--italic);
  font-style: italic;
  color: var(--brand);
  font-size: 1.05rem;
}
.process-list .step-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.15rem, 1rem + 0.3vw, 1.4rem);
  letter-spacing: -0.01em;
  margin: 0;
  line-height: 1.2;
}
.process-list .step-desc {
  color: var(--ink-2);
  font-size: .95rem;
  margin: 0;
  line-height: 1.55;
  max-width: 60ch;
}

/* =============================================================
   SRA CREDENTIAL BLOCK
   Small framed seal in the lower-left of the hero, reading
   like an "Authorised & regulated" stamp on legal letterhead.
   ============================================================= */
.sra-credential {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: .65rem 1rem .65rem 1.15rem;
  margin-top: .75rem;
  border: 1px solid rgba(230, 217, 194, .25);
  background: rgba(14, 14, 16, .4);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  border-radius: 2px;
  max-width: fit-content;
  position: relative;
}
.sra-credential::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: var(--gold-soft);
}
.sra-credential .seal-icon {
  width: 30px;
  height: 30px;
  color: var(--gold-soft);
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.sra-credential .cred-body {
  display: flex;
  flex-direction: column;
  gap: .15rem;
  line-height: 1.3;
}
.sra-credential .cred-label {
  font-size: .62rem;
  text-transform: uppercase;
  letter-spacing: .2em;
  color: rgba(250, 248, 244, .65);
  font-weight: 400;
}
.sra-credential .cred-org {
  font-family: var(--serif);
  font-style: italic;
  font-size: .98rem;
  color: var(--paper);
  font-weight: 300;
}
.sra-credential .cred-no {
  font-size: .72rem;
  color: rgba(250, 248, 244, .8);
  letter-spacing: .04em;
}
@media (max-width: 600px) {
  .sra-credential { padding: .7rem 1rem .7rem 1.15rem; gap: .75rem; }
  .sra-credential .seal-icon { width: 26px; height: 26px; }
  .sra-credential .cred-org { font-size: .9rem; }
}

/* SRA credential when placed in the footer (every page) */
.site-footer .sra-credential.footer-credential {
  margin: 0 0 2.25rem 0;
}
@media (max-width: 700px) {
  .site-footer .sra-credential.footer-credential { margin-bottom: 1.5rem; }
}

/* =============================================================
   OFFICIAL ACCREDITATION BADGES
   - SRA Digital Badge (live, dated, issued by the SRA)
   - The Law Society Accredited - Criminal Litigation
   Sits in the dark footer; both badges sit on light cards
   so the official branding is preserved exactly as supplied.
   ============================================================= */
.accreditations.footer-credential {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin: 0 0 2.25rem 0;
}
.accreditation-card {
  background: #ffffff;
  border-radius: 8px;
  padding: .75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 1px rgba(255,255,255,.06);
}
.accreditation-card.sra-digital-badge {
  width: 180px;
  height: 110px;
  padding: 0;
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.accreditation-card.sra-digital-badge:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px rgba(255,255,255,.12), 0 4px 12px -4px rgba(0,0,0,.4);
}
.accreditation-card.sra-digital-badge img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  padding: 8px;
  box-sizing: border-box;
}
.accreditation-card.law-society-badge {
  height: 80px;
}
.accreditation-card.law-society-badge img {
  display: block;
  height: 100%;
  width: auto;
  max-width: 100%;
}
@media (max-width: 600px) {
  .accreditations.footer-credential {
    margin-bottom: 1.5rem;
    gap: .75rem;
  }
  .accreditation-card.sra-digital-badge,
  .accreditation-card.law-society-badge {
    height: 70px;
  }
  .accreditation-card.sra-digital-badge { width: 180px; }
}

/* =============================================================
   LAW-THEMED ICON SYSTEM
   All icons share a line-art language: 32px viewBox,
   1.5px stroke, currentColor, rounded line caps + joins.
   ============================================================= */
.icon-line {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Sector tile icon */
.sector-tile .sector-icon {
  width: 28px;
  height: 28px;
  color: var(--brand);
  margin-bottom: .25rem;
  transition: color var(--dur-fast);
}
@media (hover: hover) {
  .sector-tile:hover .sector-icon { color: var(--gold-soft); }
}

/* Matter card icon */
.matter-card .matter-icon {
  width: 32px;
  height: 32px;
  color: var(--brand);
  margin-bottom: .25rem;
}

/* Recognition item icon */
.recognition .item-icon {
  width: 28px;
  height: 28px;
  color: var(--brand);
  flex-shrink: 0;
}
.recognition .item {
  flex-direction: row;
  align-items: flex-start;
  gap: 1rem;
}
.recognition .item .item-text {
  display: flex;
  flex-direction: column;
  gap: .25rem;
}

/* =============================================================
   SECTION DIVIDER ORNAMENT
   Thin gold rule with a small centered mark - used between
   adjacent same-tone sections to create visual rhythm
   ============================================================= */
.section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-block: clamp(2rem, 4vw, 3rem);
  background: var(--paper);
}
.section-divider.on-paper-2 { background: var(--paper-2); }
.section-divider .divider-inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  width: 100%;
  max-width: var(--max-w);
  padding-inline: var(--gutter);
  color: var(--brand);
}
.section-divider .rule {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, currentColor 40%, currentColor 60%, transparent);
  opacity: .35;
}
.section-divider .rule-mark {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--brand);
}

/* =============================================================
   SEAMLESS SECTION TRANSITIONS
   Subtle gradient fades on dark sections and image edges
   ============================================================= */

/* Soft fade-in at top of approach (dark) section */
.approach {
  position: relative;
}
.approach::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 80px;
  background: linear-gradient(180deg, rgba(14,14,16,0) 0%, rgba(14,14,16,0) 100%);
  pointer-events: none;
}

/* Top edge gradient on about-snippet image (paper section above) */
.about-snippet .as-img::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 60px;
  background: linear-gradient(180deg, var(--paper-2) 0%, transparent 100%);
  z-index: 1;
  pointer-events: none;
}
.about-snippet .as-img {
  position: relative;
}

/* Decorative corner mark on about-snippet content */
.about-snippet .as-content {
  position: relative;
}
.about-snippet .corner-mark {
  position: absolute;
  top: clamp(2rem, 4vw, 3rem);
  right: clamp(2rem, 4vw, 3rem);
  width: 60px;
  height: 60px;
  color: var(--brand);
  opacity: .12;
  pointer-events: none;
}
@media (max-width: 900px) {
  .about-snippet .corner-mark { display: none; }
}

/* =============================================================
   STATS BAND ON PAPER (lighter variant of intro stats)
   ============================================================= */
.stats-on-paper {
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-block: clamp(2.5rem, 5vw, 4rem);
}
.stats-on-paper .stats-row { margin-top: 0; }
.stats-on-paper .stat { border-top-color: var(--rule); }
.stats-on-paper .stat .num { color: var(--ink); }
.stats-on-paper .stat .num em { color: var(--brand); }
.stats-on-paper .stat .label { color: var(--muted); }

/* ======================================================================
   Sticky contact bar
   Slides up from the bottom once the hero is mostly out of view.
   On desktop, shows the eyebrow + meta on the left and CTAs on the right.
   On mobile, collapses to just the CTAs so it doesn't dominate the screen.
   ====================================================================== */
.sticky-contact {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 60;
  padding: 0 clamp(0.75rem, 2.5vw, 1.5rem) clamp(0.75rem, 2vw, 1.25rem);
  pointer-events: none;
  transform: translateY(120%);
  transition: transform 0.45s cubic-bezier(.22, 1, .36, 1);
}
.sticky-contact.is-visible {
  transform: translateY(0);
}
.sticky-contact-inner {
  pointer-events: auto;
  max-width: 1200px;
  margin: 0 auto;
  background: var(--ink);
  color: var(--paper);
  border-radius: 999px;
  padding: 0.65rem 0.75rem 0.65rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  box-shadow: 0 18px 45px -18px rgba(14, 14, 16, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.04);
}
.sticky-contact-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  min-width: 0;
}
.sticky-contact-eyebrow {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--paper);
}
.sticky-contact-meta {
  font-family: var(--sans);
  font-size: 0.72rem;
  color: rgba(250, 248, 244, 0.62);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sticky-contact-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}
.sticky-contact-cta {
  padding-block: 0.6rem;
  padding-inline: 1.1rem;
}
.sticky-contact-call {
  background: transparent;
  border: 1px solid rgba(250, 248, 244, 0.22);
  color: var(--paper);
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
}
.sticky-contact-call:hover {
  background: rgba(250, 248, 244, 0.08);
  border-color: rgba(250, 248, 244, 0.45);
}
.sticky-contact-call .dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #ff5a55;
  box-shadow: 0 0 0 0 rgba(255, 90, 85, 0.6);
  animation: sticky-dot-pulse 1.6s infinite ease-out;
}
@keyframes sticky-dot-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(255, 90, 85, 0.6); }
  70%  { box-shadow: 0 0 0 6px rgba(255, 90, 85, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 90, 85, 0); }
}
@media (max-width: 700px) {
  .sticky-contact-inner {
    padding: 0.5rem 0.5rem 0.5rem 1rem;
    gap: 0.5rem;
  }
  .sticky-contact-text {
    /* Keep just the eyebrow on mobile, hide the longer meta line */
  }
  .sticky-contact-meta { display: none; }
  .sticky-contact-eyebrow { font-size: 0.72rem; }
  .sticky-contact-cta { padding-inline: 0.95rem; font-size: 0.82rem; }
  .sticky-contact-call { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .sticky-contact { transition: opacity 0.3s; transform: none; opacity: 0; }
  .sticky-contact.is-visible { opacity: 1; }
}



