/* ==========================================================================
   tannin.com — shared site stylesheet
   Brand system: api/design-system.cjs is the look of record. The tokens below
   are its LIGHT / DARK sets (same names, same values) so the site and TECI
   cannot drift: Georgia everything, black + slate #44697D, hairlines not
   shadows, the portal's slate pill for buttons, one 760px phone cutoff.
   Light is canonical; dark is the solid-black alternate page — never tinted.
   ========================================================================== */

:root {
  --tannin-black: #000000;
  --tannin-slate: #44697D;
  --slate-50:     #F2F5F7;
  --slate-100:    #E1E8EC;
  --slate-200:    #C4D1D8;
  --slate-300:    #9DB1BC;
  --slate-400:    #6E8896;
  --slate-500:    #44697D;
  --slate-600:    #385768;
  --slate-700:    #2C4554;
  --accent-text:  var(--tannin-slate);

  --ink:          #000000;
  --ink-soft:     #1A1A1A;
  --muted:        #555555;
  /* The app's #8A8A8A reads 3.3:1 on white; the site's small compliance
     lines need 4.5:1, so light mode deepens it. Dark keeps the app's. */
  --subtle:       #6B6B6B;
  --line:         #E5E5E5;
  --hairline-strong: #CFCFCF;
  --bg:           #FFFFFF;
  --bg-warm:      #FBF9F5;
  --card:         #FFFFFF;

  /* Status: the app's three families, each a mark, a ground, a line, an ink. */
  --ok:           #4F7A4A;
  --ok-bg:        #EEF4ED;
  --ok-line:      #CADBC6;
  --ok-ink:       #2C4828;
  --warn:         #B07A2B;
  --warn-bg:      #FBF3E6;
  --warn-line:    #EAD6B0;
  --warn-ink:     #5A3D14;
  --danger:       #9A3B2B;
  --danger-bg:    #FBEDEA;
  --danger-line:  #EBC7BE;
  --danger-ink:   #5A2218;

  --band:         #000000;   /* tagline strip / quote band */
  --band-ink:     #FFFFFF;
  --band-accent:  #9DB1BC;

  /* Site-only: the header passes over black bands, where the app's 33%
     glass turned grey and lost the lockup's tree; 85% keeps it white. */
  --header-bg:    rgba(255,255,255,0.85);
  --focus-ring:   var(--tannin-slate);
  --tree-ink:     var(--tannin-slate);

  --glass-bg:     rgba(255,255,255,0.33);
  --glass-bg-strong: rgba(255,255,255,0.33);
  --glass-blur:   blur(18px) saturate(1.6);
  --glass-border-col: rgba(207,207,207,0.42);

  --radius:       4px;
  --radius-pill:  999px;
  --tracking-eyebrow: 0.14em;
  --font-serif:   Georgia, "Times New Roman", serif;
  --ease:         cubic-bezier(0.2, 0, 0, 1);
  --lockup:       url("/assets/tannin-lockup.png");
  --tree:         url("/assets/tannin-tree.png");

  --header-lockup-h: 48px;
}

/* Dark theme: OS preference by default, explicit data-theme always wins.
   Screen only: a printed page is white paper whatever the theme (the app's
   .teci-paper), so print never sees these and keeps the light set above. */
@media screen and (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --ink:      #FFFFFF;
    --ink-soft: #E5E5E5;
    --muted:    #CFCFCF;
    --subtle:   #8A8A8A;
    --line:     rgba(255,255,255,.10);
    --hairline-strong: rgba(255,255,255,.18);
    --bg:       #000000;
    --accent-text: var(--slate-400);
    --bg-warm:  #0A0A0A;
    --card:     #1A1A1A;
    --slate-50: #242424;
    --slate-100: #2E2E2E;
    --slate-200: #3A3A3A;
    --ok-bg:    rgba(79,122,74,.18);
    --ok-line:  rgba(79,122,74,.40);
    --ok-ink:   #A8C7A2;
    --warn-bg:  rgba(176,122,43,.18);
    --warn-line: rgba(176,122,43,.40);
    --warn-ink: #E8C79A;
    --danger-bg: rgba(154,59,43,.18);
    --danger-line: rgba(154,59,43,.40);
    --danger-ink: #E3A99C;
    --band:     #1A1A1A;
    --band-ink: #FFFFFF;
    --header-bg: rgba(0,0,0,.55);
    --focus-ring: var(--slate-300);
    --tree-ink: var(--slate-300);
    --glass-bg: rgba(0,0,0,.55);
    --glass-bg-strong: rgba(0,0,0,.55);
    --glass-border-col: rgba(157,177,188,.18);
  }
}
@media screen {
:root[data-theme="dark"] {
  color-scheme: dark;
  --ink:      #FFFFFF;
  --ink-soft: #E5E5E5;
  --muted:    #CFCFCF;
  --subtle:   #8A8A8A;
  --line:     rgba(255,255,255,.10);
  --hairline-strong: rgba(255,255,255,.18);
  --bg:       #000000;
  --accent-text: var(--slate-400);
  --bg-warm:  #0A0A0A;
  --card:     #1A1A1A;
  --slate-50: #242424;
  --slate-100: #2E2E2E;
  --slate-200: #3A3A3A;
  --ok-bg:    rgba(79,122,74,.18);
  --ok-line:  rgba(79,122,74,.40);
  --ok-ink:   #A8C7A2;
  --warn-bg:  rgba(176,122,43,.18);
  --warn-line: rgba(176,122,43,.40);
  --warn-ink: #E8C79A;
  --danger-bg: rgba(154,59,43,.18);
  --danger-line: rgba(154,59,43,.40);
  --danger-ink: #E3A99C;
  --band:     #1A1A1A;
  --band-ink: #FFFFFF;
  --header-bg: rgba(0,0,0,.55);
  --focus-ring: var(--slate-300);
  --tree-ink: var(--slate-300);
  --glass-bg: rgba(0,0,0,.55);
  --glass-bg-strong: rgba(0,0,0,.55);
  --glass-border-col: rgba(157,177,188,.18);
}
}

/* ── Base ──────────────────────────────────────────────────────────────── */
* { box-sizing: border-box; }
html { background: var(--bg); color: var(--ink); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  font: 17px/1.65 var(--font-serif);
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; }
a { color: var(--accent-text); text-decoration: none; border-bottom: 1px solid currentColor; transition: opacity 200ms var(--ease), color 200ms var(--ease), border-color 200ms var(--ease); }
a:hover { opacity: 0.7; }
h1, h2, h3, h4 { font-weight: 400; margin: 0; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; }

/* No heading or label ends on one stranded word; paragraphs avoid it too. */
h1, h2, h3, .eyebrow, .lab, .cta-band h2 { text-wrap: balance; }
p, blockquote, li { text-wrap: pretty; }

/* A section's last line of copy never adds to its bottom padding. */
.container > :last-child, .prose > :last-child, .cardi > :last-child, .office > :last-child { margin-bottom: 0; }
.prose > :first-child { margin-top: 0; }

/* Focus: a 2px slate ring, 2px off, on everything you can tab to. */
:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0ms !important; }
}

.container { max-width: 1140px; margin: 0 auto; padding: 0 32px; }

/* ── Header / nav ──────────────────────────────────────────────────────── */
/* The app's page head: sticky, glass over the page, one hairline under it. */
.site-header {
  position: sticky; top: 0; z-index: 30;
  border-bottom: 1px solid var(--line);
  background: var(--header-bg);
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
}
.site-header .bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px; padding-top: 16px; padding-bottom: 16px;
}
.site-header .brand { display: inline-flex; align-items: center; border: 0; flex: 0 0 auto; }
.site-header .brand img { height: var(--header-lockup-h); width: auto; display: block; }
.site-header .brand:hover { opacity: 1; }

/* Night: the lockup reverses to white through a mask of the same artwork
   (the app's .lockup-w), never a white plate behind dark ink. */
.brand, .foot-logo { position: relative; }
:root[data-theme="dark"] .brand img,
:root[data-theme="dark"] .foot-logo img { visibility: hidden; }
:root[data-theme="dark"] .brand::after,
:root[data-theme="dark"] .foot-logo::after {
  content: ""; position: absolute; inset: 0;
  -webkit-mask: var(--lockup) left center / contain no-repeat; mask: var(--lockup) left center / contain no-repeat;
  background: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .brand img,
  :root:not([data-theme="light"]) .foot-logo img { visibility: hidden; }
  :root:not([data-theme="light"]) .brand::after,
  :root:not([data-theme="light"]) .foot-logo::after {
    content: ""; position: absolute; inset: 0;
    -webkit-mask: var(--lockup) left center / contain no-repeat; mask: var(--lockup) left center / contain no-repeat;
    background: #FFFFFF;
  }
}

.site-nav { margin-left: auto; }
.site-nav ul { list-style: none; display: flex; gap: 26px; align-items: center; }
.site-nav a {
  color: var(--ink); border: 0;
  font: 700 12px/1 var(--font-serif); letter-spacing: 0.06em; text-transform: uppercase;
  padding: 8px 0; border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--accent-text); opacity: 1; }
.site-nav a[aria-current="page"] { color: var(--accent-text); border-bottom-color: var(--accent-text); }

.header-tools { display: flex; align-items: center; gap: 14px; flex: 0 0 auto; }

/* theme toggle — the app's moon: a bare 22px mark, no box */
.theme-toggle {
  appearance: none; background: none; border: 0; padding: 0; line-height: 0;
  width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; opacity: .92;
  transition: opacity 280ms var(--ease), transform 280ms var(--ease);
}
.theme-toggle:hover { opacity: 1; transform: scale(1.09); }
.theme-toggle img { width: 22px; height: 22px; display: block; }
.theme-toggle .moon-light { display: none; }
:root[data-theme="dark"] .theme-toggle .moon-dark { display: none; }
:root[data-theme="dark"] .theme-toggle .moon-light { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .moon-dark { display: none; }
  :root:not([data-theme="light"]) .theme-toggle .moon-light { display: block; }
}

/* menu button — hidden while the seven links fit on one line */
.nav-toggle {
  display: none; appearance: none; background: none; border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-pill); width: 40px; height: 40px; cursor: pointer; padding: 0;
  align-items: center; justify-content: center; flex-direction: column; gap: 5px;
  transition: border-color 200ms var(--ease);
}
.nav-toggle:hover { border-color: var(--slate-300); }
.nav-toggle span { display: block; width: 16px; height: 1.5px; background: var(--ink); transition: transform 280ms var(--ease), opacity 200ms var(--ease); }
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* The links need ~1080px beside the lockup; below that they fold into the menu. */
@media (max-width: 1080px) {
  .site-nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 4px 32px 16px; z-index: 40;
  }
  body.nav-open .site-nav { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav li { border-bottom: 1px solid var(--line); }
  .site-nav li:last-child { border-bottom: 0; }
  .site-nav a { display: block; padding: 16px 0; font-size: 13px; border-bottom: 0; }
  .site-nav a[aria-current="page"] { border-bottom: 0; }
  .nav-toggle { display: inline-flex; }
}

/* ── Page hero ─────────────────────────────────────────────────────────── */
.eyebrow {
  font: 700 12px/1.5 var(--font-serif); letter-spacing: var(--tracking-eyebrow); text-transform: uppercase;
  color: var(--accent-text); margin: 0 0 18px;
}
.hero { padding: 96px 0 72px; border-bottom: 1px solid var(--line); }
.hero h1 { font-size: clamp(34px, 5.2vw, 58px); line-height: 1.08; letter-spacing: -0.015em; max-width: 900px; }
.hero .lede { font-style: italic; font-size: clamp(18px, 2vw, 21px); line-height: 1.55; color: var(--muted); max-width: 760px; margin: 28px 0 0; }
.hero .actions { display: flex; gap: 12px; margin-top: 40px; flex-wrap: wrap; }

/* ── Home hero tree — the app's opening (design-system.cjs OPENING), grown in
   place beside the headline instead of over a black screen. A seed falls and
   ripples at the collar, the roots reach down, the crown grows up out of it.
   It never holds the page: the copy is there from the first paint, and the
   tree plays once a visit (site.js), only where it has its own column. ── */
@property --grow-crown { syntax: '<percentage>'; inherits: false; initial-value: 95%; }
@property --grow-roots { syntax: '<percentage>'; inherits: false; initial-value: 100%; }
.hero-grow { --grow-w: 240px; }
.hero-tree { display: none; }
/* The headline's longest line is ~750px at 58px; the column only opens where
   the text keeps that much beside it. */
@media (min-width: 1140px) {
  .hero-grow .container { display: grid; grid-template-columns: minmax(0, 1fr) var(--grow-w); column-gap: 64px; align-items: center; }
  .hero-tree { display: block; }
}
.grow-stage { position: relative; }
.grow-tree {
  width: var(--grow-w); aspect-ratio: 706 / 694; background: var(--tree-ink);
  -webkit-mask: var(--tree) center / contain no-repeat; mask: var(--tree) center / contain no-repeat;
}
html.grow-wait .grow-tree { opacity: 0; }
/* The seed, then its ripple. */
.grow-stage::after {
  content: ""; position: absolute; left: 50%; top: calc(var(--grow-w) * .5947);
  box-sizing: border-box; width: 5px; height: 5px; margin: -5px 0 0 -2.5px; border-radius: 50%;
  background: var(--tree-ink); border: 0 solid var(--tree-ink); opacity: 0; pointer-events: none;
}
/* ONE mask: the tree INTERSECTED with (a crown ellipse over the top 60.5%
   UNION a downward wipe below it). Both layers stop 2px inside the box, or
   Chrome draws a hairline frame round the tree. */
.grow-stage.play .grow-tree {
  -webkit-mask-image: var(--tree), radial-gradient(ellipse var(--grow-crown) calc(var(--grow-crown) * 1.653) at 50% 100%, #000 74%, transparent 100%), linear-gradient(to bottom, transparent 60.5%, #000 60.5%, #000 var(--grow-roots), transparent calc(var(--grow-roots) + 7%));
          mask-image: var(--tree), radial-gradient(ellipse var(--grow-crown) calc(var(--grow-crown) * 1.653) at 50% 100%, #000 74%, transparent 100%), linear-gradient(to bottom, transparent 60.5%, #000 60.5%, #000 var(--grow-roots), transparent calc(var(--grow-roots) + 7%));
  -webkit-mask-size: contain, calc(100% - 4px) calc(60.5% - 2px), calc(100% - 4px) calc(100% - 4px);
          mask-size: contain, calc(100% - 4px) calc(60.5% - 2px), calc(100% - 4px) calc(100% - 4px);
  -webkit-mask-position: center, 50% 2px, center;
          mask-position: center, 50% 2px, center;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-composite: source-in, source-over, source-over;
          mask-composite: intersect, add, add;
  animation: growRoots 2.8s cubic-bezier(.3, 0, .2, 1) both, growCrown 2.8s cubic-bezier(.35, 0, .15, 1) both;
}
.grow-stage.play::after { animation: growSeed 2.8s both; }
@keyframes growRoots { 0%, 17% { --grow-roots: 53.5%; } 46%, 100% { --grow-roots: 100%; } }
@keyframes growCrown { 0%, 22% { --grow-crown: 0%; } 66%, 100% { --grow-crown: 95%; } }
@keyframes growSeed {
  0% { opacity: 0; transform: translateY(-130px); animation-timing-function: cubic-bezier(.5, 0, .7, .4); }
  3% { opacity: 1; }
  13% { opacity: 1; transform: none; width: 5px; height: 5px; margin: -5px 0 0 -2.5px; background: var(--tree-ink); border-width: 0; }
  14% { opacity: .85; width: 8px; height: 2px; margin: -1px 0 0 -4px; background: transparent; border-width: 1px; animation-timing-function: cubic-bezier(.2, 0, 0, 1); }
  36%, 100% { opacity: 0; transform: none; width: calc(var(--grow-w) * 1.02); height: calc(var(--grow-w) * .19); margin: calc(var(--grow-w) * -.095) 0 0 calc(var(--grow-w) * -.51); background: transparent; border-width: 1px; }
}
@media (prefers-reduced-motion: reduce) {
  .grow-stage.play .grow-tree, .grow-stage.play::after { animation: none; }
}

/* ── Buttons — the portal's slate pill (design-system.cjs BUTTON.portal) ── */
.btn, .btn-ghost {
  appearance: none; display: inline-block;
  font: 700 12px/1 var(--font-serif); letter-spacing: 0.06em; text-transform: uppercase;
  padding: 15px 26px; border-radius: var(--radius-pill); cursor: pointer; white-space: nowrap;
  transition: background 200ms var(--ease), border-color 200ms var(--ease), color 200ms var(--ease), opacity 200ms var(--ease);
}
.btn { background: var(--tannin-slate); color: #fff; border: 1px solid var(--tannin-slate); }
.btn:hover { background: var(--slate-600); border-color: var(--slate-600); color: #fff; opacity: 1; }
.btn-ghost { background: var(--glass-bg); color: var(--ink); border: 1px solid var(--hairline-strong); }
.btn-ghost:hover { color: var(--accent-text); border-color: var(--slate-300); opacity: 1; }
.btn:active, .btn-ghost:active { opacity: 0.9; }

/* ── Tagline strip ─────────────────────────────────────────────────────── */
.strip { background: var(--band); color: var(--band-ink); padding: 30px 0; text-align: center; }
.strip .tag { font: 700 15px/1.5 var(--font-serif); letter-spacing: 0.24em; text-transform: uppercase; }
.strip .tag .dot { color: var(--band-accent); margin: 0 14px; }
.strip .tag sup { font-size: 10px; letter-spacing: 0.05em; color: var(--band-accent); }

/* ── Sections ──────────────────────────────────────────────────────────── */
.section { padding: 88px 0; border-bottom: 1px solid var(--line); }
.section.warm { background: var(--bg-warm); }
.section.tight { padding: 56px 0; }
.section.tight .cards { margin-top: 28px; }
.section-h { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.15; max-width: 820px; margin: 0 0 22px; letter-spacing: -0.01em; }
.section-h .mark { color: var(--muted); }
.section .intro { max-width: 780px; color: var(--ink-soft); }
.section .intro.italic { font-style: italic; color: var(--muted); }
.section .note { font-style: italic; color: var(--subtle); margin-top: 34px; }

/* ── Pillars (Preserve / Strengthen / Grow) ────────────────────────────── */
.pillars-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  margin-top: 48px;
}
.pillar { padding: 44px 34px 44px 0; border-right: 1px solid var(--line); }
.pillar + .pillar { padding-left: 34px; }
.pillar:last-child { border-right: 0; padding-right: 0; }
.eyebrow + .pillars-grid { margin-top: 14px; }
.pillar .num { font: 400 46px/1 var(--font-serif); color: var(--accent-text); margin: 0 0 18px; }
.pillar p { color: var(--muted); margin: 0; font-size: 16px; }

/* ── Card grids ────────────────────────────────────────────────────────── */
.cards { display: grid; gap: 0; border: 1px solid var(--line); background: var(--card); margin-top: 48px; }
.cards.flush { margin-top: 0; }
.cards.cols-2 { grid-template-columns: 1fr 1fr; }
.cards.cols-3 { grid-template-columns: repeat(3, 1fr); }
/* Each card's bottom rule sits ON the grid's own (margin -1px), so the last
   row never draws a 2px edge beside 1px sides. */
.cardi { padding: 34px 32px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: -1px; display: flex; flex-direction: column; }
.cardi.wide { grid-column: 1 / -1; border-right: 0; }
.cards.cols-2 .cardi:nth-child(2n) { border-right: 0; }
.cards.cols-3 .cardi:nth-child(3n) { border-right: 0; }
.cardi .lab { font: 700 11px/1.4 var(--font-serif); letter-spacing: var(--tracking-eyebrow); text-transform: uppercase; color: var(--accent-text); margin-bottom: 12px; }
.cardi h3 { font: 400 23px/1.25 var(--font-serif); margin: 0 0 12px; }
.cardi p { color: var(--muted); font-size: 15.5px; margin: 0 0 14px; }
.cardi p.lead-in { font-size: 14.5px; }
.cardi .more { margin-top: auto; padding-top: 6px; font: 700 12px/1 var(--font-serif); letter-spacing: 0.06em; text-transform: uppercase; border: 0; align-self: flex-start; }

/* ── Ruled list (Core Principles etc.) ─────────────────────────────────── */
.list-rule { list-style: none; margin-top: 40px; border-top: 1px solid var(--line); }
.list-rule li { padding: 16px 0 16px 40px; border-bottom: 1px solid var(--line); position: relative; color: var(--ink-soft); }
.list-rule li::before { content: ""; position: absolute; left: 8px; top: 29px; width: 16px; height: 1px; background: var(--accent-text); }
.list-rule.two-col { column-count: 2; column-gap: 64px; }
.list-rule.two-col li { break-inside: avoid; }

/* plain compact list */
.list-plain { list-style: none; }
.list-plain li { padding: 7px 0 7px 22px; position: relative; color: var(--ink-soft); font-size: 15.5px; }
.list-plain li::before { content: ""; position: absolute; left: 2px; top: 20px; width: 10px; height: 1px; background: var(--accent-text); }
.list-plain .sub { font-weight: 700; padding-left: 0; margin-top: 10px; }
.list-plain .sub::before { display: none; }

/* ── Quote / dark band ─────────────────────────────────────────────────── */
.quote-band { background: var(--band); color: var(--band-ink); padding: 96px 0; }
.quote-band .eyebrow { color: var(--band-accent); }
.quote-band blockquote { margin: 0; font: italic 400 clamp(22px, 3vw, 32px)/1.4 var(--font-serif); max-width: 940px; }
.quote-band .who { display: flex; align-items: center; gap: 18px; margin-top: 34px; }
.quote-band .who .rule { width: 48px; height: 1px; background: var(--band-ink); }
.quote-band .who .name { font: 700 12px/1 var(--font-serif); letter-spacing: var(--tracking-eyebrow); text-transform: uppercase; }
.quote-band .who .title { font: italic 13px/1.5 var(--font-serif); color: var(--band-accent); margin-top: 6px; }
.quote-band .who .title a { color: inherit; }

/* ── CTA band ──────────────────────────────────────────────────────────── */
.cta-band { padding: 96px 0; text-align: center; border-bottom: 1px solid var(--line); }
/* The tree is white artwork, so it is drawn as a mask in slate (the app's
   welcome tree) — an <img> of it vanished on the white page. */
.cta-band .tree {
  display: block; width: 78px; aspect-ratio: 706 / 694; margin: 0 auto 28px;
  -webkit-mask: var(--tree) center / contain no-repeat; mask: var(--tree) center / contain no-repeat;
  background: var(--tree-ink);
}
.cta-band h2 { font-size: clamp(28px, 3.4vw, 40px); max-width: 720px; margin: 0 auto 32px; line-height: 1.2; letter-spacing: -0.01em; }
.cta-band .sub { color: var(--muted); font-style: italic; max-width: 620px; margin: -14px auto 32px; }

/* ── Stat/award grids ──────────────────────────────────────────────────── */
.awards-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 28px 16px; margin-top: 48px;
}
/* Thirty-two badges: four even rows of eight where there is room. */
@media (min-width: 1081px) { .awards-grid { grid-template-columns: repeat(8, minmax(0, 1fr)); } }
.award { text-align: center; margin: 0; }
/* Badge art is printed for white paper, so its tile stays white in both themes.
   The tile hugs the badge; the art carries its own white margin. */
.award .tile { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 4px; width: fit-content; max-width: 100%; margin: 0 auto; }
.award img { display: block; width: 120px; max-width: 100%; height: auto; }
.award .cap { font: 400 11px/1.45 var(--font-serif); letter-spacing: 0.06em; text-transform: uppercase; color: var(--subtle); margin-top: 10px; }
/* The badge art's date is unreadable at this size: each quarter gets a heading
   on a hairline, and each caption opens with the award in slate. */
.awards-when { margin-top: 44px; }
.awards-when h3 { font-size: 22px; line-height: 1.2; color: var(--ink); padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.awards-when .awards-grid { margin-top: 22px; }
.award .cap .what { display: block; font-weight: 700; color: var(--accent-text); margin-bottom: 3px; }
.awards-note { font: italic 13px/1.6 var(--font-serif); color: var(--subtle); max-width: 860px; margin-top: 36px; }
.awards-note.close { margin-top: 22px; }

/* Credential badges (Disclosures) — same white tile as the awards. */
.badges { display: flex; gap: 28px; align-items: center; margin-top: 48px; flex-wrap: wrap; }
.badges a { border: 0; }
.badges .tile { display: inline-flex; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 16px; }
.badges img { height: 56px; width: auto; }

/* ── Team ──────────────────────────────────────────────────────────────── */
/* Seven people: four and three on a desktop, pairs below that. */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 48px; }
.person { border: 1px solid var(--line); background: var(--card); }
.person .photo { aspect-ratio: 4/5; overflow: hidden; background: var(--slate-50); display: flex; align-items: center; justify-content: center; }
.person .photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.person .photo .initials { font: 400 56px/1 var(--font-serif); color: var(--slate-400); letter-spacing: 0.04em; }
.person .meta { padding: 20px 22px 22px; border-top: 1px solid var(--line); }
.person .meta .nm { font: 400 20px/1.25 var(--font-serif); }
.person .meta .ti { font: italic 14px/1.5 var(--font-serif); color: var(--muted); margin-top: 6px; }

.bios { margin-top: 48px; }
.bio { border: 1px solid var(--line); border-bottom: 0; background: var(--card); }
.bio:last-of-type { border-bottom: 1px solid var(--line); }
.bio summary {
  cursor: pointer; list-style: none; display: flex; align-items: baseline; gap: 14px;
  padding: 22px 26px; font: 400 22px/1.3 var(--font-serif);
  transition: background 200ms var(--ease);
}
.bio summary:hover { background: var(--slate-50); }
.bio summary::-webkit-details-marker { display: none; }
.bio summary .ti { font: italic 14.5px/1.5 var(--font-serif); color: var(--muted); }
.bio summary .marker { margin-left: auto; color: var(--accent-text); font-size: 22px; line-height: 1; transition: transform 280ms var(--ease); }
.bio[open] summary .marker { transform: rotate(45deg); }
.bio .bio-body { padding: 0 26px 28px; max-width: 860px; }
.bio .bio-body p { color: var(--ink-soft); font-size: 15.5px; }
.bio .bio-body h4 { font: 700 11px/1.4 var(--font-serif); letter-spacing: var(--tracking-eyebrow); text-transform: uppercase; color: var(--accent-text); margin: 26px 0 10px; }

/* ── Q&A (Insights) ────────────────────────────────────────────────────── */
.qa { max-width: 860px; margin-top: 48px; }
.qa .q { font: italic 700 19px/1.5 var(--font-serif); color: var(--accent-text); margin: 34px 0 10px; }
.qa .q::before { content: "Q — "; font-style: normal; letter-spacing: 0.05em; }
.qa p { color: var(--ink-soft); }
.actions.spaced { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 40px; }

/* ── Offices / contact ─────────────────────────────────────────────────── */
.office-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 48px; }
.office { border: 1px solid var(--line); background: var(--card); padding: 32px; }
.office h3 { font: 400 24px/1.25 var(--font-serif); margin-bottom: 4px; }
.office .role { font: italic 14px/1.5 var(--font-serif); color: var(--muted); margin-bottom: 18px; }
.office p { color: var(--ink-soft); margin: 0 0 8px; }
.office .lab { font: 700 11px/1.4 var(--font-serif); letter-spacing: var(--tracking-eyebrow); text-transform: uppercase; color: var(--accent-text); margin: 18px 0 6px; }

/* form */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 40px; max-width: 760px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font: 700 11px/1.4 var(--font-serif); letter-spacing: var(--tracking-eyebrow); text-transform: uppercase; color: var(--accent-text); margin-bottom: 8px; }
.field label .opt { text-transform: none; letter-spacing: 0; font-weight: 400; font-style: italic; color: var(--subtle); }
.field input, .field textarea {
  width: 100%; font: 16px/1.5 var(--font-serif); color: var(--ink);
  background: var(--card); border: 1px solid var(--hairline-strong); border-radius: var(--radius);
  padding: 12px 14px; transition: border-color 200ms var(--ease);
}
.field input:hover, .field textarea:hover { border-color: var(--slate-300); }
.field input:focus, .field textarea:focus { border-color: var(--tannin-slate); }
.field textarea { min-height: 160px; resize: vertical; }
.form-grid .btn { justify-self: start; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font: italic 13px/1.6 var(--font-serif); color: var(--subtle); max-width: 760px; margin-top: 18px; }
/* The form's answer is the app's notice: hairline box, a 2px edge in the status mark. */
.form-status { font: 15px/1.6 var(--font-serif); margin-top: 18px; display: none; max-width: 760px; border: 1px solid; border-left-width: 2px; border-radius: var(--radius); padding: 12px 16px; }
.form-status.ok { display: block; border-color: var(--ok-line); border-left-color: var(--ok); background: var(--ok-bg); color: var(--ok-ink); }
.form-status.err { display: block; border-color: var(--danger-line); border-left-color: var(--danger); background: var(--danger-bg); color: var(--danger-ink); }

/* ── Prose (disclosures, long copy) ────────────────────────────────────── */
.prose { max-width: 860px; }
.prose p { color: var(--ink-soft); margin: 0 0 1.2em; }
.prose h2 { font-size: 28px; line-height: 1.25; margin: 52px 0 18px; letter-spacing: -0.01em; }
.prose h3, .prose .cap { font: 700 13px/1.5 var(--font-serif); letter-spacing: var(--tracking-eyebrow); text-transform: uppercase; color: var(--accent-text); margin: 40px 0 12px; }
.prose .small { font-size: 14.5px; color: var(--muted); }

/* ── Footer ────────────────────────────────────────────────────────────── */
.site-footer { padding: 72px 0 40px; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: 40px; margin-bottom: 48px; }
.foot-grid h2 { font: 700 11px/1.4 var(--font-serif); letter-spacing: var(--tracking-eyebrow); text-transform: uppercase; color: var(--accent-text); margin: 0 0 16px; }
.foot-grid ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.foot-grid a { color: var(--ink); border: 0; font-size: 14px; }
.foot-grid a:hover { color: var(--accent-text); opacity: 1; }
.foot-brand .foot-logo { display: inline-flex; margin-bottom: 18px; }
.foot-brand .foot-logo img { height: 36px; width: auto; display: block; }
.foot-brand p { color: var(--muted); font-size: 13.5px; max-width: 300px; }
.foot-contact li { color: var(--ink-soft); font-size: 14px; }

.foot-compliance { border-top: 1px solid var(--line); padding-top: 28px; }
.foot-compliance p { font: italic 12.5px/1.7 var(--font-serif); color: var(--subtle); max-width: 980px; margin: 0 0 10px; }
.foot-compliance a { font-style: normal; }

.legal-line {
  border-top: 1px solid var(--line); margin-top: 28px; padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap;
  font: 400 12px/1.7 var(--font-serif); color: var(--subtle);
}
.legal-line .tagline { font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }

/* ── Responsive collapses ──────────────────────────────────────────────── */
/* Tablet: three text columns run ~180px wide and the footer's four crowd. */
@media (max-width: 960px) {
  .cards.cols-3 { grid-template-columns: 1fr; }
  .cards.cols-3 .cardi { border-right: 0; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
/* The phone cutoff — the app's one breakpoint. */
@media (max-width: 760px) {
  :root { --header-lockup-h: 34px; }
  .container { padding: 0 20px; }
  .site-header .bar { padding-top: 12px; padding-bottom: 12px; }
  .site-nav { padding: 4px 20px 16px; }
  .hero { padding: 56px 0 44px; }
  .section { padding: 60px 0; }
  .quote-band, .cta-band { padding: 64px 0; }
  .pillars-grid { grid-template-columns: 1fr; }
  .pillar { border-right: 0; border-bottom: 1px solid var(--line); padding: 32px 0; }
  .pillar + .pillar { padding-left: 0; }
  .pillar:last-child { border-bottom: 0; }
  .cards.cols-2, .cards.cols-3 { grid-template-columns: 1fr; }
  .cardi { border-right: 0; padding: 28px 24px; }
  .office-grid, .form-grid { grid-template-columns: 1fr; }
  .team-grid { gap: 14px; }
  .person .meta { padding: 14px 14px 16px; }
  .person .meta .nm { font-size: 17px; }
  .person .meta .ti { font-size: 13px; }
  .list-rule.two-col { column-count: 1; }
  .foot-grid { grid-template-columns: 1fr; gap: 28px; }
  .strip .tag { letter-spacing: 0.16em; font-size: 13px; }
  .strip .tag .dot { margin: 0 8px; }
  /* the + stays top right; name and title wrap beside it */
  .bio summary { flex-wrap: wrap; row-gap: 4px; padding: 20px 52px 20px 22px; position: relative; }
  .bio summary .marker { position: absolute; top: 22px; right: 22px; }
  .bio summary .ti { flex-basis: 100%; }
  .bio .bio-body { padding: 0 22px 24px; }
  .hero .actions .btn, .hero .actions .btn-ghost { flex: 1 1 auto; text-align: center; }
}

@media print {
  :root { --band: #FFFFFF; --band-ink: #000000; --band-accent: var(--tannin-slate); }
  .strip, .quote-band { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .site-header, .site-footer, .cta-band, .theme-toggle, .nav-toggle, .hero-tree { display: none; }
}
