:root {
  --ink: #071421;
  --ink-soft: #243445;
  --muted: #6d7883;
  --paper: #f5f7f4;
  --surface: #ffffff;
  --line: #dce3df;
  --navy: #0c2d48;
  --blue: #2467a7;
  --teal: #1fa6a2;
  --green: #2f9f6c;
  --amber: #c98928;
  --rose: #c45f5f;
  --violet: #7561a8;
  --shadow: 0 22px 70px rgba(7, 20, 33, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(31, 166, 162, 0.08) 0 1px, transparent 1px 100%),
    linear-gradient(180deg, rgba(36, 103, 167, 0.07) 0 1px, transparent 1px 100%),
    var(--paper);
  background-size: 48px 48px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(135deg, rgba(12, 45, 72, 0.1), transparent 35%),
    linear-gradient(315deg, rgba(47, 159, 108, 0.11), transparent 42%);
}

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

button,
input {
  font: inherit;
}

body.access-locked {
  overflow: hidden;
}

body.access-locked .site-header,
body.access-locked main,
body.access-locked .site-footer {
  filter: blur(15px);
  pointer-events: none;
  user-select: none;
}

.access-gate {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 22px;
  background:
    radial-gradient(circle at 50% 36%, rgba(255, 255, 255, 0.54), transparent 34%),
    linear-gradient(135deg, rgba(7, 20, 33, 0.4), rgba(7, 20, 33, 0.12));
  backdrop-filter: blur(6px);
  perspective: 1200px;
}

.access-gate[hidden] {
  display: none;
}

.access-card {
  position: relative;
  width: min(420px, 100%);
  padding: 28px;
  overflow: hidden;
  color: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 16%, rgba(255, 255, 255, 0.94), transparent 28%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(205, 215, 213, 0.92)),
    repeating-linear-gradient(90deg, rgba(7, 20, 33, 0.045) 0 1px, transparent 1px 6px);
  box-shadow:
    0 34px 90px rgba(7, 20, 33, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    inset 0 -18px 32px rgba(7, 20, 33, 0.06);
  transform-origin: left center;
}

.access-card::before {
  position: absolute;
  inset: 12px;
  z-index: 0;
  border: 1px solid rgba(7, 20, 33, 0.1);
  border-radius: 6px;
  content: "";
  pointer-events: none;
}

.access-card::after {
  position: absolute;
  inset: 20px;
  z-index: 0;
  border: 1px solid rgba(255, 255, 255, 0.64);
  border-radius: 4px;
  content: "";
  pointer-events: none;
}

.access-card > * {
  position: relative;
  z-index: 1;
}

.safe-lock {
  position: relative;
  display: grid;
  place-items: center;
  width: 224px;
  height: 224px;
  margin: 0 auto 20px;
  border: 1px solid rgba(7, 20, 33, 0.2);
  border-radius: 50%;
  background:
    radial-gradient(circle at 36% 28%, rgba(255, 255, 255, 0.95), transparent 30%),
    repeating-conic-gradient(from -3deg, rgba(7, 20, 33, 0.34) 0 2deg, transparent 2deg 12deg),
    radial-gradient(circle, #eef2f0 0 28%, #b8c4c1 58%, #758686 100%);
  box-shadow:
    inset 0 0 0 12px rgba(255, 255, 255, 0.34),
    inset 0 0 0 32px rgba(7, 20, 33, 0.04),
    inset 0 -18px 28px rgba(7, 20, 33, 0.12),
    0 22px 50px rgba(7, 20, 33, 0.24);
}

.safe-lock::before {
  position: absolute;
  inset: 36px;
  border: 1px solid rgba(7, 20, 33, 0.16);
  border-radius: 50%;
  content: "";
}

.safe-lock::after {
  position: absolute;
  top: 18px;
  width: 4px;
  height: 24px;
  border-radius: 999px;
  background: var(--navy);
  content: "";
}

.safe-wheel {
  position: absolute;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  filter: drop-shadow(0 13px 18px rgba(7, 20, 33, 0.22));
  transform: rotate(var(--wheel-rotation, 0deg));
  transition: transform 420ms cubic-bezier(0.18, 0.8, 0.26, 1);
  will-change: transform;
}

.wheel-spoke {
  position: absolute;
  width: 138px;
  height: 10px;
  border: 1px solid rgba(7, 20, 33, 0.12);
  border-radius: 999px;
  background: linear-gradient(90deg, #6e7f7f, #ffffff 28%, #6f8282 74%, #425555);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.7), 0 7px 12px rgba(7, 20, 33, 0.16);
}

.wheel-spoke:nth-child(2) {
  transform: rotate(60deg);
}

.wheel-spoke:nth-child(3) {
  transform: rotate(120deg);
}

.wheel-spoke:nth-child(4) {
  transform: rotate(180deg);
}

.wheel-spoke:nth-child(5) {
  transform: rotate(240deg);
}

.wheel-spoke:nth-child(6) {
  transform: rotate(300deg);
}

.safe-lock > span {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7b8b8b, #ffffff);
  box-shadow: inset 0 1px 2px rgba(7, 20, 33, 0.24);
}

.safe-lock > span:nth-of-type(1) {
  top: 20px;
}

.safe-lock > span:nth-of-type(2) {
  right: 20px;
}

.safe-lock > span:nth-of-type(3) {
  bottom: 20px;
}

.safe-lock > span:nth-of-type(4) {
  left: 20px;
}

.safe-dial {
  position: relative;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  border: 1px solid rgba(7, 20, 33, 0.18);
  border-radius: 50%;
  background:
    radial-gradient(circle at 38% 28%, #ffffff, #dbe3e1 52%, #7d9090),
    conic-gradient(from 40deg, rgba(7, 20, 33, 0.2), transparent 42%, rgba(7, 20, 33, 0.18));
  box-shadow:
    inset 0 0 0 8px rgba(255, 255, 255, 0.44),
    inset 0 -8px 14px rgba(7, 20, 33, 0.08),
    0 8px 18px rgba(7, 20, 33, 0.2);
}

.safe-dial img {
  width: 54px;
  height: 54px;
  padding: 3px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 5px 14px rgba(36, 103, 167, 0.28);
}

.access-kicker {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-align: center;
  text-transform: uppercase;
}

.access-card h2 {
  margin-bottom: 18px;
  font-size: 34px;
  text-align: center;
}

.pin-field {
  display: grid;
  gap: 8px;
}

.pin-field span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.pin-field input {
  width: 100%;
  min-height: 54px;
  padding: 0 16px;
  color: #dce3df;
  border: 1px solid rgba(7, 20, 33, 0.18);
  border-radius: 6px;
  background: linear-gradient(180deg, #071421, #10273a);
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.34);
  font-size: 28px;
  font-weight: 900;
  letter-spacing: 0.24em;
  text-align: center;
}

.pin-field input:focus {
  border-color: rgba(31, 166, 162, 0.78);
  outline: none;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.34), 0 0 0 4px rgba(31, 166, 162, 0.16);
}

.pin-console {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(7, 20, 33, 0.12);
  border-radius: 8px;
  background: rgba(7, 20, 33, 0.05);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.56);
}

.safe-keypad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.safe-keypad button {
  min-height: 46px;
  color: var(--ink);
  border: 1px solid rgba(7, 20, 33, 0.14);
  border-radius: 6px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(202, 213, 210, 0.86)),
    repeating-linear-gradient(90deg, rgba(7, 20, 33, 0.03) 0 1px, transparent 1px 5px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86), 0 6px 12px rgba(7, 20, 33, 0.12);
  font-size: 17px;
  font-weight: 900;
  cursor: pointer;
}

.safe-keypad button:hover,
.safe-keypad button:focus-visible {
  border-color: rgba(31, 166, 162, 0.42);
  outline: none;
  transform: translateY(-1px);
}

.safe-keypad button:active {
  transform: translateY(1px);
  box-shadow: inset 0 2px 6px rgba(7, 20, 33, 0.18);
}

.safe-keypad button[data-pin-action] {
  color: var(--navy);
  font-size: 12px;
  letter-spacing: 0.06em;
}

.access-submit {
  width: 100%;
  min-height: 48px;
  margin-top: 14px;
  color: #ffffff;
  border: 0;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--navy), #164d72);
  box-shadow: 0 14px 28px rgba(12, 45, 72, 0.24);
  font-weight: 900;
  cursor: pointer;
}

.access-error {
  min-height: 20px;
  margin: 12px 0 0;
  color: #a83d3d;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

body.access-denied .access-card {
  animation: safe-denied 240ms ease;
}

.access-gate.is-opening {
  pointer-events: none;
  animation: gate-fade 980ms ease forwards;
}

.access-gate.is-opening .access-card {
  animation: safe-open 980ms cubic-bezier(0.2, 0.72, 0.24, 1) forwards;
}

.access-gate.is-opening .safe-wheel {
  animation: wheel-release 920ms cubic-bezier(0.2, 0.8, 0.22, 1) forwards;
}

.access-gate.is-opening .safe-dial {
  animation: dial-spin 920ms cubic-bezier(0.2, 0.8, 0.22, 1) forwards;
}

@keyframes safe-denied {
  0%,
  100% {
    transform: translateX(0);
  }

  30% {
    transform: translateX(-8px);
  }

  70% {
    transform: translateX(8px);
  }
}

@keyframes safe-open {
  0% {
    opacity: 1;
    transform: rotateY(0) translateX(0) scale(1);
  }

  38% {
    opacity: 1;
    transform: rotateY(-16deg) translateX(-10px) scale(1.01);
  }

  72% {
    opacity: 1;
    transform: rotateY(-58deg) translateX(-58px) scale(0.99);
  }

  100% {
    opacity: 0;
    transform: rotateY(-86deg) translateX(-110px) scale(0.96);
  }
}

@keyframes wheel-release {
  0% {
    transform: rotate(var(--wheel-rotation, 0deg));
  }

  46% {
    transform: rotate(calc(var(--wheel-rotation, 0deg) + 220deg));
  }

  100% {
    transform: rotate(calc(var(--wheel-rotation, 0deg) + 405deg));
  }
}

@keyframes dial-spin {
  0% {
    transform: rotate(0) scale(1);
  }

  65% {
    transform: rotate(280deg) scale(1.04);
  }

  100% {
    transform: rotate(405deg) scale(0.98);
  }
}

@keyframes gate-fade {
  0%,
  62% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 74px;
  padding: 14px clamp(18px, 5vw, 64px);
  border-bottom: 1px solid rgba(7, 20, 33, 0.08);
  background: rgba(245, 247, 244, 0.86);
  backdrop-filter: blur(18px);
  transition: box-shadow 180ms ease, background 180ms ease;
}

.site-header[data-elevated="true"] {
  background: rgba(245, 247, 244, 0.96);
  box-shadow: 0 10px 34px rgba(7, 20, 33, 0.1);
}

.brand,
.site-footer div {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  font-weight: 800;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  box-shadow: 0 10px 26px rgba(36, 103, 167, 0.24);
}

nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

nav a,
.action,
.sort-button {
  border: 1px solid transparent;
  border-radius: 8px;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease,
    color 160ms ease, box-shadow 160ms ease;
}

nav a {
  padding: 10px 12px;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 700;
}

nav a:hover,
nav a:focus-visible {
  color: var(--navy);
  background: rgba(255, 255, 255, 0.76);
  border-color: rgba(12, 45, 72, 0.12);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(560px, 1.14fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
  min-height: auto;
  padding: clamp(30px, 5vw, 62px) clamp(18px, 5vw, 64px) 48px;
}

.hero-copy {
  max-width: 620px;
}

.eyebrow,
.label {
  display: block;
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 18px;
  color: var(--navy);
  font-size: clamp(54px, 7vw, 104px);
  line-height: 0.92;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  color: var(--navy);
  font-size: clamp(32px, 4vw, 58px);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  color: var(--navy);
  font-size: 18px;
}

.hero-lede {
  max-width: 540px;
  color: var(--ink-soft);
  font-size: 20px;
  line-height: 1.55;
}

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

.action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  font-weight: 800;
}

.action:hover,
.action:focus-visible,
.sort-button:hover,
.sort-button:focus-visible {
  transform: translateY(-1px);
}

.action.primary {
  color: #ffffff;
  background: var(--navy);
  box-shadow: 0 16px 32px rgba(12, 45, 72, 0.22);
}

.action.secondary {
  color: var(--navy);
  background: rgba(255, 255, 255, 0.75);
  border-color: rgba(12, 45, 72, 0.14);
}

.hero-dashboard,
.allocation-panel,
.scenario-copy,
.scenario-control {
  border: 1px solid rgba(7, 20, 33, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
}

.hero-dashboard {
  position: relative;
  overflow: hidden;
  padding: clamp(20px, 4vw, 30px);
}

.hero-dashboard::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  content: "";
  background:
    linear-gradient(120deg, rgba(31, 166, 162, 0.16), transparent 42%),
    linear-gradient(305deg, rgba(201, 137, 40, 0.16), transparent 48%);
}

.hero-dashboard > * {
  position: relative;
  z-index: 1;
}

.hero .chart-shell {
  margin-top: 0;
}

.chart-shell {
  position: relative;
}

.chart-tooltip {
  position: absolute;
  z-index: 5;
  display: none;
  max-width: min(280px, calc(100vw - 44px));
  padding: 12px;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(7, 20, 33, 0.94);
  box-shadow: 0 18px 44px rgba(7, 20, 33, 0.24);
  font-size: 13px;
  line-height: 1.45;
  pointer-events: none;
}

.chart-tooltip strong {
  display: block;
  margin-bottom: 4px;
  color: #ffffff;
  font-size: 15px;
}

.chart-tooltip span {
  display: block;
  color: rgba(255, 255, 255, 0.74);
}

.hero-topline,
.panel-head,
.range-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.hero-topline strong {
  display: block;
  color: var(--navy);
  font-size: clamp(34px, 4.6vw, 64px);
  line-height: 1;
}

.status-pill,
.metric-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 11px;
  color: var(--navy);
  border: 1px solid rgba(36, 103, 167, 0.16);
  border-radius: 999px;
  background: rgba(36, 103, 167, 0.09);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

#bridgeChart {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.44);
}

.member-section {
  padding: 10px clamp(18px, 5vw, 64px);
  border-bottom: 1px solid rgba(7, 20, 33, 0.08);
  background: rgba(255, 255, 255, 0.5);
}

.member-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  max-width: 1280px;
  min-height: 48px;
  margin: 0 auto;
  gap: 10px;
}

.percent-input {
  display: grid;
  grid-template-columns: auto 92px auto;
  align-items: center;
  min-height: 42px;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid rgba(7, 20, 33, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink-soft);
  font-weight: 800;
}

.percent-input input {
  width: 92px;
  min-height: 30px;
  padding: 0 8px;
  border: 1px solid rgba(7, 20, 33, 0.12);
  border-radius: 6px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.9);
  font-weight: 900;
  text-align: right;
}

.percent-input input:focus {
  border-color: rgba(36, 103, 167, 0.58);
  outline: none;
  box-shadow: 0 0 0 4px rgba(36, 103, 167, 0.12);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 14px;
}

.mini-metric,
.metric-card,
.insight-card,
.discipline-grid article {
  border: 1px solid rgba(7, 20, 33, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
}

.mini-metric {
  padding: 14px;
}

.mini-metric span,
.metric-card span,
.insight-card span,
.deployment-bars span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mini-metric strong,
.metric-card strong,
.insight-card strong,
.deployment-bars strong {
  display: block;
  margin-top: 7px;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.1;
}

.section {
  padding: clamp(62px, 8vw, 110px) clamp(18px, 5vw, 64px);
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  max-width: 1280px;
  margin: 0 auto 32px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  max-width: 1280px;
  margin: 0 auto;
}

.metric-card {
  position: relative;
  min-height: 190px;
  overflow: hidden;
  padding: 22px;
}

.metric-card::after {
  position: absolute;
  right: 18px;
  bottom: 16px;
  width: 96px;
  height: 32px;
  content: "";
  background: var(--sparkline);
  clip-path: polygon(0 70%, 20% 44%, 38% 58%, 58% 18%, 78% 34%, 100% 22%, 100% 42%, 78% 54%, 60% 38%, 40% 78%, 22% 64%, 0 90%);
  opacity: 0.9;
}

.metric-card p {
  margin: 14px 0 0;
  color: var(--ink-soft);
  line-height: 1.55;
}

.portfolio-map {
  display: block;
  max-width: 1280px;
  margin: 0 auto;
}

.allocation-panel {
  min-height: 560px;
  padding: 22px;
}

.allocation-panel {
  display: flex;
  flex-direction: column;
}

.donut-wrap {
  position: relative;
  display: grid;
  flex: 1;
  place-items: center;
  min-height: 390px;
  margin-top: 18px;
}

#allocationChart {
  display: block;
  width: min(100%, 430px);
  height: auto;
}

.donut-center {
  position: absolute;
  display: grid;
  place-items: center;
  width: 132px;
  height: 132px;
  border: 1px solid rgba(7, 20, 33, 0.08);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: inset 0 0 0 10px rgba(31, 166, 162, 0.06);
  text-align: center;
}

.donut-center span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.donut-center strong {
  color: var(--navy);
  font-size: 42px;
  line-height: 0.9;
}

.allocation-detail {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-height: 116px;
  margin-top: 10px;
  padding: 16px;
  border: 1px solid rgba(7, 20, 33, 0.1);
  border-radius: 8px;
  background: rgba(245, 247, 244, 0.76);
}

.allocation-detail .detail-swatch {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--detail-color);
  box-shadow: inset 0 0 0 8px rgba(255, 255, 255, 0.18);
}

.allocation-detail strong {
  display: block;
  color: var(--navy);
  font-size: 24px;
}

.allocation-detail p {
  margin: 6px 0 0;
  color: var(--ink-soft);
  line-height: 1.45;
}

.allocation-detail b {
  color: var(--ink);
}

.allocation-detail a {
  display: inline-flex;
  margin-left: 4px;
  color: var(--blue);
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

.allocation-detail dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.allocation-detail dd {
  margin: 4px 0 0;
  color: var(--ink);
  font-weight: 900;
}

.allocation-legend {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.legend-item {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-height: 42px;
  padding: 9px;
  cursor: pointer;
  border: 1px solid rgba(7, 20, 33, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
  color: var(--ink-soft);
  text-align: left;
}

.legend-item:hover,
.legend-item:focus-visible,
.legend-item.active {
  border-color: rgba(36, 103, 167, 0.42);
  background: rgba(255, 255, 255, 0.96);
  outline: none;
}

.legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--legend-color);
}

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

.legend-item strong {
  color: var(--navy);
  font-size: 13px;
}

.legend-item span {
  font-size: 12px;
  font-weight: 800;
}

.sort-button {
  cursor: pointer;
}

.insight-section {
  background: var(--ink);
  color: #ffffff;
}

.insight-section h2,
.insight-section .eyebrow {
  color: #ffffff;
}

.insight-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  max-width: 1280px;
  margin: 0 auto;
}

.insight-card {
  min-height: 188px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.13);
}

.insight-card span {
  color: rgba(255, 255, 255, 0.62);
}

.insight-card strong {
  color: #ffffff;
}

.insight-card p {
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.55;
}

.table-heading {
  align-items: center;
}

.table-tools {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.search input {
  width: 180px;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid rgba(7, 20, 33, 0.14);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.82);
  outline: none;
}

.search input:focus {
  border-color: rgba(36, 103, 167, 0.58);
  box-shadow: 0 0 0 4px rgba(36, 103, 167, 0.12);
}

.toggle {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid rgba(7, 20, 33, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink-soft);
  font-weight: 800;
}

.toggle input {
  width: 16px;
  height: 16px;
  accent-color: var(--teal);
}

.sort-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 1280px;
  margin: 0 auto 12px;
}

.sort-button {
  min-height: 38px;
  padding: 0 13px;
  color: var(--ink-soft);
  border-color: rgba(7, 20, 33, 0.12);
  background: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 900;
}

.sort-button.active {
  color: #ffffff;
  background: var(--navy);
  border-color: var(--navy);
}

.table-shell {
  max-width: 1280px;
  margin: 0 auto;
  overflow-x: auto;
  border: 1px solid rgba(7, 20, 33, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 16px 48px rgba(7, 20, 33, 0.08);
}

.table-summary {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  max-width: 1280px;
  margin: 0 auto 12px;
}

.summary-item {
  min-height: 92px;
  padding: 14px;
  border: 1px solid rgba(7, 20, 33, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 12px 34px rgba(7, 20, 33, 0.07);
}

.summary-item span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.summary-item strong {
  display: block;
  margin-top: 8px;
  color: var(--navy);
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.08;
}

table {
  width: 100%;
  min-width: 940px;
  border-collapse: collapse;
}

th,
td {
  padding: 16px;
  text-align: right;
  border-bottom: 1px solid rgba(7, 20, 33, 0.08);
}

th:first-child,
td:first-child {
  text-align: left;
}

th {
  color: var(--muted);
  background: rgba(245, 247, 244, 0.88);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

td {
  color: var(--ink-soft);
  font-weight: 750;
}

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

tfoot td {
  position: sticky;
  bottom: 0;
  color: var(--navy);
  background: rgba(245, 247, 244, 0.96);
  font-weight: 950;
}

.ticker-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--navy);
  font-weight: 950;
}

.ticker-dot {
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--ticker-color);
}

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

.number-negative {
  color: var(--rose);
}

.weight-cell {
  display: inline-grid;
  width: 108px;
  gap: 6px;
}

.weight-cell span {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(7, 20, 33, 0.08);
}

.weight-cell span::before {
  display: block;
  width: var(--weight-width);
  height: 100%;
  content: "";
  border-radius: inherit;
  background: var(--ticker-color);
}

.scenario-section {
  padding-top: 24px;
}

.scenario-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
  gap: 18px;
  max-width: 1280px;
  margin: 0 auto;
}

.scenario-copy,
.scenario-control {
  padding: 24px;
}

.scenario-copy strong,
.range-head strong {
  display: block;
  color: var(--navy);
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1;
}

.scenario-copy p {
  margin: 22px 0 0;
  color: var(--ink-soft);
  line-height: 1.6;
}

.scenario-control input[type="range"] {
  width: 100%;
  margin: 34px 0 26px;
  accent-color: var(--teal);
}

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

.deployment-bars div {
  padding: 16px;
  border: 1px solid rgba(7, 20, 33, 0.1);
  border-radius: 8px;
  background: rgba(245, 247, 244, 0.78);
}

.discipline-section {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.62));
}

.discipline-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 1280px;
  margin: 0 auto;
}

.discipline-grid article {
  min-height: 250px;
  padding: 24px;
}

.discipline-grid article span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: 34px;
  border: 1px solid rgba(36, 103, 167, 0.16);
  border-radius: 50%;
  color: var(--navy);
  background: rgba(36, 103, 167, 0.08);
  font-weight: 900;
}

.discipline-grid p {
  color: var(--ink-soft);
  line-height: 1.6;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(18px, 5vw, 64px);
  color: rgba(255, 255, 255, 0.72);
  background: var(--ink);
}

.site-footer img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
}

.site-footer span {
  color: #ffffff;
}

.site-footer p {
  max-width: 760px;
  margin: 0;
  text-align: right;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 1060px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-copy {
    max-width: 760px;
  }

  .portfolio-map,
  .scenario-grid {
    grid-template-columns: 1fr;
  }

  .metric-grid,
  .table-summary,
  .insight-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .table-shell {
    overflow-x: visible;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  table,
  thead,
  tbody,
  tfoot,
  tr,
  td {
    display: block;
    min-width: 0;
  }

  thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }

  tbody,
  tfoot {
    display: grid;
    gap: 12px;
  }

  tfoot {
    margin-top: 12px;
  }

  tbody tr,
  tfoot tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 14px;
    border: 1px solid rgba(7, 20, 33, 0.1);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 12px 34px rgba(7, 20, 33, 0.07);
  }

  tfoot tr {
    background: rgba(245, 247, 244, 0.96);
  }

  tbody td,
  tfoot td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0;
    border-bottom: 0;
    text-align: right;
  }

  tbody td::before,
  tfoot td::before {
    flex: 0 0 auto;
    color: var(--muted);
    content: attr(data-label);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  tbody td:first-child,
  tfoot td:first-child {
    grid-column: 1 / -1;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(7, 20, 33, 0.08);
    text-align: left;
  }

  tbody td:first-child::before,
  tfoot td:first-child::before {
    display: none;
  }

  tfoot td {
    position: static;
    background: transparent;
  }

  .ticker-cell {
    width: 100%;
    font-size: 18px;
  }

  .weight-cell {
    width: min(112px, 100%);
  }
}

@media (max-width: 760px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  nav a {
    flex: 0 0 auto;
  }

  .hero {
    padding-top: 30px;
  }

  h1 {
    font-size: 52px;
  }

  .hero-lede {
    font-size: 17px;
  }

  .hero-topline,
  .panel-head,
  .section-heading,
  .table-heading,
  .range-head,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-metrics,
  .metric-grid,
  .table-summary,
  .insight-grid,
  .discipline-grid,
  .deployment-bars {
    grid-template-columns: 1fr;
  }

  .allocation-panel {
    min-height: auto;
  }

  .donut-wrap {
    min-height: 300px;
  }

  #allocationChart {
    width: min(100%, 340px);
  }

  .allocation-detail {
    grid-template-columns: 1fr;
  }

  .allocation-detail .detail-swatch {
    width: 34px;
    height: 34px;
  }

  .allocation-detail dl,
  .allocation-legend {
    grid-template-columns: 1fr;
  }

  .table-tools,
  .member-strip,
  .percent-input,
  .search,
  .search input {
    width: 100%;
  }

  .percent-input {
    grid-template-columns: 1fr 96px auto;
  }

  .site-footer p {
    text-align: left;
  }
}
