/* =========================================================
   BASILICA LAWFIRM LLP — Design System v2
   ---------------------------------------------------------
   Type      Newsreader (display serif, optical sizing)
             Instrument Sans (UI / body)
   Palette   Royal blue drawn from the mark, deep navy ink
             for dark surfaces, warm paper for light surfaces.
   Rhythm    Fluid clamp() scale, 8px spacing grid.
   ========================================================= */

:root {
  /* ---- brand ----
     The logo's blue stays in the logo. Interface accents use a muted
     brass so the mark is the only saturated colour on the page. */
  --brand-blue: #004aad;   /* logo primary — logo use only */
  --brand-blue-2: #397ad4; /* logo secondary — logo use only */

  --accent:      #a8875a;  /* brass — labels, numerals, rules   */
  --accent-2:    #c4a67a;  /* brass on dark surfaces            */
  --accent-soft: #efe6d6;  /* selection / tint                  */
  --accent-ink:  #7d6340;  /* brass for small text on paper     */

  /* legacy aliases so nothing breaks */
  --blue-900: #1c1a17;
  --blue-700: var(--accent-ink);
  --blue-500: var(--accent-2);
  --blue-100: var(--accent-soft);

  /* ---- neutrals ---- */
  --ink:      #171614;   /* graphite — dark surfaces  */
  --ink-2:    #201e1b;
  --ink-3:    #2a2724;
  --text:     #17161a;
  --text-2:   #4f4d4a;
  --text-3:   #86827c;
  --paper:    #f6f4ef;   /* warm off-white          */
  --paper-2:  #efece5;
  --white:    #ffffff;
  --line:     #d9d6cf;
  --line-2:   #e7e4dd;
  --line-dark: rgba(255, 255, 255, .12);

  /* ---- type ---- */
  --font-serif: 'Newsreader', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  --font-sans: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;

  --fs-display: clamp(2.75rem, 1.35rem + 4.5vw, 5.5rem);
  --fs-h2:      clamp(2rem, 1.25rem + 2.4vw, 3.5rem);
  --fs-h3:      clamp(1.5rem, 1.2rem + 1vw, 2.125rem);
  --fs-h4:      clamp(1.25rem, 1.1rem + .5vw, 1.5rem);
  --fs-lead:    clamp(1.125rem, 1.02rem + .35vw, 1.375rem);
  --fs-body:    1.0625rem;
  --fs-small:   .9375rem;
  --fs-label:   .75rem;

  /* ---- layout ---- */
  --container: 1320px;
  --gutter: clamp(20px, 4vw, 56px);
  --space-section: clamp(5rem, 3.5rem + 5vw, 9.5rem);
  --space-block: clamp(2.5rem, 2rem + 2vw, 4.5rem);
  --header-h: 92px;

  /* ---- motion ---- */
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --dur: .7s;

  /* legacy aliases (inner pages still reference Astra vars) */
  --ast-global-color-0: var(--blue-700);
  --ast-global-color-1: var(--ink);
  --ast-global-color-2: var(--text);
  --ast-global-color-3: var(--text-2);
  --ast-global-color-4: var(--paper);
  --ast-global-color-5: var(--white);
  --ast-global-color-6: var(--paper-2);
  --ast-global-color-7: var(--ink);
  --ast-global-color-8: #000000;
  --ast-border-color: var(--line);
  --ast-container-width: 1200px;
  --ast-narrow-width: 750px;
}

/* =========================================================
   RESET / BASE
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: 'kern' 1, 'liga' 1;
}
body.no-scroll { overflow: hidden; }

img { max-width: 100%; height: auto; display: block; border: 0; }
a { color: inherit; text-decoration: none; transition: color .25s var(--ease-out); }
button { font: inherit; color: inherit; }

::selection { background: var(--blue-100); color: var(--ink); }

/* ---- Type scale ---- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 400;
  color: var(--text);
  margin: 0 0 .6em;
  letter-spacing: -.01em;
  text-wrap: balance;
}
h1 { font-size: var(--fs-display); line-height: 1.02; letter-spacing: -.025em; }
h2 { font-size: var(--fs-h2); line-height: 1.08; letter-spacing: -.02em; }
h3 { font-size: var(--fs-h3); line-height: 1.15; }
h4 { font-size: var(--fs-h4); line-height: 1.25; }
h5 { font-size: 1.25rem; line-height: 1.3; }
h6 { font-family: var(--font-sans); font-size: var(--fs-label); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }

p { margin: 0 0 1.25em; }
p:last-child { margin-bottom: 0; }
em { font-style: italic; }

blockquote {
  margin: 0 0 1.5em;
  padding-left: 24px;
  border-left: 2px solid var(--blue-700);
  font-family: var(--font-serif);
  font-size: var(--fs-lead);
  line-height: 1.5;
}
ul, ol { margin: 0 0 1.5em; padding-left: 20px; }
li { margin-bottom: .5em; }
address { font-style: normal; }

/* ---- Layout helpers ---- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container-narrow { max-width: 900px; }
.section { padding: var(--space-section) 0; }
.section-sm { padding: var(--space-block) 0; }
.text-center { text-align: center; }

.skip-link {
  position: absolute; left: 8px; top: -60px;
  padding: 10px 14px; background: var(--ink); color: #fff; z-index: 1000;
  font-size: 14px;
}
.skip-link:focus { top: 8px; }

/* ---- Section label: “01 — The Firm” ---- */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-sans);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-3);
  margin: 0 0 clamp(1.25rem, 1rem + 1vw, 2rem);
}
.section-label .num {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1.05rem;
  letter-spacing: 0;
  color: var(--blue-700);
  font-variant-numeric: tabular-nums lining-nums;
}
.section-label .num::after {
  content: '';
  display: inline-block;
  width: 28px; height: 1px;
  background: currentColor;
  margin-left: 14px;
  vertical-align: middle;
  opacity: .5;
}
.on-dark .section-label { color: rgba(255,255,255,.55); }
.on-dark .section-label .num { color: var(--blue-500); }

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  gap: clamp(2rem, 4vw, 5rem);
  align-items: end;
  margin-bottom: var(--space-block);
}
.section-head h2 { margin: 0; max-width: 16ch; }
.section-head .section-intro {
  font-size: var(--fs-small);
  line-height: 1.7;
  color: var(--text-2);
  max-width: 46ch;
  padding-bottom: .35em;
}

/* Legacy compat (eyebrow/divider still used on inner pages) */
.eyebrow {
  font-family: var(--font-sans);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--blue-700);
  margin: 0 0 14px;
}
.divider-line { width: 100%; height: 0; border-top: 1px solid var(--blue-700); margin: 0 0 18px; }
.divider-line.short { max-width: 56px; }
.divider-line.center { margin-inline: auto; }

/* ---- Links & buttons — deliberately quiet ---- */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-sans);
  font-size: var(--fs-small);
  font-weight: 500;
  letter-spacing: .01em;
  color: var(--text);
  padding-bottom: 2px;
  position: relative;
}
.link-arrow::after {
  content: '';
  position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: currentColor;
  transform-origin: left;
  transform: scaleX(.3);
  opacity: .4;
  transition: transform .5s var(--ease-out), opacity .3s;
}
.link-arrow:hover::after { transform: scaleX(1); opacity: 1; }
.link-arrow .arr {
  display: inline-block;
  width: 18px; height: 10px;
  position: relative;
  transition: transform .4s var(--ease-out);
}
.link-arrow .arr::before {
  content: ''; position: absolute; left: 0; top: 50%; width: 100%; height: 1px; background: currentColor;
}
.link-arrow .arr::after {
  content: ''; position: absolute; right: 0; top: 50%; width: 7px; height: 7px;
  border-top: 1px solid currentColor; border-right: 1px solid currentColor;
  transform: translateY(-50%) rotate(45deg);
}
.link-arrow:hover .arr { transform: translateX(6px); }
.on-dark .link-arrow { color: #fff; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-sans);
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 16px 26px;
  border: 1px solid var(--text);
  background: transparent;
  color: var(--text);
  border-radius: 0;
  cursor: pointer;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  transition: color .35s var(--ease-out), border-color .35s;
}
.btn::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: var(--text);
  transform: scaleY(0); transform-origin: bottom;
  transition: transform .45s var(--ease-out);
}
.btn:hover { color: #fff; }
.btn:hover::before { transform: scaleY(1); transform-origin: top; }
.btn-outline { background: transparent; }
.on-dark .btn { border-color: rgba(255,255,255,.5); color: #fff; }
.on-dark .btn::before { background: #fff; }
.on-dark .btn:hover { color: var(--ink); border-color: #fff; }

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 90;
  color: #fff;
  background: transparent;
  transition:
    background-color .45s var(--ease-out),
    color .45s var(--ease-out),
    transform .5s var(--ease-out),
    box-shadow .45s;
}
.site-header::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px;
  background: rgba(255,255,255,.14);
  transition: background-color .45s;
}
.site-header.scrolled,
.site-header.solid {
  color: var(--text);
  background: rgba(255,255,255,.86);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
}
.site-header.scrolled::after,
.site-header.solid::after { background: var(--line-2); }
.site-header.hidden { transform: translateY(-100%); }
.site-header.solid { position: sticky; }
body.has-solid-header .site-content { padding-top: 0; }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  min-height: var(--header-h);
}

.site-branding { flex: 0 0 auto; position: relative; }

/* Brand lockup: BLF monogram + typeset wordmark (the PNG wordmark
   is 17px tall and turns to mush below 60px, so we set it in type). */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: inherit;
}
.brand-mark {
  position: relative;
  display: block;
  width: 66px;
  height: 33px;
  flex: 0 0 auto;
}
.brand-mark img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  transition: opacity .35s var(--ease-out);
}
.brand-word {
  display: grid;
  gap: 3px;
  padding-left: 14px;
  border-left: 1px solid currentColor;
  line-height: 1;
  transition: border-color .35s;
}
.brand-name {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  letter-spacing: .01em;
  white-space: nowrap;
}
.brand-name small {
  font-size: .7em;
  letter-spacing: .08em;
  margin-left: .1em;
  vertical-align: .08em;
}
.brand-sub {
  font-family: var(--font-sans);
  font-size: .625rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  opacity: .62;
  white-space: nowrap;
}
.site-header .brand-word { border-left-color: rgba(255,255,255,.35); }
.site-header.scrolled .brand-word,
.site-header.solid .brand-word { border-left-color: var(--line); }

.site-branding .logo-light { opacity: 1; }
.site-branding .logo-dark { opacity: 0; }
.site-header.scrolled .logo-light,
.site-header.solid .logo-light { opacity: 0; }
.site-header.scrolled .logo-dark,
.site-header.solid .logo-dark { opacity: 1; }

.main-nav { display: flex; align-items: center; gap: 40px; }
.main-nav ul {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.main-nav li { margin: 0; }
.main-nav a {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: .875rem;
  font-weight: 500;
  letter-spacing: .01em;
  color: inherit;
  padding: 6px 0;
  white-space: nowrap;
  position: relative;
  opacity: .82;
  transition: opacity .3s;
}
.main-nav a::after {
  content: '';
  position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .45s var(--ease-out);
}
.main-nav a:hover { opacity: 1; }
.main-nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.main-nav a.current { opacity: 1; }
.main-nav a.current::after { transform: scaleX(1); }

.nav-offices {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .75rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: .6;
  padding-left: 32px;
  border-left: 1px solid currentColor;
  line-height: 1;
}
.nav-dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  background: transparent;
  border: 0;
  cursor: pointer;
  color: inherit;
}
.nav-toggle-label { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; }
.nav-toggle-lines { display: flex; flex-direction: column; gap: 6px; width: 26px; }
.nav-toggle-lines i {
  display: block; height: 1.5px; width: 100%; background: currentColor;
  transition: transform .4s var(--ease-out), width .3s;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-lines i:nth-child(1) { transform: translateY(3.75px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-lines i:nth-child(2) { transform: translateY(-3.75px) rotate(-45deg); }

/* =========================================================
   HERO (home)
   ========================================================= */
.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 100svh;
  padding: calc(var(--header-h) + 48px) 0 clamp(2.5rem, 4vw, 4rem);
  overflow: hidden;
  background: var(--ink);
  color: #fff;
}
.hero-slides { position: absolute; inset: 0; }
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1.8s var(--ease-in-out), transform 7s linear;
}
.hero-slide.active { opacity: 1; transform: scale(1); }
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(20, 19, 17, .55) 0%, rgba(20, 19, 17, .15) 35%, rgba(20, 19, 17, .35) 65%, rgba(20, 19, 17, .88) 100%),
    linear-gradient(90deg, rgba(20, 19, 17, .55) 0%, rgba(20, 19, 17, 0) 60%);
}
.hero > .container { position: relative; z-index: 2; width: 100%; }

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

.hero-kicker {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255,255,255,.7);
  margin: 0 0 clamp(1.5rem, 2vw, 2.5rem);
}
.hero-kicker::before { content: ''; width: 40px; height: 1px; background: var(--blue-500); }

.hero-title {
  color: #fff;
  max-width: 14ch;
  margin: 0 0 clamp(1.5rem, 2.5vw, 2.5rem);
  font-weight: 300;
}
.hero-title em { font-style: italic; font-weight: 300; color: #cfe0fa; }
.hero-line { display: block; overflow: hidden; }
.hero-line > span {
  display: block;
  transform: translateY(110%);
  transition: transform 1.2s var(--ease-out);
}
.is-loaded .hero-line > span { transform: translateY(0); }
.is-loaded .hero-line:nth-child(2) > span { transition-delay: .12s; }
.is-loaded .hero-line:nth-child(3) > span { transition-delay: .24s; }

.hero-text {
  color: rgba(255,255,255,.78);
  max-width: 52ch;
  font-size: var(--fs-lead);
  font-family: var(--font-serif);
  font-weight: 300;
  line-height: 1.5;
  margin: 0;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 1s var(--ease-out) .5s, transform 1s var(--ease-out) .5s;
}
.is-loaded .hero-text { opacity: 1; transform: none; }

.hero-fade { opacity: 0; transition: opacity 1s var(--ease-out) .8s; }
.is-loaded .hero-fade { opacity: 1; }

/* slide caption + index (bottom right) */
.hero-meta {
  display: grid;
  gap: 18px;
  min-width: 220px;
  justify-items: end;
  text-align: right;
  font-size: var(--fs-label);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.7);
}
.hero-caption {
  display: grid;
  gap: 4px;
}
.hero-caption-text {
  position: relative;
  height: 1.4em;
  overflow: hidden;
  min-width: 280px;
  text-align: right;
}
.hero-caption-text span {
  position: absolute; right: 0; top: 0;
  white-space: nowrap;
  line-height: 1.4;
  opacity: 0;
  transform: translateY(100%);
  transition: opacity .6s var(--ease-out), transform .6s var(--ease-out);
}
.hero-caption-text span.active { opacity: 1; transform: none; }
.hero-index {
  font-family: var(--font-serif);
  font-size: 1rem;
  letter-spacing: .04em;
  text-transform: none;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.hero-index .of { opacity: .5; margin: 0 .35em; }
.hero-progress {
  width: 220px;
  height: 1px;
  background: rgba(255,255,255,.22);
  position: relative;
  overflow: hidden;
}
.hero-progress i {
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 100%;
  background: #fff;
  transform-origin: left;
  transform: scaleX(0);
}
.hero-progress.run i { animation: heroProgress var(--slide-dur, 6.5s) linear forwards; }
@keyframes heroProgress { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* =========================================================
   CREDENTIALS STRIP (under hero)
   ========================================================= */
.credentials {
  background: var(--ink);
  color: rgba(255,255,255,.7);
  border-top: 1px solid var(--line-dark);
}
.credentials-inner {
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 3vw, 3rem);
  min-height: 72px;
  font-size: var(--fs-label);
  letter-spacing: .14em;
  text-transform: uppercase;
}
.credentials-lead { color: rgba(255,255,255,.45); flex: 0 0 auto; }
.credentials-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px clamp(1.5rem, 3vw, 3rem);
  list-style: none;
  margin: 0; padding: 0;
}
.credentials-list li {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1rem;
  letter-spacing: .02em;
  text-transform: none;
  color: rgba(255,255,255,.88);
  display: flex; align-items: center; gap: clamp(1.5rem, 3vw, 3rem);
}
.credentials-list li + li::before { content: ''; width: 3px; height: 3px; border-radius: 50%; background: var(--blue-500); }

/* =========================================================
   INTRO — “Professional and experienced legal team”
   ========================================================= */
.intro-section { background: var(--white); }
.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2.5rem, 6vw, 7rem);
  align-items: start;
}
.intro-copy h2 { max-width: 15ch; margin-bottom: clamp(1.5rem, 2.5vw, 2.5rem); }
.intro-lead {
  font-family: var(--font-serif);
  font-size: var(--fs-lead);
  line-height: 1.5;
  color: var(--text);
  max-width: 56ch;
  margin-bottom: clamp(2rem, 3vw, 3.5rem);
}
.intro-lead::first-letter {
  font-size: 3.2em;
  float: left;
  line-height: .8;
  padding: .08em .12em 0 0;
  color: var(--blue-700);
}
.intro-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 3vw, 3.5rem);
}
.pillar {
  border-top: 1px solid var(--line);
  padding-top: 24px;
}
.pillar-num {
  font-family: var(--font-serif);
  font-size: .95rem;
  color: var(--blue-700);
  margin-bottom: 18px;
  font-variant-numeric: tabular-nums;
}
.pillar h3 { font-size: var(--fs-h4); margin-bottom: 14px; }
.pillar p { font-size: var(--fs-small); line-height: 1.75; color: var(--text-2); margin: 0; }

.intro-media { position: sticky; top: calc(var(--header-h) + 32px); }
.intro-media figure { margin: 0; }
.intro-media .media-reveal { aspect-ratio: 4 / 4.6; }
.intro-media img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.intro-media figcaption {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding-top: 16px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
  font-size: var(--fs-small);
  color: var(--text-2);
}
.intro-media figcaption strong { font-weight: 500; color: var(--text); display: block; }
.intro-media figcaption .role { font-size: .8125rem; color: var(--text-3); }
.intro-media .link-arrow { margin-top: 22px; }

/* Media reveal (clip wipe) */
.media-reveal { position: relative; overflow: hidden; background: var(--paper-2); }
.media-reveal img {
  transform: scale(1.12);
  transition: transform 1.4s var(--ease-out);
}
.media-reveal::after {
  content: '';
  position: absolute; inset: 0;
  background: var(--paper-2);
  transform-origin: right;
  transition: transform 1.1s var(--ease-in-out);
}
.media-reveal.is-visible img { transform: scale(1); }
.media-reveal.is-visible::after { transform: scaleX(0); }
.on-dark .media-reveal, .on-dark .media-reveal::after { background: var(--ink-2); }

/* =========================================================
   PRACTICE AREAS — index list with live preview
   ========================================================= */
.practice-section { background: var(--paper); }
.pa-index {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2.5rem, 5vw, 6rem);
  align-items: start;
}
.pa-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.pa-item { margin: 0; border-bottom: 1px solid var(--line); }
.pa-trigger {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  align-items: center;
  gap: 20px;
  width: 100%;
  padding: clamp(1.1rem, 1.6vw, 1.6rem) 0;
  background: transparent;
  border: 0;
  text-align: left;
  cursor: pointer;
  color: var(--text-2);
  transition: color .35s var(--ease-out);
}
.pa-num {
  font-family: var(--font-serif);
  font-size: .95rem;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
  transition: color .35s;
}
.pa-name {
  font-family: var(--font-serif);
  font-size: var(--fs-h3);
  line-height: 1.1;
  letter-spacing: -.015em;
  color: var(--text);
  transition: transform .5s var(--ease-out), color .35s;
}
.pa-arrow {
  width: 40px; height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid; place-items: center;
  position: relative;
  transition: background-color .4s var(--ease-out), border-color .4s, transform .5s var(--ease-out);
}
.pa-arrow::before {
  content: '';
  width: 8px; height: 8px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: rotate(45deg) translate(-1px, 1px);
  transition: transform .4s var(--ease-out);
}
.pa-item.is-active .pa-name { transform: translateX(10px); color: var(--blue-700); }
.pa-item.is-active .pa-num { color: var(--blue-700); }
.pa-item.is-active .pa-arrow { background: var(--ink); border-color: var(--ink); color: #fff; }
.pa-panel {
  display: none;
  padding: 0 0 clamp(1.1rem, 1.6vw, 1.6rem) 76px;
  font-size: var(--fs-small);
  line-height: 1.75;
  color: var(--text-2);
}
.pa-panel .link-arrow { margin-top: 16px; font-size: .875rem; }

.pa-preview {
  position: sticky;
  top: calc(var(--header-h) + 32px);
}
.pa-preview-media {
  position: relative;
  aspect-ratio: 5 / 4;
  overflow: hidden;
  background: var(--paper-2);
}
.pa-preview-media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity .8s var(--ease-out), transform 1.2s var(--ease-out);
}
.pa-preview-media img.active { opacity: 1; transform: scale(1); }
.pa-preview-body {
  position: relative;
  min-height: 190px;
  padding-top: 24px;
}
.pa-preview-text {
  position: absolute; inset: 24px 0 0;
  font-size: var(--fs-small);
  line-height: 1.75;
  color: var(--text-2);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .5s var(--ease-out), transform .5s var(--ease-out);
  margin: 0;
}
.pa-preview-text.active { opacity: 1; transform: none; }
.pa-preview-text .link-arrow { display: inline-flex; margin-top: 18px; font-size: .875rem; }
.practice-actions { margin-top: var(--space-block); display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.practice-actions .count { font-size: var(--fs-small); color: var(--text-3); }

/* =========================================================
   WHY US — dark, with office photography
   ========================================================= */
.why-section {
  position: relative;
  background: var(--ink);
  color: #fff;
  padding: var(--space-section) 0;
}
.why-section h2 { color: #fff; }
.why-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2.5rem, 6vw, 7rem);
  align-items: start;
}
.why-media { position: sticky; top: calc(var(--header-h) + 32px); margin: 0; }
.why-media .media-reveal { aspect-ratio: 4 / 5; }
.why-media img { width: 100%; height: 100%; object-fit: cover; }
.why-media figcaption {
  margin-top: 14px;
  font-size: .8125rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
}
.why-copy h2 { max-width: 14ch; margin-bottom: clamp(1.5rem, 2.5vw, 3rem); }
.why-intro {
  font-family: var(--font-serif);
  font-size: var(--fs-lead);
  font-weight: 300;
  line-height: 1.5;
  color: rgba(255,255,255,.75);
  max-width: 50ch;
  margin-bottom: clamp(2rem, 3vw, 3.5rem);
}
.why-list { border-top: 1px solid var(--line-dark); }
.why-item {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 20px;
  padding: clamp(1.5rem, 2vw, 2.25rem) 0;
  border-bottom: 1px solid var(--line-dark);
}
.why-num {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--blue-500);
  padding-top: .35em;
  font-variant-numeric: tabular-nums;
}
.why-item h4 { color: #fff; margin-bottom: 12px; font-size: var(--fs-h4); }
.why-item p { color: rgba(255,255,255,.68); font-size: var(--fs-small); line-height: 1.75; margin: 0; max-width: 56ch; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: var(--space-section);
  border-top: 1px solid var(--line-dark);
}
.stat-cell {
  padding: clamp(1.75rem, 2.5vw, 2.75rem) clamp(1rem, 2vw, 2rem) 0 0;
  border-right: 1px solid var(--line-dark);
}
.stat-cell:last-child { border-right: 0; }
.stat-cell + .stat-cell { padding-left: clamp(1rem, 2vw, 2rem); }
.stat-cell h3 {
  color: #fff;
  font-size: clamp(2.5rem, 2rem + 2vw, 4rem);
  font-weight: 300;
  line-height: 1;
  margin: 0 0 12px;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums lining-nums;
}
.stat-cell h3 .suffix { color: var(--blue-500); }
.stat-cell p {
  margin: 0;
  font-size: .8125rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
  line-height: 1.5;
}

/* =========================================================
   CONSULTATION — quiet contact strip
   ========================================================= */
.callus {
  background: var(--paper);
  padding: var(--space-section) 0;
  border-top: 1px solid var(--line-2);
}
.callus-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2.5rem, 5vw, 6rem);
  align-items: start;
}
.callus h2 { max-width: 12ch; margin-bottom: 1.25rem; }
.callus-copy p { font-size: var(--fs-small); line-height: 1.75; color: var(--text-2); max-width: 44ch; }
.callus-copy .link-arrow { margin-top: 28px; }
.callus-row { display: grid; border-top: 1px solid var(--line); }
.callus-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 24px;
  align-items: baseline;
  padding: clamp(1.5rem, 2vw, 2.25rem) 0;
  border-bottom: 1px solid var(--line);
}
.callus-label {
  font-size: var(--fs-label);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-3);
  font-weight: 600;
  margin: 0;
}
.callus-label small { display: block; font-weight: 400; letter-spacing: .02em; text-transform: none; font-size: .8125rem; margin-top: 6px; color: var(--text-3); }
.callus-item h3 {
  margin: 0;
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.25rem);
  font-weight: 300;
  line-height: 1.25;
  letter-spacing: -.01em;
  font-variant-numeric: tabular-nums;
}
.callus-item h3 a {
  color: var(--text);
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1px;
  background-repeat: no-repeat;
  background-position: left 100%;
  transition: background-size .5s var(--ease-out), color .3s;
}
.callus-item h3 a:hover { background-size: 100% 1px; color: var(--blue-700); }
.callus-item h3 .sep { color: var(--text-3); margin: 0 .3em; font-weight: 300; }
.callus-hours { font-size: .8125rem; color: var(--text-3); margin-top: 10px; }

/* ---- WhatsApp ---- */
.callus-item h3 a svg { vertical-align: -.12em; margin-right: .1em; color: var(--accent-ink); transition: color .3s; }
.callus-item h3 a:hover svg { color: var(--blue-700); }

.wa-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: var(--fs-small); color: var(--text-2);
  transition: color .3s;
}
.wa-link:hover { color: var(--text); }
.wa-link svg { color: var(--accent-ink); }
.footer-wa { margin-top: 6px; }

.wa-fab {
  position: fixed;
  right: clamp(16px, 2vw, 28px);
  bottom: clamp(16px, 2vw, 28px);
  z-index: 900;
  display: inline-flex; align-items: center; gap: 12px;
  color: #fff;
  text-decoration: none;
  opacity: 0; transform: translateY(12px);
  animation: wa-in .8s var(--ease-out) 1.4s forwards;
}
@keyframes wa-in { to { opacity: 1; transform: none; } }
.wa-fab-disc {
  display: inline-flex; align-items: center; justify-content: center;
  width: 54px; height: 54px; border-radius: 50%;
  background: var(--ink);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 10px 30px rgba(20, 19, 17, .28);
  color: var(--accent-2);
  transition: transform .5s var(--ease-out), background .3s, color .3s;
}
.wa-fab-label {
  font-size: .8125rem; letter-spacing: .02em;
  color: var(--text);
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 9px 14px;
  white-space: nowrap;
  opacity: 0; transform: translateX(8px);
  transition: opacity .35s ease, transform .5s var(--ease-out);
  pointer-events: none;
}
.wa-fab:hover .wa-fab-label, .wa-fab:focus-visible .wa-fab-label { opacity: 1; transform: none; }
.wa-fab:hover .wa-fab-disc, .wa-fab:focus-visible .wa-fab-disc { transform: translateY(-2px); background: var(--ink-3); color: #fff; }
.wa-fab:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 999px; }
body.no-scroll .wa-fab { visibility: hidden; }
@media (prefers-reduced-motion: reduce) { .wa-fab { animation: none; opacity: 1; transform: none; } }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,.72);
  padding: clamp(3.5rem, 5vw, 6rem) 0 0;
}
.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: clamp(2rem, 4vw, 5rem);
  padding-bottom: clamp(3rem, 4vw, 5rem);
}
.footer-brand .brand { color: #fff; margin-bottom: 26px; }
.footer-brand .brand-mark { width: 74px; height: 37px; }
.footer-brand .brand-mark img { opacity: 1; }
.footer-brand .brand-word { border-left-color: rgba(255,255,255,.28); }
.footer-brand .brand-name { font-size: 1.25rem; }
.footer-tagline { font-size: var(--fs-small); line-height: 1.7; max-width: 38ch; color: rgba(255,255,255,.6); }
.footer-col h6 { color: #fff; margin: 0 0 20px; }
.footer-col address, .footer-col p { font-size: var(--fs-small); line-height: 1.7; color: rgba(255,255,255,.72); margin: 0 0 14px; }
.footer-phones { display: grid; gap: 4px; }
.footer-phones a, .footer-links a { color: rgba(255,255,255,.72); transition: color .3s; }
.footer-phones a:hover, .footer-links a:hover { color: #fff; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin: 0 0 10px; font-size: var(--fs-small); }

.footer-bottom {
  border-top: 1px solid var(--line-dark);
  padding: 24px 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  flex-wrap: wrap;
}
.footer-bottom p { margin: 0; font-size: .8125rem; color: rgba(255,255,255,.5); }
.footer-bottom .copy { color: rgba(255,255,255,.72); }
.footer-bottom .bci { flex: 1 1 320px; }
.footer-bottom .powered a { color: rgba(255,255,255,.72); }
.footer-bottom .powered a:hover { color: #fff; }

/* =========================================================
   DISCLAIMER POPUP
   ========================================================= */
.wpdp-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(20, 19, 17, .78);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow-y: auto;
}
.wpdp-overlay.open { display: flex; }
.wpdp-popup {
  position: relative;
  width: 100%;
  max-width: 620px;
  background: var(--paper);
  padding: clamp(28px, 4vw, 44px);
  margin: auto;
  box-shadow: 0 30px 80px rgba(0,0,0,.45);
  animation: popIn .6s var(--ease-out);
}
@keyframes popIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.wpdp-kicker { font-size: var(--fs-label); letter-spacing: .16em; text-transform: uppercase; color: var(--blue-700); font-weight: 600; margin: 0 0 12px; }
.wpdp-popup h2 { font-size: var(--fs-h3); margin: 0 0 18px; }
.wpdp-popup p { font-size: .875rem; line-height: 1.65; color: var(--text-2); margin: 0 0 12px; }
.wpdp-footer {
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 26px 0 0 !important;
}
#wpdp-close {
  display: inline-block;
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 15px 24px;
  cursor: pointer;
  background: var(--ink);
  color: #fff;
  transition: background-color .3s;
}
#wpdp-close:hover { background: var(--blue-700); }
#wpdp-decline {
  font-size: .8125rem;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-3);
  border-bottom: 1px solid transparent;
}
#wpdp-decline:hover { color: var(--text); border-color: currentColor; }

/* =========================================================
   SCROLL REVEAL
   ========================================================= */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 90ms);
}
[data-reveal].is-visible { opacity: 1; transform: none; }
[data-reveal="fade"] { transform: none; }
[data-reveal="line"] { transform: scaleX(0); transform-origin: left; }
[data-reveal="line"].is-visible { transform: scaleX(1); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
  .hero-line > span, .hero-text { transform: none; opacity: 1; }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1200px) {
  .nav-offices { display: none; }
}

@media (max-width: 1024px) {
  .intro-grid, .pa-index, .why-grid, .callus-grid { grid-template-columns: 1fr; }
  .intro-media, .pa-preview, .why-media { position: static; }
  .intro-media { max-width: 520px; }
  .pa-preview { display: none; }
  .pa-panel { display: none; }
  .pa-item.is-open .pa-panel { display: block; }
  .pa-item.is-open .pa-arrow::before { transform: rotate(135deg) translate(-1px, 1px); }
  .why-media .media-reveal { aspect-ratio: 16 / 10; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-cell { padding: 1.75rem 1.25rem 1.75rem 0; border-bottom: 1px solid var(--line-dark); }
  .stat-cell:nth-child(2n) { border-right: 0; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .section-head { grid-template-columns: 1fr; align-items: start; gap: 1rem; }
}

@media (max-width: 921px) {
  :root { --header-h: 76px; }
  .nav-toggle { display: inline-flex; }
  .main-nav {
    position: fixed;
    inset: 0;
    z-index: -1;
    background: var(--ink);
    color: #fff;
    padding: calc(var(--header-h) + 24px) var(--gutter) 40px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 40px;
    clip-path: inset(0 0 100% 0);
    transition: clip-path .7s var(--ease-in-out);
    overflow-y: auto;
  }
  .main-nav.open { clip-path: inset(0 0 0 0); }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; width: 100%; }
  .main-nav li { border-bottom: 1px solid var(--line-dark); }
  .main-nav a {
    display: block;
    padding: 18px 0;
    font-family: var(--font-serif);
    font-size: clamp(1.75rem, 6vw, 2.5rem);
    font-weight: 300;
    letter-spacing: -.01em;
    opacity: .9;
    transform: translateY(20px);
    transition: transform .6s var(--ease-out), opacity .6s;
  }
  .main-nav a::after { display: none; }
  .main-nav.open a { transform: none; opacity: 1; }
  .main-nav li:nth-child(n) a { transition-delay: calc(var(--i, 0) * 50ms + .2s); }
  .main-nav .nav-offices { display: flex; border: 0; padding: 0; color: rgba(255,255,255,.6); }
  .site-header.menu-open { color: #fff; background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .site-header.menu-open .logo-light { opacity: 1; }
  .site-header.menu-open .logo-dark { opacity: 0; }
  .site-header.menu-open::after { background: transparent; }

  .hero { min-height: 92svh; padding-top: calc(var(--header-h) + 32px); }
  .hero::after {
    background:
      linear-gradient(180deg, rgba(20, 19, 17, .55) 0%, rgba(20, 19, 17, .5) 25%, rgba(20, 19, 17, .82) 50%, rgba(20, 19, 17, .95) 100%);
  }
  .hero-slide { background-position: center 30%; filter: saturate(.85) brightness(.8); }
  .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-kicker::before { display: none; }
  .hero-meta { justify-items: stretch; text-align: left; min-width: 0; }
  .hero-caption-text { text-align: left; min-width: 0; width: 100%; }
  .hero-caption-text span { right: auto; left: 0; }
  .hero-progress { width: 100%; max-width: 260px; }
  .credentials-inner { flex-direction: column; align-items: flex-start; gap: 14px; padding-block: 22px; }
  .credentials-list { gap: 10px 22px; }
  .credentials-list li { gap: 0; }
  .credentials-list li + li::before { display: none; }

  .intro-cols { grid-template-columns: 1fr; gap: 1.75rem; }
  .callus-item { grid-template-columns: 1fr; gap: 10px; }
}

@media (max-width: 600px) {
  .wa-fab { right: 14px; bottom: 14px; }
  .wa-fab-disc { width: 50px; height: 50px; }
  .wa-fab-label { display: none; }
  .callus-item h3 a svg { width: 18px; height: 18px; }
  :root { --fs-body: 1rem; }
  .brand-mark { width: 56px; height: 28px; }
  .brand-name { font-size: 1rem; }
  .brand-sub { display: none; }
  .hero-kicker { font-size: .6875rem; letter-spacing: .14em; }
  .hero-title { max-width: none; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .pa-trigger { grid-template-columns: 40px 1fr auto; gap: 14px; }
  .pa-panel { padding-left: 0; }
  .footer-top { grid-template-columns: 1fr; gap: 2.25rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .practice-actions { flex-direction: column; align-items: flex-start; }
}
