/* ==========================================================================
   BD AI Solutions design system
   Layout concept: the logo's dot grid is the system. Navy brand bands open
   and close every page. Light working sections sit between them on one
   1180px column with a 16px minimum side gutter.
   ========================================================================== */

/* ---------- 1. Tokens: light theme (used when Light mode is on) ---------- */
:root {
  /* Color */
  --bg: #F4F7FB;
  --surface: #FFFFFF;
  --surface-2: #E9EFF7;
  --fg: #0B1F4D;
  --fg-muted: #4A5A78;
  --line: #D3DDEA;
  --line-strong: #A9B8CE;
  --accent: #00D1FF;
  --accent-hover: #4FE0FF;
  --accent-ink: #0077A8;
  --on-accent: #0B1F4D;
  --green: #11A83A;
  --band: #0B1F4D;
  --band-2: #10295F;
  --band-fg: #FFFFFF;
  --band-muted: #B9C6DE;
  --band-line: rgba(255, 255, 255, 0.16);
  --band-green: #39FF14;
  --focus: #0077A8;
  --error: #B42318;
  --success: #11743A;
  --shadow: 0 1px 2px rgba(11, 31, 77, 0.06), 0 10px 28px rgba(11, 31, 77, 0.08);

  /* Type */
  --font-display: 'Space Grotesk', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'IBM Plex Sans', 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'Space Mono', ui-monospace, Menlo, Consolas, monospace;
  --fs-display: clamp(2.6rem, 6vw, 4.75rem);
  --fs-h1: clamp(2.25rem, 4.8vw, 3.75rem);
  --fs-h2: clamp(1.875rem, 3.6vw, 2.75rem);
  --fs-h3: clamp(1.25rem, 1.8vw, 1.5rem);
  --fs-lead: clamp(1.0625rem, 1.5vw, 1.25rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.9375rem;
  --fs-label: 0.8rem;

  /* Space: 4px base */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: 4rem;
  --s-9: 6rem;
  --section: clamp(4rem, 9vw, 7rem);

  /* Shape and layout */
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --max: 1280px;
  --measure: 65ch;
  --header-h: 4.5rem;
}

/* ---------- 2. Tokens: dark theme (the default look) ----------
   Dark applies everywhere unless the visitor turns on Light mode in the
   footer's Accessibility section, which sets data-bd-mode="light".
   The attribute name is unique to this site so no host page or browser
   extension that sets data-theme can change it. */
:root:not([data-bd-mode="light"]) {
    --bg: #06122B;
    --surface: #0B1C42;
    --surface-2: #0F2452;
    --fg: #E8EEF9;
    --fg-muted: #A7B5CF;
    --line: #1D3363;
    --line-strong: #34508A;
    --accent: #00D1FF;
    --accent-hover: #4FE0FF;
    --accent-ink: #4FDFFF;
    --on-accent: #0B1F4D;
    --green: #39FF14;
    --band: #0B1F4D;
    --band-2: #10295F;
    --band-fg: #FFFFFF;
    --band-muted: #B9C6DE;
    --band-line: rgba(255, 255, 255, 0.14);
    --band-green: #39FF14;
    --focus: #4FDFFF;
    --error: #FF8A7A;
    --success: #5BE37D;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 10px 28px rgba(0, 0, 0, 0.35);
    color-scheme: dark;
}
:root[data-bd-mode="dark"] {
  --bg: #06122B;
  --surface: #0B1C42;
  --surface-2: #0F2452;
  --fg: #E8EEF9;
  --fg-muted: #A7B5CF;
  --line: #1D3363;
  --line-strong: #34508A;
  --accent: #00D1FF;
  --accent-hover: #4FE0FF;
  --accent-ink: #4FDFFF;
  --on-accent: #0B1F4D;
  --green: #39FF14;
  --band: #0B1F4D;
  --band-2: #10295F;
  --band-fg: #FFFFFF;
  --band-muted: #B9C6DE;
  --band-line: rgba(255, 255, 255, 0.14);
  --band-green: #39FF14;
  --focus: #4FDFFF;
  --error: #FF8A7A;
  --success: #5BE37D;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 10px 28px rgba(0, 0, 0, 0.35);
  color-scheme: dark;
}
:root[data-bd-mode="light"] {
  color-scheme: light;
}

/* ---------- 3. Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  /* 16px on phones, growing to 18px from about 1000px wide. All text and spacing scale from this. */
  font-size: clamp(100%, 87.5% + 0.4vw, 112.5%);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 60;
  background: var(--band);
}
img,
svg {
  max-width: 100%;
}
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  margin: 0;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
h1 {
  font-size: var(--fs-h1);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.025em;
}
h2 {
  font-size: var(--fs-h2);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.02em;
}
h3 {
  font-size: var(--fs-h3);
  line-height: 1.25;
  font-weight: 600;
}
p {
  margin: 0;
}
a {
  color: inherit;
}
strong {
  font-weight: 600;
}
[hidden] {
  display: none !important;
}
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}
[tabindex="-1"]:focus {
  outline: none;
}
::selection {
  background: var(--accent);
  color: var(--on-accent);
}

/* ---------- 4. Utilities ---------- */
.wrap {
  /* Side margins grow with the screen: 16px on phones, about 45px on a laptop. */
  max-width: calc(var(--max) + 7vw);
  margin-inline: auto;
  padding-left: max(1rem, 3.5vw, env(safe-area-inset-left, 0px));
  padding-right: max(1rem, 3.5vw, env(safe-area-inset-right, 0px));
}
.band {
  background: var(--band);
  color: var(--band-fg);
  --focus: var(--accent);
}
.section {
  padding-block: var(--section);
  scroll-margin-top: calc(var(--header-h) + 8px);
}
.section-tight {
  padding-block: clamp(3rem, 6vw, 4.5rem);
}
.section-alt {
  background: var(--surface);
  border-block: 1px solid var(--line);
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-ink);
  line-height: 1.4;
}
.band .eyebrow {
  color: var(--accent);
}
.muted {
  color: var(--fg-muted);
}
.band .muted {
  color: var(--band-muted);
}
.lead {
  font-size: var(--fs-lead);
  max-width: 34em;
}
.measure {
  max-width: var(--measure);
}
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.ph {
  font-family: var(--font-mono);
  font-size: 0.9em;
  font-weight: 400;
  background: var(--surface-2);
  color: var(--fg-muted);
  padding: 2px 0.5rem;
  border-radius: 6px;
}
.skip-link {
  position: absolute;
  left: max(16px, env(safe-area-inset-left, 0px));
  top: calc(env(safe-area-inset-top, 0px) + 8px);
  z-index: 100;
  background: var(--accent);
  color: var(--on-accent);
  font-family: var(--font-display);
  font-weight: 600;
  padding: 0.625rem 1rem;
  border-radius: 999px;
  text-decoration: none;
  transform: translateY(-200%);
  transition: transform 0.15s ease;
}
.skip-link:focus {
  transform: translateY(0);
}

/* ---------- 5. Buttons and links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  min-height: 3rem;
  padding: 0 1.375rem;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn:active {
  transform: translateY(0);
}
.btn[disabled],
.btn[aria-disabled="true"] {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}
.btn-sm {
  min-height: 2.75rem;
  padding: 0 1.125rem;
  font-size: var(--fs-small);
}
.btn-accent {
  background: var(--accent);
  color: var(--on-accent);
}
.btn-accent:hover {
  background: var(--accent-hover);
}
.btn-outline {
  background: transparent;
  color: var(--fg);
  border-color: var(--line-strong);
}
.btn-outline:hover {
  border-color: var(--fg);
}
.band .btn-outline {
  color: var(--band-fg);
  border-color: var(--band-line);
}
.band .btn-outline:hover {
  border-color: var(--band-fg);
}
.btn-text {
  background: none;
  border: none;
  color: var(--accent-ink);
  padding: 0 var(--s-2);
  min-height: 2.75rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
}
.btn-text:hover {
  text-decoration: underline;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  align-items: center;
}
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  min-height: 2.75rem;
  color: var(--accent-ink);
  font-family: var(--font-display);
  font-weight: 600;
  text-decoration: none;
}
.link-arrow:hover {
  text-decoration: underline;
}
.band .link-arrow {
  color: var(--accent);
}
.text-link {
  color: var(--accent-ink);
  text-underline-offset: 3px;
}

/* ---------- 6. Logo mark ---------- */
.mark {
  flex: none;
}
.mark .m-dim {
  fill: var(--mark-primary);
  opacity: 0.36;
}
.mark .m-green {
  fill: var(--mark-green);
}
.mark .m-path {
  fill: none;
  stroke: var(--mark-accent);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.mark .m-node {
  fill: var(--mark-primary);
}
.mark .m-end {
  fill: var(--mark-accent);
}
.mark-on-dark {
  --mark-primary: var(--band-fg);
  --mark-accent: var(--accent);
  --mark-green: var(--band-green);
}
.mark-on-light {
  --mark-primary: var(--fg);
  --mark-accent: var(--accent-ink);
  --mark-green: var(--green);
}

/* ---------- 7. Header and navigation ---------- */
.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 50;
  border-bottom: 1px solid var(--band-line);
  transition: box-shadow 0.2s ease;
}
.site-header.is-scrolled {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  min-height: var(--header-h);
  padding-block: 0.625rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
  color: var(--band-fg);
  flex: none;
}
.brand-bd {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.6rem;
  line-height: 1;
  letter-spacing: -0.01em;
}
.brand-rule {
  width: 2px;
  height: 26px;
  background: var(--accent);
}
.brand-sub {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  line-height: 1;
}
.brand-sub .ai {
  color: var(--accent);
  font-weight: 700;
}
.site-nav {
  display: flex;
  align-items: center;
}
.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--s-5);
}
.nav-links {
  display: flex;
  gap: var(--s-5);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  position: relative;
  color: var(--band-muted);
  text-decoration: none;
  font-size: var(--fs-small);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
}
.nav-links a:hover {
  color: var(--band-fg);
}
.nav-links a[aria-current="page"] {
  color: var(--band-fg);
}
.nav-links a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 6px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
}
.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.625rem;
  min-height: 2.75rem;
  padding: 0 0.875rem;
  border-radius: 999px;
  border: 1px solid var(--band-line);
  background: transparent;
  color: var(--band-fg);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-small);
  cursor: pointer;
}
.nav-toggle-bars {
  position: relative;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: background-color 0.15s ease;
}
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.2s ease;
}
.nav-toggle-bars::before {
  top: -6px;
}
.nav-toggle-bars::after {
  top: 6px;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars {
  background: transparent;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before {
  transform: translateY(6px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after {
  transform: translateY(-6px) rotate(-45deg);
}
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--band-line);
  background: transparent;
  color: var(--band-fg);
  cursor: pointer;
}
.theme-toggle:hover {
  border-color: var(--band-fg);
}
.theme-toggle svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- 8. Home hero ---------- */
.hero {
  padding-block: clamp(3rem, 8vw, 6.5rem) clamp(3.5rem, 8vw, 7rem);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 1.375rem;
  min-width: 0;
}
.hero h1 {
  font-size: var(--fs-display);
  line-height: 1.02;
}
.hl {
  color: var(--accent);
}
.hl-green {
  color: var(--band-green);
}
.hero .lead {
  color: var(--band-muted);
}
.hero-facts {
  list-style: none;
  margin: 0.375rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem 1.625rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--band-muted);
}
.hero-facts li {
  display: inline-flex;
  align-items: center;
  gap: 0.5625rem;
}
.hero-facts li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}
.hero-art {
  display: flex;
  justify-content: center;
  min-width: 0;
}
.hero-art svg {
  width: 100%;
  max-width: 506px; /* 15% larger than the first 440px */
  height: auto;
  aspect-ratio: 1 / 1;
}
.g-dim circle {
  fill: var(--band-fg);
  opacity: 0.2;
}
.g-node circle {
  fill: var(--band-fg);
}
.g-path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 9;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  animation: draw 1.3s cubic-bezier(0.4, 0.1, 0.2, 1);
}
.g-end {
  fill: var(--accent);
}
.g-green {
  fill: var(--band-green);
}
@keyframes draw {
  from {
    stroke-dashoffset: 1;
  }
  to {
    stroke-dashoffset: 0;
  }
}
@keyframes spark {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.4;
  }
}

/* ---------- 9. Inner page hero ---------- */
.page-hero {
  padding-block: clamp(2.5rem, 6vw, 5rem) clamp(3rem, 7vw, 5.5rem);
  position: relative;
  overflow: hidden;
}
.page-hero-inner {
  display: flex;
  flex-direction: column;
  gap: 1.125rem;
  max-width: 50rem;
  position: relative;
  z-index: 1;
}
.page-hero .lead {
  color: var(--band-muted);
}
.page-hero-dots {
  position: absolute;
  right: max(16px, env(safe-area-inset-right, 0px));
  bottom: 24px;
  width: min(280px, 34vw);
  height: auto;
  opacity: 0.9;
  pointer-events: none;
}
.breadcrumb ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--band-muted);
}
.breadcrumb li + li::before {
  content: "/";
  margin-right: 0.375rem;
  color: var(--band-line);
}
.breadcrumb a {
  color: var(--band-muted);
  text-decoration: none;
}
.breadcrumb a:hover {
  color: var(--band-fg);
  text-decoration: underline;
}
.breadcrumb [aria-current="page"] {
  color: var(--accent);
}
.jump-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
}
.jump-links a {
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  padding: 0.375rem 0.875rem;
  border-radius: 999px;
  border: 1px solid var(--band-line);
  color: var(--band-fg);
  text-decoration: none;
  font-size: var(--fs-small);
}
.jump-links a:hover {
  border-color: var(--accent);
}

/* ---------- 10. Section heads ---------- */
.section-head {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  max-width: 46rem;
  margin-bottom: clamp(2rem, 5vw, 3.25rem);
}
.section-head .muted {
  font-size: 1.125rem;
  max-width: 38em;
}
.section-head-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--s-5);
  margin-bottom: clamp(2rem, 5vw, 3.25rem);
}
.section-head-row .section-head {
  margin-bottom: 0;
}

/* ---------- 11. Commitments strip ---------- */
.commitments {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.commitments ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.commitments li {
  display: flex;
  gap: 0.875rem;
  align-items: flex-start;
  padding: 1.625rem 1.5rem 1.625rem 0;
  min-width: 0;
}
.commitments li + li {
  padding-left: 1.5rem;
  border-left: 1px solid var(--line);
}
.commitments svg {
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  fill: none;
  stroke: var(--accent-ink);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.commitments strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  line-height: 1.3;
}
.commitments span {
  display: block;
  color: var(--fg-muted);
  font-size: var(--fs-small);
  margin-top: 2px;
}

/* ---------- 12. Cards and lists ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 1.25rem;
}
.card-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  min-width: 0;
}
.card-link {
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.card-link:hover {
  border-color: var(--accent-ink);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.card-link:hover .link-arrow {
  text-decoration: underline;
}
.card-tag {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-ink);
}
.card h3 {
  font-size: 1.4rem;
}
.card > p {
  color: var(--fg-muted);
}
.card .link-arrow {
  margin-top: auto;
  align-self: flex-start;
}
.ticks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5625rem;
  font-size: 0.98rem;
}
.ticks li {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr);
  gap: 0.625rem;
  align-items: baseline;
}
.ticks li::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 2px solid var(--accent-ink);
}
.band .ticks li::before {
  border-color: var(--accent);
}

/* ---------- 13. Problem finder ---------- */
.finder-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  background: var(--surface-2);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 4vw, 3rem);
}
.finder-ask {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  min-width: 0;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  margin-top: var(--s-2);
}
.chip {
  font: inherit;
  font-size: 0.95rem;
  line-height: 1.3;
  min-height: 2.75rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--fg);
  cursor: pointer;
  text-align: left;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.chip:hover {
  border-color: var(--accent-ink);
  background: color-mix(in srgb, var(--accent) 14%, var(--surface));
}
.chip[aria-pressed="true"] {
  background: var(--accent);
  color: var(--on-accent);
  border-color: var(--accent-ink);
  font-weight: 600;
}
.finder-result {
  border-radius: var(--radius);
  padding: clamp(1.375rem, 3vw, 2.25rem);
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  min-width: 0;
}
.finder-result h3 {
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.15;
}
.finder-result p {
  color: var(--band-muted);
}
.finder-result .btn {
  align-self: flex-start;
  margin-top: auto;
}

/* ---------- 14. Split layouts ---------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}
.split-even {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.stack {
  display: flex;
  flex-direction: column;
  gap: 1.125rem;
  min-width: 0;
}
.stack > p {
  max-width: 36em;
}
.callout {
  display: flex;
  gap: 0.875rem;
  align-items: flex-start;
  padding: 1.125rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
}
.section-alt .callout {
  background: var(--bg);
}
.callout .mark {
  margin-top: 2px;
}

/* ---------- 15. Term lists (legal tools, details) ---------- */
.term-list {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 2rem;
  border-top: 1px solid var(--line);
}
.term-list > div {
  padding-block: 1.25rem;
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  min-width: 0;
}
.term-list dt {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-ink);
}
.term-list dd {
  margin: 0;
}
.term-list-1 {
  grid-template-columns: minmax(0, 1fr);
}

/* ---------- 16. Process steps (compact, horizontal) ---------- */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1.5rem;
}
.steps li {
  position: relative;
  padding-top: 2.375rem;
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  min-width: 0;
}
.steps li::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 0;
  right: -24px;
  height: 2px;
  background: var(--line);
}
.steps li:last-child::before {
  display: none;
}
.steps li::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 0;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--fg);
}
.steps li:last-child::after {
  background: var(--green);
  width: 18px;
  height: 18px;
  top: 0;
}
.step-num {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-ink);
  letter-spacing: 0.08em;
}
.steps h3 {
  font-size: 1.3rem;
}
.steps p {
  color: var(--fg-muted);
  font-size: 0.98rem;
}

/* Step track: a dot that travels the steps line as the page scrolls */
.steps-track {
  position: relative;
}
.steps h3 {
  align-self: flex-start;
  padding-bottom: 0.25rem;
  background-image: linear-gradient(var(--green), var(--green));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 3px;
  transition: background-size 0.35s ease 0.25s;
}
.steps li.is-reached h3 {
  background-size: 100% 3px;
}
.steps li:last-child h3 {
  background-image: linear-gradient(var(--green), var(--green));
}
.steps-fill,
.steps-runner {
  display: none;
}
.steps-track.is-live .steps-fill {
  display: block;
  position: absolute;
  z-index: 1;
  border-radius: 2px;
  background: var(--green);
  pointer-events: none;
  transition: width 0.5s cubic-bezier(0.3, 0.7, 0.2, 1), height 0.5s cubic-bezier(0.3, 0.7, 0.2, 1);
}
.steps-track.is-live .steps-runner {
  display: block;
  position: absolute;
  z-index: 2;
  left: -10px;
  top: -10px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--green) 28%, transparent), 0 0 18px color-mix(in srgb, var(--green) 55%, transparent);
  pointer-events: none;
  will-change: transform;
  transition: transform 0.5s cubic-bezier(0.3, 0.7, 0.2, 1);
}
.steps li.is-reached::after {
  background: var(--green);
}
.steps li:last-child.is-reached::after {
  background: var(--green);
}

/* ---------- 17. Process detail (vertical timeline) ---------- */
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.timeline > li {
  position: relative;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: var(--s-5);
  padding-bottom: clamp(2rem, 5vw, 3rem);
}
.timeline > li::before {
  content: "";
  position: absolute;
  left: 27px;
  top: 44px;
  bottom: 0;
  width: 2px;
  background: var(--line);
}
.timeline > li:last-child {
  padding-bottom: 0;
}
.timeline > li:last-child::before {
  display: none;
}
.timeline-dot {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--fg);
  color: var(--bg);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.95rem;
}
.timeline > li:last-child .timeline-dot {
  background: var(--accent);
  color: var(--on-accent);
}
.timeline-body {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  min-width: 0;
  padding-top: 0.625rem;
}
.timeline-body h3 {
  font-size: 1.6rem;
}
.timeline-body > p {
  color: var(--fg-muted);
  max-width: 40em;
}
.timeline-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-4);
  margin: 0.25rem 0 0;
}
.timeline-facts > div {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem 1.125rem;
  min-width: 0;
}
.timeline-facts dt {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin-bottom: 0.25rem;
}
.timeline-facts dd {
  margin: 0;
}

/* ---------- 18. Service detail sections ---------- */
.service-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.75rem, 5vw, 4rem);
  align-items: start;
}
.service-detail .stack h2 {
  font-size: clamp(1.75rem, 3.2vw, 2.4rem);
}
.service-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.375rem, 3vw, 2rem);
  display: flex;
  flex-direction: column;
  gap: 1.125rem;
  min-width: 0;
}
.section-alt .service-panel {
  background: var(--bg);
}
.service-panel h3 {
  font-size: 1.1rem;
  font-family: var(--font-mono);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-ink);
}
.service-panel hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0;
  width: 100%;
}
.fit-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}
.fit-list li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 0.625rem;
  align-items: start;
}
.fit-list svg {
  width: 20px;
  height: 20px;
  margin-top: 3px;
  fill: none;
  stroke: var(--accent-ink);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.subhead {
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: 0.25rem;
}

/* ---------- 18b. Comparison table ---------- */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.compare {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 0.98rem;
}
.compare th,
.compare td {
  text-align: left;
  vertical-align: top;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--line);
}
.compare thead th {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-muted);
  background: var(--surface-2);
}
.compare tbody th {
  font-family: var(--font-display);
  font-weight: 600;
  white-space: nowrap;
}
.compare tbody tr:last-child th,
.compare tbody tr:last-child td {
  border-bottom: 0;
}
.compare td {
  color: var(--fg-muted);
}

/* ---------- 19. Pain point cards ---------- */
.pain-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}
.pain {
  border-top: 3px solid var(--fg);
  padding-top: 1.125rem;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  min-width: 0;
}
.pain h3 {
  font-size: 1.2rem;
}
.pain p {
  color: var(--fg-muted);
  font-size: 0.98rem;
}

/* ---------- 20. Feature block (mass tort) ---------- */
.feature {
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 5vw, 3.5rem);
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(1.75rem, 5vw, 4rem);
  align-items: start;
}
.feature .stack > p {
  color: var(--band-muted);
}
.flow {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  counter-reset: flow;
}
.flow li {
  position: relative;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: var(--s-4);
  padding-bottom: 1.375rem;
}
.flow li::before {
  counter-increment: flow;
  content: counter(flow, decimal-leading-zero);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--band-fg);
}
.flow li::after {
  content: "";
  position: absolute;
  left: 19px;
  top: 42px;
  bottom: 2px;
  width: 2px;
  background: var(--band-line);
}
.flow li:last-child {
  padding-bottom: 0;
}
.flow li:last-child::after {
  display: none;
}
.flow li:last-child::before {
  background: var(--accent);
  color: var(--on-accent);
}
.flow strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-top: 0.4375rem;
}
.flow span {
  display: block;
  color: var(--band-muted);
  font-size: 0.98rem;
}

/* ---------- 21. Founder ---------- */
.founder {
  display: grid;
  grid-template-columns: minmax(0, 0.42fr) minmax(0, 1fr);
  gap: clamp(1.75rem, 5vw, 4rem);
  align-items: center;
}
.founder-badge {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  aspect-ratio: 3 / 4;
  max-width: 340px;
  width: 100%;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.5rem;
}
/* The headshot fills the card. A navy fade at the bottom keeps the name readable. */
.founder-photo {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: 50% 20%;
}
.founder-badge::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to bottom, rgba(11, 31, 77, 0.35) 0%, rgba(11, 31, 77, 0) 22%, rgba(11, 31, 77, 0) 52%, rgba(11, 31, 77, 0.92) 86%, #0B1F4D 100%);
}
.founder-badge .mark {
  width: 48px;
  height: 48px;
}
.founder-badge p {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--band-muted);
}
.founder-badge strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  letter-spacing: -0.01em;
  text-transform: none;
  color: var(--band-fg);
  margin-bottom: 0.25rem;
}
.founder-hook {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.2vw, 1.6rem);
  font-weight: 600;
  line-height: 1.3;
  color: var(--accent-ink);
  max-width: 26em;
}
.chip-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.chip-list li {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  padding: 0.375rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--fg);
}

/* ---------- 22. Ethics notice ---------- */
.notice {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius);
  padding: clamp(1.25rem, 3vw, 1.75rem);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.notice small {
  color: var(--fg-muted);
  font-size: 0.875rem;
}

/* ---------- 23. CTA band ---------- */
.cta-band {
  padding-block: clamp(3.5rem, 8vw, 6rem);
  position: relative;
  overflow: hidden;
}
.cta-band-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-6);
  position: relative;
  z-index: 1;
}
.cta-band h2 {
  max-width: 18em;
}
.cta-band p {
  color: var(--band-muted);
  margin-top: 0.625rem;
}

/* ---------- 24. FAQ ---------- */
.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: start;
}
.faq-grid .section-head {
  margin-bottom: 0;
  position: sticky;
  top: calc(var(--header-h) + env(safe-area-inset-top, 0px) + 24px);
}
.faq-group + .faq-group {
  margin-top: var(--s-7);
}
.faq-group h3 {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin-bottom: var(--s-3);
}
.faq-list {
  border-top: 1px solid var(--line);
  min-width: 0;
}
.faq-list details {
  border-bottom: 1px solid var(--line);
}
.faq-list summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-4);
  padding-block: 1.125rem;
  min-height: 2.75rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.12rem;
}
.faq-list summary::-webkit-details-marker {
  display: none;
}
.faq-list summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 1.4rem;
  line-height: 1;
  color: var(--accent-ink);
  transition: transform 0.2s ease;
  flex: none;
}
.faq-list details[open] summary::after {
  transform: rotate(45deg);
}
.faq-list details > div {
  padding-bottom: 1.375rem;
  color: var(--fg-muted);
  max-width: 44em;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

/* ---------- 25. Contact page ---------- */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
  gap: clamp(1.75rem, 4vw, 3rem);
  align-items: start;
}
.contact-aside {
  display: flex;
  flex-direction: column;
  gap: var(--s-5);
  min-width: 0;
  position: sticky;
  top: calc(var(--header-h) + env(safe-area-inset-top, 0px) + 24px);
}
.aside-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.375rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.aside-card h2 {
  font-size: 1.25rem;
}
.ways {
  list-style: none;
  margin: 0;
  padding: 0;
}
.ways li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "label btn" "value btn";
  gap: 2px 0.75rem;
  align-items: center;
  padding-block: 0.75rem;
  border-bottom: 1px solid var(--line);
}
.ways li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.way-label {
  grid-area: label;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.way-value {
  grid-area: value;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  overflow-wrap: anywhere;
  min-width: 0;
}
.btn-mini {
  grid-area: btn;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  min-height: 2.5rem;
  padding: 0 0.875rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--fg);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.btn-mini:hover {
  border-color: var(--fg);
}
.next-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  counter-reset: next;
}
.next-steps li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 0.625rem;
  font-size: 0.98rem;
}
.next-steps li::before {
  counter-increment: next;
  content: counter(next);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--fg);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- 26. Quote builder ---------- */
.quote {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 3.5vw, 2.5rem);
  min-width: 0;
  box-shadow: var(--shadow);
}
.progress {
  list-style: none;
  margin: 0 0 var(--s-6);
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
}
.progress li {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--fg-muted);
  min-width: 0;
}
.progress li::before {
  content: "";
  position: absolute;
  top: 7px;
  left: 16px;
  right: 0;
  height: 2px;
  background: var(--line);
}
.progress li:last-child::before {
  display: none;
}
.progress li.is-done::before {
  background: var(--accent-ink);
}
.progress-dot {
  position: relative;
  z-index: 1;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--line-strong);
}
.progress li.is-done .progress-dot {
  background: var(--accent-ink);
  border-color: var(--accent-ink);
}
.progress li.is-current .progress-dot {
  background: var(--accent);
  border-color: var(--accent-ink);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 30%, transparent);
}
.progress li.is-current {
  color: var(--fg);
  font-weight: 600;
}
.progress-label {
  overflow-wrap: anywhere;
}
.step-status {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-ink);
}
.quote-step {
  display: flex;
  flex-direction: column;
  gap: 1.375rem;
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}
.quote-step-head {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.quote-step-head h2 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
}
.quote-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-3);
  padding-top: var(--s-5);
  border-top: 1px solid var(--line);
}
.quote-nav .spacer {
  flex: 1;
}
.draft-note {
  font-size: 0.85rem;
  color: var(--fg-muted);
  margin-top: var(--s-4);
}
.step-error {
  color: var(--error);
  font-weight: 500;
}

/* Fields */
.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-4);
}
.field {
  display: flex;
  flex-direction: column;
  gap: 0.4375rem;
  min-width: 0;
  border: 0;
  margin: 0;
  padding: 0;
}
.field > label,
.field > legend {
  font-weight: 500;
  font-size: 0.95rem;
}
.field > legend {
  padding: 0;
  margin-bottom: 0.4375rem;
}
.field-hint {
  font-size: 0.875rem;
  color: var(--fg-muted);
}
.opt {
  font-weight: 400;
  color: var(--fg-muted);
}
.input,
.select,
.textarea {
  font: inherit;
  font-size: 1rem;
  color: var(--fg);
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 0.6875rem 0.8125rem;
  min-height: 3rem;
  width: 100%;
  transition: border-color 0.15s ease;
}
.textarea {
  resize: vertical;
  min-height: 8.125rem;
}
.input::placeholder,
.textarea::placeholder {
  color: var(--fg-muted);
  opacity: 0.85;
}
.input:focus,
.select:focus,
.textarea:focus {
  border-color: var(--accent-ink);
}
[aria-invalid="true"] {
  border-color: var(--error) !important;
}
.field[data-invalid] .choice-body {
  border-color: var(--error);
}
.quote {
  scroll-margin-top: calc(var(--header-h) + env(safe-area-inset-top, 0px) + 16px);
}
.preselect-note {
  font-size: 0.95rem;
  background: var(--surface-2);
  border-radius: 10px;
  padding: 0.625rem 0.875rem;
  margin-bottom: var(--s-5);
}
.hp-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Choice cards */
.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-3);
}
.choice-grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.choice {
  position: relative;
  display: block;
  cursor: pointer;
  min-width: 0;
}
.choice input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
}
.choice-body {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 0.75rem;
  align-items: start;
  height: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--bg);
  transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}
.choice:hover .choice-body {
  border-color: var(--fg);
}
.choice-box {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  border: 2px solid var(--line-strong);
  border-radius: 6px;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.choice input[type="radio"] + .choice-body .choice-box {
  border-radius: 50%;
}
.choice-box svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: var(--on-accent);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0;
}
.choice input:checked + .choice-body {
  border-color: var(--accent-ink);
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--accent-ink);
}
.choice input:checked + .choice-body .choice-box {
  background: var(--accent);
  border-color: var(--accent-ink);
}
.choice input:checked + .choice-body .choice-box svg {
  opacity: 1;
}
.choice input:focus-visible + .choice-body {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}
.choice-title {
  display: block;
  font-weight: 600;
  line-height: 1.35;
}
.choice-desc {
  display: block;
  font-size: 0.875rem;
  color: var(--fg-muted);
  margin-top: 2px;
}
.pill-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
}
.pill-choices .choice-body {
  grid-template-columns: 20px auto;
  padding: 0.625rem 1rem;
  border-radius: 999px;
  align-items: center;
}
.pill-choices .choice-box {
  margin-top: 0;
}

/* Review */
.review {
  margin: 0;
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}
.review-group {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.375rem 1rem;
  padding-block: 1rem;
  border-bottom: 1px solid var(--line);
}
.review-group h3 {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-ink);
  font-weight: 700;
}
.review-group dl {
  grid-column: 1 / -1;
  margin: 0;
  display: grid;
  grid-template-columns: minmax(120px, 0.35fr) minmax(0, 1fr);
  gap: 0.375rem 1rem;
  font-size: 0.98rem;
}
.review-group dt {
  color: var(--fg-muted);
}
.review-group dd {
  margin: 0;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

/* Result panels */
.result {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}
.result h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}
.result-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
}
.result-icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: var(--on-accent);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.message-box {
  font-family: var(--font-mono);
  font-size: 0.86rem;
  line-height: 1.6;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: var(--bg);
  color: var(--fg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1rem;
  margin: 0;
  max-height: 360px;
  overflow: auto;
}

/* ---------- 27. Footer ---------- */
.site-footer {
  padding-block: 3.5rem 2.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 0.7fr));
  gap: 2rem 3rem;
  align-items: start;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  max-width: 26rem;
}
.footer-brand p {
  color: var(--band-muted);
  font-size: var(--fs-small);
}
.footer-col .footer-title {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-col a {
  color: var(--band-muted);
  text-decoration: none;
  min-height: 2.5rem;
  display: inline-flex;
  align-items: center;
}
.footer-col a:hover {
  color: var(--band-fg);
  text-decoration: underline;
}
.footer-base {
  margin-top: 2.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--band-line);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  color: var(--band-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
}

/* Accessibility: light mode switch */
.a11y-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 2.75rem;
  padding: 0;
  border: 0;
  background: none;
  color: var(--band-fg);
  font: inherit;
  font-weight: 500;
  cursor: pointer;
}
.a11y-switch {
  position: relative;
  flex: none;
  width: 44px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid var(--band-line);
  background: rgba(255, 255, 255, 0.12);
  transition: background-color 0.15s ease;
}
.a11y-switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--band-fg);
  transition: transform 0.15s ease;
}
.a11y-toggle[aria-pressed="true"] .a11y-switch {
  background: var(--accent);
  border-color: var(--accent);
}
.a11y-toggle[aria-pressed="true"] .a11y-switch::after {
  transform: translateX(18px);
  background: var(--on-accent);
}
.a11y-note {
  color: var(--band-muted);
  font-size: 0.875rem;
  margin-top: 0.375rem;
  max-width: 22em;
}
.a11y-note + .a11y-toggle {
  margin-top: 0.75rem;
}
.a11y-toggle {
  text-align: left;
}

/* ---------- 28. Mobile call to action bar ---------- */
.mobile-cta {
  display: none;
}

/* ---------- 29. Responsive ---------- */
@media (max-width: 1100px) {
  .page-hero-dots {
    display: none;
  }
}

@media (max-width: 1024px) {
  .commitments ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .commitments li:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }
  .commitments li:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }
  .pain-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 2rem;
  }
  .contact-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .contact-aside {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .js .nav-toggle {
    display: inline-flex;
  }
  .js .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: var(--s-4);
    padding: 1rem max(1rem, env(safe-area-inset-right, 0px)) 1.5rem max(1rem, env(safe-area-inset-left, 0px));
    background: var(--band);
    border-bottom: 1px solid var(--band-line);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.25);
    display: none;
  }
  .js .nav-menu.is-open {
    display: flex;
  }
  .js .nav-links {
    flex-direction: column;
    gap: 0;
  }
  .js .nav-links a {
    width: 100%;
    min-height: 3.25rem;
    font-size: 1.1rem;
    border-bottom: 1px solid var(--band-line);
  }
  .js .nav-links a[aria-current="page"]::after {
    left: auto;
    right: 0;
    top: 50%;
    bottom: auto;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    transform: translateY(-50%);
  }
  .js .nav-menu .btn {
    width: 100%;
  }
  .js .theme-toggle {
    align-self: flex-start;
  }
  .site-nav {
    gap: 0.625rem;
  }
  .steps {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
  .steps li {
    padding: 0 0 1.75rem 2.5rem;
  }
  .steps li::before {
    top: 18px;
    bottom: 0;
    left: 6px;
    right: auto;
    width: 2px;
    height: auto;
  }
  .steps li:last-child {
    padding-bottom: 0;
  }
  .steps li:last-child::after {
    left: -2px;
  }
}

@media (max-width: 860px) {
  .hero-grid,
  .finder-panel,
  .split,
  .split-even,
  .faq-grid,
  .service-detail,
  .feature,
  .founder,
  .card-grid-2 {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero-art svg {
    max-width: 322px;
  }
  .faq-grid .section-head {
    position: static;
  }
  .page-hero-dots {
    display: none;
  }
  .founder-badge {
    max-width: 280px;
  }
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .mobile-cta {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    gap: 0.625rem;
    padding: 0.75rem max(1rem, env(safe-area-inset-right, 0px)) calc(0.75rem + env(safe-area-inset-bottom, 0px)) max(1rem, env(safe-area-inset-left, 0px));
    background: var(--band);
    border-top: 1px solid var(--band-line);
  }
  .mobile-cta .btn {
    flex: 1;
  }
  .has-mobile-cta {
    padding-bottom: calc(4.5rem + env(safe-area-inset-bottom, 0px));
  }
  .choice-grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .timeline > li {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: var(--s-4);
  }
  .timeline > li::before {
    left: 21px;
    top: 40px;
  }
  .timeline-dot {
    width: 44px;
    height: 44px;
    font-size: 0.85rem;
  }
  .timeline-body {
    padding-top: 0.25rem;
  }
  .progress-label {
    display: none;
  }
  .progress li.is-current .progress-label {
    display: block;
    white-space: nowrap;
  }
  .progress li:last-child.is-current .progress-label {
    align-self: flex-end;
  }
}

@media (max-width: 560px) {
  .commitments ul,
  .pain-grid,
  .term-list,
  .field-row,
  .choice-grid,
  .choice-grid-4,
  .timeline-facts,
  .contact-aside,
  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .commitments li,
  .commitments li + li {
    padding: 1.25rem 0;
    border-left: 0;
  }
  .commitments li + li {
    border-top: 1px solid var(--line);
  }
  .brand-sub,
  .brand-rule {
    display: none;
  }
  .review-group dl {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }
  .review-group dd {
    margin-bottom: 0.5rem;
  }
  .quote-nav .btn {
    flex: 1;
  }
  .quote-nav .spacer {
    display: none;
  }
}

/* ---------- 30. Motion preferences ----------
   The small script in each page's head sets data-bd-motion on <html>:
   "reduce" when the footer's Reduce motion switch is on, or when the device
   asks for reduced motion and the switch has not been used; "full" otherwise.
   Full: every animation plays.
   Reduce: fades, color, border and shadow changes, the scroll progress bar
   and the step track fill stay. Nothing rises, slides, lifts, scales,
   drifts or pulses, and the hero graphic shows already drawn. */
:root[data-bd-motion="reduce"] {
  scroll-behavior: auto;
}
/* Only gentle properties may change smoothly. Movement happens at once. */
:root[data-bd-motion="reduce"] *,
:root[data-bd-motion="reduce"] *::before,
:root[data-bd-motion="reduce"] *::after {
  transition-property: opacity, color, background-color, border-color, outline-color, text-decoration-color, box-shadow, fill, stroke, background-size, width, height !important;
}
/* Hero text, the finder panel and FAQ groups fade in instead of rising. */
@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
:root[data-bd-motion="reduce"] .hero-copy > *,
:root[data-bd-motion="reduce"] .page-hero-inner > *,
:root[data-bd-motion="reduce"] .finder-body.is-swapping,
:root[data-bd-motion="reduce"] .faq-group.is-shown {
  animation-name: fade-in;
}
/* The glow, the badge pulse and the hero graphic hold still, fully drawn. */
:root[data-bd-motion="reduce"] .hero::after,
:root[data-bd-motion="reduce"] .hero-badge-dot,
:root[data-bd-motion="reduce"] .g-path,
:root[data-bd-motion="reduce"] .hero-art .g-path,
:root[data-bd-motion="reduce"] .hero-art .g-green,
:root[data-bd-motion="reduce"] .hero-art .g-node circle,
:root[data-bd-motion="reduce"] .hero-art .g-end,
:root[data-bd-motion="reduce"] .hero-art .g-pulse {
  animation: none;
}
/* Hover keeps its color, border and shadow, without the lift or nudge. */
:root[data-bd-motion="reduce"] .btn:hover,
:root[data-bd-motion="reduce"] .btn:active,
:root[data-bd-motion="reduce"] .card:hover,
:root[data-bd-motion="reduce"] .card-link:hover,
:root[data-bd-motion="reduce"] .problem:hover,
:root[data-bd-motion="reduce"] .link-arrow:hover span[aria-hidden="true"],
:root[data-bd-motion="reduce"] .card-link:hover .link-arrow span {
  transform: none;
}
/* Scroll reveal fades in place. */
:root[data-bd-motion="reduce"].reveal-on [data-reveal] {
  transform: none;
}
/* The nav underline fades in instead of sliding. */
@media (min-width: 901px) {
  :root[data-bd-motion="reduce"] .nav-links a::after {
    transform: scaleX(1);
    opacity: 0;
  }
  :root[data-bd-motion="reduce"] .nav-links a:hover::after,
  :root[data-bd-motion="reduce"] .nav-links a[aria-current="page"]::after {
    opacity: 1;
  }
}
/* Hero doodles: a few still drawings, picked by main.js. */
:root[data-bd-motion="reduce"] .hero-doodles .dd {
  opacity: 0;
}
/* If scripts cannot run at all, the device setting still applies. */
@media (prefers-reduced-motion: reduce) {
  :root:not([data-bd-motion]) {
    scroll-behavior: auto;
  }
  :root:not([data-bd-motion]) *,
  :root:not([data-bd-motion]) *::before,
  :root:not([data-bd-motion]) *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* ---------- 32. Problem finder, richer version ---------- */
.finder-panel {
  position: relative;
  background-color: var(--surface-2);
  background-image: radial-gradient(circle, color-mix(in srgb, var(--fg) 14%, transparent) 1.5px, transparent 1.6px);
  background-size: 22px 22px;
  border: 1px solid var(--line);
}
.problems {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.625rem;
  margin-top: 0.25rem;
}
.problem {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: center;
  gap: 0.75rem;
  min-height: 4rem;
  padding: 0.75rem 0.875rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--fg);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.3;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.problem:hover {
  border-color: var(--accent-ink);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.problem-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-2);
  transition: background-color 0.15s ease;
}
.problem-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--accent-ink);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
/* Selected: the words turn light blue and the icon turns green. */
.problem-text,
.problem-icon svg {
  transition: color 0.2s ease, stroke 0.2s ease;
}
.problem[aria-pressed="true"] {
  color: var(--accent-ink);
  font-weight: 600;
  border-color: var(--accent-ink);
  box-shadow: 0 0 0 1px var(--accent-ink);
}
.problem[aria-pressed="true"]:hover {
  box-shadow: 0 0 0 1px var(--accent-ink), var(--shadow);
}
.problem[aria-pressed="true"] .problem-icon svg {
  stroke: var(--green);
  stroke-width: 2.2;
}
.finder-result {
  position: relative;
  overflow: hidden;
}
.finder-deco {
  position: absolute;
  right: -18px;
  bottom: -18px;
  width: 170px;
  height: 170px;
  opacity: 0.16;
  pointer-events: none;
}
.finder-deco-path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.finder-body {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  height: 100%;
}
.finder-body .btn {
  align-self: flex-start;
  margin-top: auto;
}
.finder-body.is-swapping {
  animation: swap-in 0.35s ease both;
}
@keyframes swap-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.before-after {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 24px minmax(0, 1fr);
  align-items: stretch;
  gap: 0.625rem;
}
.ba {
  border-radius: 12px;
  padding: 0.75rem 0.875rem;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  min-width: 0;
}
.ba p {
  font-size: 0.93rem;
  line-height: 1.45;
}
.ba-before {
  background: rgba(255, 255, 255, 0.06);
  border: 1px dashed var(--band-line);
}
.ba-before p {
  color: var(--band-muted);
}
.ba-after {
  background: rgba(0, 209, 255, 0.12);
  border: 1px solid rgba(0, 209, 255, 0.45);
}
.ba-after p {
  color: var(--band-fg);
}
.ba-label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--band-muted);
}
.ba-after .ba-label {
  color: var(--accent);
}
.ba-arrow {
  align-self: center;
  width: 24px;
  height: 24px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
@media (max-width: 560px) {
  .problems {
    grid-template-columns: minmax(0, 1fr);
  }
  .before-after {
    grid-template-columns: minmax(0, 1fr);
  }
  .ba-arrow {
    transform: rotate(90deg);
    justify-self: center;
  }
}

/* ---------- 33. Law office quote page ---------- */
.notice-inline {
  font-size: 0.95rem;
  line-height: 1.5;
  padding: 0.75rem 0.875rem;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: var(--surface-2);
  color: var(--fg);
}
.hero-switch {
  color: var(--band-muted);
  font-size: 0.98rem;
}
.hero-switch a {
  color: var(--accent);
  font-weight: 600;
  text-underline-offset: 3px;
}
.aside-card .ticks {
  font-size: 0.95rem;
}
.aside-card .link-arrow {
  align-self: flex-start;
}
.other-field {
  margin-top: 0.75rem;
  max-width: 420px;
}

/* ---------- 34. Header: logo at the far left, quote button at the far right ---------- */
.site-header .header-inner {
  max-width: none;
  padding-left: max(1.25rem, 2.5vw, env(safe-area-inset-left, 0px));
  padding-right: max(1.25rem, 2.5vw, env(safe-area-inset-right, 0px));
}
.btn-header {
  flex: none;
  min-height: 2.6rem;
  padding: 0 1.35rem;
  font-size: 0.95rem;
}
@media (max-width: 720px) {
  /* Phones already show a quote button in the bottom bar. */
  .has-mobile-cta .btn-header {
    display: none;
  }
}


/* ==========================================================================
   Upgrade layer: home hero, promise strip, new components, refined motion.
   ========================================================================== */

/* ---------- 35. Home hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: clip;
}
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.hero::before {
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.17) 1.4px, transparent 1.7px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(ellipse 100% 105% at 74% 45%, #000 0%, rgba(0,0,0,0.35) 45%, transparent 82%);
  mask-image: radial-gradient(ellipse 100% 105% at 74% 45%, #000 0%, rgba(0,0,0,0.35) 45%, transparent 82%);
}
.hero::after {
  inset: -12%;
  background: radial-gradient(circle at 78% 40%, rgba(0, 209, 255, 0.17), transparent 55%);
  animation: glow-drift 16s ease-in-out infinite alternate;
}
@keyframes glow-drift {
  from { transform: translate3d(-3%, 2%, 0) scale(1); }
  to { transform: translate3d(3%, -2%, 0) scale(1.08); }
}
.hero .wrap.hero-grid {
  max-width: calc(var(--max) + 360px);
  padding-left: max(1rem, 2.5vw, env(safe-area-inset-left, 0px));
  padding-right: max(1rem, 2.5vw, env(safe-area-inset-right, 0px));
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
}
.hero h1 {
  font-size: clamp(2.3rem, 5.2vw, 4.1rem);
  line-height: 1.05;
  max-width: 14.5em;
}
.hero-copy {
  position: relative;
  z-index: 1;
}
.hero-art-frame {
  width: 100%;
  max-width: 506px; /* 15% larger than the first 440px */
  aspect-ratio: 1 / 1;
}
.hero-art-frame > svg {
  display: block;
  overflow: visible;
}
@media (max-width: 860px) {
  .hero .wrap.hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-art-frame { max-width: 322px; }
  .hero::before { -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 85%, #000 0%, transparent 74%); mask-image: radial-gradient(ellipse 90% 60% at 50% 85%, #000 0%, transparent 74%); }
}

/* The promise badge: the first system is built before payment. */
.hero-badge {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  max-width: 34rem;
  padding: 0.9rem 1.1rem;
  border: 1px solid color-mix(in srgb, var(--band-green) 45%, transparent);
  border-radius: 14px;
  background: color-mix(in srgb, var(--band-green) 9%, transparent);
  color: var(--band-fg);
  font-size: 1.02rem;
  line-height: 1.4;
}
.hero-badge strong {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--band-green);
}
.hero-badge-dot {
  flex: none;
  width: 10px;
  height: 10px;
  margin-top: 0.42em;
  border-radius: 50%;
  background: var(--band-green);
  animation: badge-pulse 2.8s ease-out infinite;
}
@keyframes badge-pulse {
  0% { box-shadow: 0 0 0 0 rgba(57, 255, 20, 0.45); }
  70%, 100% { box-shadow: 0 0 0 12px rgba(57, 255, 20, 0); }
}
.hero-badge-sm {
  font-size: 0.98rem;
  padding: 0.65rem 0.9rem;
  max-width: 38rem;
}

/* Page load: the hero text rises in one line at a time. */
.hero-copy > *,
.page-hero-inner > * {
  animation: rise-in 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.hero-copy > :nth-child(2), .page-hero-inner > :nth-child(2) { animation-delay: 0.07s; }
.hero-copy > :nth-child(3), .page-hero-inner > :nth-child(3) { animation-delay: 0.14s; }
.hero-copy > :nth-child(4), .page-hero-inner > :nth-child(4) { animation-delay: 0.21s; }
.hero-copy > :nth-child(5), .page-hero-inner > :nth-child(5) { animation-delay: 0.28s; }
.hero-copy > :nth-child(6), .page-hero-inner > :nth-child(6) { animation-delay: 0.35s; }
@keyframes rise-in {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

/* Hero graphic: the line draws, each dot settles in, the green dot lights up,
   and a soft light travels the line now and then. */
.hero-art .g-path { animation: draw 2.8s cubic-bezier(0.45, 0, 0.25, 1) 0.3s both; }
.hero-art .g-green {
  transform-box: fill-box;
  transform-origin: center;
  animation: light-up 0.9s ease-out 3.1s both;
}
@keyframes light-up {
  0% { opacity: 0; transform: scale(0.75); filter: drop-shadow(0 0 0 rgba(57, 255, 20, 0)); }
  55% { opacity: 1; transform: scale(1); filter: drop-shadow(0 0 7px rgba(57, 255, 20, 0.6)); }
  100% { opacity: 1; transform: scale(1); filter: drop-shadow(0 0 0 rgba(57, 255, 20, 0)); }
}
.hero-art .g-node circle,
.hero-art .g-end {
  transform-box: fill-box;
  transform-origin: center;
  animation: node-settle 0.55s ease-out both;
}
.hero-art .g-node circle:nth-child(1) { animation-delay: 0.2s; }
.hero-art .g-node circle:nth-child(2) { animation-delay: 0.95s; }
.hero-art .g-node circle:nth-child(3) { animation-delay: 1.15s; }
.hero-art .g-node circle:nth-child(4) { animation-delay: 1.3s; }
.hero-art .g-node circle:nth-child(5) { animation-delay: 1.55s; }
.hero-art .g-node circle:nth-child(6) { animation-delay: 1.9s; }
.hero-art .g-end { animation-delay: 2.85s; }
@keyframes node-settle {
  from { opacity: 0; transform: scale(0.5); }
  to { opacity: 1; transform: scale(1); }
}
.hero-art .g-pulse {
  fill: none;
  stroke: #fff;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 0.07 1.07;
  stroke-dashoffset: 0.07;
  opacity: 0;
  animation: pulse-run 8s ease-in-out 5s infinite;
}
@keyframes pulse-run {
  0% { stroke-dashoffset: 0.07; opacity: 0; }
  4% { opacity: 0.5; }
  28% { opacity: 0.5; }
  32%, 100% { stroke-dashoffset: -1; opacity: 0; }
}

/* ---------- 36. Promise strip ---------- */
.commitments li.is-lead {
}
.commitments li.is-lead svg { stroke: var(--success); }
.commitments li.is-lead strong { color: var(--success); }
@media (max-width: 1024px) {
  .commitments li.is-lead { padding-left: 1rem; }
}

/* ---------- 37. Services finder on the home page ---------- */
.finder-section {
  scroll-margin-top: calc(var(--header-h) + 8px);
  /* A short bottom, so the law office section follows without a long empty stretch. */
  padding-block: clamp(3.5rem, 7vw, 6rem) clamp(2.25rem, 4vw, 3.25rem);
  background-color: var(--bg);
  background-image:
    linear-gradient(to bottom, var(--bg) 0%, transparent 22%, transparent 72%, var(--surface) 100%),
    radial-gradient(circle, color-mix(in srgb, var(--fg) 14%, transparent) 1.5px, transparent 1.7px);
  background-size: 100% 100%, 24px 24px;
  background-position: 0 0, center top;
}
.finder-section .finder-panel {
  background: none;
  border: 0;
  border-radius: 0;
  padding: 0;
}
.finder-section + .section-alt { border-top: 0; padding-top: clamp(3.25rem, 5vw, 4.5rem); }
.finder-body .btn { margin-top: 0; }
.finder-body .cta-row { margin-top: auto; }

/* ---------- 38. New content components ---------- */
.promise-band {
  background: var(--surface);
  border-block: 1px solid var(--line);
}
.promise-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(1.25rem, 4vw, 3rem);
  align-items: center;
}
.promise-inner h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.promise-inner .eyebrow { color: var(--success); margin-bottom: 0.5rem; }
@media (max-width: 760px) {
  .promise-inner { grid-template-columns: minmax(0, 1fr); }
}
.service-best {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.9rem 1.1rem;
  border-left: 3px solid var(--accent-ink);
  border-radius: 0 12px 12px 0;
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  max-width: 36em;
}
.service-best strong {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-ink);
  font-weight: 700;
}
.card > .pain-line {
  color: var(--fg);
  font-weight: 500;
  font-size: 0.98rem;
  padding-left: 0.75rem;
  border-left: 3px solid var(--line-strong);
}
.callout-wide { align-items: center; max-width: 52rem; }
.about-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem 1.5rem;
  margin: 0.25rem 0 0;
  padding: 1.1rem 0;
  border-block: 1px solid var(--line);
}
.about-facts dt {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-ink);
}
.about-facts dd { margin: 0.25rem 0 0; font-weight: 500; }
@media (max-width: 700px) {
  .about-facts { grid-template-columns: minmax(0, 1fr); }
}
.ask-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 3vw, 2rem);
  min-width: 0;
  box-shadow: var(--shadow);
}
.ask-card form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.ask-card .result h3 { font-size: 1.5rem; }
.aside-card-promise {
  border-color: color-mix(in srgb, var(--success) 55%, var(--line));
  background: color-mix(in srgb, var(--success) 8%, var(--surface));
}
.aside-card-promise h2 { color: var(--success); }
.contact-lines {
  margin-top: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  color: var(--band-muted);
  font-size: var(--fs-small);
}
.contact-line { font-size: 0.95rem; }
.faq-group.is-shown { animation: swap-in 0.35s ease both; }
.faq-grid .chips { margin-top: 0.5rem; }

/* ---------- 39. Header: frosted, shrinks a little once the page scrolls ---------- */
.site-header {
  background: color-mix(in srgb, var(--band) 90%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  transition: box-shadow 0.25s ease;
}
.site-header .header-inner { transition: min-height 0.25s ease; }
.site-header.is-scrolled .header-inner { min-height: 3.75rem; }
@supports (animation-timeline: scroll()) {
  .site-header::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--band-green));
    transform-origin: 0 50%;
    transform: scaleX(0);
    animation: scroll-progress linear both;
    animation-timeline: scroll(root block);
  }
  @keyframes scroll-progress { to { transform: scaleX(1); } }
}
@media (min-width: 901px) {
  .nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 6px;
    height: 2px;
    border-radius: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
  }
  .nav-links a:hover::after,
  .nav-links a[aria-current="page"]::after { transform: scaleX(1); }
}

/* ---------- 40. Interaction polish ---------- */
.btn-accent:hover { box-shadow: 0 10px 24px -10px color-mix(in srgb, var(--accent) 80%, transparent); }
.link-arrow span[aria-hidden="true"],
.card .link-arrow span { display: inline-block; transition: transform 0.2s ease; }
.link-arrow:hover span[aria-hidden="true"],
.card-link:hover .link-arrow span { transform: translateX(4px); }
.card {
  transition: border-color 0.2s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover {
  border-color: color-mix(in srgb, var(--accent-ink) 70%, var(--line));
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.service-panel, .aside-card { transition: border-color 0.2s ease; }
.service-panel:hover { border-color: var(--line-strong); }
.chip-list li { transition: border-color 0.2s ease, background-color 0.2s ease; }
.chip-list li:hover { border-color: var(--accent-ink); background: color-mix(in srgb, var(--accent) 10%, transparent); }

/* Scroll reveal: items rise and fade in, one after another within a group. */
.reveal-on [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: calc(var(--reveal-i, 0) * 80ms);
}
.reveal-on [data-reveal].is-in { opacity: 1; transform: none; }

/* Process timeline: the line and dots light up as each step scrolls into view. */
.timeline-dot { transition: background-color 0.4s ease, color 0.4s ease, box-shadow 0.4s ease; }
.timeline > li::after {
  content: "";
  position: absolute;
  left: 27px;
  top: 44px;
  bottom: 0;
  width: 2px;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.8s ease 0.15s;
}
.timeline > li:last-child::after { display: none; }
.timeline > li.is-reached::after { transform: scaleY(1); }
.js .timeline > li:not(.is-reached) .timeline-dot {
  background: var(--surface-2);
  color: var(--fg-muted);
}
.timeline > li.is-reached .timeline-dot {
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 22%, transparent);
}
@media (max-width: 720px) {
  .timeline > li::after { left: 21px; top: 40px; }
}

/* FAQ answers open smoothly where the browser supports it. */
@supports (interpolate-size: allow-keywords) {
  :root { interpolate-size: allow-keywords; }
  .faq-list details::details-content {
    block-size: 0;
    overflow: hidden;
    transition: block-size 0.3s ease, content-visibility 0.3s ease allow-discrete;
  }
  .faq-list details[open]::details-content { block-size: auto; }
  :root[data-bd-motion="reduce"] .faq-list details::details-content { transition: none; }
}

/* Page to page: a short cross fade in browsers that support it. It is only
   a fade, so it stays when motion is reduced. */
@view-transition { navigation: auto; }
::view-transition-old(root),
::view-transition-new(root) { animation-duration: 0.25s; }

/* Logo mark scales with the brand text */
.brand > .mark {
  width: 2.15rem;
  height: 2.15rem;
}


/* ---------- Hero background: a dot grid with straight line drawings of the systems we build ---------- */
.hero::before { display: none; }
.hero-doodles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}
.hero-doodles .dd path,
.hero-doodles .dd circle,
.hero-doodles .dd rect {
  fill: none;
  stroke: rgba(120, 220, 255, 0.22);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: miter;
  vector-effect: non-scaling-stroke;
}
@media (max-width: 860px) {
  .hero-doodles { opacity: 0.6; }
}
/* The doodles draw themselves only in full motion. */
:root[data-bd-motion="full"] .hero-doodles .dd { opacity: 0; animation: none; }
:root[data-bd-motion="full"] .hero-doodles .dd:not(.play) * { animation: none !important; }
:root[data-bd-motion="full"] .hero-doodles .dd.play { animation: dd-fade 27.5s linear 0s 1 both; }
:root[data-bd-motion="full"] .hero-doodles .dd.play * { animation-delay: 0s !important; animation-iteration-count: 1 !important; animation-fill-mode: both !important; }
:root[data-bd-motion="full"] .hero-doodles .dd path { stroke-dasharray: 1; stroke-dashoffset: 1; }
:root[data-bd-motion="full"] .hero-doodles .dd rect, :root[data-bd-motion="full"] .hero-doodles .dd circle { transform-box: fill-box; }
:root[data-bd-motion="full"] .hero-doodles .dd rect { transform-origin: 50% 100%; transform: scaleY(0); }
:root[data-bd-motion="full"] .hero-doodles .dd circle { transform-origin: 50% 50%; transform: scale(0); }
:root[data-bd-motion="full"] .hero-doodles .a-base { animation: dd-a-base 27.5s linear var(--d, 0s) infinite; }
:root[data-bd-motion="full"] .hero-doodles .a-b1 { animation: dd-a-b1 27.5s linear var(--d, 0s) infinite; }
:root[data-bd-motion="full"] .hero-doodles .a-b2 { animation: dd-a-b2 27.5s linear var(--d, 0s) infinite; }
:root[data-bd-motion="full"] .hero-doodles .a-b3 { animation: dd-a-b3 27.5s linear var(--d, 0s) infinite; }
:root[data-bd-motion="full"] .hero-doodles .b-n1 { animation: dd-b-n1 27.5s linear var(--d, 0s) infinite; }
:root[data-bd-motion="full"] .hero-doodles .b-line { animation: dd-b-line 27.5s linear var(--d, 0s) infinite; }
:root[data-bd-motion="full"] .hero-doodles .b-n2 { animation: dd-b-n2 27.5s linear var(--d, 0s) infinite; }
:root[data-bd-motion="full"] .hero-doodles .b-n3 { animation: dd-b-n3 27.5s linear var(--d, 0s) infinite; }
:root[data-bd-motion="full"] .hero-doodles .b-n4 { animation: dd-b-n4 27.5s linear var(--d, 0s) infinite; }
:root[data-bd-motion="full"] .hero-doodles .c-box { animation: dd-c-box 27.5s linear var(--d, 0s) infinite; }
:root[data-bd-motion="full"] .hero-doodles .c-head { animation: dd-c-head 27.5s linear var(--d, 0s) infinite; }
:root[data-bd-motion="full"] .hero-doodles .c-v1 { animation: dd-c-v1 27.5s linear var(--d, 0s) infinite; }
:root[data-bd-motion="full"] .hero-doodles .c-v2 { animation: dd-c-v2 27.5s linear var(--d, 0s) infinite; }
:root[data-bd-motion="full"] .hero-doodles .p-axes { animation: dd-p-axes 27.5s linear var(--d, 0s) infinite; }
:root[data-bd-motion="full"] .hero-doodles .p-d0 { animation: dd-p-d0 27.5s linear var(--d, 0s) infinite; }
:root[data-bd-motion="full"] .hero-doodles .p-d1 { animation: dd-p-d1 27.5s linear var(--d, 0s) infinite; }
:root[data-bd-motion="full"] .hero-doodles .p-d2 { animation: dd-p-d2 27.5s linear var(--d, 0s) infinite; }
:root[data-bd-motion="full"] .hero-doodles .p-d3 { animation: dd-p-d3 27.5s linear var(--d, 0s) infinite; }
:root[data-bd-motion="full"] .hero-doodles .p-d4 { animation: dd-p-d4 27.5s linear var(--d, 0s) infinite; }
:root[data-bd-motion="full"] .hero-doodles .p-d5 { animation: dd-p-d5 27.5s linear var(--d, 0s) infinite; }
:root[data-bd-motion="full"] .hero-doodles .e-page { animation: dd-e-page 27.5s linear var(--d, 0s) infinite; }
:root[data-bd-motion="full"] .hero-doodles .e-fold { animation: dd-e-fold 27.5s linear var(--d, 0s) infinite; }
:root[data-bd-motion="full"] .hero-doodles .e-l1 { animation: dd-e-l1 27.5s linear var(--d, 0s) infinite; }
:root[data-bd-motion="full"] .hero-doodles .e-l2 { animation: dd-e-l2 27.5s linear var(--d, 0s) infinite; }
:root[data-bd-motion="full"] .hero-doodles .f-n1 { animation: dd-f-n1 27.5s linear var(--d, 0s) infinite; }
:root[data-bd-motion="full"] .hero-doodles .f-line { animation: dd-f-line 27.5s linear var(--d, 0s) infinite; }
:root[data-bd-motion="full"] .hero-doodles .f-n2 { animation: dd-f-n2 27.5s linear var(--d, 0s) infinite; }
:root[data-bd-motion="full"] .hero-doodles .f-n3 { animation: dd-f-n3 27.5s linear var(--d, 0s) infinite; }
:root[data-bd-motion="full"] .hero-doodles .g-b0 { animation: dd-g-b0 27.5s linear var(--d, 0s) infinite; }
:root[data-bd-motion="full"] .hero-doodles .g-t0 { animation: dd-g-t0 27.5s linear var(--d, 0s) infinite; }
:root[data-bd-motion="full"] .hero-doodles .g-l0 { animation: dd-g-l0 27.5s linear var(--d, 0s) infinite; }
:root[data-bd-motion="full"] .hero-doodles .g-b1 { animation: dd-g-b1 27.5s linear var(--d, 0s) infinite; }
:root[data-bd-motion="full"] .hero-doodles .g-t1 { animation: dd-g-t1 27.5s linear var(--d, 0s) infinite; }
:root[data-bd-motion="full"] .hero-doodles .g-l1 { animation: dd-g-l1 27.5s linear var(--d, 0s) infinite; }
:root[data-bd-motion="full"] .hero-doodles .g-b2 { animation: dd-g-b2 27.5s linear var(--d, 0s) infinite; }
:root[data-bd-motion="full"] .hero-doodles .g-l2 { animation: dd-g-l2 27.5s linear var(--d, 0s) infinite; }
:root[data-bd-motion="full"] .hero-doodles .i-line { animation: dd-i-line 27.5s linear var(--d, 0s) infinite; }
:root[data-bd-motion="full"] .hero-doodles .i-t0 { animation: dd-i-t0 27.5s linear var(--d, 0s) infinite; }
:root[data-bd-motion="full"] .hero-doodles .i-t1 { animation: dd-i-t1 27.5s linear var(--d, 0s) infinite; }
:root[data-bd-motion="full"] .hero-doodles .i-t2 { animation: dd-i-t2 27.5s linear var(--d, 0s) infinite; }
:root[data-bd-motion="full"] .hero-doodles .i-t3 { animation: dd-i-t3 27.5s linear var(--d, 0s) infinite; }
:root[data-bd-motion="full"] .hero-doodles .r-line { animation: dd-r-line 27.5s linear var(--d, 0s) infinite; }
:root[data-bd-motion="full"] .hero-doodles .r-n1 { animation: dd-r-n1 27.5s linear var(--d, 0s) infinite; }
:root[data-bd-motion="full"] .hero-doodles .r-n2 { animation: dd-r-n2 27.5s linear var(--d, 0s) infinite; }
:root[data-bd-motion="full"] .hero-doodles .r-n3 { animation: dd-r-n3 27.5s linear var(--d, 0s) infinite; }
:root[data-bd-motion="full"] .hero-doodles .s-l1 { animation: dd-s-l1 27.5s linear var(--d, 0s) infinite; }
:root[data-bd-motion="full"] .hero-doodles .s-box { animation: dd-s-box 27.5s linear var(--d, 0s) infinite; }
:root[data-bd-motion="full"] .hero-doodles .s-l2 { animation: dd-s-l2 27.5s linear var(--d, 0s) infinite; }
:root[data-bd-motion="full"] .hero-doodles .s-n1 { animation: dd-s-n1 27.5s linear var(--d, 0s) infinite; }
:root[data-bd-motion="full"] .hero-doodles .s-n2 { animation: dd-s-n2 27.5s linear var(--d, 0s) infinite; }
@keyframes dd-fade { 0% { opacity: 0; } 1% { opacity: 1; } 64% { opacity: 1; } 74% { opacity: 0; } 100% { opacity: 0; } }
@keyframes dd-a-base { 0%, 0.909% { stroke-dashoffset: 1; } 4.545%, 100% { stroke-dashoffset: 0; } }
@keyframes dd-a-b1 { 0%, 4.545% { transform: scaleY(0); } 9.091%, 100% { transform: scaleY(1); } }
@keyframes dd-a-b2 { 0%, 6.818% { transform: scaleY(0); } 12.273%, 100% { transform: scaleY(1); } }
@keyframes dd-a-b3 { 0%, 9.091% { transform: scaleY(0); } 15.909%, 100% { transform: scaleY(1); } }
@keyframes dd-b-n1 { 0%, 0.909% { transform: scale(0); } 2.727%, 100% { transform: scale(1); } }
@keyframes dd-b-line { 0%, 2.727% { stroke-dashoffset: 1; } 13.636%, 100% { stroke-dashoffset: 0; } }
@keyframes dd-b-n2 { 0%, 6.818% { transform: scale(0); } 8.636%, 100% { transform: scale(1); } }
@keyframes dd-b-n3 { 0%, 11.136% { transform: scale(0); } 12.955%, 100% { transform: scale(1); } }
@keyframes dd-b-n4 { 0%, 13.636% { transform: scale(0); } 15.455%, 100% { transform: scale(1); } }
@keyframes dd-c-box { 0%, 0.909% { stroke-dashoffset: 1; } 7.273%, 100% { stroke-dashoffset: 0; } }
@keyframes dd-c-head { 0%, 7.273% { stroke-dashoffset: 1; } 9.545%, 100% { stroke-dashoffset: 0; } }
@keyframes dd-c-v1 { 0%, 9.545% { stroke-dashoffset: 1; } 11.364%, 100% { stroke-dashoffset: 0; } }
@keyframes dd-c-v2 { 0%, 11.364% { stroke-dashoffset: 1; } 13.182%, 100% { stroke-dashoffset: 0; } }
@keyframes dd-p-axes { 0%, 0.909% { stroke-dashoffset: 1; } 5.455%, 100% { stroke-dashoffset: 0; } }
@keyframes dd-p-d0 { 0%, 5.455% { transform: scale(0); } 6.818%, 100% { transform: scale(1); } }
@keyframes dd-p-d1 { 0%, 6.818% { transform: scale(0); } 8.182%, 100% { transform: scale(1); } }
@keyframes dd-p-d2 { 0%, 8.182% { transform: scale(0); } 9.545%, 100% { transform: scale(1); } }
@keyframes dd-p-d3 { 0%, 9.545% { transform: scale(0); } 10.909%, 100% { transform: scale(1); } }
@keyframes dd-p-d4 { 0%, 10.909% { transform: scale(0); } 12.273%, 100% { transform: scale(1); } }
@keyframes dd-p-d5 { 0%, 12.273% { transform: scale(0); } 13.636%, 100% { transform: scale(1); } }
@keyframes dd-e-page { 0%, 0.909% { stroke-dashoffset: 1; } 9.091%, 100% { stroke-dashoffset: 0; } }
@keyframes dd-e-fold { 0%, 9.091% { stroke-dashoffset: 1; } 10.909%, 100% { stroke-dashoffset: 0; } }
@keyframes dd-e-l1 { 0%, 10.909% { stroke-dashoffset: 1; } 13.636%, 100% { stroke-dashoffset: 0; } }
@keyframes dd-e-l2 { 0%, 13.636% { stroke-dashoffset: 1; } 16.364%, 100% { stroke-dashoffset: 0; } }
@keyframes dd-f-n1 { 0%, 0.909% { transform: scale(0); } 2.727%, 100% { transform: scale(1); } }
@keyframes dd-f-line { 0%, 2.727% { stroke-dashoffset: 1; } 9.091%, 100% { stroke-dashoffset: 0; } }
@keyframes dd-f-n2 { 0%, 5.909% { transform: scale(0); } 7.727%, 100% { transform: scale(1); } }
@keyframes dd-f-n3 { 0%, 9.091% { transform: scale(0); } 10.909%, 100% { transform: scale(1); } }
@keyframes dd-g-b0 { 0%, 0.909% { stroke-dashoffset: 1; } 2.727%, 100% { stroke-dashoffset: 0; } }
@keyframes dd-g-t0 { 0%, 2.727% { stroke-dashoffset: 1; } 4.545%, 100% { stroke-dashoffset: 0; } }
@keyframes dd-g-l0 { 0%, 4.545% { stroke-dashoffset: 1; } 7.273%, 100% { stroke-dashoffset: 0; } }
@keyframes dd-g-b1 { 0%, 7.273% { stroke-dashoffset: 1; } 9.091%, 100% { stroke-dashoffset: 0; } }
@keyframes dd-g-t1 { 0%, 9.091% { stroke-dashoffset: 1; } 10.909%, 100% { stroke-dashoffset: 0; } }
@keyframes dd-g-l1 { 0%, 10.909% { stroke-dashoffset: 1; } 13.636%, 100% { stroke-dashoffset: 0; } }
@keyframes dd-g-b2 { 0%, 13.636% { stroke-dashoffset: 1; } 15.455%, 100% { stroke-dashoffset: 0; } }
@keyframes dd-g-l2 { 0%, 15.455% { stroke-dashoffset: 1; } 18.182%, 100% { stroke-dashoffset: 0; } }
@keyframes dd-i-line { 0%, 0.909% { stroke-dashoffset: 1; } 9.091%, 100% { stroke-dashoffset: 0; } }
@keyframes dd-i-t0 { 0%, 0.909% { stroke-dashoffset: 1; } 2.273%, 100% { stroke-dashoffset: 0; } }
@keyframes dd-i-t1 { 0%, 3.636% { stroke-dashoffset: 1; } 5.0%, 100% { stroke-dashoffset: 0; } }
@keyframes dd-i-t2 { 0%, 6.364% { stroke-dashoffset: 1; } 7.727%, 100% { stroke-dashoffset: 0; } }
@keyframes dd-i-t3 { 0%, 9.091% { stroke-dashoffset: 1; } 10.455%, 100% { stroke-dashoffset: 0; } }
@keyframes dd-r-line { 0%, 0.909% { stroke-dashoffset: 1; } 10.909%, 100% { stroke-dashoffset: 0; } }
@keyframes dd-r-n1 { 0%, 4.545% { transform: scale(0); } 6.364%, 100% { transform: scale(1); } }
@keyframes dd-r-n2 { 0%, 8.636% { transform: scale(0); } 10.455%, 100% { transform: scale(1); } }
@keyframes dd-r-n3 { 0%, 10.909% { transform: scale(0); } 12.727%, 100% { transform: scale(1); } }
@keyframes dd-s-l1 { 0%, 0.909% { stroke-dashoffset: 1; } 4.545%, 100% { stroke-dashoffset: 0; } }
@keyframes dd-s-box { 0%, 4.545% { stroke-dashoffset: 1; } 6.818%, 100% { stroke-dashoffset: 0; } }
@keyframes dd-s-l2 { 0%, 6.818% { stroke-dashoffset: 1; } 10.455%, 100% { stroke-dashoffset: 0; } }
@keyframes dd-s-n1 { 0%, 0.909% { transform: scale(0); } 2.727%, 100% { transform: scale(1); } }
@keyframes dd-s-n2 { 0%, 10.455% { transform: scale(0); } 12.273%, 100% { transform: scale(1); } }

/* ---------- Finder: the problem list fills the full height beside the result panel ---------- */
@media (min-width: 861px) {
  .finder-section .finder-ask { display: flex; }
  .finder-section .problems {
    flex: 1;
    grid-template-columns: minmax(0, 1fr);
    grid-auto-rows: 1fr;
    gap: 0.75rem;
    margin-top: 0;
  }
  .finder-section .problem { min-height: 0; }
}

/* ---------- Home law section: the term list matches the height of the text beside it ---------- */
@media (min-width: 861px) {
  #law-offices .term-list {
    align-self: stretch;
    grid-template-columns: minmax(0, 1fr);
    grid-auto-rows: 1fr;
  }
  #law-offices .term-list > div { justify-content: center; padding-block: 0.85rem; }
}

/* ---------- Founder card: logo mark sits in the top right corner, away from the face and the name ---------- */
.founder-badge {
  justify-content: flex-end;
  gap: 0.85rem;
}
.founder-badge .mark {
  position: absolute;
  right: 1.25rem;
  top: 1.25rem;
  bottom: auto;
  width: 44px;
  height: 44px;
}

/* ---------- Legal references page ---------- */
.ref-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 2.5vw, 1.75rem);
}
.ref-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.ref-card h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); line-height: 1.2; }
.ref-card .link-arrow { margin-top: auto; }
.ref-meta { margin: 0; display: grid; gap: 0.6rem; }
.ref-meta div { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); gap: 0.75rem; }
.ref-meta dt {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-ink);
  padding-top: 0.2rem;
}
.ref-meta dd { margin: 0; }
@media (max-width: 860px) {
  .ref-grid { grid-template-columns: minmax(0, 1fr); }
  .ref-meta div { grid-template-columns: minmax(0, 1fr); gap: 0.15rem; }
}

/* ---------- Hero background fades to plain navy at the logo divider, so only text sits at the far left ---------- */
.hero-doodles {
  -webkit-mask-image: linear-gradient(to right, transparent calc(max(20px, 2.5vw) + 99px), #000 calc(max(20px, 2.5vw) + 99px + 170px));
  mask-image: linear-gradient(to right, transparent calc(max(20px, 2.5vw) + 99px), #000 calc(max(20px, 2.5vw) + 99px + 170px));
}

/* ---------- 41. Polish added November 9, 2026 ----------
   Every effect here plays in full motion. With reduced motion (section 30)
   it fades, holds still, or stays off, as noted. */

/* Home headline: one plain sentence at full size. */
.hero h1.hero-title {
  font-size: clamp(2.2rem, 4.6vw, 3.7rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.05;
  max-width: 15em;
  color: var(--band-fg);
}
.hero h1.hero-title .hl-green { color: var(--band-green); }
.lead-line { display: block; }
/* While the words rotate, "for" stays on the same line as them. */
.rotate-group:has(.rotator-words) { white-space: nowrap; }

/* Rotating words in the hero lead. main.js swaps in the two words in full
   motion; otherwise the full phrase stays as written. */
.rotator-words {
  display: inline-grid;
  vertical-align: bottom;
  color: var(--band-fg);
  font-weight: 600;
}
.rotator-words > span {
  grid-area: 1 / 1;
  white-space: nowrap;
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.rotator-words > span:not(.is-on) {
  opacity: 0;
  transform: translateY(0.45em);
}

/* Back to top: appears after scrolling, with a ring that fills as you read. */
.to-top {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right, 0px));
  bottom: max(1rem, env(safe-area-inset-bottom, 0px));
  z-index: 45;
  width: 3rem;
  height: 3rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--band) 90%, transparent);
  color: var(--band-fg);
  box-shadow: 0 10px 24px -12px rgba(0, 0, 0, 0.6);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s linear 0.25s, color 0.15s ease;
}
.to-top.is-shown {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s, color 0.15s ease;
}
.to-top:hover { color: var(--accent); }
.to-top:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.to-top svg { display: block; }
.to-top .to-top-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.to-top-ring circle { fill: none; stroke-width: 2.5; }
.to-top-ring .ring-track { stroke: var(--band-line); }
.to-top-ring .ring-fill {
  stroke: var(--accent);
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: calc(1 - var(--read, 0));
}
.to-top-arrow { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 720px) {
  .has-mobile-cta .to-top { bottom: calc(5.25rem + env(safe-area-inset-bottom, 0px)); }
}
:root[data-bd-motion="reduce"] .to-top { transform: none; }

/* "On this page" menu on long pages. Wide screens: a column in the left
   margin. Medium screens: a rail of dots whose names show on hover or focus.
   Phones and tablets: not shown. */
[data-page-toc] > section[id] { scroll-margin-top: calc(var(--header-h) + 1rem); }
.page-toc { display: none; }
@media (min-width: 1340px) {
  .page-toc {
    display: block;
    position: fixed;
    z-index: 30;
    top: calc(var(--header-h) + 2rem);
    left: 0.75rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0s linear 0.3s;
  }
  .page-toc.is-shown { opacity: 1; visibility: visible; transition: opacity 0.3s ease, visibility 0s; }
  .page-toc-title {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
  .page-toc ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; }
  .page-toc a {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.625rem;
    min-height: 1.5rem;
    color: var(--fg-muted);
    text-decoration: none;
    font-size: 0.875rem;
    line-height: 1.3;
    transition: color 0.2s ease;
  }
  .page-toc a::before {
    content: "";
    flex: none;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    border: 1.5px solid currentColor;
    transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  }
  .page-toc a:hover { color: var(--fg); }
  .page-toc a[aria-current="true"] { color: var(--accent-ink); }
  .page-toc a[aria-current="true"]::before {
    background: var(--accent-ink);
    border-color: var(--accent-ink);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent);
  }
  /* The rail: each name shows as a small label beside its dot. */
  .page-toc-name {
    position: absolute;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    white-space: nowrap;
    padding: 0.25rem 0.625rem;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--line);
    color: var(--fg);
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
  }
  .page-toc a:hover .page-toc-name,
  .page-toc a:focus-visible .page-toc-name { opacity: 1; }
}
@media (min-width: 1720px) {
  .page-toc {
    left: max(1rem, calc((100vw - var(--max)) / 2 - 15rem));
    width: 13rem;
  }
  .page-toc-title {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
    margin: 0 0 0.75rem;
    font-family: var(--font-mono);
    font-size: var(--fs-label);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--fg-muted);
  }
  .page-toc-name {
    position: static;
    transform: none;
    white-space: normal;
    padding: 0;
    border: 0;
    background: none;
    box-shadow: none;
    color: inherit;
    opacity: 1;
  }
}

/* Spotlight: a soft cyan glow follows the mouse across cards and the
   finder's challenge buttons. Full motion and mouse only. */
@media (hover: hover) and (pointer: fine) {
  :root[data-bd-motion="full"] .card.is-lit,
  :root[data-bd-motion="full"] .problem.is-lit {
    background-image: radial-gradient(circle 240px at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--accent) 7%, transparent), transparent 70%);
  }
}

/* Hero graph: tilts a few degrees toward the mouse. Set by main.js. */
.hero-art-frame {
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* Section dividers: a glowing trace along the seam between two sections.
   In the middle it steps up like the logo path, with a node at each turn
   and the green dot at the top. In full motion the step draws first, then
   the line runs out to both sides. Reduced motion: it fades in, drawn. */
.has-divider { position: relative; }
.sec-divider {
  position: absolute;
  z-index: 1;
  top: -14px;
  left: 0;
  right: 0;
  width: min(calc(100% - 2rem), 1120px);
  height: 28px;
  filter: drop-shadow(0 0 5px color-mix(in srgb, var(--accent) 45%, transparent));
  margin-inline: auto;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.sec-divider.is-drawn { opacity: 1; }
.sd-line {
  position: absolute;
  height: 2px;
  border-radius: 1px;
  transform: scaleX(0);
  transition: transform 1.2s cubic-bezier(0.3, 0.7, 0.2, 1) 0.5s;
}
.sd-left {
  left: 0;
  right: calc(50% + 40px);
  top: 21px;
  transform-origin: 100% 50%;
  background: linear-gradient(to left, var(--accent-ink), color-mix(in srgb, var(--accent-ink) 35%, transparent) 45%, transparent);
}
.sd-right {
  left: calc(50% + 40px);
  right: 0;
  top: 5px;
  transform-origin: 0 50%;
  background: linear-gradient(to right, var(--accent-ink), color-mix(in srgb, var(--accent-ink) 35%, transparent) 45%, transparent);
}
.sec-divider.is-drawn .sd-line { transform: scaleX(1); }
.sd-step {
  position: absolute;
  left: calc(50% - 40px);
  top: 0;
  width: 80px;
  height: 28px;
  overflow: visible;
}
.sd-step path {
  fill: none;
  stroke: var(--accent-ink);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 0.55s ease;
}
.sec-divider.is-drawn .sd-step path { stroke-dashoffset: 0; }
.sd-step circle {
  fill: var(--accent-ink);
  transform-box: fill-box;
  transform-origin: center;
  transform: scale(0);
  transition: transform 0.35s ease 0.3s;
}
.sd-step .sd-green { fill: var(--green); transition-delay: 1.2s; }
.sec-divider.is-drawn .sd-step circle { transform: scale(1); }
:root[data-bd-motion="reduce"] .sd-line { transform: scaleX(1); }
:root[data-bd-motion="reduce"] .sd-step path { stroke-dashoffset: 0; }
:root[data-bd-motion="reduce"] .sd-step circle { transform: none; }

/* Recommended solution panel: a cyan light runs once around its edge when
   a new challenge is picked. Off with reduced motion. */
@property --trace {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}
.finder-result::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2px;
  background: conic-gradient(from var(--trace), transparent 0deg, transparent 290deg, var(--accent) 345deg, transparent 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: 0;
  pointer-events: none;
}
.finder-result.is-tracing::after {
  animation: trace-run 1.5s cubic-bezier(0.45, 0, 0.25, 1) 1 both;
}
@keyframes trace-run {
  0% { --trace: 0deg; opacity: 0; }
  12% { opacity: 1; }
  82% { opacity: 1; }
  100% { --trace: 360deg; opacity: 0; }
}
:root[data-bd-motion="reduce"] .finder-result.is-tracing::after { animation: none; }

