/* ==========================================================================
   Growth For Legal — site.css
   Sans-serif system. Hairlines, not shadows. Brand blue rationed to accents.
   Blue #105CFC is taken from the logo mark.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Surfaces */
  --canvas:     #F7F8FA;
  --paper:      #FFFFFF;
  --canvas-alt: #EDF1F7;

  /* Ink — blue-black, derived from the logo hue */
  --ink:        #0B1B33;
  --ink-deep:   #061225;
  --ink-soft:   #16294A;
  --muted:      #55637A;
  --muted-soft: #8A96AA;

  /* Brand blue — the logo colour. Rationed on purpose. */
  --blue:       #105CFC;
  --blue-lit:   #5B92FF;
  --blue-deep:  #0B47C6;
  --blue-wash:  #E3EDFF;

  /* Lines */
  --rule:        #E2E7EF;
  --rule-strong: #C9D2E0;
  --rule-inv:    rgba(247, 248, 250, 0.15);
  --rule-inv-2:  rgba(247, 248, 250, 0.30);

  /* Type */
  /* Two families only. Small uppercase labels use the body face with wide
     tracking rather than a third (monospace) family. */
  --font-display: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body:    "Inter Tight", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* 18px is the floor for anything that carries a sentence. --fs-small is the
     smallest reading size; --fs-ui and below are labels and controls, never
     body copy. Raising --fs-small lifts every card, list and FAQ answer at once. */
  --fs-eyebrow: 0.8125rem;  /* 13px — uppercase labels (2-6 words, never a sentence) */
  --fs-micro:   0.875rem;   /* 14px — metadata, tags, chips */
  --fs-ui:      1rem;       /* 16px — nav, buttons, footer links */
  --fs-small:   1.125rem;   /* 18px — secondary body copy */
  --fs-body:    1.125rem;   /* 18px — base */
  --fs-lead:    clamp(1.1875rem, 1.05rem + 0.5vw, 1.4375rem);
  --fs-h4:      clamp(1.1875rem, 1.1rem + 0.35vw, 1.375rem);
  --fs-h3:      clamp(1.375rem, 1.24rem + 0.66vw, 1.875rem);
  --fs-h2:      clamp(1.875rem, 1.5rem + 1.85vw, 3.25rem);
  --fs-h1:      clamp(2.5rem, 1.75rem + 3.8vw, 5rem);

  /* Space */
  --gutter:  clamp(1.25rem, 0.9rem + 1.6vw, 2.5rem);
  --section: clamp(4.5rem, 3rem + 7vw, 9rem);
  --maxw:    1240px;
  --maxw-narrow: 780px;
  --maxw-wide:   1560px;  /* full-bleed media bands */
  --maxw-text:   860px;   /* centred reading column */

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --radius: 5px;
  --header-h: 76px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
  /* Backstop so no future element can introduce sideways scroll on mobile.
     `clip` — not `hidden` — because hidden makes the root a scroll container,
     which silently breaks the sticky header. */
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.nav-open { overflow: hidden; }

img, svg, video { display: block; max-width: 100%; height: auto; }

/* Sans display type: heavier weight, tighter tracking, tighter leading */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.032em;
  margin: 0;
  text-wrap: balance;
}

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

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

ul, ol { margin: 0; padding: 0; list-style: none; }

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

::selection { background: var(--blue); color: #fff; }

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 200;
  background: var(--ink);
  color: var(--canvas);
  padding: 0.75rem 1.25rem;
  font-family: var(--font-body);
  font-size: var(--fs-micro);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 1rem; }

/* Visually hidden but read aloud — strikethrough alone does not tell a screen
   reader that a price is a former one. */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Paper grain — barely there, but it kills the flat-screenshot look */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 300;
  pointer-events: none;
  opacity: 0.22;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}

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

.section { padding-block: var(--section); position: relative; }
.section--tight { padding-block: calc(var(--section) * 0.62); }
.section--ruled { border-top: 1px solid var(--rule); }

.section--ink {
  background: var(--ink-deep);
  color: var(--canvas);
}
.section--ink h1, .section--ink h2, .section--ink h3, .section--ink h4 { color: var(--canvas); }
.section--warm { background: var(--canvas-alt); }

/* --------------------------------------------------------------------------
   4. Type helpers
   -------------------------------------------------------------------------- */
.eyebrow {
  font-family: var(--font-body);
  font-size: var(--fs-eyebrow);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
/* Rules on both sides — a single leading rule reads off-balance when centred. */
.eyebrow::before,
.eyebrow::after {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--blue);
  flex: none;
}
.eyebrow--plain::before,
.eyebrow--plain::after { display: none; }
.section--ink .eyebrow { color: var(--blue-lit); }
.section--ink .eyebrow::before,
.section--ink .eyebrow::after { background: var(--blue-lit); }

.h1 { font-size: var(--fs-h1); }
.h2 { font-size: var(--fs-h2); }
.h3 { font-size: var(--fs-h3); }
.h4 { font-size: var(--fs-h4); letter-spacing: -0.018em; }

.lead {
  font-size: var(--fs-lead);
  line-height: 1.55;
  color: var(--muted);
  max-width: 58ch;
}
.section--ink .lead { color: rgba(247, 248, 250, 0.72); }

.muted { color: var(--muted); }
.section--ink .muted { color: rgba(247, 248, 250, 0.64); }

.small { font-size: var(--fs-small); line-height: 1.6; }

.mono {
  font-family: var(--font-body);
  font-size: var(--fs-micro);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Brand-blue emphasis inside headlines */
/* <em class="accent"> is used for emphasis semantics, not italics. */
.accent { color: var(--blue); font-style: normal; }
.section--ink .accent { color: var(--blue-lit); }

.underline-brass,
.underline-blue {
  background-image: linear-gradient(var(--blue), var(--blue));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 100% 2px;
  padding-bottom: 0.06em;
}

/* Section header block */
/* Centred composition — everything sits on one vertical axis so the eye never
   tracks left-right between a far-left headline and far-right supporting copy. */
.sec-head {
  max-width: 62ch;
  margin: 0 auto clamp(2.5rem, 4vw, 4rem);
  text-align: center;
}
.sec-head--split { max-width: 66ch; }
/* The heading block and its supporting line are separate elements — give them
   real breathing room instead of letting them sit flush against each other. */
.sec-head > * + *,
.sec-head--split > * + * { margin-top: 1.5rem; }
.sec-head .lead { margin-inline: auto; }

/* --------------------------------------------------------------------------
   5. Buttons & links
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.95rem 1.6rem;
  font-family: var(--font-body);
  font-size: var(--fs-ui);
  font-weight: 500;
  letter-spacing: 0.005em;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: background-color 0.28s var(--ease), color 0.28s var(--ease),
              border-color 0.28s var(--ease);
  white-space: nowrap;
}
.btn svg { flex: none; transition: transform 0.28s var(--ease); }
.btn:hover svg { transform: translateX(3px); }

.btn--primary { background: var(--ink); color: #fff; }
.btn--primary:hover { background: var(--blue); color: #fff; }

.btn--ghost { border-color: var(--rule-strong); color: var(--ink); }
.btn--ghost:hover { border-color: var(--blue); background: var(--blue); color: #fff; }

.btn--light { background: var(--canvas); color: var(--ink-deep); }
.btn--light:hover { background: var(--blue); color: #fff; }

.btn--ghost-inv { border-color: var(--rule-inv-2); color: var(--canvas); }
.btn--ghost-inv:hover { border-color: var(--blue); background: var(--blue); color: #fff; }

.btn--sm { padding: 0.7rem 1.2rem; font-size: 0.9375rem; }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.875rem; }

/* Text link with animated blue rule */
.tlink {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: var(--fs-micro);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  padding-bottom: 3px;
  background-image: linear-gradient(var(--blue), var(--blue));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 1px;
  transition: background-size 0.4s var(--ease), color 0.28s var(--ease);
}
.tlink:hover { background-size: 100% 1px; color: var(--blue); }
.tlink svg { transition: transform 0.28s var(--ease); }
.tlink:hover svg { transform: translateX(3px); }
.section--ink .tlink { color: var(--canvas); }
.section--ink .tlink:hover { color: var(--blue-lit); }

/* --------------------------------------------------------------------------
   6. Header + navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 120;
  background: color-mix(in srgb, var(--canvas) 88%, transparent);
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease);
}
.site-header.is-stuck { border-bottom-color: var(--rule); }
.site-header.is-open { background: var(--canvas); }

/* backdrop-filter makes the header a containing block for fixed-position
   descendants, which would trap the mobile drawer inside the header box.
   Drop it while the drawer is open so the drawer resolves against the viewport. */
body.nav-open .site-header {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  background: var(--canvas);
}

.header-inner {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 1.5rem;
  transition: height 0.3s var(--ease);
}
/* Condense on desktop only — on mobile the drawer is pinned to --header-h,
   so a shrinking header would open a gap above it. */
@media (min-width: 961px) {
  .site-header.is-stuck .header-inner { height: 66px; }
}

/* Brand */
.brand { display: flex; align-items: center; gap: 0.7rem; flex: none; }
.brand__mark { width: 34px; height: auto; flex: none; }
.brand__text { display: flex; align-items: center; line-height: 1; }
.brand__name {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.025em;
}

/* Primary nav */
.primary-nav { margin-left: auto; }
.nav-list { display: flex; align-items: center; gap: 0.25rem; }

.nav-link,
.nav-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.8rem;
  font-size: var(--fs-ui);
  font-weight: 450;
  color: var(--ink);
  border-radius: var(--radius);
  transition: color 0.22s var(--ease);
}
.nav-link:hover,
.nav-trigger:hover,
.nav-item.is-active > .nav-trigger { color: var(--blue); }

.nav-link[aria-current="page"] { color: var(--blue); }

.nav-trigger__chev { transition: transform 0.3s var(--ease); }
.nav-item.is-active .nav-trigger__chev { transform: rotate(180deg); }

.header-actions { display: flex; align-items: center; gap: 0.75rem; flex: none; }
/* Mega menu */
.nav-item { position: static; }
.mega {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--paper);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.28s var(--ease), transform 0.28s var(--ease), visibility 0.28s;
}
.nav-item.is-active .mega { opacity: 1; visibility: visible; transform: translateY(0); }

.mega__inner {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: clamp(2rem, 3vw, 3rem) var(--gutter);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: clamp(2rem, 4vw, 4rem);
}
.mega__label {
  font-family: var(--font-body);
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-soft);
  margin-bottom: 1.25rem;
}
.mega__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.25rem 2rem; }
.mega__grid--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.mega__link {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  padding: 0.7rem 0.75rem 0.7rem 0;
  border-bottom: 1px solid var(--rule);
  transition: padding-left 0.28s var(--ease), border-color 0.28s var(--ease);
}
.mega__link:hover { padding-left: 0.5rem; border-bottom-color: var(--blue); }
.mega__link strong {
  display: block;
  font-family: var(--font-display);
  font-size: var(--fs-ui);
  font-weight: 600;
  letter-spacing: -0.018em;
}
.mega__icon {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 3px;
  color: var(--blue);
  transition: transform 0.28s var(--ease);
}
.mega__link:hover .mega__icon { transform: translateY(-1px); }
.mega__body { display: block; min-width: 0; }
.mega__desc {
  display: block;
  font-size: var(--fs-ui);
  color: var(--muted);
  margin-top: 3px;
  line-height: 1.45;
}
.mega__link:hover strong { color: var(--blue); }

.mega__feature {
  background: var(--ink-deep);
  color: var(--canvas);
  padding: 1.75rem;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
}
.mega__feature h4 { font-size: 1.375rem; color: var(--canvas); }
.mega__feature p { font-size: var(--fs-small); color: rgba(247, 248, 250, 0.66); margin-top: 0.6rem; }
@media (max-width: 1080px) { .mega__inner { grid-template-columns: 1fr; } .mega__feature { display: none; } }

/* Mobile nav */
.nav-toggle { display: none; width: 40px; height: 40px; align-items: center; justify-content: center; flex: none; }
.nav-toggle__bar {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--ink);
  position: relative;
  transition: background-color 0.2s var(--ease);
}
.nav-toggle__bar::before,
.nav-toggle__bar::after {
  content: "";
  position: absolute;
  left: 0;
  width: 22px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.32s var(--ease);
}
.nav-toggle__bar::before { top: -7px; }
.nav-toggle__bar::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar::after { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none;
  position: fixed;
  inset: var(--header-h) 0 0;
  background: var(--canvas);
  border-top: 1px solid var(--rule);
  overflow-y: auto;
  padding: 1.5rem var(--gutter) 4rem;
  transform: translateY(-6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.mobile-nav.is-open { opacity: 1; transform: none; pointer-events: auto; }

.mnav__item { border-bottom: 1px solid var(--rule); }
.mnav__top {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.05rem 0;
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: -0.028em;
  text-align: left;
}
.mnav__top svg { transition: transform 0.3s var(--ease); color: var(--blue); }
.mnav__top[aria-expanded="true"] svg { transform: rotate(45deg); }
.mnav__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.36s var(--ease); }
.mnav__panel > div { overflow: hidden; }
.mnav__item.is-open .mnav__panel { grid-template-rows: 1fr; }
.mnav__panel a {
  display: block;
  padding: 0.55rem 0 0.55rem 1rem;
  font-size: var(--fs-small);
  color: var(--muted);
  border-left: 1px solid var(--rule);
}
.mnav__panel a:hover { color: var(--blue); border-left-color: var(--blue); }
.mnav__panel > div > div { padding-bottom: 1rem; }
.mobile-nav .btn { width: 100%; margin-top: 2rem; }

@media (max-width: 960px) {
  .primary-nav { display: none; }
  .header-actions .btn { display: none; }
  .nav-toggle { display: flex; margin-left: auto; }
  .mobile-nav { display: block; }
}

/* --------------------------------------------------------------------------
   7. Hero
   -------------------------------------------------------------------------- */
.hero { padding-block: clamp(3.5rem, 5vw, 7rem) clamp(3rem, 4vw, 5rem); position: relative; overflow: hidden; }
.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  text-align: center;
  max-width: 1040px;
  margin-inline: auto;
}

.hero__title { font-size: var(--fs-h1); font-weight: 600; letter-spacing: -0.042em; line-height: 1.0; }
.hero__title em { font-style: normal; }
.hero__lead { margin: 1.75rem auto 0; max-width: 52ch; }
.hero__cta { margin-top: 2.5rem; justify-content: center; }

.hero__aside {
  width: 100%;
  margin-top: clamp(2.5rem, 4vw, 3.5rem);
  padding-top: clamp(2rem, 3vw, 2.5rem);
  border-top: 1px solid var(--rule);
}
.hero__aside .checks { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.85rem 2.25rem; }

.hero__note { font-size: var(--fs-small); color: var(--muted); line-height: 1.65; }
.hero__note strong { color: var(--ink); font-weight: 600; }

/* Stat rail */
.stat-rail {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  border-top: 1px solid var(--rule);
  margin-top: clamp(3rem, 5vw, 4.5rem);
}
.stat {
  padding: 1.75rem 1.25rem;
  border-right: 1px solid var(--rule);
  text-align: center;
}
.stat:last-child { border-right: 0; }
.stat__num {
  font-family: var(--font-display);
  font-size: clamp(1.875rem, 1.45rem + 1.7vw, 2.875rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.stat__num .unit { color: var(--blue); }
.stat__label {
  font-family: var(--font-body);
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.75rem;
  line-height: 1.5;
}
.section--ink .stat { border-color: var(--rule-inv); }
.section--ink .stat-rail { border-color: var(--rule-inv); }
.section--ink .stat__num { color: var(--canvas); }
.section--ink .stat__label { color: rgba(247, 248, 250, 0.55); }

/* --------------------------------------------------------------------------
   8. Dashboard panel
   -------------------------------------------------------------------------- */
.panel {
  background: var(--ink-deep);
  color: var(--canvas);
  border-radius: var(--radius);
  overflow: hidden;
}
.panel__bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1.5rem;
  border-bottom: 1px solid var(--rule-inv);
  font-family: var(--font-body);
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(247, 248, 250, 0.55);
}
.panel__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--blue-lit); flex: none; }
.panel__dot--live { animation: pulse 2.4s var(--ease) infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }
.panel__meta { margin-left: auto; }

.panel__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 860px) { .panel__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 460px) { .panel__grid { grid-template-columns: 1fr; } }

.panel__cell {
  padding: clamp(1.5rem, 2.5vw, 2.25rem);
  border-right: 1px solid var(--rule-inv);
  border-bottom: 1px solid var(--rule-inv);
}
.panel__cell:last-child { border-right: 0; }
.panel__k {
  font-family: var(--font-body);
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(247, 248, 250, 0.5);
}
.panel__v {
  font-family: var(--font-display);
  font-size: clamp(1.875rem, 1.5rem + 1.5vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1;
  margin-top: 1rem;
  font-variant-numeric: tabular-nums;
}
.panel__v .unit { color: var(--blue-lit); }
.panel__d {
  font-family: var(--font-body);
  font-size: var(--fs-micro);
  color: var(--blue-lit);
  margin-top: 0.75rem;
  letter-spacing: 0.04em;
}
.panel__foot {
  padding: 1.1rem 1.5rem;
  font-size: var(--fs-ui);
  color: rgba(247, 248, 250, 0.42);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
}

/* Sparkline bars */
.spark { display: flex; align-items: flex-end; gap: 3px; height: 34px; margin-top: 1.25rem; }
.spark i {
  flex: 1;
  background: var(--rule-inv-2);
  border-radius: 1px;
  transform-origin: bottom;
  transform: scaleY(0);
  animation: sparkUp 0.7s var(--ease) forwards;
}
.spark i:last-child { background: var(--blue); }
@keyframes sparkUp { to { transform: scaleY(1); } }

/* --------------------------------------------------------------------------
   9. Logo marquee
   -------------------------------------------------------------------------- */
.marquee {
  overflow: hidden;
  border-block: 1px solid var(--rule);
  padding-block: 2rem;
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track { display: flex; gap: clamp(2.5rem, 5vw, 5rem); width: max-content; animation: slide 46s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(-50%); } }
.marquee__item {
  font-family: var(--font-display);
  font-size: clamp(1rem, 0.9rem + 0.45vw, 1.3125rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--muted-soft);
  white-space: nowrap;
  transition: color 0.28s var(--ease);
}
.marquee__item:hover { color: var(--ink); }

/* --------------------------------------------------------------------------
   9b. Full-width media bands
   -------------------------------------------------------------------------- */
.media-figure { margin: 0; }
.media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--rule);
  background: linear-gradient(150deg, var(--canvas-alt), var(--blue-wash));
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
}
.media--tall { aspect-ratio: 3 / 2; }
.media img, .media video { width: 100%; height: 100%; object-fit: cover; }
.media__ph {
  font-family: var(--font-body);
  font-size: var(--fs-ui);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-soft);
  text-align: center;
  line-height: 2;
  padding: 1.5rem;
}
.media__ph b { display: block; color: var(--muted); font-weight: 500; }
.media-cap {
  margin-top: 1rem;
  text-align: center;
  font-family: var(--font-body);
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-soft);
}
.section--ink .media { border-color: var(--rule-inv); background: linear-gradient(150deg, var(--ink-soft), var(--ink-deep)); }
.section--ink .media-cap { color: rgba(247, 248, 250, 0.45); }

/* --------------------------------------------------------------------------
   10. Cards & grids
   -------------------------------------------------------------------------- */
.grid { display: grid; gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 980px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

/* The 1px "gaps" are the parent background showing between cells, so an
   incomplete final row leaves that background exposed as an empty grey tile.
   Keep child counts a multiple of the column count; this stretches the last
   child to cover the remainder if one ever slips through. */
.grid--3 > .cell:last-child:nth-child(3n - 1),
.grid--4 > .cell:last-child:nth-child(4n - 1) { grid-column: span 2; }

.cell {
  background: var(--canvas);
  padding: clamp(1.75rem, 2.6vw, 2.5rem);
  position: relative;
  transition: background-color 0.32s var(--ease);
}
a.cell:hover { background: var(--paper); }
.cell__idx {
  font-family: var(--font-body);
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.14em;
  color: var(--blue);
  display: block;
  margin-bottom: 1.5rem;
}
/* Shared circular icon chip — stacked above the text in a card, beside it in
   a benefit row. */
.cell__icon,
.benefit__icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--rule-strong);
  border-radius: 50%;
  color: var(--blue);
  flex: none;
  transition: border-color 0.26s var(--ease);
}
.cell__icon { margin-bottom: 1.5rem; }
.cell:hover .cell__icon,
.benefit:hover .benefit__icon { border-color: var(--blue); }

/* Vertical benefit stack — reads far better than squeezing long headings into
   a four-column row, where they break across three lines. */
.benefits {
  display: grid;
  max-width: 760px;
  margin-inline: auto;
}
.benefit {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
  text-align: left;
  padding-block: clamp(1.5rem, 2.5vw, 2rem);
  border-bottom: 1px solid var(--rule-strong);
}
.benefit:first-child { padding-top: 0; }
.benefit:last-child { padding-bottom: 0; border-bottom: 0; }
.benefit h3 { font-size: var(--fs-h4); letter-spacing: -0.022em; }
/* Short accent rule under each heading — separates the claim from its
   explanation without needing another line of whitespace. */
.benefit h3::after {
  content: "";
  display: block;
  width: 32px;
  height: 2px;
  margin-top: 0.85rem;
  background: var(--blue);
}
.benefit p {
  margin-top: 0.5rem;
  font-size: var(--fs-small);
  line-height: 1.65;
  color: var(--muted);
  max-width: 60ch;
}
.cell h3 { margin-bottom: 0.75rem; }
.cell p { font-size: var(--fs-small); color: var(--muted); line-height: 1.65; }
.cell__foot { margin-top: 1.75rem; }

/* Service card variant with blue reveal rule */
a.card-link { display: block; position: relative; }
a.card-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background: var(--blue);
  transition: width 0.45s var(--ease);
}
a.card-link:hover::after { width: 100%; }
a.card-link .arrow { transition: transform 0.32s var(--ease); }
a.card-link:hover .arrow { transform: translate(4px, -4px); }

.card-link__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.card-link__head .arrow { color: var(--blue); flex: none; margin-top: 4px; }

.tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 1.5rem; }
.tag {
  font-family: var(--font-body);
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--rule-strong);
  border-radius: 100px;
  padding: 0.3rem 0.65rem;
}

/* Practice-area tiles */
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--rule-inv); border: 1px solid var(--rule-inv); }
@media (max-width: 900px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 500px) { .tiles { grid-template-columns: 1fr; } }
.tile {
  background: var(--ink-deep);
  padding: clamp(1.5rem, 2.4vw, 2.125rem);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  min-height: 200px;
  transition: background-color 0.32s var(--ease);
}
.tile:hover { background: var(--ink-soft); }
/* .tile paints its own dark background, so its text must set its own colour too —
   otherwise the title inherits --ink from the page and goes near-black on near-black
   anywhere outside .section--ink. Inside one this resolves to what it already inherited. */
.tile__t { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; letter-spacing: -0.028em; line-height: 1.15; color: var(--canvas); }
.tile__d { font-size: var(--fs-small); color: rgba(247, 248, 250, 0.55); line-height: 1.55; margin-top: auto; }
.tile:hover .tile__t { color: var(--blue-lit); }

/* --------------------------------------------------------------------------
   11. Editorial two-column
   -------------------------------------------------------------------------- */
/* Headings centre; body copy stays left-aligned inside the centred column —
   centring multi-line paragraphs costs more readability than it buys. */
.editorial {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 4vw, 3rem);
  max-width: var(--maxw-text);
  margin-inline: auto;
  text-align: center;
}
.editorial__body { text-align: left; }
.editorial__body p + p { margin-top: 1.25rem; }
.editorial__body p { color: var(--muted); font-size: var(--fs-lead); line-height: 1.6; max-width: 62ch; margin-inline: auto; }
.section--ink .editorial__body p { color: rgba(247, 248, 250, 0.7); }

.pull {
  border-top: 2px solid var(--blue);
  padding-top: 1.5rem;
  margin: 2.5rem auto 0;
  max-width: 46ch;
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(1.1875rem, 1.05rem + 0.7vw, 1.5625rem);
  font-weight: 600;
  line-height: 1.28;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.section--ink .pull { color: var(--canvas); }

/* Numbered process list */
.steps { border-top: 1px solid var(--rule); max-width: 720px; margin-inline: auto; }
.section--ink .steps { border-color: var(--rule-inv); }
.step {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
  padding-block: clamp(1.75rem, 3vw, 2.75rem);
  border-bottom: 1px solid var(--rule);
  /* The list block stays centred on the page axis, but the copy inside is
     left-aligned — centred multi-line paragraphs give the eye a ragged left
     edge to re-find on every line. */
  text-align: left;
}
.section--ink .step { border-color: var(--rule-inv); }
.step__n {
  font-family: var(--font-body);
  font-size: var(--fs-micro);
  letter-spacing: 0.12em;
  color: var(--blue);
}
.section--ink .step__n { color: var(--blue-lit); }
.step h3 { font-size: var(--fs-h3); }
.step p { color: var(--muted); font-size: var(--fs-small); line-height: 1.7; max-width: 62ch; margin-inline: 0; }
.section--ink .step p { color: rgba(247, 248, 250, 0.62); }

/* Checklist */
.checks { display: grid; gap: 0.85rem; }
.checks li { display: flex; gap: 0.75rem; align-items: flex-start; font-size: var(--fs-small); line-height: 1.55; }
.checks svg { flex: none; margin-top: 4px; color: var(--blue); }
.section--ink .checks svg { color: var(--blue-lit); }

/* --------------------------------------------------------------------------
   12. Case study cards
   -------------------------------------------------------------------------- */
.cases { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
@media (max-width: 900px) { .cases { grid-template-columns: 1fr; } }
.case {
  background: var(--canvas);
  padding: clamp(1.75rem, 2.6vw, 2.5rem);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transition: background-color 0.32s var(--ease);
}
.case:hover { background: var(--paper); }
.case__meta { font-family: var(--font-body); font-size: var(--fs-eyebrow); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted-soft); }
.case__metric {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 1.9rem + 2.7vw, 4rem);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.055em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.case__metric .unit { color: var(--blue); }
.case__desc { font-size: var(--fs-small); color: var(--muted); line-height: 1.65; }
.case__foot { margin-top: auto; padding-top: 1.25rem; border-top: 1px solid var(--rule); }

/* --------------------------------------------------------------------------
   13. Testimonial
   -------------------------------------------------------------------------- */
.quote { max-width: 26ch; }
.quote__mark {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 600;
  line-height: 0.7;
  color: var(--blue);
  display: block;
  margin-bottom: 1.25rem;
}
.quote__text {
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 1.1rem + 1.35vw, 2.125rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.035em;
  max-width: 22ch;
  margin-inline: auto;
}
.quote__by { margin-top: 2rem; display: flex; align-items: center; justify-content: center; gap: 0.9rem; }
.quote__avatar {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--blue-wash);
  border: 1px solid var(--blue-lit);
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--blue);
  flex: none;
}
.quote__name { font-size: var(--fs-small); font-weight: 600; }
.quote__role { font-family: var(--font-body); font-size: var(--fs-eyebrow); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }

.quote-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2.5rem, 4vw, 3.5rem);
  justify-items: center;
  text-align: center;
  max-width: 760px;
  margin-inline: auto;
}
.quote-grid .checks { display: inline-grid; text-align: left; }

/* --------------------------------------------------------------------------
   14. Booking / CTA band
   -------------------------------------------------------------------------- */
.cta-band { background: var(--ink-deep); color: var(--canvas); position: relative; overflow: hidden; }
.cta-band::before {
  content: "";
  position: absolute;
  top: -45%;
  left: 50%;
  transform: translateX(-50%);
  width: min(1100px, 130vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(16, 92, 252, 0.26), transparent 68%);
  pointer-events: none;
}
.cta-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2.5rem, 4vw, 3.5rem);
  justify-items: center;
  text-align: center;
  max-width: 820px;
  margin-inline: auto;
  position: relative;
}
.cta-grid .lead { margin-inline: auto; }
.cta-grid .checks { display: inline-grid; text-align: left; }
.cta-grid .btn-row { justify-content: center; }
.cta-grid .booking { width: 100%; text-align: left; }

.booking {
  background: var(--paper);
  border-radius: var(--radius);
  padding: clamp(1.25rem, 2vw, 1.75rem);
  color: var(--ink);
}
.booking__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--rule); }
.booking__title { font-family: var(--font-display); font-size: 1.125rem; font-weight: 600; letter-spacing: -0.025em; }
.booking__badge {
  font-family: var(--font-body);
  font-size: 0.625rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  border: 1px solid var(--blue);
  border-radius: 100px;
  padding: 0.25rem 0.6rem;
}

/* Launch block on the dark CTA band. One entry point that opens the offer
   chooser rather than linking a calendar directly — neither booking page is
   advertised before the visitor has said which offer they want. */
.cta-launch {
  width: 100%;
  display: grid;
  justify-items: center;
  gap: 1.5rem;
  padding: clamp(2rem, 3.5vw, 3rem) clamp(1.25rem, 3vw, 2.5rem);
  border: 1px solid var(--rule-inv);
  border-radius: var(--radius);
  background: rgba(247, 248, 250, 0.045);
}
.cta-launch__kicker {
  font-family: var(--font-body);
  font-size: var(--fs-eyebrow);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue-lit);
}
.cta-launch .btn { padding: 1.05rem 2rem; }
.cta-launch__fine {
  font-size: var(--fs-small);
  line-height: 1.6;
  color: rgba(247, 248, 250, 0.64);
  max-width: 44ch;
}

/* Get Started hero — deliberately two-column and left-aligned, breaking the
   site-wide centred rule so the calendar is reachable without scrolling. */
.gs-hero { padding-block: clamp(2.5rem, 4vw, 4.5rem); border-bottom: 1px solid var(--rule); }
.gs-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  gap: clamp(2rem, 4vw, 4.5rem);
  align-items: start;
  text-align: left;
}
@media (max-width: 1020px) { .gs-hero__grid { grid-template-columns: 1fr; } }

.gs-hero__title {
  font-size: clamp(2.25rem, 1.6rem + 2.7vw, 3.625rem);
  font-weight: 600;
  letter-spacing: -0.042em;
  line-height: 1.02;
}
.gs-hero .lead { margin-top: 1.5rem; margin-inline: 0; max-width: 46ch; }
.gs-hero .booking-shell { max-width: none; margin: 0; }
.gs-hero .booking-note { margin-inline: 0; text-align: left; max-width: none; }

.gs-points { margin-top: clamp(2rem, 3vw, 2.75rem); display: grid; gap: clamp(1.25rem, 2vw, 1.75rem); }
.gs-point { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 1.1rem; align-items: start; }
.gs-point__icon {
  width: 44px; height: 44px;
  border: 1px solid var(--rule-strong);
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--blue);
  flex: none;
}
.gs-point h3 { font-size: 1.1875rem; letter-spacing: -0.022em; }
.gs-point p { margin-top: 0.35rem; font-size: var(--fs-small); color: var(--muted); line-height: 1.6; }

/* Cal.com inline embed --------------------------------------------------
   Cal ships the container with an inline height:100%, which collapses to zero
   inside a static parent. min-height keeps the calendar visible before Cal's
   own resize observer takes over. */
.booking-shell {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: clamp(0.5rem, 1.2vw, 1rem);
  max-width: 1000px;
  margin-inline: auto;
}
/* Cal injects a `.cal-inline-container` rule with min-height:300px from its own
   stylesheet, which loads after this one — equal specificity, so Cal wins and the
   space we reserve collapses, causing a visible jump when the calendar mounts.
   Scoping to the parent (0,2,0) outranks it and keeps the reservation honest. */
.booking-shell .cal-embed {
  width: 100%;
  min-height: 700px;
  overflow: auto;
  border-radius: var(--radius);
}
@media (max-width: 760px) { .booking-shell .cal-embed { min-height: 940px; } }

.booking-note {
  max-width: 62ch;
  margin: 1.75rem auto 0;
  text-align: center;
  font-size: var(--fs-small);
  line-height: 1.7;
  color: var(--muted);
}

.booking__fallback { padding: 2.5rem 1rem; text-align: center; }
.booking__fallback p { font-size: var(--fs-small); color: var(--muted); margin-bottom: 1.25rem; }

/* --------------------------------------------------------------------------
   14b. Pricing plan — one panel, stages stacked
   -------------------------------------------------------------------------- */
/* Side-by-side cards read as "choose one". This is a sequence: build once,
   then keep it ranking. One bordered panel with stages divided by a hairline
   says that; two boxes did not. */
.plan {
  max-width: 940px;
  margin-inline: auto;
  text-align: left;
  border: 1px solid var(--rule-inv);
  border-radius: var(--radius);
  background: rgba(247, 248, 250, 0.04);
  overflow: hidden;
}

.plan__stage {
  display: grid;
  grid-template-columns: minmax(0, 270px) minmax(0, 1fr);
  gap: clamp(1.5rem, 3vw, 3rem);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  border-bottom: 1px solid var(--rule-inv);
}
@media (max-width: 780px) {
  .plan__stage { grid-template-columns: 1fr; gap: 1.25rem; }
}

.plan__label {
  font-size: var(--fs-eyebrow);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue-lit);
}
.plan__amount {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 2rem + 2vw, 3.25rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1;
  margin-top: 0.85rem;
  color: var(--canvas);
  font-variant-numeric: tabular-nums;
}
/* "one time" is a separate word and needs a gap; "/month" is one token. */
.plan__unit {
  margin-left: 0.4rem;
  font-family: var(--font-body);
  font-size: var(--fs-ui);
  font-weight: 400;
  letter-spacing: 0;
  color: var(--blue-lit);
}
.plan__unit.tight { margin-left: 0; }

/* Former price. Sized off the amount so it scales with it. */
.plan__was {
  margin-right: 0.55rem;
  font-size: 0.5em;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: rgba(247, 248, 250, 0.42);
  text-decoration-line: line-through;
  text-decoration-thickness: 2px;
  text-decoration-color: rgba(247, 248, 250, 0.5);
}
.plan__save {
  display: inline-block;
  margin-top: 0.85rem;
  padding: 0.32rem 0.7rem;
  border: 1px solid var(--blue);
  border-radius: 100px;
  font-size: var(--fs-eyebrow);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-lit);
}
.plan__sub {
  margin-top: 0.6rem;
  font-size: var(--fs-small);
  color: rgba(247, 248, 250, 0.55);
  line-height: 1.5;
}

.plan__lede {
  font-size: var(--fs-small);
  line-height: 1.65;
  color: rgba(247, 248, 250, 0.78);
  max-width: 58ch;
}
.plan__body .checks { margin-top: 1.5rem; }

.plan__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  padding: clamp(1.5rem, 2.5vw, 2rem) clamp(1.75rem, 3vw, 2.5rem);
  background: rgba(16, 92, 252, 0.14);
}
.plan__foot p {
  font-size: var(--fs-small);
  line-height: 1.6;
  color: rgba(247, 248, 250, 0.8);
  max-width: 52ch;
}
.plan__foot .btn { flex: none; }
@media (max-width: 640px) {
  .plan__foot { flex-direction: column; align-items: stretch; }
  .plan__foot .btn { width: 100%; }
}

/* --------------------------------------------------------------------------
   15. Founder note
   -------------------------------------------------------------------------- */
.founder {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 3vw, 2.75rem);
  justify-items: center;
  text-align: center;
  max-width: 760px;
  margin-inline: auto;
}
/* Constrain and centre the heading; without the auto margin it sits flush-left
   in a column sized by the wider paragraphs beneath it. */
.founder h2 { max-width: 22ch; margin-inline: auto; }
.founder .editorial__body { margin-top: 2.5rem; }
/* The founder note opens on a pull quote rather than a portrait, so the quote
   carries the section on its own and gets more room than a sidebar testimonial. */
.founder__quote { max-width: none; }
.signature {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--blue);
  margin-top: 2rem;
}

/* --------------------------------------------------------------------------
   16. Page hero (interior)
   -------------------------------------------------------------------------- */
.page-hero { padding-block: clamp(3.5rem, 5vw, 6rem) clamp(2.5rem, 4vw, 4rem); border-bottom: 1px solid var(--rule); }
.page-hero__title { font-size: clamp(2.25rem, 1.7rem + 2.9vw, 4.25rem); font-weight: 600; letter-spacing: -0.042em; line-height: 1.02; }
.page-hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.5rem, 3vw, 2.25rem);
  justify-items: center;
  text-align: center;
  max-width: 900px;
  margin-inline: auto;
}
.page-hero__grid .lead { margin-inline: auto; }
.page-hero__grid .btn-row { justify-content: center; }

.crumbs { font-family: var(--font-body); font-size: var(--fs-eyebrow); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted-soft); margin-bottom: 1.75rem; text-align: center; }
.crumbs a:hover { color: var(--blue); }
.crumbs span { color: var(--rule-strong); margin-inline: 0.5rem; }

/* --------------------------------------------------------------------------
   17. Detail blocks (services / practice areas anchors)
   -------------------------------------------------------------------------- */
.detail {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  padding-block: clamp(2.5rem, 4vw, 4rem);
  border-bottom: 1px solid var(--rule);
  scroll-margin-top: calc(var(--header-h) + 32px);
  text-align: center;
  max-width: 780px;
  margin-inline: auto;
}
.detail__title { font-size: var(--fs-h2); letter-spacing: -0.038em; }
.detail__kicker { font-family: var(--font-body); font-size: var(--fs-eyebrow); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted-soft); margin-bottom: 1rem; }
.detail__body p { color: var(--muted); line-height: 1.7; max-width: 60ch; margin-inline: auto; }
/* Lists stay left-aligned inside the centred column — centred bullets are unreadable. */
.detail__list { margin: 1.75rem auto 0; display: inline-grid; gap: 0.6rem; text-align: left; }
.detail__list li { display: flex; gap: 0.7rem; font-size: var(--fs-small); color: var(--muted); }
.detail__list li::before { content: "—"; color: var(--blue); flex: none; }
.detail__soon {
  display: inline-flex; align-items: center; gap: 0.5rem;
  margin-top: 1.75rem;
  font-family: var(--font-body); font-size: var(--fs-eyebrow);
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-soft);
}

/* --------------------------------------------------------------------------
   18. Resources
   -------------------------------------------------------------------------- */
.res-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
@media (max-width: 940px) { .res-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .res-grid { grid-template-columns: 1fr; } }
.res {
  background: var(--canvas);
  padding: clamp(1.5rem, 2.4vw, 2.125rem);
  display: flex; flex-direction: column; gap: 0.9rem;
  min-height: 240px;
  transition: background-color 0.32s var(--ease);
}
.res:hover { background: var(--paper); }
.res__type { font-family: var(--font-body); font-size: var(--fs-eyebrow); letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue); }
.res__title { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; letter-spacing: -0.03em; line-height: 1.18; }
.res__desc { font-size: var(--fs-small); color: var(--muted); line-height: 1.6; }
.res__foot { margin-top: auto; padding-top: 1.25rem; border-top: 1px solid var(--rule); font-family: var(--font-body); font-size: var(--fs-eyebrow); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-soft); display: flex; justify-content: space-between; gap: 1rem; }
.res:hover .res__title { color: var(--blue); }

/* Filter chips */
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin-bottom: 2.5rem; }
.chip {
  font-family: var(--font-body); font-size: var(--fs-micro);
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 0.55rem 1rem;
  border: 1px solid var(--rule-strong);
  border-radius: 100px;
  color: var(--muted);
  transition: all 0.26s var(--ease);
}
.chip:hover { border-color: var(--blue); color: var(--blue); }
.chip.is-on { background: var(--ink); border-color: var(--ink); color: var(--canvas); }

/* --------------------------------------------------------------------------
   19. Contact
   -------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2.5rem, 4vw, 3.5rem);
  max-width: 780px;
  margin-inline: auto;
}

.contact-list { border-top: 1px solid var(--rule); }
.contact-list li { border-bottom: 1px solid var(--rule); padding-block: 1.25rem; }
.contact-list dt { font-family: var(--font-body); font-size: var(--fs-eyebrow); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted-soft); }
.contact-list dd { margin: 0.5rem 0 0; font-size: 1.0625rem; }
.contact-list dd a:hover { color: var(--blue); }

/* Accordion */
.acc { border-top: 1px solid var(--rule); }
.acc__item { border-bottom: 1px solid var(--rule); }
.acc__btn {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  /* Inset from the hairline rules — the rules stay full-width, the content
     breathes. Scales down on small screens so it doesn't eat the measure. */
  padding: 1.4rem clamp(0.875rem, 2vw, 1.5rem);
  text-align: left;
  font-family: var(--font-display);
  font-size: var(--fs-h4);
  font-weight: 600;
  letter-spacing: -0.022em;
  transition: color 0.24s var(--ease);
}
.acc__btn:hover { color: var(--blue); }
.acc__btn svg { flex: none; color: var(--blue); transition: transform 0.3s var(--ease); }
.acc__btn[aria-expanded="true"] svg { transform: rotate(45deg); }
.acc__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.36s var(--ease); }
.acc__panel > div { overflow: hidden; }
.acc__item.is-open .acc__panel { grid-template-rows: 1fr; }
.acc__panel p { padding: 0 clamp(0.875rem, 2vw, 1.5rem) 1.5rem; color: var(--muted); font-size: var(--fs-small); line-height: 1.75; max-width: 68ch; }

/* --------------------------------------------------------------------------
   20. Footer
   -------------------------------------------------------------------------- */
.site-footer { background: var(--ink-deep); color: var(--canvas); padding-top: clamp(3.5rem, 5vw, 5.5rem); }
.footer-top { display: grid; grid-template-columns: minmax(0, 1.35fr) repeat(3, minmax(0, 1fr)); gap: clamp(2rem, 4vw, 3.5rem); padding-bottom: clamp(3rem, 5vw, 4.5rem); }
@media (max-width: 1000px) { .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .footer-top { grid-template-columns: 1fr; } }

.footer-brand .brand__name { color: var(--canvas); }
.footer-brand p { font-size: var(--fs-small); color: rgba(247, 248, 250, 0.6); line-height: 1.7; margin-top: 1.5rem; max-width: 34ch; }

.fcol h5 {
  font-family: var(--font-body);
  font-size: var(--fs-eyebrow);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(247, 248, 250, 0.42);
  margin-bottom: 1.25rem;
}
.fcol li + li { margin-top: 0.7rem; }
.fcol a { font-size: var(--fs-ui); color: rgba(247, 248, 250, 0.78); transition: color 0.22s var(--ease); }
.fcol a:hover { color: var(--blue-lit); }

.footer-bar {
  border-top: 1px solid var(--rule-inv);
  padding-block: 1.5rem 2rem;
  display: flex; flex-wrap: wrap; gap: 1rem 2rem;
  align-items: center; justify-content: space-between;
  font-family: var(--font-body);
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.1em;
  color: rgba(247, 248, 250, 0.4);
  text-transform: uppercase;
}
.footer-bar a:hover { color: var(--blue-lit); }
.footer-bar nav { display: flex; flex-wrap: wrap; gap: 1.5rem; }

.footer-contact { margin-top: 1.5rem; display: grid; gap: 0.4rem; }
.footer-contact a { font-size: var(--fs-ui); color: rgba(247, 248, 250, 0.78); transition: color 0.22s var(--ease); }
.footer-contact a:hover { color: var(--blue-lit); }

.socials { display: flex; gap: 0.5rem; margin-top: 1.75rem; }
.socials a {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border: 1px solid var(--rule-inv);
  border-radius: var(--radius);
  color: rgba(247, 248, 250, 0.7);
  transition: all 0.26s var(--ease);
}
.socials a:hover { border-color: var(--blue); background: var(--blue); color: #fff; }

/* Giant footer wordmark */
.footer-mark {
  font-family: var(--font-display);
  /* Scales with the viewport but must never exceed its container: this is a
     nowrap string, so an oversized value pushed the whole document 40px wide
     and gave every page a horizontal scrollbar on phones.
     max-width + overflow are the hard guarantee if the maths is ever off. */
  font-size: clamp(1.75rem, 12.5vw, 10rem);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 0.85;
  color: rgba(247, 248, 250, 0.06);
  padding-bottom: 1.5rem;
  user-select: none;
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
}

/* --------------------------------------------------------------------------
   20b. Offer chooser modal
   -------------------------------------------------------------------------- */
.chooser[hidden] { display: none; }
.chooser {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: var(--gutter);
}
.chooser__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 18, 37, 0.58);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.chooser.is-open .chooser__backdrop { opacity: 1; }

.chooser__panel {
  position: relative;
  width: 100%;
  max-width: 760px;
  max-height: calc(100vh - 2 * var(--gutter));
  overflow-y: auto;
  background: var(--paper);
  border-radius: var(--radius);
  padding: clamp(1.75rem, 4vw, 3rem);
  text-align: center;
  opacity: 0;
  transform: translateY(10px) scale(0.985);
  transition: opacity 0.32s var(--ease), transform 0.32s var(--ease);
}
.chooser.is-open .chooser__panel { opacity: 1; transform: none; }

.chooser__close {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  color: var(--muted);
  transition: color 0.22s var(--ease), background-color 0.22s var(--ease);
}
.chooser__close:hover { color: var(--blue); background: var(--canvas); }

.chooser__title { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); }
.chooser__sub {
  margin: 0.875rem auto 0;
  max-width: 46ch;
  font-size: var(--fs-small);
  color: var(--muted);
  line-height: 1.6;
}

.chooser__options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: clamp(1.75rem, 3vw, 2.25rem);
}
@media (max-width: 640px) { .chooser__options { grid-template-columns: 1fr; } }

.chooser__option {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.55rem;
  text-align: left;
  padding: clamp(1.25rem, 2.2vw, 1.6rem);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  transition: border-color 0.26s var(--ease), background-color 0.26s var(--ease);
}
.chooser__option:hover { border-color: var(--blue); background: var(--canvas); }
.chooser__icon {
  width: 42px;
  height: 42px;
  border: 1px solid var(--rule-strong);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--blue);
  margin-bottom: 0.35rem;
  transition: border-color 0.26s var(--ease);
}
.chooser__option:hover .chooser__icon { border-color: var(--blue); }
.chooser__label {
  font-family: var(--font-display);
  font-size: 1.1875rem;
  font-weight: 600;
  letter-spacing: -0.022em;
}
.chooser__desc { font-size: var(--fs-small); color: var(--muted); line-height: 1.55; }
.chooser__go {
  margin-top: auto;
  padding-top: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: var(--fs-ui);
  font-weight: 500;
  color: var(--blue);
}
.chooser__go svg { transition: transform 0.26s var(--ease); }
.chooser__option:hover .chooser__go svg { transform: translateX(3px); }

/* --------------------------------------------------------------------------
   21. Legal documents (privacy policy, terms)

   The one place the centred composition is dropped entirely. Everything else
   on the site is scanned; this is read top to bottom, and a centred legal
   clause is punishing. Left-aligned, one column, capped at 68ch.
   -------------------------------------------------------------------------- */
.legal { max-width: var(--maxw-text); margin-inline: auto; text-align: left; }

.legal__updated {
  font-family: var(--font-body);
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-soft);
}

/* Contents — a 15-section document needs a way in that isn't scrolling. */
.legal__toc { border: 1px solid var(--rule); background: var(--paper); padding: clamp(1.5rem, 2.4vw, 2rem); }
.legal__toc h2 {
  font-family: var(--font-body);
  font-size: var(--fs-eyebrow);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-soft);
}
.legal__toc ol {
  margin-top: 1.25rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem 2rem;
  counter-reset: toc;
}
@media (max-width: 620px) { .legal__toc ol { grid-template-columns: 1fr; } }
.legal__toc li { counter-increment: toc; font-size: var(--fs-small); }
.legal__toc a { color: var(--muted); transition: color 0.22s var(--ease); }
.legal__toc a::before { content: counter(toc) ". "; color: var(--blue); }
.legal__toc a:hover { color: var(--blue); }

.legal__sec {
  padding-block: clamp(2.25rem, 3.4vw, 3rem);
  border-top: 1px solid var(--rule);
  scroll-margin-top: calc(var(--header-h) + 32px);
}
/* The contents block is a <nav>, so this is the first clause section — it sits
   directly under it and doesn't need a second rule. */
.legal__sec:first-of-type { border-top: 0; }
.legal__sec h2 { font-size: var(--fs-h3); }
.legal__sec h3 { font-size: var(--fs-h4); margin-top: 2rem; }
.legal__sec > * + * { margin-top: 1.1rem; }

/* Scoped to __sec, not .legal — the contents block is a list too, and it
   styles its own markers. */
.legal p { color: var(--muted); line-height: 1.75; max-width: 68ch; }
.legal__sec ul { display: grid; gap: 0.65rem; max-width: 68ch; }
/* Absolute marker rather than the flex-row pattern the rest of the site uses.
   These list items open with a bolded lead-in — "Book a call." — and under
   flex that <strong> becomes its own flex item and collapses into a column. */
.legal__sec li {
  position: relative;
  padding-left: 1.5rem;
  font-size: var(--fs-small);
  color: var(--muted);
  line-height: 1.7;
}
.legal__sec li::before { content: "—"; position: absolute; left: 0; top: 0; color: var(--blue); }
.legal strong { color: var(--ink); font-weight: 600; }

/* Inline links only — the TOC and any buttons style themselves. */
.legal__sec p a,
.legal__sec li a {
  color: var(--ink);
  border-bottom: 1px solid var(--rule-strong);
  transition: color 0.22s var(--ease), border-color 0.22s var(--ease);
}
.legal__sec p a:hover,
.legal__sec li a:hover { color: var(--blue); border-bottom-color: var(--blue); }

/* --------------------------------------------------------------------------
   22. Error page
   -------------------------------------------------------------------------- */
.err { text-align: center; max-width: 720px; margin-inline: auto; }
.err__code {
  font-family: var(--font-display);
  font-size: clamp(5rem, 3rem + 13vw, 11rem);
  font-weight: 600;
  line-height: 0.85;
  letter-spacing: -0.06em;
  color: var(--rule-strong);
}
.err__code b { color: var(--blue); font-weight: inherit; }
.err__title { font-size: clamp(2rem, 1.6rem + 2vw, 3.25rem); margin-top: 1.5rem; }
.err .lead { margin: 1.5rem auto 0; max-width: 48ch; }
.err .btn-row { margin-top: 2.5rem; justify-content: center; }

/* --------------------------------------------------------------------------
   23. Reveal animation
   -------------------------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
  transition-delay: var(--d, 0s);
}
[data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .marquee__track { animation: none; }
  .spark i { transform: scaleY(1); }
}
