:root {
  --bg: #f5f4ef;
  --surface: #ffffff;
  --surface-2: #ececea;
  --ink: #101010;
  --muted: #646464;
  --soft: #8b8b8b;
  --border: #dddad2;
  --border-strong: #c9c5ba;
  --orange: #ff5c00;
  --orange-2: #ff7a1a;
  --green: #0f8a47;
  --red: #c93333;
  --blue: #1f5fd1;
  --cyan: #0098a8;
  --black: #0b0b0b;
  --mono: "IBM Plex Mono", "SF Mono", Menlo, monospace;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(rgba(16, 16, 16, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 16, 16, 0.028) 1px, transparent 1px),
    var(--bg);
  background-size: 28px 28px;
  color: var(--ink);
  font-family: var(--font);
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.site-shell {
  width: min(1440px, 100%);
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 48px);
  background: rgba(245, 244, 239, 0.86);
  border-bottom: 1px solid rgba(201, 197, 186, 0.7);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #fff;
  background: var(--black);
  border-radius: 8px;
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 0.98rem;
}

.brand small {
  color: var(--muted);
  font-size: 0.72rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.nav-links a {
  padding: 8px 12px;
  color: var(--muted);
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 650;
}

.nav-links a:hover {
  background: var(--surface);
  color: var(--ink);
}

.hero-band {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(390px, 0.9fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: stretch;
  padding: clamp(38px, 7vw, 86px) clamp(18px, 4vw, 48px) 24px;
}

.hero-copy {
  display: flex;
  min-height: 430px;
  flex-direction: column;
  justify-content: center;
  border-bottom: 1px solid var(--border-strong);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--orange);
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  color: var(--black);
  line-height: 1.02;
}

h1 {
  max-width: 860px;
  font-size: clamp(2.8rem, 5.4vw, 5.8rem);
  font-weight: 850;
  text-wrap: balance;
}

h2 {
  font-size: clamp(1.8rem, 3.6vw, 3.4rem);
  font-weight: 820;
}

.hero-lede {
  max-width: 760px;
  margin: 24px 0 0;
  color: #3a3a3a;
  font-size: clamp(1rem, 1.5vw, 1.22rem);
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--black);
  border-radius: 7px;
  font-size: 0.9rem;
  font-weight: 750;
}

.button.primary {
  color: #fff;
  background: var(--black);
}

.button.ghost {
  background: rgba(255, 255, 255, 0.5);
}

.hero-board,
.detail-panel,
.manager-card,
.metric,
.poster-preview,
.ark-card {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.hero-board {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 430px;
  padding: 22px;
}

.board-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--muted);
}

.board-header strong {
  color: var(--black);
  font-size: 1rem;
}

.progress-track {
  height: 9px;
  margin: 18px 0 20px;
  overflow: hidden;
  background: var(--surface-2);
  border-radius: 999px;
}

.progress-track span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--orange), var(--green), var(--blue));
}

.filing-ticker {
  display: grid;
  gap: 8px;
  overflow: hidden;
}

.filing-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 11px 0;
  border-top: 1px solid var(--border);
}

.filing-row strong,
.filing-row span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.filing-row strong {
  font-size: 0.92rem;
}

.filing-row span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.74rem;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 5px;
  font-size: 0.72rem;
  font-weight: 750;
}

.status-ok {
  color: var(--green);
  background: rgba(15, 138, 71, 0.08);
}

.status-missing {
  color: #7c5b12;
  background: rgba(255, 122, 26, 0.12);
}

.snapshot-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 0 clamp(18px, 4vw, 48px) clamp(52px, 6vw, 82px);
}

.metric {
  padding: 18px;
}

.metric span,
.section-note {
  color: var(--muted);
  font-size: 0.86rem;
}

.metric strong {
  display: block;
  margin-top: 8px;
  color: var(--black);
  font-family: var(--mono);
  font-size: clamp(1.25rem, 2.2vw, 2rem);
}

.radar-layout,
.feature-band,
.ark-band,
.source-band {
  padding: clamp(44px, 6vw, 78px) clamp(18px, 4vw, 48px);
  border-top: 1px solid var(--border-strong);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.segmented {
  min-height: 38px;
  padding: 0 13px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid var(--border);
  border-radius: 7px;
  cursor: pointer;
  font-weight: 750;
}

.segmented.active {
  color: #fff;
  background: var(--black);
  border-color: var(--black);
}

.search-box {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--border);
  border-radius: 7px;
}

.search-box span {
  color: var(--soft);
  font-family: var(--mono);
  font-size: 0.68rem;
}

.search-box input {
  width: min(240px, 38vw);
  color: var(--ink);
  background: transparent;
  border: 0;
  outline: 0;
}

.workspace-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(460px, 1.14fr);
  gap: 18px;
  align-items: start;
}

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

.manager-card {
  display: grid;
  min-height: 124px;
  padding: 14px;
  text-align: left;
  cursor: pointer;
}

.manager-card:hover,
.manager-card.active {
  border-color: var(--black);
}

.manager-card.active {
  background: #fff;
}

.manager-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.manager-card h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.25;
}

.manager-card p {
  margin: 6px 0 12px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.4;
}

.manager-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-self: end;
}

.mini-chip {
  display: inline-flex;
  min-height: 23px;
  align-items: center;
  padding: 0 7px;
  color: #333;
  background: rgba(236, 236, 234, 0.85);
  border: 1px solid var(--border);
  border-radius: 5px;
  font-family: var(--mono);
  font-size: 0.68rem;
}

.detail-panel {
  position: sticky;
  top: 86px;
  padding: 18px;
}

.detail-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.detail-header h3 {
  margin: 0 0 8px;
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  line-height: 1.05;
}

.detail-header p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.radial-chart {
  width: 130px;
  aspect-ratio: 1;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: conic-gradient(
    var(--orange) 0 82deg,
    var(--cyan) 82deg 126deg,
    var(--green) 126deg 168deg,
    #ffc400 168deg 207deg,
    #f04444 207deg 242deg,
    #14b8a6 242deg 276deg,
    #1d8be0 276deg 309deg,
    #7ab800 309deg 341deg,
    #dedbd2 341deg 360deg
  );
  box-shadow: inset 0 0 0 26px var(--surface);
}

.detail-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 14px 0;
}

.detail-stat {
  padding: 12px;
  background: rgba(236, 236, 234, 0.54);
  border: 1px solid var(--border);
  border-radius: 7px;
}

.detail-stat span {
  color: var(--muted);
  font-size: 0.72rem;
}

.detail-stat strong {
  display: block;
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 1rem;
}

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

.holding-table th,
.holding-table td {
  padding: 11px 7px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: middle;
  font-size: 0.85rem;
}

.holding-table th {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.68rem;
  text-transform: uppercase;
}

.ticker {
  font-weight: 820;
}

.issuer {
  display: block;
  max-width: 240px;
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.76rem;
}

.weight-bar {
  position: relative;
  min-width: 92px;
  height: 28px;
}

.weight-bar span {
  position: absolute;
  inset: auto auto 0 0;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--orange), var(--cyan));
}

.positive {
  color: var(--green);
}

.negative {
  color: var(--red);
}

.neutral {
  color: var(--muted);
}

.source-link {
  display: inline-flex;
  margin-top: 14px;
  color: var(--blue);
  font-size: 0.84rem;
  font-weight: 750;
}

.feature-band {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(340px, 0.48fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: center;
}

.feature-copy p:not(.eyebrow) {
  max-width: 720px;
  color: #383838;
  font-size: 1.05rem;
  line-height: 1.78;
}

.poster-preview {
  margin: 0;
  overflow: hidden;
}

.poster-preview img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top;
}

.poster-preview figcaption {
  padding: 12px 14px;
  color: var(--muted);
  border-top: 1px solid var(--border);
  font-size: 0.78rem;
}

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

.ark-card {
  min-height: 130px;
  padding: 14px;
}

.ark-card strong {
  display: block;
  color: var(--orange);
  font-family: var(--mono);
  font-size: 1.1rem;
}

.ark-card span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

.source-band {
  padding-bottom: 96px;
}

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

.source-grid p {
  min-height: 130px;
  margin: 0;
  padding: 16px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: #383838;
  line-height: 1.65;
}

@media (max-width: 1120px) {
  .hero-band,
  .workspace-grid,
  .feature-band {
    grid-template-columns: 1fr;
  }

  .hero-copy,
  .hero-board {
    min-height: unset;
  }

  .detail-panel {
    position: static;
  }

  .ark-grid,
  .source-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .topbar {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    width: 100%;
    justify-content: space-between;
  }

  h1 {
    font-size: 2.6rem;
  }

  .snapshot-band,
  .detail-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-heading,
  .detail-header {
    align-items: stretch;
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .toolbar {
    justify-content: flex-start;
  }

  .manager-grid,
  .ark-grid,
  .source-grid {
    grid-template-columns: 1fr;
  }

  .holding-table {
    min-width: 620px;
  }

  .detail-panel {
    overflow-x: auto;
  }
}

@media (max-width: 520px) {
  .snapshot-band {
    grid-template-columns: 1fr;
  }

  .search-box,
  .search-box input {
    width: 100%;
  }
}
