/* ============================================================
   FIRM UPGRADE — Design System v2 "Modern Heritage"
   Palette: warm paper / ink / forest green / brass
   Type: Source Serif 4 (display serif) + Inter (body)
   ============================================================ */

:root {
  --paper: #faf7f2;
  --bg-white: #ffffff;
  --ink: #20261f;
  --muted: #5d675c;
  --muted-light: #a9b6a6;
  --green: #1e4d3b;
  --green-hover: #163d2e;
  --green-950: #0d1b14;
  --green-900: #122419;
  --green-850: #162b1f;
  --green-800: #1b3628;
  --sage: #e9ede2;
  --sage-deep: #dde4d3;
  --brass: #b28a3e;
  --brass-text: #8a691f;
  --brass-light: #d6bc82;
  --cream: #f3ecdd;
  --line: #e5dfd2;
  --line-dark: rgba(243, 236, 221, 0.14);
  --card-dark: rgba(243, 236, 221, 0.05);
  --card-dark-hover: rgba(243, 236, 221, 0.09);
  --shadow-sm: 0 1px 3px rgba(45, 42, 32, 0.07);
  --shadow-md: 0 10px 28px -12px rgba(45, 42, 32, 0.18);
  --shadow-lg: 0 26px 50px -22px rgba(45, 42, 32, 0.26);
  --radius: 10px;
  --radius-lg: 16px;
  --font-display: "Source Serif 4", "Source Serif 4 Fallback", Georgia, "Times New Roman", serif;
  --font-body: "Inter", "Inter Fallback", -apple-system, "Segoe UI", Arial, sans-serif;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-decoration: none; transition: color 0.2s var(--ease); }
a:hover { color: var(--brass-text); }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.14;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.5rem, 5.2vw, 4rem); }
h2 { font-size: clamp(1.85rem, 3.4vw, 2.6rem); }
h3 { font-size: clamp(1.25rem, 2.1vw, 1.5rem); font-weight: 600; }
h4 { font-size: 1.12rem; font-weight: 600; }
p { margin: 0 0 1.2em; }
:focus-visible { outline: 3px solid var(--brass); outline-offset: 2px; border-radius: 3px; }
::selection { background: var(--green); color: var(--cream); }

.container { width: min(1200px, 92%); margin-inline: auto; }
.container--wide { width: min(1360px, 94%); margin-inline: auto; }
.container--narrow { width: min(860px, 92%); margin-inline: auto; }

section { position: relative; }
.section { padding: clamp(4.5rem, 9vw, 7.5rem) 0; }
.section--dark { background: var(--green-900); color: var(--sage); }
.section--dark h2, .section--dark h3, .section--dark h4 { color: var(--cream); }
.section--darker { background: var(--green-950); color: var(--sage); }
.section--darker h2, .section--darker h3, .section--darker h4 { color: var(--cream); }
.section--light { background: var(--bg-white); }
.section--flush-top { padding-top: 0; }

/* ---------- Eyebrow / headings ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass-text);
  margin-bottom: 1.1rem;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--brass);
}
.section--dark .eyebrow, .section--darker .eyebrow { color: var(--brass-light); }
.section--dark .eyebrow::before, .section--darker .eyebrow::before { background: var(--brass-light); }
.section-head { max-width: 780px; margin-bottom: clamp(2.4rem, 5vw, 3.6rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head .lead { font-size: 1.15rem; color: var(--muted); }
.section--dark .section-head .lead, .section--darker .section-head .lead { color: var(--muted-light); }
.grad-text { color: var(--brass-text); }
.section--dark .grad-text, .section--darker .grad-text, .hero .grad-text, .page-hero .grad-text { color: var(--brass-light); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.95rem 1.9rem;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
}
.btn svg { width: 16px; height: 16px; transition: transform 0.2s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn--primary { background: var(--green); color: var(--cream); box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--green-hover); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn--ghost { background: transparent; color: var(--cream); border-color: rgba(243, 236, 221, 0.4); }
.btn--ghost:hover { border-color: var(--brass-light); color: var(--brass-light); transform: translateY(-1px); }
.btn--ghost-dark { background: transparent; color: var(--green); border-color: rgba(30, 77, 59, 0.35); }
.btn--ghost-dark:hover { border-color: var(--green); background: var(--sage); transform: translateY(-1px); }
.btn--lg { padding: 1.15rem 2.3rem; font-size: 1rem; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease), padding 0.3s var(--ease);
  padding: 1.1rem 0;
  background: linear-gradient(rgba(13, 27, 20, 0.55), transparent);
}
.site-header.is-scrolled {
  background: rgba(13, 27, 20, 0.96);
  box-shadow: 0 8px 26px -14px rgba(10, 18, 12, 0.55);
  padding: 0.65rem 0;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.brand { display: flex; align-items: center; gap: 0.7rem; }
.brand svg.brand-mark { width: 42px; height: 42px; flex: none; }
.brand-text { font-family: var(--font-display); line-height: 1.05; }
.brand-text .b1 { display: block; font-weight: 600; font-size: 1.22rem; color: var(--cream); letter-spacing: 0.02em; }
.brand-text .b2 {
  display: block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.66rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--brass-light);
}
.main-nav { display: flex; align-items: center; gap: 0.4rem; }
.main-nav > ul { display: flex; align-items: center; gap: 0.2rem; list-style: none; margin: 0; padding: 0; }
.main-nav a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: rgba(243, 236, 221, 0.85);
  font-family: var(--font-body);
  font-size: 0.94rem;
  font-weight: 500;
  padding: 0.55rem 0.95rem;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}
.main-nav a:hover { color: var(--cream); background: rgba(243, 236, 221, 0.08); }
.nav-item-dd { position: relative; }
.nav-item-dd > a svg { width: 12px; height: 12px; opacity: 0.7; transition: transform 0.2s var(--ease); }
.nav-item-dd:hover > a svg, .nav-item-dd:focus-within > a svg { transform: rotate(180deg); }
.dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translate(-50%, 8px);
  min-width: 330px;
  background: var(--bg-white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 0.6rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease), visibility 0.22s;
  list-style: none;
  margin: 0;
}
.nav-item-dd:hover .dropdown, .nav-item-dd:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}
.dropdown a {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  color: var(--ink);
  padding: 0.7rem 0.85rem;
  border-radius: 8px;
}
.dropdown a:hover { background: var(--paper); color: var(--ink); }
.dropdown .dd-ic {
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--sage);
  display: grid;
  place-items: center;
}
.dropdown .dd-ic svg { width: 19px; height: 19px; stroke: var(--green); }
.dropdown .dd-t { font-weight: 600; font-size: 0.93rem; line-height: 1.3; display: block; }
.dropdown .dd-d { font-size: 0.8rem; color: var(--muted); line-height: 1.45; display: block; margin-top: 1px; }
.header-cta { display: flex; align-items: center; gap: 0.8rem; }
.header-cta .btn { padding: 0.72rem 1.4rem; font-size: 0.9rem; }
.header-cta .btn--primary { background: var(--brass); color: var(--green-950); }
.header-cta .btn--primary:hover { background: var(--brass-light); color: var(--green-950); }
.main-nav .nav-cta { display: none; } /* drawer-only CTA; desktop uses the header button */

/* Mobile nav */
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  width: 46px;
  height: 46px;
  border-radius: 8px;
  place-items: center;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--cream); margin: 5px auto; border-radius: 2px; transition: transform 0.25s var(--ease), opacity 0.2s; }
@media (max-width: 1020px) {
  .nav-toggle { display: grid; }
  .main-nav {
    position: fixed;
    inset: 0;
    background: var(--green-950);
    flex-direction: column;
    justify-content: flex-start;
    padding: 6.5rem 8% 3rem;
    transform: translateY(-100%);
    transition: transform 0.35s var(--ease);
    overflow-y: auto;
    z-index: -1;
  }
  body.nav-open .main-nav { transform: translateY(0); }
  body.nav-open { overflow: hidden; }
  /* spans are grid items (margins don't collapse), so the row pitch is
     2px bar + 5px + 5px = 12px — the bars must travel 12px to cross */
  body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(12px) rotate(45deg); }
  body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-12px) rotate(-45deg); }
  body.nav-open .site-header { background: var(--green-950); }
  /* The drawer is a negative-z child of the header, so it paints ABOVE the
     header's own background; without this, drawer content scrolling under the
     header collides with the brand text. The ::before re-covers the header band
     above the drawer (z:0), and brand/CTA are lifted above it (z:1). */
  body.nav-open .site-header::before { content: ""; position: absolute; inset: 0; background: var(--green-950); z-index: 0; }
  body.nav-open .brand, body.nav-open .header-cta { position: relative; z-index: 1; }
  .main-nav > ul { flex-direction: column; align-items: stretch; width: 100%; gap: 0.3rem; }
  .main-nav a { font-size: 1.15rem; padding: 0.8rem 0.4rem; }
  .dropdown {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    background: transparent;
    border: 0;
    min-width: 0;
    padding: 0 0 0 1rem;
  }
  .dropdown a { color: rgba(243, 236, 221, 0.82); }
  .dropdown a:hover { background: rgba(243, 236, 221, 0.06); color: var(--cream); }
  .dropdown .dd-d { color: var(--muted-light); }
  .dropdown .dd-ic { background: rgba(243, 236, 221, 0.1); }
  .dropdown .dd-ic svg { stroke: var(--brass-light); }
  .header-cta .btn--ghost { display: none; }
  .main-nav .nav-cta { display: block; margin-top: 1.4rem; }
  .main-nav .nav-cta .btn {
    display: flex;
    width: 100%;
    background: var(--brass);
    color: var(--green-950);
    font-size: 1rem;
    padding: 0.95rem 1.4rem;
  }
  .main-nav .nav-cta .btn:hover { background: var(--brass-light); color: var(--green-950); }
}

/* Below ~460px the header CTA can't fit on one line and pushes the burger
   off-canvas; the drawer CTA above takes over as the booking path. */
@media (max-width: 480px) {
  .header-cta .btn--primary { display: none; }
}

/* ---------- Hero (home) ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  color: var(--cream);
  background: var(--green-950);
  overflow: hidden;
  padding: 9.5rem 0 6rem;
}
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.62; }
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(13, 27, 20, 0.93) 25%, rgba(13, 27, 20, 0.55) 60%, rgba(13, 27, 20, 0.25) 100%),
    linear-gradient(to top, var(--green-950) 0%, transparent 34%);
}
.hero-inner { position: relative; z-index: 1; max-width: 760px; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: rgba(13, 27, 20, 0.55);
  border: 1px solid rgba(214, 188, 130, 0.5);
  color: var(--brass-light);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.45rem 1rem;
  border-radius: 100px;
  margin-bottom: 1.6rem;
}
.hero-badge svg { width: 15px; height: 15px; stroke: var(--brass-light); }
.hero h1 { color: #fff; margin-bottom: 1.2rem; }
.hero .lead { font-size: clamp(1.05rem, 1.7vw, 1.25rem); color: var(--sage); max-width: 640px; margin-bottom: 2.2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 3rem; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 1.6rem 2.6rem; align-items: center; }
.hero-proof .hp { display: flex; align-items: center; gap: 0.6rem; color: var(--muted-light); font-size: 0.9rem; }
.hero-proof .hp svg { width: 18px; height: 18px; stroke: var(--brass-light); flex: none; }

/* Interior page hero */
.page-hero {
  position: relative;
  background: var(--green-950);
  color: var(--cream);
  padding: 10.5rem 0 5.5rem;
  overflow: hidden;
}
.page-hero--img .page-hero-bg { position: absolute; inset: 0; }
.page-hero--img .page-hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.4; }
.page-hero--img .page-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(13, 27, 20, 0.95) 28%, rgba(13, 27, 20, 0.6) 70%, rgba(13, 27, 20, 0.4) 100%),
    linear-gradient(to top, var(--green-950), transparent 42%);
}
.page-hero .orb { display: none; }
.page-hero-inner { position: relative; z-index: 1; max-width: 800px; }
.page-hero h1 { color: #fff; }
.page-hero .lead { font-size: 1.18rem; color: var(--sage); max-width: 660px; }
.breadcrumbs { font-size: 0.85rem; color: var(--muted-light); margin-bottom: 1.4rem; }
.breadcrumbs a { color: var(--sage); }
.breadcrumbs a:hover { color: var(--brass-light); }
.breadcrumbs .sep { margin: 0 0.5rem; opacity: 0.5; }

/* ---------- Cards & grids ---------- */
.grid { display: grid; gap: 1.6rem; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
}

.card {
  background: var(--bg-white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}
.card:hover, .card:focus-within { transform: translateY(-2px); box-shadow: var(--shadow-lg); border-color: var(--sage-deep); }
.card-ic {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  background: var(--sage);
  display: grid;
  place-items: center;
  margin-bottom: 1.3rem;
}
.card-ic svg { width: 25px; height: 25px; stroke: var(--green); }
.card h3 { margin-bottom: 0.55rem; }
.card p { color: var(--muted); font-size: 0.97rem; margin-bottom: 0; }
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.92rem;
}
.card .card-link { margin-top: 1.1rem; }
.card-link svg { width: 15px; height: 15px; flex: none; transition: transform 0.2s var(--ease); }
.card-link:hover svg { transform: translateX(3px); }

/* Cards on dark sections */
.glass {
  background: var(--card-dark);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease);
}
.glass:hover, .glass:focus-within { transform: translateY(-2px); background: var(--card-dark-hover); border-color: rgba(214, 188, 130, 0.4); }
.glass h3, .glass h4 { color: var(--cream); }
.glass p { color: var(--muted-light); font-size: 0.97rem; margin-bottom: 0; }
.glass .card-ic { background: rgba(243, 236, 221, 0.08); }
.glass .card-ic svg { stroke: var(--brass-light); }
.glass .card-link { color: var(--brass-light); }

/* Bento */
.bento { display: grid; gap: 1.4rem; grid-template-columns: repeat(6, 1fr); }
.bento > * { grid-column: span 2; }
.bento .span-3 { grid-column: span 3; }
.bento .span-4 { grid-column: span 4; }
.bento .span-6 { grid-column: span 6; }
@media (max-width: 980px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .bento > *, .bento .span-3, .bento .span-4, .bento .span-6 { grid-column: span 2; }
}

/* ---------- Stats ---------- */
.stats-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
@media (max-width: 980px) { .stats-band { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .stats-band { grid-template-columns: 1fr; } }
.stat { text-align: left; padding: 1.8rem; border-radius: var(--radius-lg); background: var(--card-dark); border: 1px solid var(--line-dark); }
.stat .n {
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 4vw, 3.2rem);
  font-weight: 600;
  line-height: 1;
  color: var(--brass-light);
  display: block;
  margin-bottom: 0.5rem;
}
.stat .d { color: var(--sage); font-size: 0.93rem; line-height: 1.5; }
.stat .src { display: block; margin-top: 0.5rem; font-size: 0.74rem; color: var(--muted-light); }

/* ---------- Logo strip / platform tiles ---------- */
.logo-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: clamp(2rem, 5vw, 4rem); }
.logo-strip img { height: 34px; width: auto; opacity: 0.7; filter: grayscale(1); transition: opacity 0.2s, filter 0.2s; }
.logo-strip img:hover { opacity: 1; filter: none; }
.platform-tile {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--bg-white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.4rem;
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease);
}
.platform-tile:hover, .platform-tile:focus-within { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.platform-tile img { height: 30px; width: auto; max-width: 130px; object-fit: contain; filter: grayscale(1); opacity: 0.78; transition: filter 0.25s var(--ease), opacity 0.25s var(--ease); }
.platform-tile:hover img, .platform-tile:focus-within img { filter: none; opacity: 1; }
@media (hover: none) { .platform-tile img { filter: none; opacity: 1; } }
.platform-tile .pt-name { font-family: var(--font-body); font-weight: 600; font-size: 0.95rem; color: var(--ink); }

/* ---------- Split / feature rows ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.split-media { position: relative; }
.split-media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); width: 100%; }
.split-media::before {
  content: "";
  position: absolute;
  inset: -14px auto auto -14px;
  width: 38%;
  height: 38%;
  border: 1px solid var(--brass);
  border-radius: var(--radius-lg);
  opacity: 0.55;
  z-index: -1;
}
.split-media--glow::after { content: none; }
.check-list { list-style: none; padding: 0; margin: 1.4rem 0 0; display: grid; gap: 0.85rem; }
.check-list li { display: flex; gap: 0.8rem; align-items: flex-start; color: var(--muted); }
.section--dark .check-list li, .section--darker .check-list li { color: var(--muted-light); }
.check-list li strong { color: var(--ink); }
.section--dark .check-list li strong, .section--darker .check-list li strong { color: var(--cream); }
.check-list svg { flex: none; width: 22px; height: 22px; stroke: var(--green); margin-top: 2px; background: var(--sage); border-radius: 50%; padding: 3px; }
.section--dark .check-list svg, .section--darker .check-list svg { stroke: var(--brass-light); background: rgba(243, 236, 221, 0.09); }

/* ---------- Process / timeline ---------- */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; counter-reset: step; }
@media (max-width: 980px) { .process { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .process { grid-template-columns: 1fr; } }
.process .p-step { position: relative; padding: 2rem 1.6rem 1.8rem; border-radius: var(--radius-lg); background: var(--card-dark); border: 1px solid var(--line-dark); counter-increment: step; }
.process .p-step::before {
  content: "0" counter(step);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--brass-light);
  border: 1px solid rgba(214, 188, 130, 0.45);
  border-radius: 100px;
  padding: 0.3rem 0.85rem;
  display: inline-block;
  margin-bottom: 1.1rem;
}
.process .p-step h3 { font-size: 1.2rem; color: var(--cream); }
.process .p-step p { color: var(--muted-light); font-size: 0.94rem; margin: 0; }
.process--light .p-step { background: var(--bg-white); border-color: var(--line); box-shadow: var(--shadow-sm); }
.process--light .p-step h3 { color: var(--ink); }
.process--light .p-step p { color: var(--muted); }
.process--light .p-step::before { color: var(--brass-text); border-color: rgba(178, 138, 62, 0.45); }

/* ---------- Accordion (FAQ) ---------- */
.accordion { display: grid; gap: 0.9rem; }
.acc-item { border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-white); overflow: hidden; transition: box-shadow 0.25s var(--ease); }
.acc-item[open] { box-shadow: var(--shadow-md); }
.acc-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
}
.acc-item summary::-webkit-details-marker { display: none; }
.acc-item summary .acc-ic {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--sage);
  display: grid;
  place-items: center;
  transition: transform 0.25s var(--ease);
}
.acc-item summary .acc-ic svg { width: 15px; height: 15px; stroke: var(--green); }
.acc-item[open] summary .acc-ic { transform: rotate(45deg); }
.acc-body { padding: 0 1.5rem 1.4rem; color: var(--muted); font-size: 0.97rem; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; background: var(--green-950); color: var(--cream); text-align: center; padding: clamp(4.5rem, 9vw, 7rem) 0; }
.cta-band .cta-bg { position: absolute; inset: 0; }
.cta-band .cta-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.85; }
.cta-band .cta-bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(13, 27, 20, 0.25), rgba(13, 27, 20, 0.66)); }
.cta-band .container { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; font-size: clamp(2rem, 4.2vw, 3.1rem); max-width: 800px; margin-inline: auto; }
.cta-band p { color: var(--sage); max-width: 620px; margin: 0 auto 2.2rem; font-size: 1.12rem; }
.cta-band .hero-actions { justify-content: center; margin-bottom: 0; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.form-field { display: flex; flex-direction: column; gap: 0.4rem; }
.form-field--full { grid-column: 1 / -1; }
.form-field label { font-family: var(--font-body); font-weight: 600; font-size: 0.88rem; }
.form-field input, .form-field select, .form-field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  background: var(--bg-white);
  color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(30, 77, 59, 0.12);
}
.form-note { font-size: 0.83rem; color: var(--muted); }
.form-success {
  background: var(--sage);
  border: 1px solid var(--sage-deep);
  color: var(--green-hover);
  border-radius: var(--radius);
  padding: 1.2rem 1.5rem;
  margin-bottom: 1.5rem;
}

/* ---------- Footer ---------- */
.site-footer { background: var(--green-950); color: var(--muted-light); font-size: 0.94rem; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 2.5rem; padding: 4.5rem 0 3rem; border-bottom: 1px solid var(--line-dark); }
@media (max-width: 980px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-top { grid-template-columns: 1fr; } }
.footer-brand p { color: var(--muted-light); max-width: 320px; margin-top: 1rem; }
.site-footer h4 { color: var(--cream); font-family: var(--font-body); font-size: 0.88rem; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 1.2rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.65rem; }
.site-footer ul a { color: var(--muted-light); }
.site-footer ul a:hover { color: var(--brass-light); }
.footer-cert {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: 1.4rem;
  border: 1px solid rgba(214, 188, 130, 0.35);
  border-radius: 10px;
  padding: 0.75rem 1.1rem;
  color: var(--brass-light);
  font-size: 0.85rem;
}
.footer-cert svg { width: 22px; height: 22px; stroke: var(--brass-light); flex: none; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding: 1.6rem 0; font-size: 0.83rem; color: var(--muted-light); }
.footer-bottom a { color: var(--sage); }
.footer-bottom a:hover { color: var(--brass-light); }

/* ---------- Reveal animations ---------- */
/* Hidden only when JS is running (html.js, set inline in <head>) — without
   JS every block is simply visible. */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.65s var(--ease), transform 0.65s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }
.reveal-d4 { transition-delay: 0.32s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .js .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: 0.001s !important; transition-duration: 0.001s !important; }
}

/* ---------- Utility ---------- */
.badge-row { display: flex; flex-wrap: wrap; gap: 0.7rem; margin: 1.2rem 0; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.83rem;
  font-weight: 500;
  padding: 0.4rem 0.9rem;
  border-radius: 100px;
  background: var(--sage);
  color: var(--green-hover);
  border: 1px solid var(--sage-deep);
}
.section--dark .chip, .section--darker .chip { background: rgba(243, 236, 221, 0.07); color: var(--brass-light); border-color: rgba(214, 188, 130, 0.3); }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.center { text-align: center; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--bg-white); color: var(--ink); padding: 0.8rem 1.2rem; z-index: 100; border-radius: 0 0 8px 0; }
.skip-link:focus { left: 0; }

/* ---------- Consent banner ---------- */
.consent-banner {
  position: fixed;
  left: 1.2rem;
  right: 1.2rem;
  bottom: 1.2rem;
  z-index: 90;
  max-width: 460px;
  background: var(--green-900);
  border: 1px solid rgba(214, 188, 130, 0.4);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.6rem;
  color: var(--sage);
  box-shadow: 0 24px 55px -20px rgba(10, 18, 12, 0.65);
  opacity: 0;
  transform: translateY(16px);
  visibility: hidden;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
}
.consent-banner.is-open { opacity: 1; transform: none; visibility: visible; }
.consent-banner h2 {
  font-size: 1.15rem;
  color: var(--cream);
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.consent-banner h2 svg { width: 19px; height: 19px; stroke: var(--brass-light); flex: none; }
.consent-banner p { font-size: 0.88rem; line-height: 1.55; color: var(--muted-light); margin-bottom: 1.1rem; }
.consent-banner p a { color: var(--brass-light); text-decoration: underline; text-underline-offset: 2px; }
.consent-actions { display: flex; gap: 0.7rem; flex-wrap: wrap; }
.consent-actions .btn { padding: 0.85rem 1.3rem; font-size: 0.9rem; flex: 1 1 auto; min-height: 44px; }
.consent-actions .btn--primary { background: var(--brass); color: var(--green-950); }
.consent-actions .btn--primary:hover { background: var(--brass-light); color: var(--green-950); }
@media (max-width: 560px) {
  .consent-banner { left: 0.8rem; right: 0.8rem; bottom: 0.8rem; }
}
@media (prefers-reduced-motion: reduce) {
  .consent-banner { transition: none; }
}

/* WP admin bar offset */
body.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { body.admin-bar .site-header { top: 46px; } }

/* Default WP content pages */
.entry-content { padding: 3rem 0 5rem; }
.entry-content h2, .entry-content h3 { margin-top: 1.6em; }

/* ---------- Interactive widgets (ROI calc, quiz, picker) ---------- */
.roi-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 900px) { .roi-grid { grid-template-columns: 1fr; } }
.roi-controls { display: grid; gap: 1.8rem; }
.roi-field label { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; font-weight: 600; font-size: 0.95rem; margin-bottom: 0.55rem; }
.roi-field output { font-family: var(--font-display); font-size: 1.05rem; color: var(--brass-text); white-space: nowrap; }
.roi-field input[type="range"] {
  width: 100%;
  accent-color: var(--green);
  cursor: pointer;
  height: 32px;
}
.roi-note { font-size: 0.85rem; color: var(--muted); }
.roi-note summary { cursor: pointer; font-weight: 600; color: var(--green); }
.roi-note[open] { background: var(--sage); border-radius: var(--radius); padding: 0.9rem 1.1rem; }
.roi-results {
  background: var(--green-900);
  color: var(--sage);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  border: 1px solid rgba(214, 188, 130, 0.3);
  position: sticky;
  top: 110px;
}
.roi-results h3 { color: var(--cream); }
.roi-results .rr-row { padding: 1.05rem 0; border-bottom: 1px solid var(--line-dark); }
.roi-results .rr-row:last-of-type { border-bottom: 0; }
.roi-results .rr-n { display: block; font-family: var(--font-display); font-weight: 600; font-size: clamp(1.9rem, 3.4vw, 2.6rem); line-height: 1.1; color: var(--brass-light); }
.roi-results .rr-d { font-size: 0.88rem; color: var(--muted-light); }
.roi-results .btn { margin-top: 1.3rem; width: 100%; }

.quiz-form { display: grid; gap: 1.1rem; }
.quiz-q {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-white);
  padding: 1.5rem 1.6rem 1.3rem;
  margin: 0;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.quiz-q legend { font-family: var(--font-display); font-weight: 600; font-size: 1.06rem; padding: 0; float: left; width: 100%; margin-bottom: 0.9rem; }
.quiz-q legend + * { clear: both; }
.quiz-q.is-missing { border-color: var(--brass); box-shadow: 0 0 0 3px rgba(178, 138, 62, 0.18); }
.quiz-opts { display: grid; gap: 0.5rem; }
.quiz-opt { position: relative; }
.quiz-opt input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; cursor: pointer; }
.quiz-opt span {
  display: block;
  padding: 0.7rem 1rem;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  font-size: 0.94rem;
  color: var(--muted);
  transition: border-color 0.18s var(--ease), background 0.18s var(--ease), color 0.18s var(--ease);
  cursor: pointer;
}
.quiz-opt:hover span { border-color: var(--sage-deep); background: var(--paper); }
.quiz-opt input:checked + span { border-color: var(--green); background: var(--sage); color: var(--ink); font-weight: 500; }
.quiz-opt input:focus-visible + span { outline: 3px solid var(--brass); outline-offset: 2px; }
.quiz-result {
  border: 1px solid var(--sage-deep);
  border-radius: var(--radius-lg);
  background: var(--bg-white);
  box-shadow: var(--shadow-md);
  padding: 2rem 2.2rem;
  margin-top: 1.6rem;
}
.quiz-result h4 { margin-top: 1.2rem; }
.quiz-result ul { margin: 0.4rem 0 0; padding-left: 1.2rem; color: var(--muted); display: grid; gap: 0.45rem; }
.quiz-grade { display: inline-flex; align-items: baseline; gap: 0.9rem; }
.quiz-grade .qg-letter {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 3.4rem;
  line-height: 1;
  color: var(--green);
}
.quiz-grade--d .qg-letter, .quiz-grade--f .qg-letter { color: var(--brass-text); }
.quiz-grade .qg-score { font-size: 0.95rem; color: var(--muted); }
.quiz-blurb { margin-top: 0.8rem; }
.quiz-nudge { margin: 0; color: var(--brass-text); }
.quiz-cta { margin: 1.4rem 0 0.6rem; }
.quiz-privacy { font-size: 0.8rem; color: var(--muted); margin: 0; }
.widget-privacy { font-size: 0.85rem; color: var(--muted); display: inline-flex; align-items: center; gap: 0.5rem; }
.widget-privacy svg { width: 16px; height: 16px; stroke: var(--green); flex: none; }

/* ---------- Interaction grammar: brass hairline sweep ----------
   Unified hover language for cards: 2px lift (rules above) plus a
   brass hairline that sweeps in along the bottom edge. Transform-only
   animation (scaleX) so nothing shifts layout. Focus-within mirrors
   hover for keyboard users; touch devices skip hover-only affordances. */
.card, .glass, .platform-tile { position: relative; overflow: hidden; }
.card::after, .glass::after, .platform-tile::after {
  content: "";
  position: absolute;
  left: 1.4rem;
  right: 1.4rem;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--brass);
  opacity: 0.9;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s var(--ease);
}
.card:hover::after, .card:focus-within::after,
.glass:hover::after, .glass:focus-within::after,
.platform-tile:hover::after, .platform-tile:focus-within::after { transform: scaleX(1); }

/* Kicker accent: the brass dash draws in when its reveal fires.
   scaleX (not width) so the label never shifts. */
.eyebrow::before { transform-origin: left; transition: transform 0.55s var(--ease) 0.12s; }
.js .reveal:not(.is-visible) .eyebrow::before { transform: scaleX(0); }

/* Platforms page: logo cards desaturated until engaged */
.page-template-template-platforms .card > img:first-child {
  filter: grayscale(1);
  opacity: 0.8;
  transition: filter 0.25s var(--ease), opacity 0.25s var(--ease);
}
.page-template-template-platforms .card:hover > img:first-child,
.page-template-template-platforms .card:focus-within > img:first-child { filter: none; opacity: 1; }
@media (hover: none) { .page-template-template-platforms .card > img:first-child { filter: none; opacity: 1; } }

/* ---------- Journey timeline (How We Work) ----------
   A brass line drawn through the step cards on scroll; the card
   backgrounds self-mask it, so it reads as connectors in the gaps.
   Step number chips fill as the line passes them. */
.journey { position: relative; }
.journey .journey-line { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.journey .journey-line path { fill: none; stroke: var(--brass); stroke-width: 2; stroke-linecap: round; opacity: 0.75; }
.journey .p-step { position: relative; z-index: 1; }
.journey .p-step::before { transition: background 0.45s var(--ease), color 0.45s var(--ease), border-color 0.45s var(--ease); }
.journey .p-step.is-lit::before { background: var(--brass); color: var(--green-950); border-color: var(--brass); }

/* ---------- Widget payoff: score gauge, breakdown, lean bars ---------- */
.quiz-gauge { display: flex; align-items: center; gap: 1.6rem; flex-wrap: wrap; }
.quiz-gauge svg { width: 132px; height: 132px; flex: none; }
.quiz-gauge .qgauge-track { fill: none; stroke: var(--sage-deep); stroke-width: 10; stroke-linecap: round; }
.quiz-gauge .qgauge-val {
  fill: none;
  stroke: var(--brass);
  stroke-width: 10;
  stroke-linecap: round;
  stroke-dasharray: var(--gauge-full, 264);
  stroke-dashoffset: var(--gauge-full, 264);
  transition: stroke-dashoffset 1.1s var(--ease) 0.15s;
}
.quiz-gauge .qgauge-letter { font-family: var(--font-display); font-weight: 600; font-size: 44px; fill: var(--green); }
.quiz-gauge--d .qgauge-letter, .quiz-gauge--f .qgauge-letter { fill: var(--brass-text); }
.quiz-gauge .qgauge-score { font-family: var(--font-body); font-size: 13px; fill: var(--muted); }
.quiz-breakdown { list-style: none; margin: 1.4rem 0 0; padding: 0; display: grid; gap: 0.65rem; }
.quiz-breakdown li { display: grid; grid-template-columns: minmax(120px, 190px) 1fr auto; align-items: center; gap: 0.9rem; font-size: 0.88rem; color: var(--muted); }
.quiz-breakdown .qb-track { height: 6px; border-radius: 4px; background: var(--sage); overflow: hidden; }
.quiz-breakdown .qb-fill { display: block; height: 100%; border-radius: 4px; background: var(--brass); transform: scaleX(0); transform-origin: left; transition: transform 0.8s var(--ease) 0.35s; }
.quiz-breakdown .qb-pct { font-variant-numeric: tabular-nums; font-size: 0.82rem; }
.quiz-result.is-in .qb-fill { transform: scaleX(var(--fill, 0)); }
.quiz-result.is-in .qgauge-val { stroke-dashoffset: var(--gauge-off, 0); }
@media (max-width: 480px) { .quiz-breakdown li { grid-template-columns: 1fr auto; } .quiz-breakdown .qb-track { grid-column: 1 / -1; order: 3; } }
.quiz-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; align-items: center; margin: 1.4rem 0 0.6rem; }
.quiz-actions .btn { min-height: 44px; }

/* ---------- ROI: odometer digits + before/after bars ---------- */
.roi-results .rr-n span { font-variant-numeric: tabular-nums; }
.roi-bars { margin-top: 1.5rem; }
.roi-bars .rb-label { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.82rem; color: var(--muted-light); margin-bottom: 0.3rem; }
.roi-bars svg { width: 100%; height: 14px; display: block; margin-bottom: 0.9rem; border-radius: 4px; overflow: hidden; }
.roi-bars .rb-track { fill: rgba(243, 236, 221, 0.12); }
.roi-bars .rb-before { fill: var(--muted-light); }
.roi-bars .rb-after { fill: var(--brass-light); }
.roi-bars rect { transition: transform 0.5s var(--ease); transform-origin: left center; }

/* ---------- Contact form: inline validation + submit state ---------- */
.form-field.has-error input, .form-field.has-error select, .form-field.has-error textarea {
  border-color: #a04a35;
  box-shadow: 0 0 0 4px rgba(160, 74, 53, 0.1);
}
.field-err { font-size: 0.82rem; color: #8a3a28; display: none; }
.form-field.has-error .field-err { display: block; }
.btn.is-sending { opacity: 0.75; pointer-events: none; }
.btn.is-sending svg { transform: translateX(3px); }
.form-success--flourish { display: flex; gap: 1rem; align-items: flex-start; }
.form-success--flourish .fs-ic { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--green); display: grid; place-items: center; }
.form-success--flourish .fs-ic svg { width: 20px; height: 20px; stroke: var(--cream); }
.form-success--flourish h3 { font-size: 1.25rem; margin: 0 0 0.2rem; color: var(--green-hover); }
.form-success--flourish p { margin: 0; font-size: 0.95rem; }

/* ---------- Print: scorecard / lean result only ----------
   JS puts .print-scorecard on <body> before window.print() so a
   visitor can save their result as PDF; normal printing of any page
   is unaffected. */
@media print {
  body.print-scorecard .site-header,
  body.print-scorecard .site-footer,
  body.print-scorecard .consent-banner,
  body.print-scorecard .cta-band,
  body.print-scorecard .page-hero,
  body.print-scorecard .photo-strip,
  body.print-scorecard canvas,
  body.print-scorecard .quiz-form,
  body.print-scorecard section:not(#readiness-quiz):not(#platform-picker):not(#self-check) { display: none !important; }
  body.print-scorecard .quiz-result { box-shadow: none; border-color: #bbb; }
  body.print-scorecard .quiz-actions { display: none; }
  body.print-scorecard { background: #fff; }
}

/* ---------- Photo bands & strips (editorial imagery) ---------- */
.photo-band { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.photo-band img { width: 100%; height: auto; }
.photo-strip { height: clamp(180px, 28vw, 320px); overflow: hidden; }
.photo-strip img { width: 100%; height: 100%; object-fit: cover; }
/* Full-bleed photographic background for dark bands (pairs with .container z-lift) */
.band-bg { position: absolute; inset: 0; }
.band-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.5; }
.band-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(13, 27, 20, 0.72), rgba(13, 27, 20, 0.85)); }
.band-bg ~ .container, .band-bg ~ .container--narrow, .band-bg ~ .container--wide { position: relative; z-index: 1; }

/* ---------- Referral partners (Lawthentics, NCBA) ---------- */
.ref-card { background: var(--paper); }
.ref-card .ref-logo { display: inline-block; margin-bottom: 1.4rem; }
.ref-card .ref-logo img { height: 48px; width: auto; max-width: 240px; object-fit: contain; }

/* ---------- 404 ---------- */
.error-hero { background: var(--green-950); color: var(--sage); min-height: 62vh; display: flex; align-items: center; padding: 9rem 0 5rem; text-align: center; }
.error-hero .e-code { font-family: var(--font-display); font-weight: 600; font-size: clamp(5rem, 14vw, 9rem); line-height: 1; color: var(--brass-light); display: block; }
.error-hero .e-img { width: min(460px, 82%); margin: 2.6rem auto 0; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid rgba(214, 188, 130, 0.25); }
.error-hero .e-img img { width: 100%; height: auto; display: block; }
.error-hero h1 { color: #fff; font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
.error-hero p { color: var(--muted-light); max-width: 520px; margin: 0 auto 2rem; }
.error-links { display: flex; flex-wrap: wrap; gap: 0.7rem; justify-content: center; margin-top: 2rem; }

/* ============================================================
   v1.5 — Motion system & Private-AI components
   Rules: transform/opacity/clip-path only; every animation is
   inside a no-preference media query or neutralised by the
   global reduced-motion block above; scroll-driven effects are
   gated by @supports so unsupported browsers see a static page.
   ============================================================ */

/* ---------- Cross-document view transitions (progressive) ---------- */
@view-transition { navigation: auto; }
.site-header { view-transition-name: fu-header; }
::view-transition-old(root) { animation: fu-vt-out 0.22s var(--ease) both; }
::view-transition-new(root) { animation: fu-vt-in 0.3s var(--ease) both; }
::view-transition-group(fu-header) { animation-duration: 0.01s; }
@keyframes fu-vt-out { to { opacity: 0; transform: translateY(-6px); } }
@keyframes fu-vt-in { from { opacity: 0; transform: translateY(10px); } }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}

/* ---------- Reading-progress hairline (brass, under the header) ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  z-index: 60;
  background: var(--brass);
  transform: scaleX(0);
  transform-origin: left;
  pointer-events: none;
  opacity: 0.95;
}
@supports (animation-timeline: scroll()) {
  .scroll-progress { animation: fu-progress linear both; animation-timeline: scroll(root); }
  @keyframes fu-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
}
body.admin-bar .scroll-progress { top: 32px; }

/* ---------- Hero: slow settle + soft parallax ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero-bg img, .page-hero--img .page-hero-bg img { animation: fu-settle 22s var(--ease) both; transform-origin: 55% 45%; }
  @keyframes fu-settle { from { transform: scale(1.09); } to { transform: scale(1); } }
  @supports (animation-timeline: scroll()) {
    .hero-bg, .page-hero--img .page-hero-bg { animation: fu-parallax linear both; animation-timeline: scroll(root); animation-range: 0 100vh; }
    @keyframes fu-parallax { to { transform: translateY(18%); } }
    .photo-strip { overflow: hidden; }
    .photo-strip img { height: 130%; animation: fu-strip linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; }
    @keyframes fu-strip { from { transform: translateY(-12%); } to { transform: translateY(12%); } }
  }
}

/* ---------- Headline word reveal (JS wraps words in .sw) ---------- */
.sw { display: inline-block; clip-path: inset(-0.1em 0 -0.22em 0); }
.sw > span { display: inline-block; will-change: transform; transform: translateY(112%); transition: transform 0.85s var(--ease); transition-delay: calc(var(--i, 0) * 42ms); }
.is-split-in .sw > span { transform: none; }
@media (prefers-reduced-motion: reduce) { .sw > span { transform: none; transition: none; } }

/* ---------- Editorial image reveals ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .split-media.reveal img, .js .photo-band.reveal img, .js .tier.reveal .tier-img img {
    clip-path: inset(0 0 0 100%);
    transform: scale(1.06);
    transition: clip-path 0.95s var(--ease) 0.1s, transform 1.3s var(--ease) 0.1s;
  }
  .js .split-media.reveal.is-visible img, .js .photo-band.reveal.is-visible img, .js .tier.reveal.is-visible .tier-img img {
    clip-path: inset(0);
    transform: none;
  }
  /* brass edge that leads the wipe */
  .split-media.reveal::after {
    content: "";
    position: absolute;
    inset: 0 0 0 auto;
    width: 2px;
    background: var(--brass);
    transform: scaleY(0);
    transform-origin: top;
    opacity: 0;
  }
  .split-media.reveal.is-visible::after { animation: fu-edge 1.05s var(--ease) 0.1s both; }
  @keyframes fu-edge { 0% { opacity: 0; transform: scaleY(0); } 15% { opacity: 1; transform: scaleY(1); } 80% { opacity: 1; } 100% { opacity: 0; transform: scaleY(1); } }
}

/* ---------- Nav: brass underline sweep (desktop) ---------- */
@media (min-width: 1021px) {
  .main-nav > ul > li > a { position: relative; }
  .main-nav > ul > li > a::after {
    content: "";
    position: absolute;
    left: 0.95rem;
    right: 0.95rem;
    bottom: 0.35rem;
    height: 1px;
    background: var(--brass-light);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.28s var(--ease);
  }
  .main-nav > ul > li > a:hover::after, .main-nav > ul > li > a:focus-visible::after, .main-nav > ul > li.is-open > a::after { transform: scaleX(1); }
  .nav-item-dd.is-open .dropdown { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
}

/* ---------- Byline ---------- */
.byline { display: flex; align-items: flex-start; gap: 0.7rem; font-size: 0.88rem; color: var(--muted); margin: -0.4rem 0 1.6rem; }
.byline-avatar { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--sage); display: grid; place-items: center; }
.byline-avatar svg { width: 16px; height: 16px; stroke: var(--green); }
.byline a { font-weight: 600; }
.page-hero .byline { color: var(--muted-light); margin: 1.4rem 0 0; }
.page-hero .byline-avatar { background: rgba(243, 236, 221, 0.1); }
.page-hero .byline-avatar svg { stroke: var(--brass-light); }
.page-hero .byline a { color: var(--brass-light); }

/* ---------- Data-flow diagram: where does your data go ---------- */
.flow { position: relative; min-width: 0; container-type: inline-size; }
.flow-toggle { display: flex; flex-wrap: wrap; gap: 0.3rem; padding: 0.3rem; border: 1px solid var(--line); border-radius: 24px; background: var(--bg-white); margin-bottom: 1.4rem; }
.flow-toggle button { flex: 1 1 9rem; min-width: 0; border: 0; background: transparent; color: var(--muted); font-family: var(--font-body); font-weight: 600; font-size: 0.86rem; line-height: 1.4; padding: 0.6rem 0.8rem; border-radius: 100px; min-height: 44px; white-space: normal; cursor: pointer; transition: background 0.22s var(--ease), color 0.22s var(--ease); }
.section--dark .flow-toggle, .section--darker .flow-toggle, .spot .flow-toggle { background: rgba(243, 236, 221, 0.06); border-color: var(--line-dark); }
.section--dark .flow-toggle button, .section--darker .flow-toggle button, .spot .flow-toggle button { color: var(--muted-light); }
.flow-toggle button[aria-pressed="true"] { background: var(--green); color: var(--cream); }
.spot .flow-toggle button[aria-pressed="true"], .section--dark .flow-toggle button[aria-pressed="true"], .section--darker .flow-toggle button[aria-pressed="true"] { background: var(--brass); color: var(--green-950); }
.flow-visual { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.8rem; align-items: stretch; }
.flow-node { min-width: 0; padding: 1.1rem; border: 1px solid var(--brass); border-radius: 14px; background: rgba(243, 236, 221, 0.04); display: flex; flex-direction: column; align-items: flex-start; gap: 0.35rem; overflow-wrap: anywhere; color: var(--muted); font-size: 0.95rem; line-height: 1.5; }
.flow-node strong { color: var(--ink); font-size: 1.05rem; }
.flow-node-icon { color: var(--brass-text); display: flex; margin-bottom: 0.25rem; }
.flow-node-icon svg { width: 28px; height: 28px; }
.flow-node-note { margin-top: 0.55rem; padding-top: 0.6rem; border-top: 1px solid var(--line); width: 100%; }
.flow-route { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.25rem; text-align: center; color: var(--muted); font-size: 0.9rem; line-height: 1.4; min-width: 0; overflow-wrap: anywhere; }
.flow-route-arrows { display: flex; color: var(--brass-text); }
.flow-route-arrows svg { width: 36px; height: 36px; transform: rotate(90deg); }
.flow-review { margin-top: 1rem; border: 1px solid var(--line); border-radius: 12px; padding: 0.9rem 1rem; color: var(--muted); font-size: 0.95rem; line-height: 1.6; overflow-wrap: anywhere; }
.flow-review p { margin: 0; }
.flow-review strong, .flow-review span { display: block; }
.flow-review strong { color: var(--ink); margin-bottom: 0.2rem; }
.flow [data-for] { display: none; }
.flow[data-state="consumer"] [data-for~="consumer"], .flow[data-state="commercial"] [data-for~="commercial"], .flow[data-state="local"] [data-for~="local"] { display: block; }
.section--dark .flow-node, .section--darker .flow-node, .spot .flow-node,
.section--dark .flow-route, .section--darker .flow-route, .spot .flow-route,
.section--dark .flow-review, .section--darker .flow-review, .spot .flow-review { color: var(--muted-light); }
.section--dark .flow-node strong, .section--darker .flow-node strong, .spot .flow-node strong,
.section--dark .flow-review strong, .section--darker .flow-review strong, .spot .flow-review strong { color: var(--cream); }
.section--dark .flow-node-icon, .section--darker .flow-node-icon, .spot .flow-node-icon,
.section--dark .flow-route-arrows, .section--darker .flow-route-arrows, .spot .flow-route-arrows { color: var(--brass-light); }
.section--dark .flow-node-note, .section--darker .flow-node-note, .spot .flow-node-note,
.section--dark .flow-review, .section--darker .flow-review, .spot .flow-review { border-color: var(--line-dark); }
@container (min-width: 480px) {
  .flow-visual { grid-template-columns: minmax(0, 1fr) 6.5rem minmax(0, 1fr); gap: 0.5rem; }
  .flow-node { padding: 1rem 0.8rem; }
  .flow-route-arrows svg { transform: none; }
}
.flow-caption { margin-top: 1rem; font-size: 0.95rem; color: var(--muted); }
.section--dark .flow-caption, .section--darker .flow-caption, .spot .flow-caption { color: var(--muted-light); }
.flow-caption strong { color: var(--ink); }
.section--dark .flow-caption strong, .section--darker .flow-caption strong, .spot .flow-caption strong { color: var(--cream); }
.flow-caption [data-cap] { display: none; margin: 0; }
.flow[data-state="consumer"] [data-cap="consumer"], .flow[data-state="commercial"] [data-cap="commercial"], .flow[data-state="local"] [data-cap="local"] { display: block; }


/* ---------- Home spotlight: Private AI ---------- */
.spot { background: var(--green-950); color: var(--sage); }
.spot h2, .spot h3 { color: var(--cream); }
.spot .eyebrow { color: var(--brass-light); }
.spot .eyebrow::before { background: var(--brass-light); }
.spot-panel { background: var(--green-900); border: 1px solid rgba(214, 188, 130, 0.28); border-radius: var(--radius-lg); padding: 1.6rem; }
.spot-tiers { list-style: none; margin: 1.6rem 0 0; padding: 0; display: grid; gap: 0.7rem; }
.spot-tiers li { display: grid; grid-template-columns: 34px 1fr; gap: 0.8rem; align-items: start; color: var(--muted-light); font-size: 0.95rem; }
.spot-tiers li strong { color: var(--cream); display: block; }
.spot-tiers svg { width: 34px; height: 34px; padding: 7px; border-radius: 8px; background: rgba(243, 236, 221, 0.08); stroke: var(--brass-light); }

/* ---------- Eras: sticky diagram + scrolling narrative ---------- */
.eras { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.eras-sticky { position: sticky; top: 108px; }
.era { padding: 2rem 0 2rem 1.6rem; border-left: 2px solid var(--line-dark); position: relative; transition: border-color 0.4s var(--ease), opacity 0.4s var(--ease); opacity: 0.55; }
.era::before { content: ""; position: absolute; left: -7px; top: 2.55rem; width: 12px; height: 12px; border-radius: 50%; background: var(--green-950); border: 2px solid var(--line-dark); transition: background 0.4s var(--ease), border-color 0.4s var(--ease); }
.era.is-active { opacity: 1; border-left-color: var(--brass); }
.era.is-active::before { background: var(--brass); border-color: var(--brass); }
.era .era-when { font-family: var(--font-body); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--brass-light); display: block; margin-bottom: 0.5rem; }
.era h3 { font-size: 1.45rem; color: var(--cream); }
.era p { color: var(--muted-light); }
.era .era-tags { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 0.8rem; }
.era .era-tags span { font-size: 0.78rem; font-weight: 600; padding: 0.3rem 0.7rem; border-radius: 100px; border: 1px solid var(--line-dark); color: var(--sage); }
.era .era-tags span.warn { border-color: rgba(226, 165, 138, 0.5); color: #e2a58a; }
.era .era-tags span.ok { border-color: rgba(169, 211, 166, 0.5); color: #a9d3a6; }
@media (max-width: 900px) {
  .eras { grid-template-columns: 1fr; }
  .eras-sticky { position: static; }
  .era { opacity: 1; }
}

/* ---------- Tiers ---------- */
.tiers { display: grid; gap: 1.6rem; }
.tier { display: grid; grid-template-columns: 1.1fr 1fr; background: var(--bg-white); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.tier:nth-child(even) .tier-img { order: 2; }
.tier-img { position: relative; min-height: 300px; overflow: hidden; }
.tier-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tier-body { padding: clamp(1.6rem, 3vw, 2.6rem); }
.tier-body .tier-k { display: inline-flex; align-items: center; gap: 0.5rem; font-family: var(--font-body); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--brass-text); margin-bottom: 0.6rem; }
.tier-body .tier-k svg { width: 18px; height: 18px; stroke: var(--brass-text); }
.tier-body h3 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); }
.tier-body > p { color: var(--muted); }
.spec { margin: 1.2rem 0 0; display: grid; grid-template-columns: max-content 1fr; gap: 0.55rem 1.2rem; font-size: 0.92rem; }
.spec dt { font-weight: 600; color: var(--ink); }
.spec dd { margin: 0; color: var(--muted); }
.spec dd strong { color: var(--ink); font-weight: 600; }
.tier-note { margin-top: 1.1rem; font-size: 0.82rem; color: var(--muted); }
@media (max-width: 900px) {
  .tier { grid-template-columns: 1fr; }
  .tier:nth-child(even) .tier-img { order: 0; }
  .tier-img { min-height: 220px; }
  .spec { grid-template-columns: 1fr; gap: 0.2rem 0; }
  .spec dd { margin-bottom: 0.5rem; }
}

/* ---------- Comparison matrix ---------- */
.matrix-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--bg-white); }
.matrix { width: 100%; border-collapse: collapse; font-size: 0.9rem; min-width: 900px; }
.matrix th, .matrix td { padding: 0.9rem 1rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.matrix thead th { font-family: var(--font-body); font-size: 0.76rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); background: var(--paper); }
.matrix tbody th { font-family: var(--font-display); font-weight: 600; font-size: 1rem; color: var(--ink); position: sticky; left: 0; background: var(--bg-white); min-width: 210px; }
.matrix tbody th small { display: block; font-family: var(--font-body); font-weight: 400; font-size: 0.8rem; color: var(--muted); margin-top: 0.15rem; }
.matrix tbody tr:last-child th, .matrix tbody tr:last-child td { border-bottom: 0; }
.matrix tr.is-local td { background: var(--sage); }
.matrix tr.is-local th { background: var(--sage); }
.mk { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 600; }
.mk svg { width: 18px; height: 18px; padding: 3px; border-radius: 50%; flex: none; }
.mk--ok svg { stroke: var(--green); background: var(--sage-deep); }
.mk--no svg { stroke: #a04a35; background: rgba(160, 74, 53, 0.12); }
.mk--warn svg { stroke: var(--brass-text); background: rgba(178, 138, 62, 0.16); }
.matrix td small { display: block; color: var(--muted); font-weight: 400; margin-top: 0.2rem; }
.matrix-foot { font-size: 0.82rem; color: var(--muted); margin-top: 0.9rem; }

/* ---------- Curriculum modules ---------- */
.modules { counter-reset: mod; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
@media (max-width: 980px) { .modules { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .modules { grid-template-columns: 1fr; } }
.modules li { counter-increment: mod; padding: 1.6rem 1.6rem 1.5rem; border: 1px solid var(--line-dark); border-radius: var(--radius-lg); background: var(--card-dark); position: relative; }
.modules li::before { content: "0" counter(mod); font-family: var(--font-display); font-weight: 600; font-size: 0.95rem; color: var(--brass-light); border: 1px solid rgba(214, 188, 130, 0.45); border-radius: 100px; padding: 0.25rem 0.8rem; display: inline-block; margin-bottom: 0.9rem; }
.modules h3 { font-size: 1.15rem; color: var(--cream); margin-bottom: 0.4rem; }
.modules p { color: var(--muted-light); font-size: 0.93rem; margin: 0; }
.modules .mod-duty { display: block; font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brass-light); margin-top: 0.8rem; }

/* ---------- Trade-offs ---------- */
.tradeoffs { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; }
@media (max-width: 800px) { .tradeoffs { grid-template-columns: 1fr; } }
.tradeoffs .card h3 { display: flex; align-items: center; gap: 0.6rem; }
.tradeoffs .card h3 svg { width: 22px; height: 22px; stroke: var(--green); }
.tradeoffs .card--caution h3 svg { stroke: var(--brass-text); }
.tradeoffs .check-list { margin-top: 1rem; }
.tradeoffs .card--caution .check-list svg { stroke: var(--brass-text); background: rgba(178, 138, 62, 0.14); }

/* ---------- DPA steps ---------- */
.dpa-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; counter-reset: dpa; }
@media (max-width: 980px) { .dpa-steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .dpa-steps { grid-template-columns: 1fr; } }
.dpa-steps .card { counter-increment: dpa; padding: 1.5rem; }
.dpa-steps .card::before { content: counter(dpa, decimal-leading-zero); font-family: var(--font-display); font-weight: 600; color: var(--brass-text); display: block; margin-bottom: 0.5rem; font-size: 1.1rem; }
.dpa-steps h3 { font-size: 1.05rem; }
.dpa-steps p { font-size: 0.9rem; }

/* ---------- Big-number pull stats (light) ---------- */
.pull-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; margin-top: 2.4rem; }
@media (max-width: 800px) { .pull-stats { grid-template-columns: 1fr; } }
.pull-stats .stat { background: var(--bg-white); border-color: var(--line); }
.pull-stats .stat .n { color: var(--brass-text); }
.pull-stats .stat .d { color: var(--ink); }
.pull-stats .stat .src { color: var(--muted); }

/* ---------- Model/runtime chips ---------- */
.chip-cloud { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.2rem; }
.chip-cloud .chip { font-size: 0.86rem; }
.chip-cloud .chip small { color: var(--muted); font-weight: 400; }

/* Platforms page: icon-led tiles for platforms without a logo asset */
.card .card-ic--logo { margin-bottom: 1.1rem; }

/* ============================================================
   v1.6 — SB 574 readiness, truthful form states, five-stage
   journey, handover. Same tokens, hairlines and motion grammar
   as the rest of the system; no new colors.
   ============================================================ */

/* ---------- Navigation: SB 574 entry + current page ---------- */
.nav-law-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--brass-light);
  box-shadow: 0 0 0 3px rgba(214, 188, 130, 0.18);
  flex: none;
}
.main-nav a[aria-current="page"] { color: var(--cream); background: rgba(243, 236, 221, 0.08); }
.dropdown a[aria-current="page"] { background: var(--paper); }
@media (min-width: 1021px) and (max-width: 1240px) {
  .main-nav a { padding: 0.55rem 0.62rem; font-size: 0.9rem; }
  .nav-law-long { display: none; }
}
.hero-proof a.hp { color: var(--cream); text-decoration: none; border-bottom: 1px solid rgba(214, 188, 130, 0.45); padding-bottom: 2px; transition: border-color 0.2s, color 0.2s; }
.hero-proof a.hp:hover { color: var(--brass-light); border-color: var(--brass-light); }

/* ---------- Law dates strip ---------- */
.law-dates { margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--bg-white); box-shadow: var(--shadow-sm); overflow: hidden; }
.law-dates > div { padding: 1.3rem 1.4rem; border-left: 1px solid var(--line); }
.law-dates > div:first-child { border-left: 0; }
.law-dates dt { font-family: var(--font-body); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--brass-text); margin-bottom: 0.45rem; }
.law-dates dd { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; line-height: 1.2; color: var(--ink); }
.law-dates dd small { display: block; margin-top: 0.35rem; font-family: var(--font-body); font-weight: 400; font-size: 0.8rem; color: var(--muted); line-height: 1.4; }
.law-dates--stack { grid-template-columns: 1fr; }
.law-dates--stack > div { border-left: 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 9.5rem 1fr; gap: 1rem; align-items: baseline; }
.law-dates--stack > div:first-child { border-top: 0; }
.law-dates--stack dt { margin: 0; }
@media (max-width: 640px) {
  .law-dates { grid-template-columns: 1fr; }
  .law-dates > div { border-left: 0; border-top: 1px solid var(--line); }
  .law-dates > div:first-child { border-top: 0; }
  .law-dates--stack > div { grid-template-columns: 1fr; gap: 0.2rem; }
}
.law-disclaimer { font-size: 0.85rem; color: var(--muted); margin-top: 1rem; }
.section--dark .law-disclaimer, .section--darker .law-disclaimer { color: var(--muted-light); }

/* ---------- Homepage feature ---------- */
.law-feature { background: var(--sage); border-bottom: 1px solid var(--sage-deep); position: relative; }
.law-feature::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--brass); transform-origin: left; }
.law-feature-inner { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.law-feature h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); max-width: 22ch; }
.law-feature .lead { color: var(--ink); }
@media (max-width: 900px) { .law-feature-inner { grid-template-columns: 1fr; } }

/* ---------- Callout on service pages ---------- */
.law-callout {
  display: grid; grid-template-columns: auto 1fr auto; gap: 1.1rem 1.4rem; align-items: center;
  border: 1px solid var(--line); border-left: 3px solid var(--brass);
  border-radius: var(--radius); background: var(--bg-white); box-shadow: var(--shadow-sm);
  padding: 1.25rem 1.5rem; margin-top: 2.4rem;
}
.law-callout p { margin: 0; color: var(--muted); font-size: 0.97rem; }
.law-callout .law-callout-k { font-size: 0.74rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brass-text); margin-bottom: 0.25rem; }
.law-callout-ic { width: 44px; height: 44px; border-radius: 50%; background: var(--sage); display: grid; place-items: center; }
.law-callout-ic svg { width: 22px; height: 22px; stroke: var(--green); }
.law-callout .btn { white-space: nowrap; }
.section--dark .law-callout, .section--darker .law-callout { background: var(--card-dark); border-color: var(--line-dark); border-left-color: var(--brass-light); box-shadow: none; }
.section--dark .law-callout p, .section--darker .law-callout p { color: var(--muted-light); }
.section--dark .law-callout .law-callout-k, .section--darker .law-callout .law-callout-k { color: var(--brass-light); }
@media (max-width: 760px) { .law-callout { grid-template-columns: auto 1fr; } .law-callout .btn { grid-column: 1 / -1; justify-self: start; } }

/* ---------- Provisions ---------- */
.law-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; }
@media (max-width: 860px) { .law-grid { grid-template-columns: 1fr; } }
.law-card { display: flex; flex-direction: column; }
.law-card h3 { color: var(--cream); font-size: 1.3rem; margin-bottom: 0.6rem; }
.law-card p { color: var(--muted-light); }
.law-cite { font-size: 0.8rem; letter-spacing: 0.04em; margin: 0 0 0.7rem; color: var(--muted-light); }
.law-cite a { color: var(--brass-light); font-weight: 600; text-decoration: none; border-bottom: 1px solid rgba(214, 188, 130, 0.4); }
.law-cite a:hover { border-color: var(--brass-light); }
.law-quote { margin: auto 0 0; padding: 0.9rem 1.1rem; border-left: 2px solid var(--brass-light); background: rgba(243, 236, 221, 0.05); border-radius: 0 8px 8px 0; font-family: var(--font-display); font-size: 0.98rem; line-height: 1.5; color: var(--cream); }
.law-quote::before { content: "\201C"; } .law-quote::after { content: "\201D"; }
.law-mini { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.9rem; color: var(--muted-light); font-size: 0.95rem; }
.law-mini strong { color: var(--cream); }
.law-note { margin-top: 1.6rem; font-size: 0.88rem; color: var(--muted-light); max-width: 760px; }

/* "Not required" list: crossed markers, same geometry as check-list */
.check-list--x svg { transform: rotate(45deg); stroke: #8a3a28 !important; background: rgba(160, 74, 53, 0.1) !important; }

/* ---------- Self-check ---------- */
.quiz-opts--row { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 520px) { .quiz-opts--row { grid-template-columns: 1fr; } }
.quiz-result:focus { outline: none; }
.quiz-result:focus-visible { outline: 3px solid var(--brass); outline-offset: 3px; }
.lc-h { font-size: 1.35rem; margin: 0 0 0.6rem; }
.lc-list { list-style: none; padding: 0 !important; }
.lc-list li { padding: 0.85rem 1rem; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); color: var(--muted); }
.lc-list li strong { color: var(--ink); }
.lc-tag { display: inline-block; font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600; color: var(--brass-text); border: 1px solid rgba(178, 138, 62, 0.45); border-radius: 99px; padding: 0.05rem 0.5rem; margin-left: 0.3rem; vertical-align: 0.1em; }
.lc-done { margin-top: 1.1rem; color: var(--muted); font-size: 0.93rem; }

/* ---------- Before / after ---------- */
.ba-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
@media (max-width: 820px) { .ba-grid { grid-template-columns: 1fr; } }
.ba-grid h3 { display: flex; align-items: center; gap: 0.55rem; }
.ba-grid h3 svg { width: 22px; height: 22px; stroke: var(--green); }
.ba-grid .card--caution { background: var(--paper); }
.ba-grid .card--caution h3 svg { stroke: var(--brass-text); }
.ba-steps { margin: 0; padding-left: 1.3rem; display: grid; gap: 0.7rem; color: var(--muted); }
.ba-steps li::marker { color: var(--brass-text); font-weight: 600; }

/* ---------- Paths + sources ---------- */
.law-paths .card { display: flex; flex-direction: column; }
.law-paths .check-list { margin-bottom: 1.4rem; }
.law-paths .btn { margin-top: auto; align-self: flex-start; }
.source-list { margin: 0; padding-left: 1.3rem; display: grid; gap: 0.9rem; }
.source-list li::marker { color: var(--brass-text); font-weight: 600; }
.source-list a { font-weight: 600; }
.source-list span { display: block; color: var(--muted); font-size: 0.92rem; }

/* ---------- Five-stage journey ---------- */
.process--5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 1180px) { .process--5 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .process--5 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .process--5 { grid-template-columns: 1fr; } }

/* Stage deliverables table (How We Work) */
.stage-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--bg-white); box-shadow: var(--shadow-sm); }
.stage-table { width: 100%; border-collapse: collapse; min-width: 640px; font-size: 0.95rem; }
.stage-table th, .stage-table td { text-align: left; vertical-align: top; padding: 1rem 1.2rem; border-top: 1px solid var(--line); }
.stage-table thead th { border-top: 0; font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brass-text); background: var(--paper); }
.stage-table tbody th { font-family: var(--font-display); font-size: 1.1rem; color: var(--ink); white-space: nowrap; }
.stage-table td { color: var(--muted); }
@media (max-width: 680px) {
  .stage-table, .stage-table tbody, .stage-table tr, .stage-table th, .stage-table td { display: block; min-width: 0; }
  .stage-table thead { display: none; }
  .stage-table tr { border-top: 1px solid var(--line); padding: 0.4rem 0; }
  .stage-table tr:first-child { border-top: 0; }
  .stage-table th, .stage-table td { border: 0; padding: 0.5rem 1.1rem; }
  .stage-table td::before { content: attr(data-label); display: block; font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brass-text); margin-bottom: 0.2rem; }
}
.demo-label { display: inline-block; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brass-text); border: 1px solid rgba(178, 138, 62, 0.45); border-radius: 99px; padding: 0.1rem 0.55rem; margin-bottom: 0.8rem; }

/* ---------- Form states ---------- */
.form-status:focus { outline: none; }
.form-status:focus-visible { outline: 3px solid var(--brass); outline-offset: 4px; border-radius: var(--radius); }
.form-alert { border-radius: var(--radius); padding: 1.1rem 1.4rem; margin-bottom: 1.5rem; border: 1px solid; font-size: 0.97rem; line-height: 1.55; }
.form-alert--warn { background: #fbf5e8; border-color: #e7d3a6; color: #5a4413; }
.form-alert--err { background: #fbeeea; border-color: #ebc3b8; color: #6e2a1c; }
.form-success p { margin: 0.35rem 0 0; }
.form-success h3 { margin: 0; }
.receipt-ref { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: 0.04em; color: var(--green-hover); }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--green); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.link-btn:hover { color: var(--brass-text); }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.char-count { color: var(--muted); }
form[aria-busy="true"] { cursor: progress; }
.btn:disabled { cursor: progress; }

@media (prefers-reduced-motion: reduce) {
  .hero-proof a.hp, .link-btn { transition: none; }
}

/* ---------- v1.6 accessibility fixes (axe-core 4.13, WCAG 2.1 AA) ---------- */
/* Links inside running text are underlined, so they don't rely on color alone. */
main p a:not(.btn):not(.card-link), main li a:not(.btn):not(.card-link), main dd a,
.footer-bottom a, .breadcrumbs a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}
.law-cite a, .hero-proof a.hp, .main-nav a, .dropdown a { text-decoration: none; }
/* Links and bylines on dark sections use the light brass/sage tones. */
.section--dark p a:not(.btn), .section--darker p a:not(.btn),
.section--dark li a:not(.btn), .section--darker li a:not(.btn) { color: var(--brass-light); }
.section--dark .byline, .section--darker .byline { color: var(--muted-light); }
.section--dark .byline a, .section--darker .byline a { color: var(--brass-light); }
.section--dark .byline-avatar, .section--darker .byline-avatar { background: rgba(243, 236, 221, 0.1); }
.section--dark .byline-avatar svg, .section--darker .byline-avatar svg { stroke: var(--brass-light); }
/* Heroes without a photo are still dark: use the light brass for the kicker. */
.page-hero .eyebrow { color: var(--brass-light); }
.page-hero .eyebrow::before { background: var(--brass-light); }
/* Timeline cards not in focus are dimmed, but stay above 4.5:1. */
.era { opacity: 0.82; }
.era.is-active { opacity: 1; }
/* Scrollable tables are keyboard-focusable regions. */
.matrix-wrap:focus-visible, .stage-table-wrap:focus-visible { outline: 3px solid var(--brass); outline-offset: 3px; }
/* White cards on dark sections keep ink headings (cream-on-white was unreadable). */
.section--dark .card h3, .section--darker .card h3 { color: var(--ink); }

/* v1.6.2: panels become visible instantly when opened (they still fade).
   A visibility transition starting from "hidden" stays hidden for its first
   frame, so an immediate Tab or programmatic focus() skipped the contents. */
.nav-item-dd:hover .dropdown, .nav-item-dd:focus-within .dropdown, .nav-item-dd.is-open .dropdown,
.consent-banner.is-open { transition-property: opacity, transform, visibility; transition-duration: 0.22s, 0.22s, 0s; }
@media (prefers-reduced-motion: reduce) {
  .nav-item-dd .dropdown, .consent-banner { transition: none !important; }
}
/* v1.6.2: at very short viewports (e.g. 400% browser zoom) the fixed header
   would cover ~40% of the screen — let it scroll away instead. It stays fixed
   while the mobile drawer is open so the close control remains reachable. */
@media (max-height: 340px) {
  .site-header { position: absolute; }
  body.nav-open .site-header { position: fixed; }
}
/* v1.6.2: comfortable touch targets for controls the visual QA measured
   under 44px (range sliders, the "send another message" control). */
.roi-field input[type="range"] { min-height: 44px; }
.link-btn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 0.15rem; }
.header-cta .btn { min-height: 44px; }
/* v1.6.2: the consent banner never grows past the viewport (at 400% zoom it
   did, and being fixed, its top could not be scrolled into view). */
.consent-banner { max-height: calc(100vh - 2.4rem); max-height: calc(100dvh - 2.4rem); overflow-y: auto; overscroll-behavior: contain; }
@media (max-height: 340px) { .consent-banner { bottom: 0.5rem; max-height: calc(100vh - 1rem); max-height: calc(100dvh - 1rem); padding: 1rem 1.1rem; } }
