:root {
  --bg: #f7f8f5;
  --surface: #ffffff;
  --ink: #18272b;
  --muted: #647174;
  --line: #d9ded8;
  --green: #607a61;
  --orange: #d87456;
  --blue: #2f6f89;
  --yellow: #e2b84d;
  --soft-green: #e6eee4;
  --soft-orange: #fae8df;
  --soft-blue: #e6f0f3;
  --shadow: 0 14px 34px rgba(24, 39, 43, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.45;
}

a {
  color: inherit;
}

.shell {
  max-width: 1240px;
  margin: 0 auto;
  padding: 28px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.deck-hero {
  margin-bottom: 20px;
  padding: 18px;
}

.deck-hero-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.deck-hero-header h2 {
  margin-bottom: 4px;
}

.deck-frame {
  display: block;
  width: 100%;
  height: min(76vh, 780px);
  min-height: 520px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.deck-preview {
  display: block;
  width: 100%;
  max-height: 420px;
  object-fit: contain;
  margin-bottom: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.deck-fallback {
  display: grid;
  gap: 12px;
  padding: 12px;
}

.deck-fallback p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.breadcrumb {
  color: var(--muted);
  font-size: 13px;
}

.button-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
}

.button.primary {
  border-color: var(--ink);
  background: var(--ink);
  color: white;
}

.profile-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  gap: 20px;
  align-items: stretch;
  margin-bottom: 20px;
}

.brand-panel,
.funding-panel,
.panel,
.brand-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.brand-panel {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-height: 330px;
}

.eyebrow {
  color: var(--orange);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 8px;
  font-size: clamp(40px, 5vw, 70px);
  line-height: 0.95;
  letter-spacing: 0;
}

.dek {
  max-width: 760px;
  color: #2d3e42;
  font-size: 18px;
  line-height: 1.5;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 18px;
}

.tag {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 9px;
  background: #fbfcfa;
  color: #334447;
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
}

.stat-stack {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: auto;
}

.stat {
  border-left: 5px solid var(--green);
  background: var(--soft-green);
  padding: 13px 14px;
  border-radius: 8px;
}

.stat:nth-child(2) {
  border-left-color: var(--orange);
  background: var(--soft-orange);
}

.stat:nth-child(3) {
  border-left-color: var(--blue);
  background: var(--soft-blue);
}

.stat-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  text-transform: uppercase;
}

.stat-value {
  margin-top: 2px;
  font-size: 24px;
  font-weight: 850;
}

.funding-panel {
  padding: 18px;
}

.funding-panel h2,
.panel h2 {
  margin-bottom: 12px;
  font-size: 20px;
}

.chart-img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.chart-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.status-overview,
.company-status {
  margin-bottom: 20px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.status-overview-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}

.status-overview-header h2,
.company-status h2 {
  margin: 4px 0 6px;
  font-size: 22px;
}

.status-updated {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  text-align: right;
  white-space: nowrap;
}

.status-grid,
.company-status-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.status-card,
.status-tile {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfa;
}

.status-card {
  color: inherit;
  text-decoration: none;
}

.status-card h3,
.status-tile h3 {
  margin: 0;
  font-size: 18px;
}

.status-card p,
.status-tile p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.status-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.status-pill,
.card-status-overlay {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 26px;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  color: #334447;
  font-size: 12px;
  font-weight: 800;
}

.status-pill.positive,
.card-status-overlay.positive {
  border-color: #bed2b8;
  background: var(--soft-green);
  color: #314f35;
}

.status-pill.mixed,
.card-status-overlay.mixed {
  border-color: #dfc994;
  background: #fff7df;
  color: #6a5221;
}

.status-pill.watch {
  border-color: #e8bca8;
  background: var(--soft-orange);
  color: #76422e;
}

.status-note {
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
}

.research-brief {
  display: grid;
  gap: 18px;
  margin-bottom: 20px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.brief-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 270px;
  gap: 18px;
  align-items: stretch;
}

.brief-header h2 {
  max-width: 920px;
  margin: 4px 0 10px;
  font-size: 28px;
  line-height: 1.12;
}

.verdict-card {
  display: grid;
  align-content: start;
  gap: 6px;
  padding: 16px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--blue);
  border-radius: 8px;
  background: var(--soft-blue);
}

.verdict-card span,
.card-kicker {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.verdict-card strong {
  font-size: 26px;
  line-height: 1;
}

.verdict-card p,
.finding-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.finding-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.finding-card,
.brief-panel,
.model-node {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfa;
}

.finding-card {
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 14px;
}

.finding-card h3,
.brief-panel h3 {
  margin-bottom: 4px;
  font-size: 17px;
}

.brief-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.brief-panel {
  padding: 16px;
}

.brief-panel.caution {
  border-left: 5px solid var(--orange);
  background: #fffaf7;
}

.evidence-list {
  margin: 0;
  padding-left: 18px;
  color: #334447;
  font-size: 13px;
}

.evidence-list li {
  margin: 7px 0;
}

.model-flow {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.model-node {
  padding: 13px;
}

.model-node span {
  display: inline-flex;
  width: 24px;
  height: 24px;
  align-items: center;
  justify-content: center;
  margin-bottom: 9px;
  border-radius: 999px;
  background: var(--ink);
  color: white;
  font-size: 12px;
  font-weight: 850;
}

.model-node strong {
  display: block;
  margin-bottom: 4px;
}

.model-node p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.panel {
  padding: 18px;
}

.panel.is-collapsible {
  padding: 0;
  overflow: hidden;
}

.collapse-header {
  display: flex;
  width: 100%;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
  font: inherit;
}

.collapse-header:hover,
.collapse-header:focus-visible {
  background: #fbfcfa;
}

.collapse-header:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: -2px;
}

.collapse-heading {
  min-width: 0;
}

.collapse-title {
  display: block;
  margin-top: 2px;
  font-size: 20px;
  font-weight: 850;
}

.collapse-summary {
  display: block;
  max-width: 900px;
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.collapse-action {
  flex: 0 0 auto;
  min-width: 56px;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfa;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.collapse-content {
  padding: 0 18px 18px;
}

.collapse-content > .eyebrow,
.collapse-content > h2,
.collapse-content > .section-lede {
  display: none;
}

.wide {
  grid-column: 1 / -1;
}

.facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.fact {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.fact small {
  display: block;
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  text-transform: uppercase;
}

.fact strong {
  font-size: 15px;
}

.timeline {
  display: grid;
  gap: 10px;
}

.timeline-row {
  display: grid;
  grid-template-columns: 82px 1fr 92px;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.year {
  color: var(--orange);
  font-weight: 850;
}

.round-name {
  font-weight: 780;
}

.round-meta {
  color: var(--muted);
  font-size: 13px;
}

.amount {
  justify-self: end;
  font-weight: 850;
}

.investor-mix {
  display: grid;
  gap: 10px;
}

.mix-row {
  display: grid;
  grid-template-columns: 120px 1fr 42px;
  gap: 10px;
  align-items: center;
  font-size: 13px;
}

.bar {
  height: 12px;
  border-radius: 999px;
  background: #edf0ed;
  overflow: hidden;
}

.bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
}

.bar.funds span {
  width: 53%;
  background: var(--green);
}

.bar.operators span {
  width: 35%;
  background: var(--orange);
}

.bar.individuals span {
  width: 12%;
  background: var(--blue);
}

.slide-table {
  width: 100%;
  border-collapse: collapse;
}

.slide-table th,
.slide-table td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  font-size: 14px;
}

.slide-table th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.slide-num {
  color: var(--orange);
  font-weight: 850;
}

.signal-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.grid > .panel .signal-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.signal {
  min-height: 120px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfa;
}

.signal strong {
  display: block;
  margin-bottom: 6px;
}

.signal p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.contact-sheet {
  display: block;
  width: 100%;
  max-height: 620px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.brand-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.brand-card {
  position: relative;
  padding: 18px;
  text-decoration: none;
}

.brand-card .card-status-overlay {
  margin-bottom: 10px;
}

.brand-card h2 {
  margin-bottom: 8px;
}

.brand-card p {
  color: var(--muted);
  margin-bottom: 14px;
}

.footer-note {
  margin: 24px 0 4px;
  color: var(--muted);
  font-size: 12px;
}

.reference-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.reference-nav {
  position: sticky;
  top: 18px;
  display: grid;
  gap: 6px;
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.reference-nav a {
  padding: 8px 9px;
  border-radius: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.reference-nav a:hover {
  background: #f0f3ef;
  color: var(--ink);
}

.reference-content {
  display: grid;
  gap: 18px;
}

.section-lede {
  color: var(--muted);
  max-width: 900px;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.data-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  background: white;
}

.data-table.compact {
  min-width: 620px;
}

.data-table th,
.data-table td {
  padding: 10px 11px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  font-size: 13px;
}

.data-table th {
  background: #f3f5f1;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.data-table tr:last-child td {
  border-bottom: 0;
}

.data-table td:first-child,
.data-table th:first-child {
  font-weight: 780;
}

.callout {
  padding: 14px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--orange);
  border-radius: 8px;
  background: #fffaf7;
}

.callout p:last-child {
  margin-bottom: 0;
}

.two-column {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.note-list {
  margin: 0;
  padding-left: 18px;
  color: #334447;
}

.note-list li {
  margin: 6px 0;
}

.source-link {
  color: var(--blue);
  font-weight: 700;
  word-break: break-word;
}

@media (max-width: 980px) {
  .profile-header,
  .grid,
  .reference-layout,
  .two-column,
  .brief-header,
  .brief-split,
  .status-overview-header,
  .status-grid,
  .company-status-grid {
    grid-template-columns: 1fr;
  }

  .status-overview-header {
    display: grid;
  }

  .status-updated {
    text-align: left;
    white-space: normal;
  }

  .finding-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .model-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .reference-nav {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .signal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .shell {
    padding: 18px;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .deck-hero-header {
    flex-direction: column;
  }

  .deck-frame {
    height: 64vh;
    min-height: 420px;
  }

  .facts,
  .stat-stack,
  .signal-grid,
  .finding-grid,
  .model-flow {
    grid-template-columns: 1fr;
  }

  .reference-nav {
    grid-template-columns: 1fr;
  }

  .timeline-row {
    grid-template-columns: 1fr;
  }

  .amount {
    justify-self: start;
  }
}
