:root {
  color-scheme: light;
  --canvas: #ffffff;
  --sidebar: #ffffff;
  --card: #ffffff;
  --strong: #1c1916;
  --text: #1c1915;
  --muted: #6f6b64;
  --quiet: #99948b;
  --border: #e2ded7;
  --accent: #ef5747;
  --sidebar-w: 248px;
  --ui: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--text); background: var(--canvas); font-family: var(--ui); font-size: 16px; font-weight: 400; line-height: 1.5; -webkit-font-smoothing: antialiased; }
strong, b { font-weight: 400; }
a { color: inherit; text-decoration: none; }
.shell { width: min(960px, calc(100% - 64px)); margin: 0 auto; }
.topline { display: none; }
header { position: fixed; z-index: 20; inset: 0 auto 0 0; width: var(--sidebar-w); border-right: 1px solid var(--border); background: var(--sidebar); }
header .shell { width: 100%; margin: 0; }
.header-inner { height: 100vh; padding: 17px 13px 16px; display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; }
.brand { min-height: 42px; display: inline-flex; align-items: center; gap: 10px; padding: 0 4px; }
.brand-mark { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 9px; background: transparent; overflow: hidden; }
.brand-mark img { display: block; width: 31px; height: 31px; border-radius: 9px; }
.brand-name { color: var(--text); font: 600 16px/1 var(--ui); letter-spacing: -.025em; }
.brand::after { content: "V45"; margin-left: auto; padding: 3px 6px; border: 1px solid var(--border); border-radius: 5px; color: var(--muted); font-size: 9px; line-height: 1; }
.back-link { min-height: 38px; display: flex; align-items: center; margin-top: 29px; padding: 0 10px; border-radius: 9px; color: var(--text); background: #e9e7e2; font-size: 13px; }
.back-link:hover { background: #e2dfda; }
header::after { content: "Company profile\A Evidence and source notes"; white-space: pre; position: absolute; right: 13px; bottom: 18px; left: 13px; padding: 15px 10px 2px; border-top: 1px solid var(--border); color: var(--quiet); font-size: 10px; line-height: 1.6; }
main { min-height: calc(100vh - 61px); margin-left: var(--sidebar-w); padding: 41px 0 60px; }
.breadcrumb { margin-bottom: 31px; color: var(--quiet); font-size: 11px; }
.breadcrumb a { color: #5d5851; }
.profile-head { margin-bottom: 25px; }
.eyebrow { display: block; margin-bottom: 12px; color: var(--quiet); font-size: 10px; letter-spacing: .03em; text-transform: uppercase; }
.eyebrow::before { display: none; }
h1 { margin: 0; color: var(--text); font: 600 clamp(40px, 6vw, 54px)/1.04 var(--ui); letter-spacing: -.04em; }
.profile-summary { margin: 12px 0 13px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.company-description-panel {
  margin: 0 0 26px;
  padding: 21px 23px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fbfaf7;
}
.company-description-panel .eyebrow { margin-bottom: 7px; }
.company-description-panel h2 { margin: 0 0 12px; font-size: 23px; }
.long-description p { margin: 0 0 12px; color: #514d47; font-size: 12px; line-height: 1.8; }
.long-description p:last-child { margin-bottom: 0; }
.profile-category { display: flex; align-items: center; gap: 9px; margin: -3px 0 13px; color: var(--quiet); font-size: 10px; letter-spacing: .04em; text-transform: uppercase; }
.category-chip { display: inline-flex; width: fit-content; align-items: center; padding: 5px 9px; border: 1px solid #d8e4f2; border-radius: 999px; color: #42617f; background: #f0f6fc; font-size: 10px; font-weight: 500; letter-spacing: 0; line-height: 1.2; text-transform: none; }
.demo-pill { display: inline-flex; padding: 5px 8px; border: 1px solid var(--border); border-radius: 6px; color: #675f57; background: #f1efeb; font-size: 9px; }
.metrics { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; margin: 0 0 12px; }
.metric-card { min-height: 166px; display: flex; flex-direction: column; padding: 18px; border: 1px solid var(--border); border-radius: 12px; background: var(--card); box-shadow: none; }
.metric-card:first-child { color: #fff; border-color: var(--strong); background: var(--strong); }
.metric-label { color: var(--muted); font-size: 10px; letter-spacing: .03em; text-transform: uppercase; }
.metric-card:first-child .metric-label { color: #aaa49c; }
.metric-label span { color: var(--quiet); font-size: 9px; }
.metric-value { margin: auto 0 6px; color: var(--text); font: 500 clamp(25px, 3.2vw, 34px)/1.1 var(--ui); letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.metric-card:first-child .metric-value { color: #fff; }
.metric-caption { margin: 0; color: var(--quiet); font-size: 10px; }
.founder-card { display: flex; align-items: center; gap: 12px; margin-bottom: 40px; padding: 14px 16px; border: 1px solid var(--border); border-radius: 10px; background: rgba(252,251,249,.74); }
.founder-mark { width: 38px; height: 38px; display: grid; place-items: center; flex: 0 0 38px; border-radius: 9px; color: #fff; background: var(--strong); font: 500 12px/1 var(--ui); }
.founder-copy { display: grid; gap: 3px; }
.founder-copy small { color: var(--quiet); font-size: 9px; letter-spacing: .05em; text-transform: uppercase; }
.founder-copy strong { color: var(--text); font-size: 13px; }
.founder-copy span { color: var(--muted); font-size: 10px; }
.sources { scroll-margin-top: 20px; }
.sources-head { margin-bottom: 16px; }
h2 { margin: 0; color: var(--text); font: 600 27px/1.15 var(--ui); letter-spacing: -.03em; }
.sources-intro { max-width: 720px; margin: 8px 0 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.source-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.source-card { overflow: hidden; border: 1px solid var(--border); border-radius: 12px; background: var(--card); }
.source-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 15px; border-bottom: 1px solid var(--border); }
.source-card h3 { margin: 0; font: 500 16px/1.2 var(--ui); }
.source-status { padding: 4px 7px; border: 1px solid var(--border); border-radius: 6px; color: #655e57; background: #f1efeb; font-size: 8px; }
.source-data { margin: 0; padding: 4px 15px 10px; }
.source-data div { display: grid; grid-template-columns: 108px 1fr; gap: 10px; padding: 10px 0; border-bottom: 1px solid #edeae5; }
.source-data div:last-child { border-bottom: 0; }
.source-data dt { color: var(--quiet); font-size: 10px; }
.source-data dd { margin: 0; color: #514d47; font-size: 10px; line-height: 1.45; }
.method-note { display: flex; gap: 10px; margin: 14px 0 0; padding: 13px 15px; border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: 8px; color: var(--muted); background: rgba(252,251,249,.68); font-size: 10px; line-height: 1.6; }
.method-note strong { color: #4d4842; }
footer { margin-left: var(--sidebar-w); padding: 20px 0 24px; border-top: 1px solid #d9dddf; color: #58636b; background: #eceff1 !important; font-size: 12px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.footer-brand { color: #47535b; font: 600 16px var(--ui); }
footer p { margin: 0; text-align: right; }
.footer-links { display: flex; flex-wrap: wrap; gap: 14px; }
.footer-links a { color: #47535b; font-size: 12px; }
.footer-links a:hover { color: var(--accent); text-decoration: underline; }
@media (max-width: 820px) {
  :root { --sidebar-w: 0px; }
  header { position: static; width: auto; border-right: 0; border-bottom: 1px solid var(--border); }
  .header-inner { height: 64px; padding: 0 18px; flex-direction: row; align-items: center; justify-content: space-between; }
  .back-link { min-height: 34px; margin-top: 0; }
  header::after { display: none; }
  main, footer { margin-left: 0; }
  main { padding-top: 31px; }
  .shell { width: min(100% - 32px, 680px); }
}
@media (max-width: 620px) {
  h1 { font-size: 40px; }
  .company-description-panel { padding: 16px; }
  .company-description-panel h2 { font-size: 21px; }
  .long-description p { font-size: 12px; line-height: 1.75; }
  .metrics, .source-grid { grid-template-columns: 1fr; }
  .metric-card { min-height: 145px; }
  .footer-inner { align-items: flex-start; flex-direction: column; gap: 7px; }
  .footer-links { gap: 14px; }
  footer p { text-align: left; }
}

/* V8 white profile surfaces */
:root { --canvas: #fff; --sidebar: #fff; --card: #fff; }
html, body, header, main, .metric-card, .founder-card, .source-card, .method-note { background-color: #fff !important; }
.metric-card:first-child { color: var(--text) !important; border-color: var(--border) !important; background: #fff !important; }
.metric-card:first-child .metric-label { color: var(--muted) !important; }
.metric-card:first-child .metric-value { color: var(--text) !important; }

/* V13: MRR-only company profiles with founder portraits */
.metrics { grid-template-columns: minmax(0, 440px); }
.source-grid { grid-template-columns: minmax(0, 1fr); }
.founder-photo { display: block; width: 48px; height: 48px; flex: 0 0 48px; border: 1px solid var(--border); border-radius: 50%; object-fit: cover; }

/* V10: full-width profile header without a side menu */
:root { --sidebar-w: 0px; }
header {
  position: sticky; inset: auto; top: 0; z-index: 30; width: 100%; height: auto;
  border-right: 0; border-bottom: 1px solid var(--border); background: #fff;
}
header .shell { width: min(960px, calc(100% - 64px)); margin: 0 auto; }
.header-inner {
  height: 68px; padding: 0; display: flex; flex-direction: row;
  align-items: center; justify-content: space-between;
}
.brand::after { margin-left: 4px; }
.back-link { min-height: 34px; margin: 0 0 0 auto; background: #fff; }
.back-link:hover { background: #f7f6f3; }
header::after { display: none; }
main, footer { margin-left: 0; }
main { padding-top: 40px; }
@media (max-width: 820px) {
  header { position: sticky; width: 100%; height: auto; border-right: 0; }
  header .shell { width: min(100% - 32px, 680px); }
  .header-inner { height: 64px; padding: 0; flex-direction: row; align-items: center; }
  .back-link { min-height: 34px; margin: 0 0 0 auto; }
  main, footer { margin-left: 0; }
  main { padding-top: 31px; }
}

/* V24: pure white page canvas */
:root { --canvas: #fff; --sidebar: #fff; }
html, body, header, main { background-color: #fff !important; }
.brand-name { font-size: 24px !important; }

/* V28 mobile repair for company profile pages */
@media (max-width: 620px) {
  html, body { max-width: 100%; overflow-x: hidden; }
  header .shell, .shell { width: calc(100% - 28px); }
  .header-inner { min-height: 64px; height: auto; gap: 10px; }
  .brand { min-width: 0; }
  .brand-name { font-size: 21px !important; white-space: nowrap; }
  .brand::after { flex: 0 0 auto; }
  .back-link { flex: 0 0 auto; padding: 0 8px; font-size: 12px; white-space: nowrap; }
  main { padding-top: 26px; }
  h1 { font-size: clamp(34px, 11vw, 42px); overflow-wrap: anywhere; }
  .metrics, .source-grid { grid-template-columns: minmax(0, 1fr); }
  .metric-card, .source-card, .founder-card { min-width: 0; }
  .source-data div { grid-template-columns: 88px minmax(0, 1fr); }
  .source-data dd { overflow-wrap: anywhere; word-break: break-word; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
  footer p { text-align: left; }
}

@media (max-width: 390px) {
  header .shell, .shell { width: calc(100% - 22px); }
  .brand-name { font-size: 19px !important; }
  .brand::after { display: none; }
  .source-data div { grid-template-columns: 1fr; gap: 4px; }
}


/* V46: company brand marks and linked founder X profiles */
.profile-title-row { display: flex; align-items: center; gap: 16px; min-width: 0; }
.profile-title-row h1 { min-width: 0; overflow-wrap: anywhere; }
.profile-company-logo { display: block; width: 64px; height: 64px; flex: 0 0 64px; padding: 7px; border: 1px solid var(--border); border-radius: 14px; background: #fff; object-fit: contain; }
.founder-avatar-link { display: block; width: 54px; height: 54px; flex: 0 0 54px; overflow: hidden; border: 1px solid #d8e4f2; border-radius: 50%; background: #f0f6fc; }
.founder-profile-photo { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.founder-profile-name { text-decoration: underline; text-decoration-color: #b8c9dc; text-underline-offset: 3px; }
.founder-profile-name:hover, .interview-link:hover { color: #315a78; }
.interview-link { color: #315a78; text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 620px) {
  .profile-title-row { gap: 10px; }
  .profile-company-logo { width: 48px; height: 48px; flex-basis: 48px; padding: 5px; border-radius: 11px; }
  .founder-avatar-link { width: 48px; height: 48px; flex-basis: 48px; }
}

.founder-avatar-link .founder-mark { width: 100%; height: 100%; border-radius: 50%; }
.founder-mark[hidden] { display: none !important; }
