/* =========================================================================
   Mediating Discovery — Daniel B. Garrie, Esq.
   Shared stylesheet. Vanilla CSS, no dependencies.
   ========================================================================= */

/* ---- Reset / base ---------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---- Design tokens --------------------------------------------------- */
:root {
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua",
           Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue",
          Helvetica, Arial, sans-serif;
  --mono: "SF Mono", "SFMono-Regular", ui-monospace, "Cascadia Mono",
          "Menlo", Consolas, "Liberation Mono", monospace;

  /* Ink + paper — brighter, cooler-warm neutral */
  --ink:      #1b2330;
  --navy:     #14273f;
  --navy-2:   #1c3450;
  --paper:    #fbf9f4;
  --paper-2:  #eef1f6;
  --paper-3:  #e4e9f1;

  /* Text on dark */
  --on-navy:        #f3f6fb;
  --on-navy-muted:  rgba(243, 246, 251, 0.70);
  --on-navy-faint:  rgba(243, 246, 251, 0.18);

  /* Text on paper */
  --muted:   #54606e;
  --faint:   #8a93a0;
  --line:    rgba(27, 35, 48, 0.13);
  --line-2:  rgba(27, 35, 48, 0.08);

  /* Accent — default (overridden by [data-accent]) */
  --accent:        #2f6fd6;
  --accent-bright: #76a8ec;
  --accent-soft:   rgba(47, 111, 214, 0.10);

  --maxw: 1180px;
  --gutter: clamp(20px, 5vw, 64px);
}

/* ---- Layout helpers -------------------------------------------------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
.wrap-narrow { max-width: 880px; margin: 0 auto; padding-inline: var(--gutter); }
section { position: relative; }
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 2000;
  background: var(--navy); color: var(--on-navy);
  padding: 12px 18px; font-family: var(--sans); font-size: 14px;
}
.skip-link:focus { left: 12px; top: 12px; }

.eyebrow {
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0;
}
.eyebrow--light { color: var(--accent-bright); }

/* ---- Buttons --------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 14px 26px;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.btn .arr { transition: transform 0.18s ease; }
.btn:hover .arr { transform: translateX(3px); }

.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { background: var(--accent-bright); }

.btn--ghost-dark {
  background: transparent;
  color: var(--on-navy);
  border-color: var(--on-navy-faint);
}
.btn--ghost-dark:hover { border-color: var(--on-navy); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn--ghost:hover { border-color: var(--ink); }

/* Text link with arrow */
.tlink {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--accent-soft);
  padding-bottom: 2px;
}
.tlink .arr { transition: transform 0.18s ease; }
.tlink:hover .arr { transform: translateX(3px); }

/* =========================================================================
   Header
   ========================================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 249, 244, 0.88);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand { text-decoration: none; color: var(--ink); display: flex; flex-direction: column; line-height: 1; }
.brand__name {
  font-family: var(--serif);
  font-size: 20px;
  letter-spacing: 0.01em;
}
.brand__sub {
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--faint);
  margin-top: 5px;
}

.nav { display: flex; align-items: center; gap: 26px; }
.nav a {
  font-family: var(--sans);
  font-size: 14.5px;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink);
  letter-spacing: 0.005em;
  white-space: nowrap;
  transition: color 0.15s ease;
}
.nav a:hover { color: var(--accent); }
.nav a[aria-current="page"] { color: var(--accent); }
.nav__cta {
  font-size: 13.5px !important;
  font-weight: 600 !important;
  border: 1px solid var(--line);
  padding: 9px 16px;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.nav__cta:hover { background: var(--accent); border-color: var(--accent); color: #fff !important; }

.nav-toggle { display: none; }

/* =========================================================================
   Hero
   ========================================================================= */
.hero {
  background: var(--navy);
  color: var(--on-navy);
  overflow: hidden;
}
.hero::before {
  /* subtle hairline texture */
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    90deg, transparent, transparent 119px, var(--on-navy-faint) 119px, var(--on-navy-faint) 120px);
  opacity: 0.5;
  pointer-events: none;
}
.hero__inner {
  position: relative;
  padding-top: clamp(70px, 11vw, 132px);
  padding-bottom: clamp(56px, 8vw, 92px);
}
.hero__eyebrow-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 30px;
}
.hero__rule { width: 46px; height: 1px; background: var(--accent-bright); }
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(38px, 5.6vw, 70px);
  line-height: 1.06;
  letter-spacing: -0.012em;
  max-width: 18ch;
}
.hero h1 .accent { color: var(--accent-bright); font-style: italic; }
.hero__sub {
  margin-top: 30px;
  max-width: 56ch;
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.6;
  color: var(--on-navy-muted);
}
.hero__cta {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

/* Proof points strip */
.proof {
  position: relative;
  margin-top: clamp(54px, 7vw, 80px);
  padding-top: 38px;
  border-top: 1px solid var(--on-navy-faint);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.proof__item { padding-right: 38px; }
.proof__item + .proof__item {
  padding-left: 38px;
  border-left: 1px solid var(--on-navy-faint);
}
.proof__label {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-bright);
  margin-bottom: 14px;
}
.proof__text {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.42;
  color: var(--on-navy);
}
.proof__text .dim { color: var(--on-navy-muted); }

/* =========================================================================
   Section scaffolding
   ========================================================================= */
.band { padding-block: clamp(64px, 9vw, 116px); }
.band--paper { background: var(--paper); }
.band--paper2 { background: var(--paper-2); }
.band--navy { background: var(--navy); color: var(--on-navy); }

.section-head { max-width: 760px; margin-bottom: 52px; }
.section-head .eyebrow { margin-bottom: 18px; }
.section-head h2 {
  font-family: var(--serif);
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.12;
  letter-spacing: -0.01em;
}
.section-head p {
  margin-top: 20px;
  font-size: 18px;
  color: var(--muted);
  max-width: 60ch;
}

/* =========================================================================
   Page hero (interior pages)
   ========================================================================= */
.page-hero {
  background: var(--navy);
  color: var(--on-navy);
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(
    90deg, transparent, transparent 119px, var(--on-navy-faint) 119px, var(--on-navy-faint) 120px);
  opacity: 0.45; pointer-events: none;
}
.page-hero__inner {
  position: relative;
  padding-top: clamp(58px, 8vw, 104px);
  padding-bottom: clamp(44px, 6vw, 72px);
}
.page-hero .eyebrow-row {
  display: flex; align-items: center; gap: 16px; margin-bottom: 26px;
}
.page-hero .eyebrow-row .hero__rule { background: var(--accent-bright); }
.page-hero h1 {
  font-family: var(--serif);
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.012em;
  max-width: 20ch;
}
.page-hero__sub {
  margin-top: 26px;
  max-width: 62ch;
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.6;
  color: var(--on-navy-muted);
}
.breadcrumb {
  font-family: var(--sans); font-size: 13px; letter-spacing: 0.04em;
  color: var(--on-navy-muted); margin-bottom: 22px;
}
.breadcrumb a { color: var(--on-navy-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--on-navy); }

/* =========================================================================
   Judicial quote feature
   ========================================================================= */
.quote-band {
  background: var(--navy);
  color: var(--on-navy);
  padding-block: clamp(70px, 10vw, 128px);
}
.quote-band .mark {
  font-family: var(--serif);
  font-size: 88px;
  line-height: 0.6;
  color: var(--accent-bright);
  height: 48px;
}
.quote-band blockquote {
  margin: 28px 0 0;
  font-family: var(--serif);
  font-size: clamp(26px, 3.6vw, 44px);
  line-height: 1.24;
  letter-spacing: -0.01em;
  max-width: 22ch;
}
.quote-band blockquote .accent { color: var(--accent-bright); }
.quote-band cite {
  display: block;
  margin-top: 32px;
  font-family: var(--sans);
  font-size: 14px;
  font-style: normal;
  letter-spacing: 0.04em;
  color: var(--on-navy-muted);
  max-width: 52ch;
  line-height: 1.55;
}

/* =========================================================================
   "Who this is for" — situation grid
   ========================================================================= */
.situations {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line-2);
  border: 1px solid var(--line-2);
}
.situation {
  background: var(--paper);
  padding: 26px 28px;
  transition: background 0.18s ease;
}
.situation:hover { background: var(--accent-soft); }
.situation__num {
  font-family: var(--serif);
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 0.05em;
}
.situation__t {
  font-family: var(--serif);
  font-size: 20px;
  margin-top: 8px;
  line-height: 1.25;
}
.situation__d {
  margin-top: 8px;
  font-size: 15.5px;
  color: var(--muted);
  line-height: 1.55;
}

/* =========================================================================
   Teaser rows (When to use / cards)
   ========================================================================= */
.rowlist { border-top: 1px solid var(--line); }
.rowlist__row {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 28px;
  align-items: baseline;
  padding: 28px 4px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink);
  transition: padding-left 0.2s ease, background 0.2s ease;
}
.rowlist__row:hover { padding-left: 16px; background: var(--accent-soft); }
.rowlist__idx {
  font-family: var(--serif);
  font-size: 15px;
  color: var(--accent);
}
.rowlist__main h3 {
  font-family: var(--serif);
  font-size: clamp(21px, 2.2vw, 26px);
  line-height: 1.2;
}
.rowlist__main p {
  margin-top: 8px;
  font-size: 16px;
  color: var(--muted);
  max-width: 60ch;
}
.rowlist__arr {
  font-family: var(--sans);
  font-size: 20px;
  color: var(--accent);
  align-self: center;
  transition: transform 0.2s ease;
}
.rowlist__row:hover .rowlist__arr { transform: translateX(4px); }

/* =========================================================================
   Matters teaser — category chips
   ========================================================================= */
.matters-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.matter-card {
  border: 1px solid var(--line);
  padding: 28px 26px 30px;
  text-decoration: none;
  color: var(--ink);
  background: var(--paper);
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
  display: flex;
  flex-direction: column;
  min-height: 168px;
}
.matter-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 18px 40px -28px rgba(20, 39, 63, 0.5);
}
.matter-card__k {
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.matter-card__t {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.2;
  margin-top: 14px;
}
.matter-card__d {
  margin-top: 12px;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.5;
}

/* =========================================================================
   Credentials strip
   ========================================================================= */
.creds {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--on-navy-faint);
}
.cred {
  background: var(--navy);
  padding: 8px 26px 8px 0;
}
.cred + .cred { padding-left: 26px; }
.cred__n {
  font-family: var(--serif);
  font-size: clamp(30px, 3.4vw, 42px);
  line-height: 1;
  color: var(--accent-bright);
  letter-spacing: -0.01em;
}
.cred__d {
  margin-top: 14px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--on-navy-muted);
}

/* =========================================================================
   CTA band
   ========================================================================= */
.cta-band { background: var(--paper-2); padding-block: clamp(64px, 8vw, 104px); }
.cta-band__inner { text-align: center; max-width: 720px; margin: 0 auto; }
.cta-band h2 {
  font-family: var(--serif);
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.14;
  letter-spacing: -0.01em;
}
.cta-band p { margin-top: 20px; font-size: 18px; color: var(--muted); }
.cta-band__btns {
  margin-top: 36px;
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* =========================================================================
   Footer
   ========================================================================= */
.site-footer {
  background: var(--navy);
  color: var(--on-navy-muted);
  padding-block: 64px 40px;
  font-size: 14px;
  line-height: 1.6;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 44px;
  border-bottom: 1px solid var(--on-navy-faint);
}
.footer-brand .brand__name { color: var(--on-navy); font-size: 22px; }
.footer-brand .brand__sub { color: var(--on-navy-muted); }
.footer-brand p { margin-top: 18px; max-width: 42ch; }
.footer-col h4 {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--on-navy);
  margin-bottom: 16px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: var(--on-navy-muted); text-decoration: none; transition: color 0.15s ease; }
.footer-col a:hover { color: var(--on-navy); }
.footer-legal {
  padding-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 40px;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--on-navy-muted);
}
.footer-legal p { max-width: 70ch; }
.footer-legal .firm-link { color: var(--on-navy-muted); text-decoration: underline; text-underline-offset: 2px; }
.footer-legal .firm-link:hover { color: var(--on-navy); }
.footer-disclaimer { max-width: 100%; }
.footer-legal-links { flex-basis: 100%; margin-top: 6px; }
.footer-legal-links a { color: var(--on-navy-muted); text-decoration: underline; text-underline-offset: 2px; }
.footer-legal-links a:hover { color: var(--on-navy); }

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 920px) {
  .creds { grid-template-columns: repeat(2, 1fr); }
  .cred { padding: 8px 18px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 980px) {
  .nav { display: none; }
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px; height: 44px;
    border: 1px solid var(--line);
    background: transparent;
    cursor: pointer;
  }
  .nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
    content: "";
    display: block;
    width: 18px; height: 1.5px;
    background: var(--ink);
    position: relative;
  }
  .nav-toggle span::before { position: absolute; top: -6px; }
  .nav-toggle span::after { position: absolute; top: 6px; }
  .mobile-nav {
    display: none;
    border-bottom: 1px solid var(--line);
    background: var(--paper);
  }
  .mobile-nav.open { display: block; }
  .mobile-nav a {
    display: block;
    padding: 15px var(--gutter);
    text-decoration: none;
    color: var(--ink);
    font-size: 16px;
    border-top: 1px solid var(--line-2);
  }
  .mobile-nav a.cta { color: var(--accent); font-weight: 600; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }

  .proof { grid-template-columns: 1fr; gap: 0; }
  .proof__item { padding: 24px 0; border-top: 1px solid var(--on-navy-faint); }
  .proof__item:first-child { padding-top: 0; border-top: none; }
  .proof__item + .proof__item { padding-left: 0; border-left: none; }

  .situations { grid-template-columns: 1fr; }
  .matters-grid { grid-template-columns: 1fr; }
  .rowlist__row { grid-template-columns: 36px 1fr; }
  .rowlist__arr { display: none; }
  .footer-legal { flex-direction: column; gap: 16px; }
}

/* Desktop: hide mobile nav entirely */
@media (min-width: 981px) {
  .mobile-nav { display: none !important; }
}

/* =========================================================================
   TWEAKABLE THEMES
   ========================================================================= */

/* ---- Accent palettes ------------------------------------------------- */
:root[data-accent="jams"] {
  --accent:        #2f6fd6;
  --accent-bright: #76a8ec;
  --accent-soft:   rgba(47, 111, 214, 0.10);
}
:root[data-accent="teal"] {
  --accent:        #0f8f8a;
  --accent-bright: #45c2bc;
  --accent-soft:   rgba(15, 143, 138, 0.11);
}
:root[data-accent="amber"] {
  /* Darkened from #c2761b to #a8620f to meet WCAG AA 4.5:1 on paper and
     for white text on accent-filled buttons. --accent-bright stays warm
     for use on the navy bands (which have ample contrast). */
  --accent:        #a8620f;
  --accent-bright: #f0ad4e;
  --accent-soft:   rgba(168, 98, 15, 0.12);
}
:root[data-accent="oxblood"] {
  --accent:        #9a3f37;
  --accent-bright: #cc6f63;
  --accent-soft:   rgba(154, 63, 55, 0.10);
}

/* ---- Display type: clean sans ---------------------------------------- */
:root[data-type="sans"] { --serif: var(--sans); }
:root[data-type="sans"] :is(h1, h2, h3, .brand__name, .proof__text,
  .matter-card__t, .situation__t, .cred__n, .rowlist__main h3,
  blockquote, .meet__bio-lead) {
  font-weight: 600;
  letter-spacing: -0.015em;
}
:root[data-type="sans"] .hero h1 .accent { font-style: normal; }

/* ---- Light hero ------------------------------------------------------ */
:root[data-hero="light"] .hero { background: var(--paper); color: var(--ink); }
:root[data-hero="light"] .hero::before {
  background-image: repeating-linear-gradient(90deg, transparent, transparent 119px, var(--line-2) 119px, var(--line-2) 120px);
  opacity: 1;
}
:root[data-hero="light"] .hero__sub { color: var(--muted); }
:root[data-hero="light"] .hero__rule { background: var(--accent); }
:root[data-hero="light"] .eyebrow--light { color: var(--accent); }
:root[data-hero="light"] .proof { border-top-color: var(--line); }
:root[data-hero="light"] .proof__item { border-top-color: var(--line); }
:root[data-hero="light"] .proof__item + .proof__item { border-left-color: var(--line); }
:root[data-hero="light"] .proof__label { color: var(--accent); }
:root[data-hero="light"] .proof__text { color: var(--ink); }
:root[data-hero="light"] .proof__text .dim { color: var(--muted); }
:root[data-hero="light"] .btn--ghost-dark { color: var(--ink); border-color: var(--line); }
:root[data-hero="light"] .btn--ghost-dark:hover { border-color: var(--ink); }
:root[data-hero="light"] .hero__portrait { box-shadow: 0 30px 60px -30px rgba(13,20,29,0.35); }

/* =========================================================================
   HERO — two-column with portrait
   ========================================================================= */
.hero__top {
  display: grid;
  grid-template-columns: 1.45fr 0.85fr;
  gap: clamp(36px, 5vw, 76px);
  align-items: center;
}
:root[data-portrait="off"] .hero__top { display: block; }
:root[data-portrait="off"] .hero__portrait { display: none; }

.hero__portrait {
  position: relative;
  aspect-ratio: 9 / 11;
  background: #1c2836 url("https://jamsadr.widen.net/content/0ercnwd14u/web/garrie-daniel-900x1080.jpg?width=900") center top / cover no-repeat;
  border: 1px solid var(--on-navy-faint);
}
.hero__portrait::after {
  /* accent corner rule */
  content: "";
  position: absolute;
  left: -1px; bottom: -1px;
  width: 64px; height: 4px;
  background: var(--accent-bright);
}
.hero h1 { max-width: 18ch; }

/* =========================================================================
   MEET THE NEUTRAL — bio + video
   ========================================================================= */
.meet-band { background: var(--navy); color: var(--on-navy); padding-block: clamp(64px, 9vw, 112px); }
.meet__grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}
.meet__bio-lead {
  font-family: var(--serif);
  font-size: clamp(21px, 2.2vw, 27px);
  line-height: 1.38;
  letter-spacing: -0.005em;
}
.meet__bio {
  margin-top: 22px;
  font-size: 17px;
  line-height: 1.62;
  color: var(--on-navy-muted);
  max-width: 52ch;
}
.meet__meta {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
}
.meet__meta span {
  font-family: var(--sans);
  font-size: 13.5px;
  letter-spacing: 0.04em;
  color: var(--on-navy);
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.meet__meta span::before {
  content: "";
  width: 5px; height: 5px;
  background: var(--accent-bright);
  display: inline-block;
}
.meet__actions { margin-top: 32px; }

/* Video player */
.video {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #0a0f16;
  border: 1px solid var(--on-navy-faint);
  cursor: pointer;
  overflow: hidden;
}
.video__poster {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.82;
  transition: opacity 0.25s ease, transform 0.4s ease;
}
.video:hover .video__poster { opacity: 0.95; transform: scale(1.02); }
.video__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,15,22,0.1), rgba(10,15,22,0.55));
}
.video__play {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 76px; height: 76px;
  border-radius: 50%;
  background: rgba(255,255,255,0.16);
  border: 1.5px solid rgba(255,255,255,0.7);
  display: grid; place-items: center;
  transition: background 0.2s ease, transform 0.2s ease;
}
.video:hover .video__play { background: var(--accent); border-color: var(--accent-bright); transform: translate(-50%,-50%) scale(1.06); }
.video__play::after {
  content: "";
  margin-left: 5px;
  border-style: solid;
  border-width: 11px 0 11px 18px;
  border-color: transparent transparent transparent #fff;
}
.video__label {
  position: absolute;
  left: 20px; bottom: 18px;
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
}
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
:root[data-video="off"] .meet-band { display: none; }

@media (max-width: 860px) {
  .hero__top { display: block; }
  .hero__portrait { display: none; }
  :root[data-portrait="on"] .hero__portrait { display: block; max-width: 320px; margin-top: 40px; }
  .meet__grid { grid-template-columns: 1fr; }
  .meet__actions { margin-bottom: 4px; }
}

/* =========================================================================
   SCROLL REVEAL + COUNT-UP
   ========================================================================= */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1), transform 0.7s cubic-bezier(0.16,1,0.3,1);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.reveal[data-delay="4"] { transition-delay: 0.32s; }
.reveal[data-delay="5"] { transition-delay: 0.40s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .btn .arr, .tlink .arr, .rowlist__arr, .matter-card, .video__poster { transition: none !important; }
}

/* =========================================================================
   INQUIRY FORM
   ========================================================================= */
.form-band { background: var(--paper); padding-block: clamp(64px, 9vw, 112px); }
.form-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: clamp(40px, 6vw, 88px);
  align-items: start;
}
.form-intro h2 {
  font-family: var(--serif);
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.12;
  letter-spacing: -0.01em;
}
.form-intro p { margin-top: 20px; font-size: 17px; color: var(--muted); max-width: 46ch; }
.form-routing {
  margin-top: 28px;
  padding: 20px 22px;
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink);
  max-width: 46ch;
}
.form-routing strong { font-weight: 600; }

.inq-form { display: grid; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field--row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field label {
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.field label .req { color: var(--accent); }
.field input,
.field select,
.field textarea {
  font-family: var(--sans);
  font-size: 16px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  padding: 13px 14px;
  width: 100%;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.field textarea { resize: vertical; min-height: 120px; line-height: 1.5; }
.field select { appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2354606e' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px;
}
/* honeypot — visually hidden, off-screen */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-foot {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  margin-top: 4px;
}
.form-note { font-size: 13px; color: var(--faint); max-width: 40ch; line-height: 1.5; }
.btn[disabled] { opacity: 0.55; cursor: progress; }

.form-status { font-size: 14.5px; line-height: 1.55; padding: 14px 16px; display: none; }
.form-status.show { display: block; }
.form-status--ok { background: var(--accent-soft); border-left: 3px solid var(--accent); color: var(--ink); }
.form-status--err { background: rgba(154,63,55,0.08); border-left: 3px solid #9a3f37; color: #7c322c; }

@media (max-width: 760px) {
  .form-grid { grid-template-columns: 1fr; }
  .field--row { grid-template-columns: 1fr; }
}

/* =========================================================================
   PROSE (when-to-use, model-orders, about, insights)
   ========================================================================= */
.prose { max-width: 720px; }
.prose > * + * { margin-top: 20px; }
.prose h2 {
  font-family: var(--serif); font-size: clamp(24px, 2.8vw, 34px);
  line-height: 1.18; letter-spacing: -0.01em; margin-top: 8px;
}
.prose h3 {
  font-family: var(--serif); font-size: clamp(20px, 2.2vw, 26px);
  line-height: 1.22; margin-top: 14px;
}
.prose p { font-size: 17.5px; line-height: 1.68; color: var(--ink); }
.prose p.lead { font-size: 20px; color: var(--muted); }
.prose ul.bullets { display: flex; flex-direction: column; gap: 10px; }
.prose ul.bullets li {
  position: relative; padding-left: 22px; font-size: 17px; line-height: 1.6; color: var(--ink);
}
.prose ul.bullets li::before {
  content: ""; position: absolute; left: 0; top: 11px;
  width: 6px; height: 6px; background: var(--accent);
}
.prose a.inline { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

/* Framework step blocks (when-to-use) */
.framework { display: grid; gap: 0; border-top: 1px solid var(--line); }
.fstep {
  display: grid; grid-template-columns: 64px 1fr; gap: 28px;
  padding: 40px 0; border-bottom: 1px solid var(--line); align-items: start;
}
.fstep__k {
  font-family: var(--serif); font-size: 30px; color: var(--accent); line-height: 1;
}
.fstep h3 { font-family: var(--serif); font-size: clamp(22px, 2.4vw, 28px); line-height: 1.18; }
.fstep__body > * + * { margin-top: 14px; }
.fstep__row {
  display: grid; grid-template-columns: 150px 1fr; gap: 18px;
  padding: 12px 0; border-top: 1px solid var(--line-2); font-size: 16px; line-height: 1.55;
}
.fstep__row dt { font-weight: 600; color: var(--muted); font-size: 13px; letter-spacing: 0.05em; text-transform: uppercase; padding-top: 2px; }
.fstep__row dd { margin: 0; color: var(--ink); }
.vehicle {
  display: inline-block; font-family: var(--mono); font-size: 13px;
  background: var(--paper-2); border: 1px solid var(--line); padding: 3px 9px; margin: 3px 6px 3px 0;
  color: var(--ink);
}
@media (max-width: 680px) {
  .fstep { grid-template-columns: 1fr; gap: 14px; }
  .fstep__row { grid-template-columns: 1fr; gap: 4px; }
}

/* Template / code blocks (model-orders) */
.tmpl { border: 1px solid var(--line); margin-top: 28px; background: #fff; }
.tmpl__head {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 20px; border-bottom: 1px solid var(--line); background: var(--paper-2);
}
.tmpl__head h3 { font-family: var(--serif); font-size: 20px; line-height: 1.2; }
.tmpl__head .meta { font-family: var(--mono); font-size: 12px; color: var(--muted); letter-spacing: 0.02em; }
.tmpl__copy {
  font-family: var(--sans); font-size: 12.5px; font-weight: 600; letter-spacing: 0.04em;
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  padding: 7px 13px; cursor: pointer; white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.tmpl__copy:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.tmpl__copy.copied { background: var(--accent); color: #fff; border-color: var(--accent); }
.tmpl pre {
  margin: 0; padding: 22px 20px; overflow-x: auto;
  font-family: var(--mono); font-size: 13.5px; line-height: 1.7; color: var(--ink);
  white-space: pre-wrap; word-break: break-word;
}
.tmpl pre .blank { color: var(--accent); font-weight: 600; }
.note-callout {
  margin-top: 14px; font-size: 13.5px; color: var(--muted); line-height: 1.55;
  padding-left: 16px; border-left: 2px solid var(--line);
}

/* TOC (model-orders / when-to-use) */
.toc {
  border: 1px solid var(--line); padding: 22px 24px; background: var(--paper);
  position: sticky; top: 92px;
}
.toc h4 { font-family: var(--sans); font-size: 11.5px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); margin-bottom: 14px; }
.toc ul { display: flex; flex-direction: column; gap: 11px; }
.toc a { font-size: 14.5px; color: var(--muted); text-decoration: none; line-height: 1.4; display: block; transition: color 0.15s ease; }
.toc a:hover { color: var(--accent); }
.split { display: grid; grid-template-columns: 240px 1fr; gap: clamp(36px, 5vw, 72px); align-items: start; }
@media (max-width: 880px) {
  .split { grid-template-columns: 1fr; }
  .toc { position: static; }
}

/* Matters page */
.matter-group { padding-block: clamp(44px, 6vw, 72px); border-bottom: 1px solid var(--line); }
.matter-group:last-child { border-bottom: 0; }
.matter-group__head { display: grid; grid-template-columns: 64px 1fr; gap: 26px; align-items: baseline; margin-bottom: 30px; }
.matter-group__k { font-family: var(--serif); font-size: 26px; color: var(--accent); }
.matter-group__t { font-family: var(--serif); font-size: clamp(24px, 2.6vw, 32px); line-height: 1.16; }
.matter-group__d { margin-top: 10px; font-size: 17px; color: var(--muted); max-width: 64ch; line-height: 1.6; }
.matter-list { display: flex; flex-direction: column; gap: 0; border-top: 1px solid var(--line); }
.matter-item {
  display: grid; grid-template-columns: 1fr; gap: 6px;
  padding: 22px 0; border-bottom: 1px solid var(--line-2);
}
.matter-item h3, .matter-item h4 { font-family: var(--serif); font-size: 19px; line-height: 1.3; font-weight: 400; }
.matter-item p { font-size: 16px; color: var(--muted); line-height: 1.55; max-width: 70ch; }
.matter-item .tag {
  font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 2px;
}
.placeholder-note {
  font-family: var(--mono); font-size: 13px; color: var(--muted);
  background: var(--paper-2); border: 1px dashed var(--line); padding: 16px 18px; line-height: 1.6;
}
@media (max-width: 680px) {
  .matter-group__head { grid-template-columns: 1fr; gap: 8px; }
}

/* About page */
.about-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(36px, 5vw, 72px); align-items: start; }
.about-portrait {
  aspect-ratio: 9 / 11;
  width: 100%; display: block; object-fit: cover; object-position: center top;
  background: #1c2836 url("https://jamsadr.widen.net/content/0ercnwd14u/web/garrie-daniel-900x1080.jpg?width=900") center top / cover no-repeat;
  border: 1px solid var(--line); position: relative; position: sticky; top: 92px;
}
.about-portrait::after { content: ""; position: absolute; left: -1px; bottom: -1px; width: 64px; height: 4px; background: var(--accent); }
.factbox { margin-top: 40px; border-top: 1px solid var(--line); }
.factbox dl { display: grid; grid-template-columns: 1fr; }
.factbox .fact { display: grid; grid-template-columns: 200px 1fr; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--line-2); }
.factbox dt { font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); padding-top: 3px; }
.factbox dd { margin: 0; font-size: 16.5px; line-height: 1.55; color: var(--ink); }
@media (max-width: 880px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-portrait { position: static; max-width: 340px; }
}
@media (max-width: 560px) {
  .factbox .fact { grid-template-columns: 1fr; gap: 4px; }
}

/* Insights page */
.insight-list { border-top: 1px solid var(--line); }
.insight {
  display: grid; grid-template-columns: 88px 1fr auto; gap: 28px; align-items: baseline;
  padding: 34px 4px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink);
  transition: padding-left 0.2s ease, background 0.2s ease;
}
.insight:hover { padding-left: 16px; background: var(--accent-soft); }
.insight__k { font-family: var(--mono); font-size: 13px; color: var(--accent); letter-spacing: 0.04em; }
.insight__main h3 { font-family: var(--serif); font-size: clamp(21px, 2.3vw, 28px); line-height: 1.2; }
.insight__main p { margin-top: 10px; font-size: 16.5px; color: var(--muted); line-height: 1.55; max-width: 64ch; }
.insight__tag { font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; display: block; }
.insight__arr { font-size: 20px; color: var(--accent); align-self: center; transition: transform 0.2s ease; }
.insight:hover .insight__arr { transform: translateX(4px); }
.subscribe-note {
  margin-top: 40px; padding: 24px 26px; background: var(--paper-2); border: 1px solid var(--line);
  font-size: 15.5px; color: var(--muted); line-height: 1.6;
}
@media (max-width: 680px) {
  .insight { grid-template-columns: 1fr; gap: 8px; }
  .insight__arr { display: none; }
}

/* =========================================================================
   TWEAKS PANEL (vanilla)
   ========================================================================= */
#tweaks { display: none; }
#tweaks.open { display: block; }
.tw-fab {
  position: fixed; right: 20px; bottom: 20px; z-index: 999;
  width: 46px; height: 46px; border-radius: 50%;
  background: #0d141d; color: #fff; border: 0; cursor: pointer;
  display: none; align-items: center; justify-content: center;
  box-shadow: 0 14px 36px -12px rgba(0,0,0,0.5);
  font-size: 18px;
}
.tw-fab.show { display: flex; }
.tw-panel {
  position: fixed;
  right: 20px; bottom: 20px;
  z-index: 1000;
  width: 296px;
  background: #ffffff;
  color: #1a1f26;
  border: 1px solid rgba(0,0,0,0.12);
  box-shadow: 0 24px 60px -20px rgba(0,0,0,0.45);
  font-family: var(--sans);
  border-radius: 10px;
  overflow: hidden;
}
.tw-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 16px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  cursor: move;
  background: #0d141d;
  color: #fff;
}
.tw-head h3 { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.tw-close {
  border: 0; background: transparent; color: rgba(255,255,255,0.7);
  font-size: 20px; line-height: 1; cursor: pointer; padding: 0 2px;
}
.tw-close:hover { color: #fff; }
.tw-body { padding: 6px 16px 16px; max-height: 70vh; overflow-y: auto; }
.tw-sec {
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: #8a8f95; margin: 18px 0 10px;
}
.tw-row { margin-bottom: 4px; }
.tw-row > label {
  display: block; font-size: 12.5px; color: #4a5058; margin-bottom: 7px; font-weight: 500;
}
.tw-seg {
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  border: 1px solid rgba(0,0,0,0.14); border-radius: 7px; overflow: hidden;
}
.tw-seg button {
  border: 0; background: #fff; padding: 8px 6px; font-size: 12.5px; font-family: inherit;
  color: #4a5058; cursor: pointer; border-left: 1px solid rgba(0,0,0,0.1);
  transition: background 0.12s ease, color 0.12s ease;
}
.tw-seg button:first-child { border-left: 0; }
.tw-seg button.active { background: #0d141d; color: #fff; }
.tw-swatches { display: flex; gap: 8px; }
.tw-sw {
  flex: 1; height: 38px; border-radius: 7px; cursor: pointer;
  border: 2px solid transparent; position: relative; font-size: 0;
  display: flex; align-items: flex-end; padding: 5px;
}
.tw-sw.active { border-color: #1a1f26; }
.tw-sw span { font-size: 10px; color: #fff; letter-spacing: 0.04em; font-weight: 600; }
.tw-toggle {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 0; cursor: pointer;
}
.tw-toggle span { font-size: 13px; color: #2a2f36; }
.tw-switch {
  width: 40px; height: 23px; border-radius: 999px; background: #cdd2d8;
  position: relative; transition: background 0.15s ease; flex: 0 0 auto;
}
.tw-switch::after {
  content: ""; position: absolute; top: 2px; left: 2px;
  width: 19px; height: 19px; border-radius: 50%; background: #fff;
  transition: transform 0.15s ease; box-shadow: 0 1px 2px rgba(0,0,0,0.3);
}
.tw-toggle.on .tw-switch { background: var(--accent); }
.tw-toggle.on .tw-switch::after { transform: translateX(17px); }

/* =========================================================================
   Accessibility / SEO helpers (audit pass)
   ========================================================================= */
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* "Last updated" freshness signal in page heroes */
.last-updated {
  font-family: var(--sans); font-size: 12.5px; letter-spacing: 0.04em;
  color: var(--on-navy-muted); margin-top: 18px;
}
:root[data-hero="light"] .page-hero .last-updated { color: var(--muted); }

/* Breadcrumb as a semantic <nav><ol> (separators via CSS, not literal text) */
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 0; margin: 0; list-style: none; }
.breadcrumb li { display: inline-flex; align-items: center; gap: 8px; }
.breadcrumb li + li::before { content: "/"; color: var(--on-navy-muted); }

/* Insights "coming soon" — honest non-link cards (no fake click affordance) */
.insight--soon { cursor: default; }
.insight--soon:hover { padding-left: 4px; background: transparent; }
.insight--soon .insight__arr { display: none; }
.coming-badge {
  display: inline-block; font-family: var(--sans); font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent);
  border: 1px solid var(--line); padding: 3px 9px; margin-left: 10px; vertical-align: middle;
}
.tw-hint { font-size: 11px; color: #8a8f95; margin-top: 14px; line-height: 1.5; }
