/* The Kramer Companies, marketing site layer. Sits on top of brand.css (tokens and base components). */
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { overflow-x: hidden; }
img { display: block; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 50; background: var(--surface); padding: 8px 12px; border-radius: 8px; }
.skip:focus { left: 8px; }

/* Theme-scoped mark visibility */
.only-dark { display: none !important; }
:root[data-theme="dark"] .only-dark { display: block !important; }
:root[data-theme="dark"] .only-light { display: none !important; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .only-dark { display: block !important; }
  :root:not([data-theme="light"]) .only-light { display: none !important; }
}

/* Always-navy surfaces (hero, contact): dark tokens locally */
.on-navy {
  --bg: #07111f; --surface: #0f2038; --surface-2: #132845; --line: #1f3a5e;
  --fg: #e9eff8; --muted: #9fb2cc; --dim: #8296b2;
  --gold: #d9a54a; --gold-text: #f0c46e; --focus: #7eaee6; --pos: #4cc38a; --neg: #ef6b6b;
  --v-dev: #45c4ae; --v-acq: #7eaee6; --v-brk: #e08aa8; --v-sys: #b49ae6;
  --accent: var(--gold); --accent-text: var(--gold-text);
  --shadow: none;
  color-scheme: dark;
  background: radial-gradient(900px 520px at 85% -10%, #183358 0%, transparent 70%), #07111f;
  color: var(--fg);
}
.on-navy[data-vertical="dev"] { --accent: var(--v-dev); --accent-text: var(--v-dev); }
.on-navy[data-vertical="acq"] { --accent: var(--v-acq); --accent-text: var(--v-acq); }
.on-navy[data-vertical="brk"] { --accent: var(--v-brk); --accent-text: var(--v-brk); }
.on-navy[data-vertical="sys"] { --accent: var(--v-sys); --accent-text: var(--v-sys); }
.on-navy .btn.secondary { color: #e9eff8; border-color: #2c4a72; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav .navrow { display: flex; align-items: center; gap: 16px; height: 64px; }
.nav .logo { display: flex; align-items: center; flex: none; }
.nav .logo img { height: 34px; width: auto; }
.nav .links { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav .links a { color: var(--muted); text-decoration: none; font-size: var(--fs-sm); font-weight: 500; padding: 8px 10px; border-radius: 8px; white-space: nowrap; }
.nav .links a:hover { color: var(--fg); background: var(--surface-2); }
.nav .links a[aria-current="page"] { color: var(--fg); box-shadow: inset 0 -2px 0 var(--accent, var(--gold)); border-radius: 0; }
.nav .actions { display: flex; align-items: center; gap: 8px; flex: none; }
.iconbtn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: transparent; color: var(--fg); cursor: pointer; padding: 0; }
.iconbtn svg { width: 18px; height: 18px; }
.iconbtn:hover { border-color: var(--gold); }
.menu-btn { display: none; }
.mobile-menu { display: none; border-top: 1px solid var(--line); padding: 8px 0 16px; }
.mobile-menu a { display: block; padding: 12px 0; color: var(--fg); text-decoration: none; font-weight: 500; border-bottom: 1px solid var(--line); }
.mobile-menu .btn { margin-top: 14px; width: 100%; }
.nav.open .mobile-menu { display: block; }
@media (max-width: 1120px) { .nav .links { display: none; } .menu-btn { display: inline-flex; } .nav .actions { margin-left: auto; } }
@media (max-width: 560px) { .nav .login { display: none; } .nav .logo img { height: 30px; } }

/* Bands */
.band { padding-block: clamp(56px, 7vw, 96px); }
.band.alt { background: var(--surface-2); }
.band.tight { padding-block: clamp(40px, 5vw, 64px); }
.sec-head { max-width: 760px; margin-bottom: var(--sp-6); }
.sec-head .lead { margin-bottom: 0; }
.mt-7 { margin-top: var(--sp-7); }
.mt-6 { margin-top: var(--sp-6); }
.mt-5 { margin-top: var(--sp-5); }
.center { text-align: center; }
h3.sub { margin-top: var(--sp-7); }
.muted { color: var(--muted); }

/* Hero */
.hero { padding-block: clamp(56px, 8vw, 104px) clamp(48px, 6vw, 80px); }
.hero h1 { max-width: 15ch; }
.hero .lead { margin-top: var(--sp-5); color: var(--muted); }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: var(--sp-6); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero-grid .shot { box-shadow: 0 30px 60px -30px rgba(0,0,0,.7); }
.hero .submark { height: 64px; width: auto; margin-bottom: var(--sp-5); }
.hero .eyebrow { color: var(--accent-text); }
@media (max-width: 900px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } }

.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-5); margin-top: var(--sp-7); }
.stats.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat-b { border-top: 3px solid var(--accent); padding-top: 16px; min-width: 0; }
.stat-b .num { font-size: clamp(1.75rem, 1.2rem + 2.4vw, 3.25rem); white-space: nowrap; }
.stat-b .label { font-size: var(--fs-sm); color: var(--muted); margin-top: 8px; line-height: 1.45; }
.stat-b.gold { border-color: var(--gold); } .stat-b.gold .num { color: var(--gold-text); }
.stat-b.dev { border-color: var(--v-dev); } .stat-b.dev .num { color: var(--v-dev); }
.stat-b.dim .num { color: var(--muted); } .stat-b.dim { border-color: var(--line); }
@media (max-width: 900px) { .stats.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .stats { grid-template-columns: minmax(0, 1fr); gap: var(--sp-4); } .stats.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.callout { margin-top: var(--sp-6); background: var(--surface); border: 1px solid var(--gold); border-radius: 16px; padding: clamp(18px, 3vw, 28px); display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(14px, 3vw, 28px); align-items: center; }
.callout .num { font-size: clamp(2.25rem, 1.6rem + 3vw, 4rem); color: var(--gold-text); white-space: nowrap; }
.callout b { font-size: var(--fs-md); display: block; }
.callout p { margin: 6px 0 0; color: var(--muted); font-size: .9375rem; }
@media (max-width: 640px) { .callout { grid-template-columns: minmax(0, 1fr); } }

/* Generic grids */
.g2, .g3, .g4 { display: grid; gap: var(--sp-4); }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .g2, .g3, .g4 { grid-template-columns: minmax(0, 1fr); } }
.card h3 { font-size: var(--fs-lg); }
.card ul { margin: 10px 0 0; padding-left: 18px; color: var(--muted); font-size: .9375rem; }
.card li { margin: 4px 0; }

.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 56px); align-items: center; }
.split.rev { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
.split.rev > .media { order: -1; }
@media (max-width: 900px) { .split, .split.rev { grid-template-columns: minmax(0, 1fr); } .split.rev > .media { order: 0; } }
.shot { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); background: var(--surface); margin: 0; min-width: 0; box-shadow: var(--shadow); }
.shot img { width: 100%; height: auto; }
.cap { font-size: var(--fs-xs); color: var(--dim); margin-top: 10px; line-height: 1.5; }
.media .shot + .shot { margin-top: var(--sp-4); }

ul.ticks { list-style: none; padding: 0; margin: var(--sp-4) 0 0; display: grid; gap: 12px; }
ul.ticks li { position: relative; padding-left: 26px; color: var(--muted); font-size: .9688rem; }
ul.ticks li::before { content: ""; position: absolute; left: 0; top: .55em; width: 11px; height: 11px; border-radius: 3px; background: var(--accent); }
ul.ticks li b { color: var(--fg); font-weight: 600; }

/* Vertical cards */
.vcards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-4); }
.vcard { display: flex; flex-direction: column; text-decoration: none; color: inherit; border-top: 3px solid var(--accent); transition: border-color .15s ease, transform .15s ease; }
.vcard:hover { transform: translateY(-2px); }
.vcard h3 { margin-top: 2px; }
.vcard .pos { color: var(--muted); font-size: .9375rem; margin: 0 0 12px; }
.vcard ul { margin: 0 0 16px; }
.vcard .fee { margin-top: auto; font-size: var(--fs-sm); color: var(--fg); padding-top: 12px; border-top: 1px solid var(--line); }
.vcard .fee span { display: block; font-size: var(--fs-xs); color: var(--dim); font-weight: 600; margin-bottom: 2px; }
.vcard .go { margin-top: 14px; font-weight: 600; font-size: var(--fs-sm); color: var(--accent-text); }
@media (max-width: 1100px) { .vcards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .vcards { grid-template-columns: minmax(0, 1fr); } }

/* Engagement models */
.models { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-4); counter-reset: m; }
.model { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--sp-5); min-width: 0; box-shadow: var(--shadow); }
.model .ix { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 8px; background: var(--kc-gold); color: var(--on-gold); font-weight: 700; font-size: var(--fs-sm); margin-bottom: 12px; }
.model h3 { font-size: 1.25rem; }
.model p { color: var(--muted); font-size: .9375rem; margin: 0 0 10px; }
.model .fee { font-size: var(--fs-sm); color: var(--fg); border-top: 1px solid var(--line); padding-top: 10px; margin: 0; }
@media (max-width: 1000px) { .models { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .models { grid-template-columns: minmax(0, 1fr); } }

/* Video */
.video video { width: 100%; aspect-ratio: 16 / 9; border-radius: var(--r-lg); border: 1px solid var(--line); background: #000; display: block; }

/* Versus */
.vs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-4); }
.vs ul { list-style: none; padding: 0; margin: 0; }
.vs li { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .9375rem; color: var(--fg); }
.vs li:last-child { border-bottom: 0; }
.vs h3 { font-family: var(--sans); font-size: var(--fs-base); font-weight: 600; }
.vs .mk { flex: none; width: 24px; height: 24px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; }
.vs .bad h3 { color: var(--muted); } .vs .bad .mk { background: color-mix(in srgb, var(--neg) 15%, transparent); color: var(--neg); }
.vs .good { border-color: color-mix(in srgb, var(--pos) 55%, transparent); } .vs .good h3 { color: var(--pos); } .vs .good .mk { background: color-mix(in srgb, var(--pos) 15%, transparent); color: var(--pos); }
@media (max-width: 640px) { .vs { grid-template-columns: minmax(0, 1fr); } }

/* Checks */
.checks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-4); }
.checks > div { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 18px; min-width: 0; }
.checks b { display: block; margin-bottom: 6px; }
.checks p { margin: 0; color: var(--muted); font-size: .9375rem; }
.verdicts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: var(--sp-5); }
.verdicts div { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; background: var(--surface); min-width: 0; }
.verdicts b { display: block; font-size: var(--fs-md); }
.verdicts span { color: var(--muted); font-size: var(--fs-sm); }
@media (max-width: 760px) { .checks, .verdicts { grid-template-columns: minmax(0, 1fr); } }

/* Track record catches */
.catch { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-4); }
.catch .amt { font-family: var(--serif); font-size: clamp(1.5rem, 1.2rem + 1.2vw, 1.875rem); font-weight: 700; color: var(--gold-text); line-height: 1.1; }
.catch .what { font-size: .9375rem; color: var(--fg); margin-top: 8px; }
.catch .then { font-size: var(--fs-sm); color: var(--muted); margin-top: 8px; }
.catch .then b { color: var(--v-dev); }
@media (max-width: 760px) { .catch { grid-template-columns: minmax(0, 1fr); } }

/* Drawing review */
.flow { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; counter-reset: fl; }
.flow > div { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px; min-width: 0; }
.flow > div::before { counter-increment: fl; content: counter(fl); display: flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 13px; background: var(--kc-gold); color: var(--on-gold); font-weight: 700; font-size: 13px; margin-bottom: 10px; }
.flow b { display: block; font-size: .9375rem; line-height: 1.3; margin-bottom: 4px; }
.flow span { display: block; font-size: var(--fs-sm); color: var(--muted); line-height: 1.45; }
.flow > div.end { border-color: color-mix(in srgb, var(--pos) 60%, transparent); }
.flow > div.end::before { background: var(--pos); color: #fff; }
@media (max-width: 1000px) { .flow { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.ilog { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--surface); box-shadow: var(--shadow); }
.ilog .bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px; padding: 14px 18px; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.ilog .tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.ilog .tabs span { font-size: 12px; padding: 3px 10px; border-radius: 14px; border: 1px solid var(--line); color: var(--muted); }
.ilog .tabs span.on { background: var(--kc-gold); border-color: var(--kc-gold); color: var(--on-gold); font-weight: 600; }
.ir { display: grid; grid-template-columns: 110px 150px minmax(0, 1fr) 200px 80px 120px; gap: 14px; padding: 13px 18px; border-bottom: 1px solid var(--line); font-size: var(--fs-sm); align-items: start; }
.ir:last-child { border-bottom: 0; }
.ir.h { font-size: var(--fs-xs); color: var(--muted); font-weight: 600; background: var(--surface-2); padding-block: 10px; }
.ir .id { font-family: var(--mono); font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.ir .id b { display: block; color: var(--fg); }
.ir .t { color: var(--muted); font-size: 13px; }
.ir .imp { font-weight: 600; font-variant-numeric: tabular-nums; }
.sev { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.sev i { font-style: normal; display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 6px; font-size: 12px; font-weight: 700; color: #fff; }
.sA { color: var(--neg); } .sA i { background: var(--neg); }
.sB { color: var(--sev-b); } .sB i { background: var(--sev-b); }
.sC { color: var(--sev-c); } .sC i { background: var(--sev-c); }
.sD { color: var(--dim); } .sD i { background: var(--dim); }
.sQ { color: var(--v-dev); } .sQ i { background: transparent; border: 2px solid var(--v-dev); color: var(--v-dev); }
.st { display: inline-block; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 12px; border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.st.ok { border-color: color-mix(in srgb, var(--pos) 60%, transparent); color: var(--pos); }
.st.pr { border-color: color-mix(in srgb, var(--gold) 60%, transparent); color: var(--gold-text); }
.st.op { border-color: color-mix(in srgb, var(--neg) 60%, transparent); color: var(--neg); }
.st.an { border-color: color-mix(in srgb, var(--sev-b) 60%, transparent); color: var(--sev-b); }
.st.rj { color: var(--dim); }
.st.df { border-color: color-mix(in srgb, var(--sev-d) 60%, transparent); color: var(--sev-d); }
@media (max-width: 1000px) {
  .ir { grid-template-columns: 100px 130px minmax(0, 1fr) 110px; }
  .ir .tst, .ir .imp { display: none; }
}
@media (max-width: 640px) {
  .ir.h { display: none; }
  .ir { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 10px; padding: 12px 14px; }
  .ir .id { grid-column: 1; grid-row: 1; }
  .ir .sv { grid-column: 2; grid-row: 1; justify-self: end; }
  .ir .fd { grid-column: 1 / -1; }
  .ir .tst { display: block; grid-column: 1 / -1; font-size: 12px; }
  .ir .imp { display: block; grid-column: 1; }
  .ir .stc { grid-column: 2; justify-self: end; }
}
.sevs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.sevs > div { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px; min-width: 0; }
.sevs .sev { font-size: 15px; margin-bottom: 8px; }
.sevs p { font-size: var(--fs-sm); color: var(--muted); margin: 0; }
.sevs p b { color: var(--fg); }
@media (max-width: 900px) { .sevs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .sevs { grid-template-columns: minmax(0, 1fr); } }
.modes { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.modes > div { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; min-width: 0; }
.modes code { font-family: var(--mono); font-size: 12px; color: var(--gold-text); font-weight: 600; }
.modes b { display: block; font-size: .9375rem; margin: 4px 0 2px; }
.modes span { display: block; font-size: 13px; color: var(--muted); line-height: 1.45; }
.modes > div.all { border-color: var(--gold); }
@media (max-width: 1000px) { .modes { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .modes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.lenses { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.lenses > div { border-left: 3px solid var(--v-dev); padding: 4px 0 4px 14px; min-width: 0; }
.lenses b { display: block; }
.lenses span { display: block; font-size: var(--fs-sm); color: var(--muted); }
.lenses em { font-style: normal; font-family: var(--mono); font-size: 12px; color: var(--dim); }
@media (max-width: 760px) { .lenses { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 440px) { .lenses { grid-template-columns: minmax(0, 1fr); } }
.rv-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; }
@media (max-width: 900px) { .rv-split { grid-template-columns: minmax(0, 1fr); } }
.qb { display: grid; gap: 8px; margin-top: 14px; }
.qb div { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; font-size: var(--fs-sm); }
.qb code { font-family: var(--mono); font-size: 12.5px; color: var(--gold-text); font-weight: 600; }
@media (max-width: 440px) { .qb div { grid-template-columns: minmax(0, 1fr); gap: 2px; } }
.bm table.tbl { table-layout: fixed; }
.bm .tbl td.c { font-family: var(--mono); font-size: 12.5px; color: var(--gold-text); }
.bm .tbl th:nth-child(1) { width: 38%; } .bm .tbl th:nth-child(2) { width: 30%; } .bm .tbl th:nth-child(3) { width: 32%; }
.tbl td, .tbl th { overflow-wrap: anywhere; }
.tbl .g { color: var(--pos); }
.tag-l { display: inline-block; font-size: 11px; font-weight: 600; padding: 1px 7px; border-radius: 10px; border: 1px solid color-mix(in srgb, var(--v-dev) 55%, transparent); color: var(--v-dev); margin-left: 4px; }

/* Signal ladder */
.rungs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.rung { --c: var(--sig-watch); --ct: var(--sig-watch-text); background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--c); border-radius: 12px; padding: 14px; min-width: 0; position: relative; }
.rung.filed { --c: var(--sig-filed); --ct: var(--sig-filed-text); }
.rung.judgment { --c: var(--sig-judgment); --ct: var(--sig-judgment-text); }
.rung.saleset { --c: var(--sig-saleset); --ct: var(--sig-saleset-text); }
.rung.reo { --c: var(--sig-reo); --ct: var(--sig-reo-text); }
.rung .dot { display: inline-flex; width: 26px; height: 26px; border-radius: 13px; background: var(--c); color: var(--ladder-ink); align-items: center; justify-content: center; font-weight: 700; font-size: 13px; }
.rung.filed .dot { color: #241703; }
.rung.reo .dot { color: var(--bg); }
.rung h4 { margin: 8px 0 4px; color: var(--ct); font-size: var(--fs-base); }
.rung p { font-size: 13.5px; color: var(--muted); margin: 0; }
.rung .here { display: inline-block; margin-top: 8px; font-size: 11.5px; font-weight: 600; color: var(--ct); border: 1px solid color-mix(in srgb, var(--c) 50%, transparent); padding: 2px 8px; border-radius: 10px; }
.ladder-foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 10px; font-size: var(--fs-sm); color: var(--muted); }
.ladder-bar { height: 6px; border-radius: 3px; margin-top: 14px; background: linear-gradient(90deg, var(--sig-watch), var(--sig-filed), var(--sig-judgment), var(--sig-saleset), var(--sig-reo)); }
@media (max-width: 900px) { .rungs { grid-template-columns: repeat(2, minmax(0, 1fr)); } .rung:last-child { grid-column: 1 / -1; } }
@media (max-width: 420px) { .rungs { grid-template-columns: minmax(0, 1fr); } }

.sources { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.sources li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; font-size: var(--fs-sm); color: var(--muted); }
.sources svg { width: 22px; height: 22px; fill: none; stroke: var(--accent); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.sources b { display: block; color: var(--fg); font-size: .9375rem; }
.score-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.score-row > div { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.score-row b { display: block; font-family: var(--serif); font-size: 1.25rem; }
.score-row span { font-size: var(--fs-sm); color: var(--muted); }
.score-row .look { border-color: var(--accent); }
.phone-only { display: none; }
@media (max-width: 640px) { .wide-only { display: none; } .phone-only { display: block; } }

/* Gates */
.gates { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-4); }
.gate { display: flex; flex-direction: column; }
.gate .gn { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; font-size: var(--fs-sm); }
.gate .gn b { color: var(--accent-text); }
.gate .gn i { font-style: normal; color: var(--dim); font-size: var(--fs-xs); white-space: nowrap; }
.gate h4 { font-family: var(--serif); font-size: 1.25rem; margin: 6px 0 2px; }
.gate .stage { font-size: var(--fs-xs); color: var(--dim); }
.gate dl { margin: 12px 0 0; display: grid; gap: 8px; }
.gate dt { font-size: var(--fs-xs); font-weight: 600; color: var(--pos); }
.gate .kill dt { color: var(--neg); }
.gate dd { margin: 0; font-size: var(--fs-sm); color: var(--muted); }
.gate .out { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); }
.gate .out dt { color: var(--dim); }
.gate .out dd { color: var(--fg); }
.gate .gwrap { flex: 1; display: flex; flex-direction: column; gap: 12px; }
@media (max-width: 1000px) { .gates { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .gates { grid-template-columns: minmax(0, 1fr); } }

/* Auction track */
.auction { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(24px, 4vw, 48px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(18px, 3vw, 32px); box-shadow: var(--shadow); }
.auction .credit { margin-top: 16px; border-left: 3px solid var(--sig-saleset); padding: 4px 0 4px 14px; }
.auction .credit p { color: var(--muted); font-size: var(--fs-sm); margin: 4px 0 0; }
.atrack { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.atrack li { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.atrack li:last-child { border-bottom: 0; }
.atrack .d { font-size: var(--fs-xs); font-weight: 600; color: var(--dim); padding-top: 3px; }
.atrack h4 { font-size: .9375rem; margin: 0; }
.atrack p { font-size: var(--fs-sm); color: var(--muted); margin: 2px 0 0; }
.atrack li.sale .d, .atrack li.sale h4 { color: var(--sig-saleset-text); }
@media (max-width: 900px) { .auction { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 440px) { .atrack li { grid-template-columns: minmax(0, 1fr); gap: 2px; } }

/* Programs and hurdles */
.prog .hurdle { font-family: var(--serif); font-weight: 700; font-size: 2rem; color: var(--accent-text); line-height: 1; margin: 12px 0 8px; }
.prog .k { font-size: var(--fs-xs); font-weight: 600; color: var(--dim); }
.prog h4 { font-family: var(--serif); font-size: 1.25rem; margin-top: 4px; }

/* Key-value lists */
.kv { list-style: none; margin: 0; padding: 0; }
.kv li { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: var(--fs-sm); }
.kv li span:first-child { color: var(--muted); min-width: 0; }
.kv li span:last-child { font-weight: 600; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.kv li.tot span { color: var(--fg); font-weight: 700; }
.kv li.pos span:last-child { color: var(--pos); }
.kv li.neg span:last-child { color: var(--neg); }

/* Tabs (schemes) */
.tabbar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.tabbar button { font: 600 var(--fs-sm)/1.2 var(--sans); padding: 10px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); cursor: pointer; }
.tabbar button[aria-selected="true"] { border-color: var(--accent); color: var(--fg); box-shadow: inset 0 -3px 0 var(--accent); }
.scheme { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 40px); align-items: start; }
.scheme[hidden] { display: none; }
.scheme .draw { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); }
.scheme .draw img { width: 100%; height: auto; }
.mini-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 16px 0 10px; }
.mini { background: var(--surface-2); border-radius: 10px; padding: 12px; min-width: 0; }
.mini .v { font-family: var(--serif); font-weight: 700; font-size: 1.375rem; font-variant-numeric: tabular-nums; }
.mini .l { font-size: var(--fs-xs); color: var(--muted); margin-top: 4px; }
.mini.hot .v { color: var(--pos); } .mini.cold .v { color: var(--neg); }
@media (max-width: 800px) { .scheme { grid-template-columns: minmax(0, 1fr); } }

/* Sample deals */
.deal { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); }
.deal + .deal { margin-top: var(--sp-5); }
.deal-top { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
.deal-top img { width: 100%; height: 100%; object-fit: cover; }
.deal-body { padding: clamp(18px, 3vw, 28px); }
.deal-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.deal-body .k { font-size: var(--fs-xs); font-weight: 600; color: var(--accent-text); }
.deal-body h3 { margin-top: 4px; }
.deal-body p { color: var(--muted); font-size: .9375rem; }
.screen-box { display: flex; gap: 14px; align-items: center; background: var(--surface-2); border-radius: 10px; padding: 12px 14px; font-size: var(--fs-sm); color: var(--muted); }
.screen-box .sc { font-family: var(--serif); font-weight: 700; font-size: 1.75rem; color: var(--fg); line-height: 1; text-align: center; }
.screen-box .sc small { display: block; font-family: var(--sans); font-size: 11px; color: var(--sig-filed-text); font-weight: 600; margin-top: 2px; }
.deal-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.deal-stats > div { padding: 16px 20px; border-right: 1px solid var(--line); min-width: 0; }
.deal-stats > div:last-child { border-right: 0; }
.deal-stats .v { font-family: var(--serif); font-weight: 700; font-size: clamp(1.125rem, 1rem + .8vw, 1.5rem); font-variant-numeric: tabular-nums; white-space: nowrap; }
.deal-stats .v.acc { color: var(--accent-text); }
.deal-stats .l { font-size: var(--fs-xs); color: var(--muted); margin-top: 4px; }
.deal-more { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 4vw, 40px); padding: clamp(18px, 3vw, 28px); border-top: 1px solid var(--line); }
.deal-more h4 { margin-bottom: 8px; }
.deal-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding: 14px clamp(18px, 3vw, 28px); background: var(--surface-2); font-size: var(--fs-xs); color: var(--dim); }
@media (max-width: 900px) { .deal-top { grid-template-columns: minmax(0, 1fr); } .deal-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .deal-stats > div:nth-child(2) { border-right: 0; } .deal-stats > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); } .deal-more { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 420px) { .kv li { flex-direction: column; gap: 2px; } .kv li span:last-child { text-align: left; } }

.pages { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.pages figure { margin: 0; min-width: 0; }
.pages a { display: block; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
.pages img { width: 100%; height: auto; }
.pages figcaption { font-size: var(--fs-xs); color: var(--muted); margin-top: 6px; }
.pages figcaption b { display: block; color: var(--fg); }
@media (max-width: 1000px) { .pages { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 480px) { .pages { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Services from services.json */
.phase-block + .phase-block { margin-top: var(--sp-7); }
.phase-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: var(--sp-4); }
.phase-head .pn { font: 600 var(--fs-xs)/1 var(--sans); color: var(--accent-text); border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); padding: 5px 9px; border-radius: 999px; }
.phase-head h3 { margin: 0; }
.svcs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-4); }
.svc { display: flex; flex-direction: column; gap: 10px; }
.svc .top { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.svc h4 { font-family: var(--serif); font-size: 1.1875rem; font-weight: 600; margin: 0; }
.svc .sid { font-family: var(--mono); font-size: 11.5px; color: var(--dim); white-space: nowrap; }
.svc .get { font-size: var(--fs-sm); color: var(--muted); }
.svc .get b { color: var(--fg); font-weight: 600; }
.svc .meta { margin-top: auto; display: grid; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line); font-size: var(--fs-sm); }
.svc .meta .row { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 10px; }
.svc .meta .row > span:first-child { color: var(--dim); font-size: var(--fs-xs); font-weight: 600; padding-top: 2px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip.mdl { --c: var(--accent); --ct: var(--fg); }
@media (max-width: 800px) { .svcs { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 400px) { .svc .meta .row { grid-template-columns: minmax(0, 1fr); gap: 4px; } }

/* Examples table */
.ex-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-4); }
.ex { border-top: 3px solid var(--accent); }
.ex .mdl-n { font-size: var(--fs-xs); font-weight: 600; color: var(--accent-text); }
.ex h4 { font-family: var(--serif); font-size: 1.0625rem; font-weight: 600; margin: 6px 0 10px; line-height: 1.35; }
.ex p { font-size: var(--fs-sm); }
.ex .fee { margin-top: 8px; color: var(--fg); }
@media (max-width: 1000px) { .ex-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .ex-grid { grid-template-columns: minmax(0, 1fr); } }

/* Fee and terms */
.feebox { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--sp-5); align-items: start; }
.feebox .card h3 { font-size: 1.25rem; }
.terms { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.terms li { font-size: var(--fs-sm); color: var(--muted); padding-left: 14px; border-left: 3px solid var(--line); }
@media (max-width: 800px) { .feebox { grid-template-columns: minmax(0, 1fr); } }

/* Brokerage */
.brk-lockup { background: var(--surface); border-radius: var(--r-lg); padding: 18px 22px; display: inline-block; max-width: 100%; }
.brk-lockup img { height: 104px; width: auto; max-width: 100%; }
.required { font-size: var(--fs-sm); color: var(--fg); margin-top: 14px; font-weight: 500; }
.rules4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-4); }
.rules4 > div { font-size: var(--fs-sm); color: var(--muted); border-left: 3px solid var(--accent); padding: 4px 0 4px 14px; }
.rules4 b { display: block; color: var(--fg); margin-bottom: 4px; }
@media (max-width: 900px) { .rules4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .rules4 { grid-template-columns: minmax(0, 1fr); } }
.aud-list { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 12px; }
.aud-list li { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 12px; font-size: var(--fs-sm); color: var(--muted); }
.aud-list li > b { font-size: var(--fs-xs); color: var(--accent-text); padding-top: 2px; }
.aud-list strong { display: block; color: var(--fg); }
.ill { height: 120px; width: auto; margin-bottom: 14px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-5); }
.steps .n { font-family: var(--serif); font-size: 2.5rem; color: var(--gold-text); line-height: 1; margin-bottom: 8px; }
.steps p { color: var(--muted); font-size: .9375rem; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .steps { grid-template-columns: minmax(0, 1fr); } }

/* Rules log */
.log { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.log div { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 14px; padding: 13px 18px; border-bottom: 1px solid var(--line); font-size: .9375rem; background: var(--surface); }
.log div:last-child { border-bottom: 0; }
.log b { color: var(--gold-text); }

/* About */
.about-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-5); }
@media (max-width: 420px) { .about-stats { grid-template-columns: minmax(0, 1fr); } }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.contact h2 { font-size: var(--fs-3xl); line-height: 1.04; }
.contact .who { margin-top: var(--sp-5); display: grid; gap: 6px; font-size: var(--fs-md); }
.contact .who a { color: var(--fg); text-decoration: none; font-weight: 500; }
.contact .who a:hover { color: var(--gold-text); }
.contact .who .nm { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; }
.contact .login-row { margin-top: var(--sp-6); display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.contact .login-row p { margin: 0; font-size: var(--fs-sm); color: var(--muted); }
form.cform { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(18px, 3vw, 28px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
form.cform h3 { grid-column: 1 / -1; margin: 0; }
form.cform label { display: grid; gap: 6px; font-size: var(--fs-sm); font-weight: 500; color: var(--fg); min-width: 0; }
form.cform .full { grid-column: 1 / -1; }
form.cform input, form.cform select, form.cform textarea { width: 100%; min-width: 0; font: 400 1rem/1.4 var(--sans); color: var(--fg); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; }
form.cform textarea { min-height: 110px; resize: vertical; }
form.cform input:focus, form.cform select:focus, form.cform textarea:focus { outline: 2px solid var(--focus); outline-offset: 1px; }
form.cform .row { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
form.cform .row small { color: var(--dim); font-size: var(--fs-xs); max-width: 44ch; }
.form-status { grid-column: 1 / -1; font-size: var(--fs-sm); margin: 0; min-height: 1em; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) { form.cform { grid-template-columns: minmax(0, 1fr); } }

/* Footer */
footer.site { border-top: 1px solid var(--line); padding-block: var(--sp-7) var(--sp-6); background: var(--bg); }
footer.site .cols { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: var(--sp-6); }
footer.site img { height: 34px; width: auto; }
footer.site h4 { font-size: var(--fs-sm); margin-bottom: 10px; }
footer.site ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
footer.site a { color: var(--muted); text-decoration: none; font-size: var(--fs-sm); }
footer.site a:hover { color: var(--fg); }
footer.site .legal { margin-top: var(--sp-6); padding-top: var(--sp-5); border-top: 1px solid var(--line); display: grid; gap: 6px; }
footer.site .legal p { margin: 0; font-size: var(--fs-xs); color: var(--dim); max-width: 110ch; }
footer.site .legal .brk { color: var(--muted); font-size: var(--fs-sm); }
@media (max-width: 800px) { footer.site .cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } footer.site .cols > div:first-child { grid-column: 1 / -1; } }

/* Prose pages */
.prose { max-width: 760px; }
.prose h2 { font-size: var(--fs-xl); margin-top: var(--sp-6); }
.prose p, .prose li { color: var(--muted); }
.notice { background: var(--surface); border: 1px dashed var(--gold); border-radius: 12px; padding: 14px 18px; font-size: var(--fs-sm); color: var(--muted); }

/* Page sub-nav (jump links) */
.jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--sp-6); }
.jump a { font-size: var(--fs-sm); text-decoration: none; color: var(--fg); border: 1px solid var(--line); padding: 7px 12px; border-radius: 999px; background: color-mix(in srgb, var(--surface) 60%, transparent); }
.jump a:hover { border-color: var(--accent); }
@media (max-width: 640px) { .hide-s { display: none; } }


/* drawing review on Bluebeam Core */
:root { --sev-b: #b85f0e; --sev-c: #2563c9; --sev-d: #6b55c9; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --sev-b: #f08a24; --sev-c: #5b9bf7; --sev-d: #a898f5; } }
:root[data-theme="dark"] { --sev-b: #f08a24; --sev-c: #5b9bf7; --sev-d: #a898f5; }
.sevs.five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1000px) { .sevs.five { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .sevs.five { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .sevs.five { grid-template-columns: minmax(0, 1fr); } }
.statuses { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.statuses .lbl { font-size: var(--fs-sm); font-weight: 600; margin-right: 6px; }
.statuses .st { font-size: 13px; padding: 4px 11px; }
.roles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
.roles > div { background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--v-dev); border-radius: 12px; padding: 14px 16px; min-width: 0; }
.roles > div.lead-r { border-left-color: var(--kc-gold); }
.roles > div.rt { border-left-color: var(--neg); border-style: dashed solid dashed solid; }
.roles b { display: block; font-size: .9375rem; margin-bottom: 4px; }
.roles span { display: block; font-size: var(--fs-sm); color: var(--muted); line-height: 1.45; }
@media (max-width: 900px) { .roles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .roles { grid-template-columns: minmax(0, 1fr); } }
.bbcmp { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; margin-top: 20px; }
.bbc { background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--dim); border-radius: 14px; padding: 20px 22px; min-width: 0; }
.bbc.core { border-top-color: var(--kc-gold); }
.bbc .k { font-weight: 600; margin: 0; }
.bbc .pr { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; margin: 8px 0 12px; }
.bbc .pr b { font: 700 2.25rem/1 var(--serif); color: var(--fg); }
.bbc.core .pr b { color: var(--gold-text); }
.bbc .pr span { font-size: var(--fs-sm); color: var(--muted); }
.bbc ul { list-style: none; margin: 0; padding: 0; }
.bbc li { border-top: 1px solid var(--line); padding: 10px 0; }
.bbc li b { display: block; font-size: .9375rem; }
.bbc li span { display: block; font-size: var(--fs-sm); color: var(--muted); }
@media (max-width: 760px) { .bbcmp { grid-template-columns: minmax(0, 1fr); } }
.coreflow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 16px; counter-reset: cf; }
.coreflow > div { background: var(--surface-2); border-radius: 12px; padding: 14px 16px; min-width: 0; }
.coreflow > div::before { counter-increment: cf; content: "Step " counter(cf); display: block; font-size: var(--fs-xs); font-weight: 600; color: var(--gold-text); margin-bottom: 4px; }
.coreflow b { display: block; font-size: .9375rem; margin-bottom: 4px; }
.coreflow span { display: block; font-size: var(--fs-sm); color: var(--muted); line-height: 1.45; }
@media (max-width: 760px) { .coreflow { grid-template-columns: minmax(0, 1fr); } }
.bbnote { font-size: var(--fs-xs); color: var(--dim); margin-top: 14px; max-width: 80ch; }
.tbl.bc td.r, .tbl.bc th.r { text-align: right; font-variant-numeric: tabular-nums; }
.tbl.bc tr.tot td { font-weight: 700; }

@media (max-width: 560px) { .tbl.bc .hide-s { display: none; } }

.coreflow > div { background: var(--surface); border: 1px solid var(--line); }
.tbl.bc td, .tbl.bc th { overflow-wrap: normal; }
@media (max-width: 560px) { .tbl.bc td, .tbl.bc th { padding: 10px 8px; } .tbl.bc th { font-size: 11px; } }
/* lifecycle start */
/* Development Consulting lifecycle timeline, asset types, inline engagement models */
.lc-rail { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-3); counter-reset: g; }
.lc-g { position: relative; background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: var(--r-md); padding: 16px 16px 14px; min-width: 0; }
.lc-g:not(:last-child)::after { content: ""; position: absolute; right: -11px; top: 26px; width: 10px; height: 10px; border-top: 2px solid var(--accent); border-right: 2px solid var(--accent); transform: rotate(45deg); z-index: 1; background: transparent; }
.lc-g .rng { font: 600 var(--fs-xs)/1.2 var(--sans); color: var(--dim); margin: 0 0 4px; letter-spacing: .03em; }
.lc-g h3 { font-size: var(--fs-md); margin: 0 0 10px; }
.lc-g ol, .lc-cont ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.lc-g a, .lc-cont a { display: flex; gap: 9px; align-items: center; color: var(--fg); text-decoration: none; font-size: var(--fs-sm); line-height: 1.3; min-width: 0; }
.lc-g a span, .lc-cont a span { min-width: 0; overflow-wrap: anywhere; }
.lc-g a:hover span, .lc-cont a:hover span { text-decoration: underline; text-underline-offset: 3px; }
.lc-g a i, .lc-cont a i { font: 600 11px/1 var(--mono); font-style: normal; flex: none; width: 24px; height: 24px; border-radius: 50%; display: inline-grid; place-items: center; background: color-mix(in srgb, var(--accent) 14%, var(--surface)); color: var(--accent-text); border: 1px solid color-mix(in srgb, var(--accent) 50%, transparent); }
.lc-cont { margin-top: var(--sp-3); display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: var(--sp-4); align-items: center; border: 1.5px dashed color-mix(in srgb, var(--accent) 70%, transparent); border-radius: var(--r-md); padding: 14px 16px; background: color-mix(in srgb, var(--accent) 6%, var(--surface)); }
.lc-cont .lab b { display: block; font-family: var(--serif); font-size: var(--fs-md); }
.lc-cont .lab span { display: block; font-size: var(--fs-xs); line-height: 1.4; color: var(--dim); margin-top: 2px; }
.lc-cont ol { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.lc-cont a i { border-style: dashed; }
.lc-tools { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin: var(--sp-7) 0 var(--sp-4); }
.lc-tools p { margin: 0; }
.lc-gh { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; font-size: var(--fs-lg); margin: var(--sp-6) 0 var(--sp-3); }
.lc-gh:first-child { margin-top: 0; }
.lc-gh small { font: 500 var(--fs-xs)/1 var(--sans); color: var(--dim); }
.stage { position: relative; padding-left: 58px; scroll-margin-top: 84px; }
.stage::before { content: ""; position: absolute; left: 19px; top: -12px; bottom: -12px; width: 2px; background: color-mix(in srgb, var(--accent) 35%, var(--line)); }
.lc-gh + .stage::before { top: 20px; }
.stage + .stage { margin-top: 12px; }
.stage.cont::before { background: none; border-left: 2px dashed color-mix(in srgb, var(--accent) 45%, var(--line)); }
.stage summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow); }
.stage summary::-webkit-details-marker { display: none; }
.stage summary:hover { border-color: color-mix(in srgb, var(--accent) 60%, var(--line)); }
.stage summary:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.stage .node { position: absolute; left: 0; top: 14px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font: 600 14px/1 var(--mono); background: var(--surface); color: var(--accent-text); border: 2px solid var(--accent); z-index: 1; }
.stage.cont .node { border-style: dashed; }
.stage[open] .node { background: var(--accent); color: var(--bg); border-style: solid; }
.stage .sh { display: grid; gap: 3px; min-width: 0; }
.stage .st-n { font: 600 var(--fs-xs)/1.2 var(--sans); color: var(--accent-text); letter-spacing: .04em; }
.stage .st-t { font: 600 var(--fs-md)/1.3 var(--serif); color: var(--fg); }
.stage .st-s { font-size: var(--fs-sm); color: var(--muted); }
.stage .sm { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.stage .cnt { font-size: var(--fs-xs); color: var(--dim); white-space: nowrap; }
.stage .chev { width: 10px; height: 10px; border-right: 2px solid var(--dim); border-bottom: 2px solid var(--dim); transform: rotate(45deg); margin: 0 4px 4px; transition: transform .2s; }
.stage[open] .chev { transform: rotate(225deg); margin: 4px 4px 0; }
.ll-pill { font: 600 11px/1 var(--sans); padding: 4px 8px; border-radius: 999px; color: var(--gold-text); border: 1px solid color-mix(in srgb, var(--gold) 60%, transparent); white-space: nowrap; }
.stage .body { padding: 16px 0 8px; }
.ll-note { margin: 0 0 16px; padding: 10px 14px; border-left: 3px solid var(--gold); background: var(--surface); border-radius: 0 var(--r-sm) var(--r-sm) 0; font-size: var(--fs-sm); color: var(--muted); }
.ll-note b { color: var(--fg); }
.svc .dlv { font-size: var(--fs-sm); }
.svc .dlv b { color: var(--fg); font-weight: 600; }
.svc .dlv ul { margin: 6px 0 0; padding-left: 18px; color: var(--muted); }
.svc .dlv li { margin: 3px 0; }
.svc .dlv .fn { display: block; font: 11.5px/1.35 var(--mono); color: var(--dim); overflow-wrap: anywhere; }
.lc-full { margin-top: var(--sp-6); display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: var(--sp-6); align-items: start; }
.lc-full h3 { margin: 0 0 8px; }
.lc-full .fee-l { margin: 12px 0 0; font-size: var(--fs-sm); color: var(--muted); }
.lc-full .fee-l b { color: var(--fg); }
.lc-full .ticks { margin: 0; }
.atypes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-3); margin-top: var(--sp-4); }
.atypes .at { background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: var(--r-sm); padding: 12px 14px; min-width: 0; }
.atypes .at b { display: block; font-weight: 600; }
.atypes .at span { font-size: var(--fs-sm); color: var(--muted); }
.models-in { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-3); }
.models-in > div { border-top: 3px solid var(--accent); padding-top: 12px; min-width: 0; }
.models-in b { display: block; font-family: var(--serif); font-size: var(--fs-md); margin-bottom: 4px; }
.models-in span { font-size: var(--fs-sm); color: var(--muted); }
@media (max-width: 1000px) {
  .lc-rail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lc-g:nth-child(2)::after { display: none; }
  .lc-cont { grid-template-columns: minmax(0, 1fr); }
  .lc-cont ol { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .models-in { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .atypes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lc-full { grid-template-columns: minmax(0, 1fr); gap: var(--sp-4); }
}
@media (max-width: 560px) {
  .lc-rail, .lc-cont ol, .models-in, .atypes { grid-template-columns: minmax(0, 1fr); }
  .lc-g::after { display: none; }
  .stage { padding-left: 44px; }
  .stage::before { left: 15px; }
  .stage .node { width: 32px; height: 32px; font-size: 12px; top: 16px; }
  .stage summary { grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 14px; }
  .stage .sm { justify-content: flex-start; }
}
@media (max-width: 560px) { .btn { white-space: normal; text-align: center; max-width: 100%; } }
/* lifecycle end */
