/* Brookmoor Advisory - site styles. Single light theme by design. */
:root {
  --paper: #f4f6f3;
  --paper-2: #eceff0;
  --ink: #1e2a2b;
  --ink-2: #4b5a5b;
  --muted: #6c7a79;
  --rule: #d6d9d3;
  --rule-2: #c3c8c1;
  --accent: #1f3d2b;
  --accent-2: #2b5a3e;
  --accent-soft: #e4ece6;
  --flag: #b7791f;
  --check: #2f7a4c;
  --error: #9a2a2a;
  --serif: "Source Serif 4", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "IBM Plex Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --max: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-2); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 0.5em; color: var(--ink); }
h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; font-family: var(--sans); font-weight: 600; }
p { margin: 0 0 1em; }
.lede { font-size: 1.2rem; color: var(--ink-2); max-width: 40em; }
.small { font-size: 0.9rem; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.num, td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(40px, 6vw, 80px) 0; border-top: 1px solid var(--rule); }
.section.first { border-top: 0; }
.eyebrow { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.grid { display: grid; gap: clamp(20px, 3vw, 40px); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-5-7 { grid-template-columns: 5fr 7fr; align-items: start; }
.grid-7-5 { grid-template-columns: 7fr 5fr; align-items: start; }
.grid-4-8 { grid-template-columns: 4fr 8fr; align-items: start; }
@media (max-width: 860px) { .grid-2, .grid-3, .grid-5-7, .grid-7-5, .grid-4-8 { grid-template-columns: 1fr; } }

/* header */
.site-header { border-bottom: 1px solid var(--rule); background: var(--paper); position: relative; z-index: 5; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 20px; }
.brand { font-family: var(--serif); font-weight: 600; font-size: 1.25rem; color: var(--ink); text-decoration: none; letter-spacing: -0.01em; display: inline-flex; align-items: baseline; gap: 10px; }
.brand span { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-weight: 400; }
.nav { display: flex; gap: 6px; align-items: center; }
.nav a { text-decoration: none; color: var(--ink-2); padding: 8px 10px; border-radius: 4px; font-size: 0.95rem; }
.nav a:hover { color: var(--ink); background: var(--paper-2); }
.nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.nav a.cta { border: 1px solid var(--accent); color: var(--accent); padding: 7px 14px; margin-left: 6px; }
.nav a.cta:hover { background: var(--accent); color: #fff; }
.nav-toggle { display: none; background: none; border: 1px solid var(--rule-2); border-radius: 4px; padding: 8px 10px; font: inherit; color: var(--ink); cursor: pointer; }
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--rule); flex-direction: column; align-items: stretch; padding: 10px var(--gutter) 16px; gap: 2px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 8px; font-size: 1.05rem; }
  .nav a.cta { margin: 8px 0 0; text-align: center; }
}

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 4px; border: 1px solid var(--accent); background: var(--accent); color: #fff; text-decoration: none; font-weight: 500; font-size: 0.98rem; cursor: pointer; font-family: var(--sans); line-height: 1.2; }
.btn:hover { background: var(--accent-2); border-color: var(--accent-2); color: #fff; }
.btn.secondary { background: transparent; color: var(--accent); }
.btn.secondary:hover { background: var(--accent-soft); color: var(--accent); }
.btn.small { padding: 7px 12px; font-size: 0.88rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }

/* hero */
.hero { padding: clamp(36px, 6vw, 72px) 0 clamp(36px, 5vw, 64px); }
.hero h1 { max-width: 14em; }
.hero .lede { margin-top: 14px; }
.panel { background: #fff; border: 1px solid var(--rule-2); border-radius: 6px; box-shadow: 0 1px 0 rgba(30, 42, 43, 0.04), 0 12px 30px -18px rgba(30, 42, 43, 0.25); overflow: hidden; }
.panel .panel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--rule); background: var(--paper-2); font-family: var(--mono); font-size: 0.76rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.panel .panel-head strong { color: var(--ink); font-weight: 600; letter-spacing: 0; text-transform: none; font-family: var(--sans); font-size: 0.95rem; }
.panel table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.panel td { padding: 8px 16px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.panel tr:last-child td { border-bottom: 0; }
.panel td:first-child { color: var(--ink-2); }
.panel td.num { font-family: var(--mono); font-size: 0.9rem; white-space: nowrap; }
.panel .panel-foot { padding: 10px 16px; font-size: 0.8rem; color: var(--muted); border-top: 1px solid var(--rule); background: #fff; }
@media (max-width: 560px) {
  .panel table, .panel tbody, .panel tr, .panel td { display: block; width: 100%; box-sizing: border-box; }
  .panel tr { padding: 7px 14px; border-bottom: 1px solid var(--rule); }
  .panel tr:last-child { border-bottom: 0; }
  .panel td { padding: 0; border: 0; }
  .panel td:first-child { font-size: 0.78rem; color: var(--muted); }
  .panel td.num { white-space: normal; text-align: left; font-size: 0.92rem; color: var(--ink); }
}
.pill { display: inline-block; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.04em; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--rule-2); color: var(--ink-2); vertical-align: middle; }
.pill.flag { color: var(--flag); border-color: #e5d2a8; background: #fbf5e6; }
.pill.ok { color: var(--check); border-color: #bfd8c7; background: #ecf5ef; }

/* tables */
table.data { width: 100%; border-collapse: collapse; font-size: 0.95rem; background: #fff; border: 1px solid var(--rule); }
table.data th, table.data td { padding: 10px 12px; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
table.data th { font-weight: 600; font-size: 0.82rem; letter-spacing: 0.02em; color: var(--ink-2); background: var(--paper-2); white-space: nowrap; }
table.data td.num, table.data th.num { font-family: var(--mono); font-size: 0.9rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
table.data tr:last-child td { border-bottom: 0; }
table.data.kv td.num { white-space: normal; }
table.data.kv td:first-child { width: 42%; }
table.data td.fee { font-family: var(--mono); font-size: 0.88rem; font-variant-numeric: tabular-nums; }
table.fees td:first-child { font-weight: 500; }
table.data tr.total td { font-weight: 600; border-top: 1px solid var(--rule-2); }
table.data caption { text-align: left; caption-side: bottom; font-size: 0.85rem; color: var(--muted); padding: 8px 2px 0; }
.grid-note { font-size: 0.85rem; color: var(--muted); margin: 8px 2px 0; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 4px; }
.table-scroll > table.grid-sens { min-width: 480px; }
.grid > *, .cards > *, .tool > *, .explorer > *, .situations > *, .stepper > *, .offer > *, .callout > *, .site-footer .cols > * { min-width: 0; }
table.grid-sens td, table.grid-sens th { text-align: right; font-family: var(--mono); font-size: 0.86rem; padding: 9px 9px; }
table.grid-sens th:first-child, table.grid-sens td:first-child { text-align: left; font-family: var(--sans); font-size: 0.85rem; color: var(--ink-2); }
table.grid-sens td.base { background: var(--accent-soft); font-weight: 600; }
table.grid-sens td.low { color: var(--error); }

/* figures */
figure { margin: 0; }
figure.shot { border: 1px solid var(--rule-2); border-radius: 6px; overflow: hidden; background: #fff; }
figure.shot img { width: 100%; cursor: zoom-in; }
figure.shot button.zoom { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
figcaption { font-size: 0.85rem; color: var(--muted); padding: 8px 2px 0; line-height: 1.45; }
figure.shot figcaption { padding: 10px 14px 12px; border-top: 1px solid var(--rule); background: #fff; }
.chart { background: #fff; border: 1px solid var(--rule); border-radius: 6px; padding: 14px 16px 10px; }
.chart svg { width: 100%; height: auto; display: block; font-family: var(--mono); }
.chart .chart-title { font-weight: 600; font-size: 0.95rem; margin-bottom: 2px; }
.chart .chart-sub { font-size: 0.82rem; color: var(--muted); margin-bottom: 8px; }
.legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 0.82rem; color: var(--ink-2); margin: 6px 0 2px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }
details.datatable { margin-top: 8px; font-size: 0.85rem; }
details.datatable summary { cursor: pointer; color: var(--accent); }
details.datatable table { margin-top: 8px; }

/* cards (plain, left-aligned, no icon rows) */
.cards { display: grid; gap: 20px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 960px) { .cards { grid-template-columns: 1fr; } }
.card { background: #fff; border: 1px solid var(--rule); border-radius: 6px; padding: 22px 22px 20px; display: flex; flex-direction: column; }
.card h3 { font-size: 1.2rem; margin-bottom: 4px; }
.card .meta { font-size: 0.85rem; color: var(--muted); margin-bottom: 14px; }
.card dl { display: grid; grid-template-columns: 1fr auto; gap: 6px 14px; margin: 0 0 16px; font-size: 0.92rem; }
.card dt { color: var(--ink-2); }
.card dd { margin: 0; font-family: var(--mono); font-size: 0.88rem; text-align: right; font-variant-numeric: tabular-nums; }
.card .actions { margin-top: auto; display: flex; gap: 10px; flex-wrap: wrap; }
.card .tabs-list { font-size: 0.82rem; color: var(--muted); margin: 0 0 14px; }

/* service blocks */
.offer { padding: 28px 0; border-top: 1px solid var(--rule); display: grid; grid-template-columns: 4fr 8fr; gap: 24px; }
.offer:first-of-type { border-top: 0; }
@media (max-width: 860px) { .offer { grid-template-columns: 1fr; gap: 10px; } }
.offer h3 { margin-bottom: 6px; }
.offer .fee { font-family: var(--mono); font-size: 0.95rem; color: var(--ink); }
.offer .fee small { display: block; color: var(--muted); font-size: 0.8rem; font-family: var(--sans); margin-top: 4px; }
.offer dl { margin: 0; display: grid; grid-template-columns: 9em 1fr; gap: 8px 16px; font-size: 0.97rem; }
.offer dt { color: var(--muted); font-size: 0.85rem; font-family: var(--mono); letter-spacing: 0.03em; text-transform: uppercase; padding-top: 3px; }
.offer dd { margin: 0; }
@media (max-width: 560px) { .offer dl { grid-template-columns: 1fr; gap: 2px 0; } .offer dd { margin-bottom: 10px; } }

/* situations */
.situations { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 40px; }
@media (max-width: 860px) { .situations { grid-template-columns: 1fr; } }
.situation { border-left: 2px solid var(--rule-2); padding-left: 18px; }
.situation h3 { font-size: 1.1rem; margin-bottom: 6px; }
.situation p { margin: 0; color: var(--ink-2); }

/* steps (a real sequence) */
ol.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 960px) { ol.steps { grid-template-columns: 1fr; } }
ol.steps li { counter-increment: step; border-top: 2px solid var(--accent); padding-top: 12px; font-size: 0.95rem; }
ol.steps li::before { content: counter(step); display: block; font-family: var(--mono); font-size: 0.8rem; color: var(--muted); margin-bottom: 4px; }
ol.steps li strong { display: block; font-family: var(--serif); font-size: 1.1rem; margin-bottom: 4px; }

/* tab explorer */
.explorer { display: grid; grid-template-columns: 240px 1fr; gap: 20px; align-items: start; }
@media (max-width: 860px) { .explorer { grid-template-columns: 1fr; } }
.explorer .tablist { display: flex; flex-direction: column; gap: 4px; }
@media (max-width: 860px) { .explorer .tablist { flex-direction: row; flex-wrap: wrap; } }
.explorer .tablist button { text-align: left; font: inherit; font-size: 0.95rem; padding: 9px 12px; border: 1px solid transparent; background: none; color: var(--ink-2); border-radius: 4px; cursor: pointer; }
.explorer .tablist button:hover { background: var(--paper-2); color: var(--ink); }
.explorer .tablist button[aria-selected="true"] { background: #fff; border-color: var(--rule-2); color: var(--ink); font-weight: 600; }
.explorer .tabpanel p { font-size: 0.95rem; color: var(--ink-2); margin: 10px 0 0; }

/* agent step-through */
.stepper { display: grid; grid-template-columns: 1fr; gap: 14px; }
.stepper .stepnav { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.stepper .stepnav button { font: inherit; font-size: 0.9rem; padding: 7px 12px; border: 1px solid var(--rule-2); background: #fff; color: var(--ink-2); border-radius: 999px; cursor: pointer; }
.stepper .stepnav button[aria-selected="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.stepper .stepnav .arrows { margin-left: auto; display: flex; gap: 6px; }
.stepper .stepnav .arrows button { border-radius: 4px; }
.stepper .caption { font-size: 0.97rem; color: var(--ink-2); max-width: 60em; }

/* lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(20, 28, 26, 0.92); display: none; align-items: center; justify-content: center; z-index: 50; padding: 24px; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 92vh; width: auto; height: auto; box-shadow: 0 20px 60px rgba(0,0,0,.5); background: #fff; }
.lightbox .close { position: absolute; top: 14px; right: 16px; background: #fff; border: 0; border-radius: 4px; padding: 8px 12px; font: inherit; cursor: pointer; }
.lightbox .cap { position: absolute; left: 24px; right: 24px; bottom: 14px; color: #dfe6e1; font-size: 0.85rem; text-align: center; }

/* tools */
.tool { display: grid; grid-template-columns: 5fr 7fr; gap: 28px; align-items: start; }
@media (max-width: 860px) { .tool { grid-template-columns: 1fr; } }
.tool form { background: #fff; border: 1px solid var(--rule); border-radius: 6px; padding: 18px 20px; display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.tool form .full { grid-column: 1 / -1; }
.tool label { display: block; font-size: 0.8rem; color: var(--ink-2); margin-bottom: 4px; }
.tool input[type="number"], .tool select, .form input, .form select, .form textarea { width: 100%; font: inherit; font-size: 0.95rem; padding: 8px 10px; border: 1px solid var(--rule-2); border-radius: 4px; background: #fff; color: var(--ink); font-variant-numeric: tabular-nums; }
.tool input:focus, .form input:focus, .form textarea:focus, .form select:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.tool .toggle { display: flex; align-items: center; gap: 8px; font-size: 0.92rem; padding-top: 22px; }
.tool .toggle input { width: 18px; height: 18px; }
.results table.data td.binding { background: var(--accent-soft); font-weight: 600; }
.results .headline { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
@media (max-width: 560px) { .results .headline { grid-template-columns: 1fr; } }
.results .headline div { background: #fff; border: 1px solid var(--rule); border-radius: 6px; padding: 12px 14px; }
.results .headline .l { font-size: 0.78rem; color: var(--muted); font-family: var(--mono); letter-spacing: 0.03em; text-transform: uppercase; }
.results .headline .v { font-size: 1.4rem; font-weight: 600; font-family: var(--mono); margin-top: 2px; }
.results .headline .v.neg { color: var(--error); }
.results .headline .v.pos { color: var(--check); }

/* forms */
.form { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; background: #fff; border: 1px solid var(--rule); border-radius: 6px; padding: 20px; }
.form .full { grid-column: 1 / -1; }
.form label { display: block; font-size: 0.85rem; color: var(--ink-2); margin-bottom: 4px; }
@media (max-width: 640px) { .form { grid-template-columns: 1fr; } .tool form { grid-template-columns: 1fr; } }
.email-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 10px 0 18px; }
.email-row code { font-family: var(--mono); font-size: 1.15rem; background: #fff; border: 1px solid var(--rule-2); padding: 8px 12px; border-radius: 4px; user-select: all; }

/* about */
.timeline { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--rule-2); }
.timeline li { padding: 0 0 18px 20px; position: relative; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 8px; width: 12px; height: 12px; border-radius: 50%; background: var(--paper); border: 2px solid var(--accent); }
.timeline .when { font-family: var(--mono); font-size: 0.8rem; color: var(--muted); display: block; margin-bottom: 2px; }
.portrait { width: 100%; max-width: 280px; aspect-ratio: 4 / 5; background: var(--accent); color: #fff; display: flex; align-items: flex-end; padding: 18px; font-family: var(--serif); font-size: 3rem; border-radius: 6px; position: relative; overflow: hidden; }
.portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.portrait img[hidden] { display: none; }

/* lists */
ul.plain { list-style: none; margin: 0; padding: 0; }
ul.plain li { padding: 10px 0; border-bottom: 1px solid var(--rule); }
ul.plain li:last-child { border-bottom: 0; }
ul.tight { margin: 0 0 1em 1.2em; padding: 0; }
ul.tight li { margin-bottom: 6px; }
.faq details { border-bottom: 1px solid var(--rule); padding: 12px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-family: var(--serif); font-size: 1.1rem; }
.faq details p { margin: 10px 0 0; color: var(--ink-2); max-width: 60em; }
.note { background: #fff; border-left: 3px solid var(--accent); padding: 12px 16px; font-size: 0.95rem; color: var(--ink-2); }
.callout { background: var(--accent); color: #fff; border-radius: 6px; padding: clamp(24px, 4vw, 40px); display: grid; grid-template-columns: 2fr 1fr; gap: 24px; align-items: center; }
.callout h2 { color: #fff; }
.callout p { color: #d7e2da; margin: 0; }
.callout .btn { background: #fff; color: var(--accent); border-color: #fff; justify-self: start; }
.callout .btn:hover { background: var(--paper-2); color: var(--accent); }
@media (max-width: 860px) { .callout { grid-template-columns: 1fr; } }

/* footer */
.site-footer { border-top: 1px solid var(--rule); padding: 36px 0 44px; font-size: 0.88rem; color: var(--ink-2); }
.site-footer .cols { display: grid; grid-template-columns: 1fr 2fr; gap: 24px; }
@media (max-width: 860px) { .site-footer .cols { grid-template-columns: 1fr; } }
.site-footer a { color: var(--ink-2); }
.site-footer .disclaimer { max-width: 70em; color: var(--muted); }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 12px; border: 1px solid var(--accent); z-index: 100; }
.skip:focus { left: 8px; }
.breadcrumb { font-size: 0.85rem; color: var(--muted); margin-bottom: 10px; }
.breadcrumb a { color: var(--muted); }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 24px 0; }
@media (max-width: 860px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.kpi { background: #fff; border: 1px solid var(--rule); border-radius: 6px; padding: 14px 16px; }
.kpi .l { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }
.kpi .v { font-size: 1.5rem; font-weight: 600; font-family: var(--mono); margin-top: 4px; letter-spacing: -0.01em; }
.kpi .d { font-size: 0.82rem; color: var(--muted); margin-top: 2px; }
.hypo { font-family: var(--mono); font-size: 0.78rem; color: var(--muted); }
.two-col-text { columns: 2; column-gap: 40px; }
@media (max-width: 860px) { .two-col-text { columns: 1; } }
.two-col-text p { break-inside: avoid; }
.rule-list { margin: 0; padding: 0; list-style: none; }
.rule-list li { padding: 12px 0; border-bottom: 1px solid var(--rule); display: grid; grid-template-columns: 11em 1fr; gap: 12px; }
.rule-list li:last-child { border-bottom: 0; }
.rule-list li strong { font-weight: 600; }
@media (max-width: 560px) { .rule-list li { grid-template-columns: 1fr; gap: 2px; } }

/* tighter tables inside two-column layouts so desktop grids fit without sideways scrolling */
.grid-2 table.data th, .grid-2 table.data td,
.grid-7-5 table.data th, .grid-7-5 table.data td,
.grid-5-7 table.data th, .grid-5-7 table.data td { padding: 8px 8px; }
.grid-2 table.grid-sens td, .grid-2 table.grid-sens th { padding: 8px 6px; font-size: 0.8rem; }
.grid-2 table.data td.num, .grid-2 table.data th.num { font-size: 0.84rem; }
.grid-2 table.data th { font-size: 0.78rem; }

/* ---------- v2: image-led components ---------- */
/* browser-window frame for product shots (CSS chrome, not baked into the image) */
.frame { background: #fff; border: 1px solid var(--rule-2); border-radius: 8px; overflow: hidden; box-shadow: 0 1px 0 rgba(30,42,43,.04), 0 24px 48px -28px rgba(30,42,43,.35); }
.frame .bar { height: 30px; background: var(--paper-2); border-bottom: 1px solid var(--rule); display: flex; align-items: center; gap: 6px; padding: 0 12px; }
.frame .bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--rule-2); display: block; }
.frame .bar span { margin-left: 10px; flex: 1; height: 16px; border-radius: 4px; background: #fff; border: 1px solid var(--rule); font-family: var(--mono); font-size: 0.62rem; color: var(--muted); display: flex; align-items: center; padding: 0 8px; letter-spacing: 0.03em; max-width: 360px; }
.frame img { width: 100%; display: block; }
.frame.crop { aspect-ratio: 16 / 10; }
.frame.crop .viewport { overflow: hidden; height: calc(100% - 30px); }
.frame.crop img { height: 100%; object-fit: cover; object-position: left top; }
figure.shot.framed { border: 0; background: none; border-radius: 0; overflow: visible; }
figure.shot.framed figcaption { border: 0; background: none; padding: 10px 2px 0; }
figure.shot.framed img { cursor: zoom-in; }
.hero-shot { align-self: center; }

/* three pillar tiles */
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 960px) { .pillars { grid-template-columns: 1fr; } }
.pillar { background: #fff; border: 1px solid var(--rule); border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: var(--ink); transition: border-color .15s ease, box-shadow .15s ease; }
.pillar:hover { border-color: var(--rule-2); box-shadow: 0 16px 36px -28px rgba(30,42,43,.5); color: var(--ink); }
.pillar .visual { aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper-2); border-bottom: 1px solid var(--rule); position: relative; }
.pillar .visual img { width: 100%; height: 100%; object-fit: cover; object-position: left top; display: block; }
.pillar .body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.pillar .body h2, .pillar .body h3 { font-size: 1.35rem; margin: 0; }
.pillar .body p { margin: 0; color: var(--ink-2); font-size: 0.97rem; }
.pillar .body .more { margin-top: auto; padding-top: 10px; color: var(--accent); font-weight: 500; font-size: 0.95rem; }
.pillar .body .more::after { content: " \2192"; }

/* scenario tiles (bold label + one line) */
.scenarios { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 960px) { .scenarios { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .scenarios { grid-template-columns: 1fr; } }
.scenario { background: #fff; border: 1px solid var(--rule); border-radius: 8px; padding: 20px 20px 18px; }
.scenario strong { display: block; font-family: var(--serif); font-size: 1.3rem; font-weight: 600; line-height: 1.2; margin-bottom: 8px; }
.scenario span { color: var(--ink-2); font-size: 0.95rem; }

/* visual cards (image + title + one line) */
.vcards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 960px) { .vcards { grid-template-columns: 1fr; } }
.vcard { background: #fff; border: 1px solid var(--rule); border-radius: 8px; overflow: hidden; }
.vcard .visual { aspect-ratio: 16 / 10; overflow: hidden; border-bottom: 1px solid var(--rule); background: var(--paper-2); }
.vcard .visual img { width: 100%; height: 100%; object-fit: cover; object-position: left top; display: block; }
.vcard .body { padding: 16px 20px 18px; }
.vcard .body h3 { font-size: 1.15rem; margin-bottom: 4px; }
.vcard .body p { margin: 0; color: var(--ink-2); font-size: 0.93rem; }
.vcard .body .pill { margin-bottom: 8px; }

/* chip strip */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips span { border: 1px solid var(--rule-2); background: #fff; border-radius: 999px; padding: 8px 14px; font-size: 0.92rem; color: var(--ink); }
.chips.soft span { background: var(--accent-soft); border-color: transparent; color: var(--accent); }

/* customization band */
.band { background: #fff; border: 1px solid var(--rule); border-radius: 8px; padding: clamp(24px, 4vw, 40px); display: grid; grid-template-columns: 5fr 7fr; gap: 28px; align-items: center; }
@media (max-width: 860px) { .band { grid-template-columns: 1fr; } }
.band h2 { margin-bottom: 8px; }
.band p { margin: 0; color: var(--ink-2); }
.band .inputs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 560px) { .band .inputs { grid-template-columns: 1fr; } }
.band .inputs div { border: 1px solid var(--rule); border-radius: 6px; padding: 14px 16px; background: var(--paper); }
.band .inputs strong { display: block; font-size: 0.98rem; margin-bottom: 2px; }
.band .inputs span { font-size: 0.86rem; color: var(--muted); }

/* work strip: model cards with thumbnails */
.workstrip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 960px) { .workstrip { grid-template-columns: 1fr; } }
.wcard { background: #fff; border: 1px solid var(--rule); border-radius: 8px; overflow: hidden; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; transition: box-shadow .15s ease; }
.wcard:hover { box-shadow: 0 16px 36px -28px rgba(30,42,43,.5); color: var(--ink); }
.wcard .visual { aspect-ratio: 16 / 9; overflow: hidden; border-bottom: 1px solid var(--rule); background: var(--paper-2); }
.wcard .visual img { width: 100%; height: 100%; object-fit: cover; object-position: left top; display: block; }
.wcard .body { padding: 16px 20px 18px; }
.wcard .city { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.wcard h3 { font-size: 1.15rem; margin: 4px 0 8px; }
.wcard .metrics { display: flex; gap: 18px; flex-wrap: wrap; }
.wcard .metrics div { font-family: var(--mono); font-size: 0.86rem; }
.wcard .metrics div small { display: block; font-family: var(--sans); color: var(--muted); font-size: 0.78rem; }

/* sourcing pipeline */
.pipeline { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; align-items: stretch; }
@media (max-width: 960px) { .pipeline { grid-template-columns: 1fr; } }
.pipeline .stage { background: #fff; border: 1px solid var(--rule); border-radius: 8px; padding: 18px 18px 16px; position: relative; }
.pipeline .stage strong { display: block; font-family: var(--serif); font-size: 1.12rem; margin-bottom: 6px; }
.pipeline .stage span { color: var(--ink-2); font-size: 0.9rem; }
.pipeline .stage::after { content: "\2192"; position: absolute; right: -14px; top: 50%; transform: translateY(-50%); color: var(--rule-2); font-size: 1.1rem; background: var(--paper); line-height: 1; }
.pipeline .stage:last-child::after { content: none; }
@media (max-width: 960px) { .pipeline .stage::after { content: "\2193"; right: auto; left: 20px; top: auto; bottom: -16px; transform: none; } }

/* AI capability tiles */
.caps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 860px) { .caps { grid-template-columns: 1fr; } }
.cap { background: #fff; border: 1px solid var(--rule); border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; }
.cap .frame { border: 0; border-radius: 0; box-shadow: none; border-bottom: 1px solid var(--rule); }
.cap .body { padding: 18px 22px 20px; }
.cap .body h3 { font-size: 1.25rem; margin-bottom: 6px; }
.cap .body p { margin: 0; color: var(--ink-2); font-size: 0.95rem; }
.cap .body .eyebrow { margin-bottom: 6px; }

/* four plain rules */
.rules { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 960px) { .rules { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .rules { grid-template-columns: 1fr; } }
.rules div { border-top: 2px solid var(--accent); padding-top: 12px; font-size: 0.97rem; }
.rules div strong { display: block; font-family: var(--serif); font-size: 1.12rem; margin-bottom: 4px; }

/* more-detail disclosure */
details.more { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 14px 0; margin-top: 20px; }
details.more summary { cursor: pointer; font-weight: 600; color: var(--accent); font-size: 0.97rem; list-style: none; display: flex; align-items: center; gap: 8px; }
details.more summary::-webkit-details-marker { display: none; }
details.more summary::before { content: "+"; font-family: var(--mono); width: 18px; height: 18px; border: 1px solid var(--accent); border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 0.8rem; }
details.more[open] summary::before { content: "\2212"; }
details.more > *:not(summary) { margin-top: 14px; }
.bio-strip { display: grid; grid-template-columns: 180px 1fr; gap: 28px; align-items: center; }
@media (max-width: 640px) { .bio-strip { grid-template-columns: 1fr; } }
.bio-strip .portrait { max-width: 180px; font-size: 2.2rem; }
.lede.short { max-width: 34em; }
.pillars > *, .scenarios > *, .vcards > *, .workstrip > *, .caps > *, .pipeline > *, .rules > *, .band > *, .bio-strip > * { min-width: 0; }

/* v2: work-page model cards with a tab preview on top */
.card.has-visual { padding: 0; overflow: hidden; }
.card.has-visual .visual { aspect-ratio: 16 / 9; overflow: hidden; border-bottom: 1px solid var(--rule); background: var(--paper-2); }
.card.has-visual .visual a { display: block; height: 100%; }
.card.has-visual .visual img { width: 100%; height: 100%; object-fit: cover; object-position: left top; display: block; }
.card.has-visual .card-body { padding: 18px 22px 20px; display: flex; flex-direction: column; flex: 1; }

/* ---------- home hero: three lines + carousel ---------- */
.hero-home .wrap { max-width: 1380px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7.4fr); gap: clamp(28px, 3.6vw, 56px); align-items: center; }
.hero-copy { container-type: inline-size; min-width: 0; }
.hero h1.pillar-lines, .pillar-lines { font-size: 2rem; font-size: clamp(1.1rem, 6.4cqi, 2.4rem); line-height: 1.18; max-width: none; margin: 0 0 6px; }
.pillar-lines span { display: block; position: relative; padding: 6px 0 6px 18px; cursor: pointer; transition: color .25s ease; white-space: nowrap; }
.pillar-lines span::before { content: ""; position: absolute; left: 0; top: 18%; bottom: 18%; width: 3px; border-radius: 2px; background: var(--rule-2); transition: background .25s ease; }
.pillar-lines span.is-active { color: var(--accent); }
.pillar-lines span.is-active::before { background: var(--accent); }
.carousel { min-width: 0; }
.cviewport { position: relative; border-radius: 12px; }
.cslide { margin: 0; position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .6s ease, visibility 0s linear .6s; }
.cslide.is-active { position: relative; opacity: 1; visibility: visible; transition: opacity .6s ease; }
.cslide img { display: block; width: 100%; height: auto; cursor: zoom-in; filter: drop-shadow(0 18px 28px rgba(30, 42, 43, 0.18)); }
.cslide.flat img { filter: none; }
.cslide figcaption { font-size: 0.86rem; color: var(--muted); margin-top: 12px; min-height: 2.6em; }
.cctrl { display: flex; align-items: center; gap: 10px; margin-top: 20px; }
.cdots { display: flex; gap: 8px; flex-wrap: wrap; }
.cbtn { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--rule-2); background: #fff; color: var(--ink); font-size: 1.25rem; line-height: 1; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; font-family: var(--sans); }
.cbtn:hover { border-color: var(--accent); color: var(--accent); }
.cbtn.pause { font-size: 0.7rem; letter-spacing: -1px; margin-left: auto; }
.cdot { position: relative; overflow: hidden; border: 1px solid var(--rule-2); background: #fff; color: var(--ink-2); border-radius: 18px; padding: 7px 14px; font: 500 0.88rem/1 var(--sans); cursor: pointer; }
.cdot:hover { border-color: var(--accent); color: var(--accent); }
.cdot[aria-current="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.cdot span { position: relative; z-index: 1; }
.carousel.playing .cdot[aria-current="true"]::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: rgba(255, 255, 255, 0.55); transform-origin: left; animation: cprog var(--cint, 3.5s) linear forwards; }
@keyframes cprog { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .cslide, .cslide.is-active, .pillar-lines span { transition: none; }
  .carousel.playing .cdot[aria-current="true"]::after { animation: none; }
}
@media (max-width: 480px) {
  .cctrl { gap: 6px; }
  .cdots { flex-wrap: nowrap; gap: 6px; }
  .cbtn { width: 32px; height: 32px; font-size: 1.1rem; }
  .cdot { padding: 6px 10px; font-size: 0.8rem; }
}
@media (max-width: 360px) {
  .cctrl { gap: 4px; }
  .cdots { gap: 4px; }
  .cbtn { width: 30px; height: 30px; }
  .cdot { padding: 5px 8px; font-size: 0.75rem; }
}

/* underwriting page */
.uw-intro { align-items: start; }
.uw-intro .prose p { font-size: 1.06rem; color: var(--ink-2); margin: 0 0 1.05em; max-width: 38em; }
.structs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; margin-top: 22px; }
.structs > div { padding: 14px 0 15px; border-top: 1px solid var(--rule); display: grid; grid-template-columns: 13em 1fr; gap: 16px; align-items: baseline; min-width: 0; }
.structs strong { font-family: var(--serif); font-weight: 600; font-size: 1.05rem; color: var(--ink); }
.structs span { color: var(--ink-2); font-size: 0.95rem; }
@media (max-width: 860px) { .structs { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .structs > div { grid-template-columns: 1fr; gap: 2px; } }
.section.uw-section { padding-top: 8px; border-top: 0; }

/* AI page: simple four-item grid */
.hero h1.ai-title { max-width: 20em; font-size: clamp(1.9rem, 3.6vw, 2.7rem); }
.ai-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 64px; max-width: 1000px; margin-top: 44px; padding-top: 44px; border-top: 1px solid var(--rule); }
.ai-item svg { display: block; width: 26px; height: 26px; color: var(--accent); margin-bottom: 14px; }
.ai-item h3 { font-size: 1.25rem; margin: 0 0 8px; }
.ai-item p { margin: 0; color: var(--ink-2); max-width: 30em; }
@media (max-width: 720px) { .ai-grid { grid-template-columns: 1fr; gap: 30px; margin-top: 32px; padding-top: 32px; } }

/* No portrait: bio strip and About intro are single-column text */
.bio-strip { display: block; max-width: 760px; }
.about-intro { max-width: 760px; }
.about-intro .lede { margin-bottom: 18px; }
