/* ==========================================================================
   ShepardTri Solutions — shared stylesheet
   Loaded by every page. Page-specific rules live in each page's <style> block.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. DESIGN TOKENS
   Light is the base palette; dark overrides only the values that change.
   -------------------------------------------------------------------------- */
:root {
  --bg:            #ffffff;
  --bg-subtle:     #F6F9F9;
  --surface:       #ffffff;
  --surface-2:     #F1F6F6;
  --surface-glass: rgba(255,255,255,.72);

  --border:        #E4EBEC;
  --border-strong: #CFDBDD;

  --text:          #081416;
  --text-muted:    #52686D;
  --text-faint:    #7B9197;

  /* Emerald — chosen to echo the tree/roots mark. Teal is kept as the
     secondary so gradients stay in the same family as the old brand. */
  --brand:         #059669;
  --brand-strong:  #047857;
  --brand-contrast:#ffffff;
  --brand-soft:    #E6F7F0;
  --accent:        #0D9488;

  --ring:          rgba(5,150,105,.30);
  --shadow-sm:     0 1px 2px rgba(8,20,22,.05), 0 1px 3px rgba(8,20,22,.06);
  --shadow-md:     0 4px 12px rgba(8,20,22,.06), 0 12px 28px rgba(8,20,22,.07);
  --shadow-lg:     0 8px 20px rgba(8,20,22,.07), 0 28px 60px rgba(8,20,22,.10);
  --glow:          0 12px 32px rgba(5,150,105,.24);
  --dot:           rgba(8,20,22,.09);
  --logo-invert:   0;

  /* CTA band. Kept as its own tokens because the band is a large filled
     area — in dark mode it must go deeper, not brighter, or white text
     loses contrast and the block glares. */
  --cta-grad:      linear-gradient(125deg, #047857, #059669 45%, #0D9488);
  --cta-dots:      rgba(255,255,255,.16);

  --font: "Segoe UI Variable Display", "Segoe UI", -apple-system, BlinkMacSystemFont, "Inter", "Helvetica Neue", Arial, sans-serif;
  --mono: "Cascadia Code", "SF Mono", "JetBrains Mono", Consolas, "Liberation Mono", monospace;

  --maxw: 1200px;
  --header-h: 76px;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
}

/* Dark via system preference (only when the user has not forced light) */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:            #080F11;
    --bg-subtle:     #0B1517;
    --surface:       #0E191C;
    --surface-2:     #132226;
    --surface-glass: rgba(11,21,23,.72);

    --border:        #1D2F33;
    --border-strong: #2A4046;

    --text:          #E9F1F2;
    --text-muted:    #9CB2B7;
    --text-faint:    #74898F;

    --brand:         #34D399;
    --brand-strong:  #6EE7B7;
    --brand-contrast:#04231A;
    --brand-soft:    rgba(52,211,153,.10);
    --accent:        #2DD4BF;

    --ring:          rgba(52,211,153,.35);
    --shadow-sm:     0 1px 2px rgba(0,0,0,.4);
    --shadow-md:     0 4px 12px rgba(0,0,0,.42), 0 12px 28px rgba(0,0,0,.36);
    --shadow-lg:     0 8px 20px rgba(0,0,0,.45), 0 28px 60px rgba(0,0,0,.5);
    --glow:          0 12px 32px rgba(52,211,153,.20);
    --dot:           rgba(233,241,242,.08);
    --logo-invert:   1;

    --cta-grad:      linear-gradient(125deg, #064E3B, #065F46 45%, #0F5F5A);
    --cta-dots:      rgba(255,255,255,.10);
  }
}

/* Dark forced by the toggle — wins in both directions */
:root[data-theme="dark"] {
  --bg:            #080F11;
  --bg-subtle:     #0B1517;
  --surface:       #0E191C;
  --surface-2:     #132226;
  --surface-glass: rgba(11,21,23,.72);

  --border:        #1D2F33;
  --border-strong: #2A4046;

  --text:          #E9F1F2;
  --text-muted:    #9CB2B7;
  --text-faint:    #74898F;

  --brand:         #2DD4BF;
  --brand-strong:  #5EEAD4;
  --brand-contrast:#04211F;
  --brand-soft:    rgba(45,212,191,.10);
  --accent:        #22D3EE;

  --ring:          rgba(45,212,191,.35);
  --shadow-sm:     0 1px 2px rgba(0,0,0,.4);
  --shadow-md:     0 4px 12px rgba(0,0,0,.42), 0 12px 28px rgba(0,0,0,.36);
  --shadow-lg:     0 8px 20px rgba(0,0,0,.45), 0 28px 60px rgba(0,0,0,.5);
  --glow:          0 12px 32px rgba(45,212,191,.20);
  --dot:           rgba(233,241,242,.08);
  --logo-invert:   1;
}

/* --------------------------------------------------------------------------
   2. BASE
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
ul { list-style: none; }

:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--brand); color: var(--brand-contrast); }

h1, h2, h3, h4 {
  line-height: 1.15;
  letter-spacing: -0.022em;
  font-weight: 680;
  text-wrap: balance;
}
p { text-wrap: pretty; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }
section { scroll-margin-top: calc(var(--header-h) + 12px); }

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 2000;
  background: var(--brand); color: var(--brand-contrast);
  padding: 12px 20px; border-radius: var(--r-sm);
  font-weight: 620; transition: top .2s ease;
}
.skip-link:focus { top: 16px; }

/* --------------------------------------------------------------------------
   3. REUSABLE PIECES
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 24px;
  border: 1px solid transparent; border-radius: 100px;
  font-weight: 620; font-size: .95rem; letter-spacing: -0.005em;
  cursor: pointer; white-space: nowrap;
  transition: transform .18s cubic-bezier(.3,.8,.4,1), box-shadow .22s ease,
              background-color .2s ease, border-color .2s ease, color .2s ease;
}
.btn svg { width: 17px; height: 17px; flex-shrink: 0; }

.btn-primary { background: var(--brand); color: var(--brand-contrast); box-shadow: var(--glow); }
.btn-primary:hover { background: var(--brand-strong); transform: translateY(-2px); }
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  background: var(--surface); color: var(--text);
  border-color: var(--border-strong); box-shadow: var(--shadow-sm);
}
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-2px); }

.btn-sm { padding: 10px 18px; font-size: .875rem; }
.btn-lg { padding: 15px 30px; font-size: 1rem; }

.btn .arrow { transition: transform .22s cubic-bezier(.3,.8,.4,1); }
.btn:hover .arrow { transform: translateX(3px); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 7px;
  color: var(--brand); font-weight: 620; font-size: .92rem;
}
.link-arrow svg { width: 16px; height: 16px; transition: transform .22s cubic-bezier(.3,.8,.4,1); }
.link-arrow:hover svg { transform: translateX(4px); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px 6px 10px;
  background: var(--brand-soft);
  border: 1px solid color-mix(in srgb, var(--brand) 22%, transparent);
  border-radius: 100px; color: var(--brand);
  font-size: .78rem; font-weight: 650; letter-spacing: .04em; text-transform: uppercase;
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 22%, transparent);
}

.section-head { max-width: 680px; margin-bottom: 60px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); margin: 18px 0 16px; }
.section-head p { color: var(--text-muted); font-size: 1.075rem; }

.section-pad { padding: clamp(72px, 9vw, 120px) 0; }
.band { background: var(--bg-subtle); border-block: 1px solid var(--border); }

.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); box-shadow: var(--shadow-sm);
  transition: transform .28s cubic-bezier(.3,.8,.4,1), box-shadow .28s ease, border-color .28s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }

.icon-tile {
  width: 48px; height: 48px; display: grid; place-items: center;
  border-radius: var(--r-md); background: var(--brand-soft); color: var(--brand);
  border: 1px solid color-mix(in srgb, var(--brand) 18%, transparent); flex-shrink: 0;
}
.icon-tile svg { width: 23px; height: 23px; }

[data-reveal] {
  opacity: 0; transform: translateY(20px);
  transition: opacity .7s cubic-bezier(.2,.7,.3,1), transform .7s cubic-bezier(.2,.7,.3,1);
  transition-delay: var(--d, 0ms);
}
[data-reveal].is-visible { opacity: 1; transform: none; }

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

/* --------------------------------------------------------------------------
   4. HEADER + NAV
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 1000;
  height: var(--header-h); display: flex; align-items: center;
  border-bottom: 1px solid transparent;
  transition: background-color .3s ease, border-color .3s ease, box-shadow .3s ease, backdrop-filter .3s ease;
}
.site-header.scrolled {
  background: var(--surface-glass);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}
/* Sub-pages sit on a solid band, so their header is always filled in. */
.site-header.solid {
  background: var(--surface-glass);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom-color: var(--border);
}
.site-header .container { display: flex; align-items: center; gap: 18px; }

/* Logo lockup: the tree mark is raster art, the name is live text so it stays
   crisp at every size and takes its colour from the active theme. */
.brand { display: flex; align-items: center; gap: 9px; margin-right: auto; }
.logo-mark {
  height: 60px; width: auto;
  /* the source art is thin black line-work — a contrast nudge keeps the
     branches from washing out to grey once it is scaled down */
  filter: invert(var(--logo-invert)) contrast(1.12);
  transition: filter .3s ease;
}
.wordmark {
  font-size: 1.22rem; font-weight: 700; letter-spacing: -0.028em;
  line-height: 1; color: var(--text); white-space: nowrap;
}

.nav { display: flex; align-items: center; gap: 2px; }
.nav a {
  position: relative; padding: 9px 12px; border-radius: 100px;
  font-size: .91rem; font-weight: 560; color: var(--text-muted);
  transition: color .2s ease, background-color .2s ease;
}
.nav a:hover { color: var(--text); background: var(--surface-2); }
.nav a.active { color: var(--brand); }
.nav a.active::after {
  content: ''; position: absolute; left: 50%; bottom: 2px;
  width: 16px; height: 2px; transform: translateX(-50%);
  background: var(--brand); border-radius: 2px;
}

.header-actions { display: flex; align-items: center; gap: 10px; }

.theme-toggle {
  width: 40px; height: 40px; display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--border); border-radius: 50%;
  cursor: pointer; color: var(--text-muted); box-shadow: var(--shadow-sm);
  transition: color .2s ease, border-color .2s ease, transform .2s ease;
}
.theme-toggle:hover { color: var(--brand); border-color: var(--brand); transform: rotate(-18deg); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun  { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun  { display: none; }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: block; }
}

.menu-btn {
  display: none; width: 40px; height: 40px; place-items: center;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 50%; cursor: pointer; box-shadow: var(--shadow-sm);
}
.menu-btn svg { width: 19px; height: 19px; }

/* Mobile drawer */
.drawer {
  position: fixed; inset: 0; z-index: 1100;
  display: grid; grid-template-rows: auto 1fr;
  background: var(--bg);
  transform: translateY(-100%); visibility: hidden;
  transition: transform .38s cubic-bezier(.4,0,.2,1), visibility .38s;
}
.drawer.open { transform: none; visibility: visible; }
.drawer-top {
  height: var(--header-h); display: flex; align-items: center; justify-content: space-between;
  padding-inline: 24px; border-bottom: 1px solid var(--border);
}
.drawer-top .brand { margin-right: 0; }
.drawer-top .logo-mark { height: 34px; }
.drawer-close {
  width: 40px; height: 40px; display: grid; place-items: center;
  border: 1px solid var(--border); background: var(--surface);
  border-radius: 50%; cursor: pointer;
}
.drawer-close svg { width: 18px; height: 18px; }
.drawer-nav {
  padding: 28px 24px 40px; display: flex; flex-direction: column; gap: 4px; overflow-y: auto;
}
.drawer-nav a {
  padding: 15px 4px; font-size: 1.3rem; font-weight: 620;
  letter-spacing: -0.02em; border-bottom: 1px solid var(--border);
}
.drawer-nav a:last-of-type { border-bottom: 0; }
.drawer-nav .btn { margin-top: 22px; }

@media (max-width: 1040px) {
  .nav { display: none; }
  .menu-btn { display: grid; }
}

/* --------------------------------------------------------------------------
   5. PAGE HERO (sub-pages)
   -------------------------------------------------------------------------- */
.page-hero {
  position: relative; overflow: hidden;
  padding: calc(var(--header-h) + clamp(46px, 6vw, 76px)) 0 clamp(44px, 6vw, 68px);
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border);
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(var(--dot) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse 80% 90% at 30% 10%, #000 0%, transparent 75%);
          mask-image: radial-gradient(ellipse 80% 90% at 30% 10%, #000 0%, transparent 75%);
  pointer-events: none;
}
.page-hero .container { position: relative; }
.page-hero h1 {
  font-size: clamp(2.1rem, 4.4vw, 3.2rem);
  letter-spacing: -0.03em; margin: 18px 0 16px;
}
.page-hero p.lede {
  font-size: clamp(1.02rem, 1.5vw, 1.15rem);
  color: var(--text-muted); max-width: 62ch;
}

.crumbs {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-size: .85rem; color: var(--text-faint); margin-bottom: 6px;
}
.crumbs a { color: var(--text-muted); }
.crumbs a:hover { color: var(--brand); }
.crumbs svg { width: 14px; height: 14px; opacity: .6; }

/* --------------------------------------------------------------------------
   6. DOC LAYOUT — sticky "on this page" rail + prose column
   -------------------------------------------------------------------------- */
.doc {
  display: grid;
  grid-template-columns: 258px minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
  padding: clamp(48px, 6vw, 76px) 0 clamp(64px, 8vw, 100px);
}

.toc {
  position: sticky;
  top: calc(var(--header-h) + 22px);
  max-height: calc(100vh - var(--header-h) - 46px);
  overflow-y: auto;
  padding: 20px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}
.toc h2 {
  font-size: .74rem; text-transform: uppercase; letter-spacing: .11em;
  color: var(--text-faint); font-weight: 700; margin-bottom: 14px;
}
.toc ol { list-style: none; counter-reset: toc; }
.toc li { margin-bottom: 2px; }
.toc a {
  display: block; padding: 8px 12px; border-radius: var(--r-sm);
  font-size: .875rem; color: var(--text-muted); line-height: 1.4;
  border-left: 2px solid transparent;
  transition: color .18s ease, background-color .18s ease, border-color .18s ease;
}
.toc a:hover { color: var(--text); background: var(--surface-2); }
.toc a.active {
  color: var(--brand); background: var(--brand-soft);
  border-left-color: var(--brand); font-weight: 620;
}

/* Prose */
.prose { max-width: 74ch; }
.prose > section { margin-bottom: 52px; }
.prose > section:last-child { margin-bottom: 0; }
.prose h2 {
  font-size: clamp(1.35rem, 2.2vw, 1.72rem);
  margin-bottom: 16px; padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.prose h3 {
  font-size: 1.06rem; font-weight: 660;
  margin: 28px 0 10px; color: var(--text);
}
.prose p { color: var(--text-muted); margin-bottom: 14px; }
.prose a:not(.btn) { color: var(--brand); font-weight: 560; text-decoration: underline; text-underline-offset: 3px; }
.prose ul.bullets { margin: 0 0 16px; display: grid; gap: 9px; }
.prose ul.bullets li {
  position: relative; padding-left: 22px;
  color: var(--text-muted); font-size: .96rem;
}
.prose ul.bullets li::before {
  content: ''; position: absolute; left: 4px; top: .62em;
  width: 6px; height: 6px; border-radius: 50%; background: var(--brand);
}
.prose strong { color: var(--text); font-weight: 640; }

.callout {
  display: flex; gap: 14px;
  padding: 18px 20px; margin: 20px 0;
  background: var(--brand-soft);
  border: 1px solid color-mix(in srgb, var(--brand) 24%, transparent);
  border-radius: var(--r-md);
}
.callout svg { width: 20px; height: 20px; color: var(--brand); flex-shrink: 0; margin-top: 2px; }
.callout p { margin: 0; font-size: .92rem; color: var(--text); }
.callout p + p { margin-top: 8px; }

.table-wrap { overflow-x: auto; margin: 18px 0; border: 1px solid var(--border); border-radius: var(--r-md); }
table { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 460px; }
thead th {
  text-align: left; padding: 12px 16px;
  background: var(--surface-2); color: var(--text);
  font-weight: 650; font-size: .8rem;
  text-transform: uppercase; letter-spacing: .05em;
  border-bottom: 1px solid var(--border);
}
tbody td { padding: 12px 16px; border-bottom: 1px solid var(--border); color: var(--text-muted); vertical-align: top; }
tbody tr:last-child td { border-bottom: 0; }
tbody td:first-child { color: var(--text); font-weight: 560; }

.updated {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 100px;
  background: var(--surface); border: 1px solid var(--border);
  font-size: .82rem; color: var(--text-muted); margin-top: 18px;
}
.updated svg { width: 15px; height: 15px; color: var(--brand); }

@media (max-width: 900px) {
  .doc { grid-template-columns: 1fr; }
  .toc { position: static; max-height: none; }
  .toc ol { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 2px; }
}

/* --------------------------------------------------------------------------
   7. TEAM / LEADERSHIP
   -------------------------------------------------------------------------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(272px, 1fr));
  gap: 22px;
}
.person {
  display: flex; flex-direction: column;
  padding: 26px 24px 24px;
  text-align: center; align-items: center;
}
.person .avatar {
  position: relative;
  width: 116px; height: 116px;
  border-radius: 50%;
  margin-bottom: 18px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  display: grid; place-items: center;
  border: 3px solid var(--surface);
  box-shadow: 0 0 0 1px var(--border), var(--shadow-sm);
  flex-shrink: 0;
}
.person .avatar img { width: 100%; height: 100%; object-fit: cover; }
.person .avatar .initials {
  font-size: 2.1rem; font-weight: 700; color: #fff; letter-spacing: -0.02em;
  user-select: none;
}
.person h3 { font-size: 1.12rem; margin-bottom: 4px; }
.person .role {
  font-size: .84rem; font-weight: 650; color: var(--brand);
  text-transform: uppercase; letter-spacing: .06em; margin-bottom: 14px;
}
.person .bio { font-size: .91rem; color: var(--text-muted); margin-bottom: 18px; }
.person .person-links { display: flex; gap: 8px; margin-top: auto; }
.person .person-links a {
  width: 36px; height: 36px; display: grid; place-items: center;
  border-radius: 50%; border: 1px solid var(--border);
  background: var(--surface); color: var(--text-muted);
  transition: all .22s ease;
}
.person .person-links a:hover {
  background: var(--brand); color: var(--brand-contrast);
  border-color: var(--brand); transform: translateY(-3px);
}
.person .person-links svg { width: 16px; height: 16px; }

/* Marks a card whose real details still need filling in. */
.person.placeholder .avatar { background: linear-gradient(135deg, var(--border-strong), var(--border)); }
.person.placeholder .initials { color: var(--text-faint); }

/* --------------------------------------------------------------------------
   8. TIMELINE (how we work)
   -------------------------------------------------------------------------- */
.timeline { display: grid; gap: 0; }
.tl-item {
  position: relative;
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 24px;
  padding-bottom: 40px;
}
.tl-item:last-child { padding-bottom: 0; }
/* vertical rail */
.tl-item::before {
  content: ''; position: absolute;
  left: 27px; top: 56px; bottom: 0; width: 2px;
  background: linear-gradient(180deg, var(--brand), var(--border));
}
.tl-item:last-child::before { display: none; }
.tl-num {
  width: 56px; height: 56px; display: grid; place-items: center;
  border-radius: 50%;
  background: var(--brand-soft); color: var(--brand);
  border: 1px solid color-mix(in srgb, var(--brand) 28%, transparent);
  font-family: var(--mono); font-weight: 700; font-size: .95rem;
  position: relative; z-index: 1;
}
.tl-body { padding-top: 6px; }
.tl-body h3 { font-size: 1.2rem; margin-bottom: 8px; }
.tl-body > p { color: var(--text-muted); margin-bottom: 14px; }
.tl-meta {
  display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px;
}
.tl-meta li {
  padding: 5px 11px; border-radius: 100px;
  background: var(--surface-2); border: 1px solid var(--border);
  font-size: .78rem; color: var(--text-muted); font-weight: 540;
}
.tl-out {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 14px; padding: 9px 14px;
  border-radius: var(--r-sm);
  background: var(--brand-soft);
  border: 1px solid color-mix(in srgb, var(--brand) 22%, transparent);
  font-size: .86rem; color: var(--text);
}
.tl-out svg { width: 15px; height: 15px; color: var(--brand); flex-shrink: 0; }
.tl-out b { font-weight: 650; }
@media (max-width: 560px) {
  .tl-item { grid-template-columns: 1fr; gap: 14px; }
  .tl-item::before { display: none; }
}

/* --------------------------------------------------------------------------
   8b. AGENT ANIMATION KEYFRAMES (shared)
   Used by the "agentic handoff" diagram on how-we-work.html and by the
   compact hero strip on index.html — kept here once so both stay in sync.
   -------------------------------------------------------------------------- */
@keyframes agentPulse {
  0%   { transform: scale(.8);  opacity: .6; }
  100% { transform: scale(1.6); opacity: 0; }
}
@keyframes decisionCycle {
  0%, 2%   { opacity: 0; transform: translateY(4px); }
  6%, 19%  { opacity: 1; transform: none; }
  23%, 100%{ opacity: 0; transform: translateY(-4px); }
}
@keyframes flowDot {
  0%   { left: -4px;   opacity: 0; }
  8%   { opacity: 1; }
  92%  { opacity: 1; }
  100% { left: 100%;   opacity: 0; }
}
@keyframes flowDotV {
  0%   { top: -4px;  opacity: 0; }
  8%   { opacity: 1; }
  92%  { opacity: 1; }
  100% { top: 100%;  opacity: 0; }
}

/* --------------------------------------------------------------------------
   9. FAQ
   -------------------------------------------------------------------------- */
.faq { display: grid; gap: 12px; max-width: 820px; margin-inline: auto; }
.faq details {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-md); overflow: hidden;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.faq details[open] { border-color: var(--brand); box-shadow: var(--shadow-sm); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 22px; cursor: pointer;
  font-weight: 620; font-size: 1rem; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ''; flex-shrink: 0;
  width: 10px; height: 10px;
  border-right: 2px solid var(--brand); border-bottom: 2px solid var(--brand);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform .25s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg) translate(-3px, -3px); }
.faq .faq-body { padding: 0 22px 20px; }
.faq .faq-body p { color: var(--text-muted); font-size: .95rem; }

/* --------------------------------------------------------------------------
   10. CTA BAND
   -------------------------------------------------------------------------- */
.cta-band { padding: clamp(64px, 8vw, 96px) 0; }
.cta-inner {
  position: relative; overflow: hidden;
  padding: clamp(40px, 6vw, 66px) clamp(28px, 5vw, 60px);
  border-radius: var(--r-xl);
  background: var(--cta-grad);
  color: #fff; text-align: center; box-shadow: var(--shadow-lg);
}
.cta-inner::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(var(--cta-dots) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000, transparent 72%);
          mask-image: radial-gradient(ellipse at 50% 0%, #000, transparent 72%);
}
.cta-inner > * { position: relative; }
.cta-inner h2 { font-size: clamp(1.75rem, 3.6vw, 2.6rem); margin-bottom: 14px; color: #fff; }
.cta-inner p { color: rgba(255,255,255,.9); max-width: 56ch; margin: 0 auto 30px; font-size: 1.04rem; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.cta-inner .btn-primary { background: #fff; color: #047857; box-shadow: 0 10px 26px rgba(0,0,0,.18); }
.cta-inner .btn-primary:hover { background: #ECFDF5; }
.cta-inner .btn-ghost {
  background: rgba(255,255,255,.12); color: #fff;
  border-color: rgba(255,255,255,.42); box-shadow: none; backdrop-filter: blur(4px);
}
.cta-inner .btn-ghost:hover { background: rgba(255,255,255,.22); color: #fff; border-color: #fff; }

/* --------------------------------------------------------------------------
   11. FOOTER
   -------------------------------------------------------------------------- */
.site-footer { background: var(--bg); border-top: 1px solid var(--border); padding: 64px 0 28px; }
.footer-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px; padding-bottom: 44px;
}
.footer-brand .brand { margin: 0 0 16px; }
.footer-brand .logo-mark { height: 75px; }
.footer-brand .wordmark { font-size: 1.35rem; }
.footer-brand p { font-size: .92rem; color: var(--text-muted); max-width: 34ch; margin-bottom: 20px; }

.socials { display: flex; gap: 9px; }
.socials a {
  width: 38px; height: 38px; display: grid; place-items: center;
  border-radius: 50%; border: 1px solid var(--border);
  background: var(--surface); color: var(--text-muted);
  transition: all .22s ease;
}
.socials a:hover {
  color: var(--brand-contrast); background: var(--brand);
  border-color: var(--brand); transform: translateY(-3px);
}
.socials svg { width: 17px; height: 17px; }

.footer-col h4 {
  font-size: .78rem; text-transform: uppercase; letter-spacing: .1em;
  color: var(--text-faint); margin-bottom: 18px; font-weight: 680;
}
.footer-col li { margin-bottom: 11px; }
.footer-col a { font-size: .92rem; color: var(--text-muted); transition: color .2s ease, padding-left .2s ease; }
.footer-col a:hover { color: var(--brand); padding-left: 4px; }

.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 12px 22px;
  align-items: center; justify-content: space-between;
  padding-top: 26px; border-top: 1px solid var(--border);
  font-size: .85rem; color: var(--text-faint);
}
.footer-bottom ul { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-bottom a:hover { color: var(--brand); }

@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   12. BACK TO TOP
   -------------------------------------------------------------------------- */
.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 900;
  width: 44px; height: 44px; display: grid; place-items: center;
  border-radius: 50%; background: var(--brand); color: var(--brand-contrast);
  border: none; cursor: pointer; box-shadow: var(--glow);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .28s ease, transform .28s ease, visibility .28s;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--brand-strong); }
.to-top svg { width: 19px; height: 19px; }
