:root {
  --bg: #04101e;
  --bg-2: #071827;
  --panel: rgba(7, 24, 39, .94);
  --panel-strong: #081d2e;
  --panel-soft: rgba(11, 34, 53, .72);
  --line: rgba(101, 160, 191, .18);
  --line-strong: rgba(111, 177, 208, .32);
  --text: #eef6fb;
  --muted: #8fa9b9;
  --faint: #6f8999;
  --accent: #4ebbe7;
  --accent-soft: rgba(78, 187, 231, .16);
  --red: #ff696c;
  --green: #59d798;
  --shadow: 0 22px 60px rgba(0, 0, 0, .26);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 50% 0%, rgba(28, 91, 130, .18), transparent 35%),
    linear-gradient(180deg, #03101c 0%, var(--bg-2) 32%, var(--bg) 100%);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  line-height: 1.55;
}

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

button {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
[role="button"]:focus-visible {
  outline: 2px solid #8ee5ff;
  outline-offset: 3px;
}

.ambient-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(81, 146, 175, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(81, 146, 175, .045) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: linear-gradient(180deg, #000, transparent 85%);
}

body > *:not(.ambient-grid) {
  position: relative;
  z-index: 1;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 40px;
  min-height: 66px;
  padding: 0 max(28px, calc((100vw - 1240px) / 2));
  border-bottom: 1px solid rgba(91, 160, 194, .16);
  background: rgba(3, 15, 26, .93);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  white-space: nowrap;
}

.brand-name {
  font-size: 21px;
  font-weight: 900;
  letter-spacing: .04em;
}

.brand-separator {
  width: 1px;
  height: 21px;
  margin: 0 14px;
  background: rgba(193, 224, 237, .38);
}

.brand-lab {
  color: #b9cbd5;
  font: 500 12px/1 ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: .08em;
}

.desktop-nav {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 34px;
  height: 66px;
}

.desktop-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  color: #a7bbc6;
  font-size: 13px;
  font-weight: 600;
}

.desktop-nav a:after {
  position: absolute;
  right: 20%;
  bottom: 0;
  left: 20%;
  height: 2px;
  background: transparent;
  content: "";
  transition: background .18s ease, left .18s ease, right .18s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active {
  color: #edf8fd;
}

.desktop-nav a:hover:after,
.desktop-nav a.active:after {
  right: 0;
  left: 0;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(78, 187, 231, .5);
}

.header-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 4px 11px;
  border: 1px solid rgba(93, 155, 183, .28);
  border-radius: 6px;
  background: rgba(8, 29, 46, .76);
  color: #9eb4c0;
  font-size: 11px;
  white-space: nowrap;
}

.header-status b {
  color: #e5f2f8;
  font-weight: 700;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 11px rgba(89, 215, 152, .72);
}

.menu-button,
.mobile-menu {
  display: none;
}

main {
  width: min(1240px, calc(100vw - 56px));
  margin: 0 auto;
}

.hero {
  max-width: 940px;
  margin: 0 auto;
  padding: 34px 0 28px;
  text-align: center;
}

.eyebrow {
  margin: 0 0 8px;
  color: #70d8fb;
  font: 700 10px/1.35 ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: .16em;
}

.hero .eyebrow {
  margin-bottom: 12px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.12;
  letter-spacing: -.045em;
}

.hero h1 span {
  display: inline-block;
  color: #77e2ff;
}

.hero-sub {
  margin: 12px 0 0;
  color: #a4bac6;
  font-size: 14px;
}

.data-status {
  min-height: 18px;
  margin: 8px 0 0;
  color: var(--faint);
  font-size: 11px;
}

.data-status.error {
  color: #ffc2a3;
}

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

.compact-heading {
  margin-bottom: 10px;
}

.section-heading h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -.035em;
}

.section-aside {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  text-align: right;
}

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

.model-card {
  --model-color: #4ebbe7;
  position: relative;
  min-width: 0;
  overflow: visible;
  padding: 18px 18px 15px;
  border: 1px solid color-mix(in srgb, var(--model-color) 64%, #17374b);
  border-radius: 7px;
  background:
    radial-gradient(circle at 92% 8%, color-mix(in srgb, var(--model-color) 13%, transparent), transparent 36%),
    radial-gradient(circle at 8% 95%, color-mix(in srgb, var(--model-color) 5%, transparent), transparent 34%),
    linear-gradient(180deg, rgba(7, 27, 42, .98), rgba(4, 19, 31, .96));
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--model-color) 9%, transparent) inset,
    0 0 28px color-mix(in srgb, var(--model-color) 10%, transparent);
  cursor: pointer;
  transition: border-color .18s ease, transform .18s ease, background .18s ease;
}

.model-card:hover {
  transform: translateY(-2px);
}

.model-card.selected {
  border-color: var(--model-color);
  background:
    radial-gradient(circle at 92% 8%, color-mix(in srgb, var(--model-color) 19%, transparent), transparent 40%),
    radial-gradient(circle at 8% 95%, color-mix(in srgb, var(--model-color) 7%, transparent), transparent 34%),
    linear-gradient(180deg, rgba(8, 32, 50, .99), rgba(4, 20, 33, .98));
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--model-color) 20%, transparent) inset,
    0 0 34px color-mix(in srgb, var(--model-color) 17%, transparent);
}

.card-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.card-heading h3 {
  margin: 0;
  color: var(--model-color);
  font-size: 20px;
  line-height: 1.2;
}

.card-kicker {
  display: block;
  margin-top: 4px;
  color: #849eae;
  font-size: 10px;
}

.sparkline {
  width: 132px;
  height: 48px;
  flex: 0 1 132px;
}

.sparkline svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.card-main {
  min-width: 0;
  margin-top: 12px;
}

.card-main-label {
  display: block;
  color: #9ab0bc;
  font-size: 10px;
}

.card-main-value {
  display: block;
  margin-top: 2px;
  font-size: clamp(28px, 2.6vw, 38px);
  line-height: 1.08;
  letter-spacing: -.045em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.card-main-value.long-number {
  font-size: clamp(24px, 2.25vw, 33px);
  letter-spacing: -.055em;
}

.card-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 14px;
  padding-top: 11px;
  border-top: 1px solid rgba(133, 185, 207, .13);
}

.card-metric span {
  display: block;
  min-height: 16px;
  color: #8ca3b0;
  font-size: 10px;
}

.card-metric b {
  display: block;
  margin-top: 2px;
  font-size: 16px;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

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

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

.neutral {
  color: #bacbd4;
}

.chart-section {
  padding-top: 22px;
}

.chart-heading {
  align-items: flex-end;
}

.chart-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
}

.segmented {
  display: inline-flex;
  padding: 3px;
  border: 1px solid rgba(98, 158, 187, .25);
  border-radius: 6px;
  background: rgba(5, 21, 34, .8);
}

.segmented button {
  min-height: 32px;
  padding: 4px 12px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #95aeba;
  cursor: pointer;
  font-size: 11px;
}

.segmented button:hover {
  color: #e9f5fb;
}

.segmented button[aria-pressed="true"] {
  background: #2d9ed3;
  color: #f3fbff;
  font-weight: 700;
  box-shadow: 0 0 14px rgba(45, 158, 211, .28);
}

.period-control {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 10px;
  padding: 5px;
  border: 1px solid rgba(93, 151, 178, .2);
  border-radius: 6px;
  background: rgba(4, 18, 30, .74);
}

.period-control button {
  min-width: 0;
  min-height: 38px;
  padding: 6px 4px;
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  color: #9eb4c0;
  cursor: pointer;
  font-size: 12px;
  white-space: nowrap;
}

.period-control button:hover {
  color: #dff4fc;
  background: rgba(56, 134, 170, .11);
}

.period-control button[aria-pressed="true"] {
  border-color: rgba(80, 190, 232, .72);
  background: rgba(37, 141, 192, .24);
  color: #f2fbff;
  font-weight: 700;
  box-shadow: 0 0 16px rgba(57, 168, 215, .12);
}

.chart-panel,
.table-panel,
.drawdown-panel {
  border: 1px solid rgba(92, 154, 183, .2);
  border-radius: 7px;
  background: linear-gradient(180deg, rgba(7, 26, 41, .96), rgba(4, 18, 30, .95));
  box-shadow: var(--shadow);
}

.chart-wrap {
  position: relative;
  overflow: hidden;
}

#navChart,
#drawdownChart {
  display: block;
  width: 100%;
  height: auto;
  touch-action: none;
}

.chart-tooltip {
  position: absolute;
  z-index: 5;
  min-width: 188px;
  max-width: 260px;
  padding: 10px 12px;
  border: 1px solid rgba(105, 174, 204, .35);
  border-radius: 6px;
  background: rgba(3, 16, 27, .97);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .45);
  pointer-events: none;
  font-size: 11px;
}

.chart-tooltip strong {
  display: block;
  margin-bottom: 6px;
  color: #deedf4;
}

.tooltip-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 2px 0;
  color: #91aab7;
}

.tooltip-row i {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 6px;
  border-radius: 50%;
  background: var(--series-color);
}

.tooltip-row b {
  color: #edf7fc;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.chart-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 8px 14px 11px;
  border-top: 1px solid rgba(95, 152, 179, .12);
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.legend button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 0;
  border: 0;
  background: transparent;
  color: #b2c5ce;
  cursor: pointer;
  font-size: 11px;
}

.legend button[aria-pressed="false"] {
  opacity: .38;
}

.legend i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--series-color);
  box-shadow: 0 0 9px color-mix(in srgb, var(--series-color) 60%, transparent);
}

.chart-hint,
.scroll-hint {
  color: #6f8998;
  font-size: 10px;
}

.returns-section,
.annual-section,
.drawdown-section,
.method-section {
  padding-top: 34px;
}

.table-panel {
  overflow: hidden;
}

.table-scroll {
  overflow-x: auto;
  scrollbar-color: #31566c transparent;
  scrollbar-width: thin;
}

.scroll-hint {
  display: none;
  margin: 0;
  padding: 8px 13px 0;
}

table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

th,
td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(95, 151, 177, .14);
  text-align: right;
  white-space: nowrap;
}

th {
  color: #87a2b0;
  font-size: 10px;
  font-weight: 600;
}

td {
  color: #dceaf1;
  font-size: 12px;
}

th:first-child,
td:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  text-align: left;
  background: #071a2a;
  font-weight: 700;
}

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

tbody tr:hover td {
  background-color: rgba(48, 116, 151, .06);
}

tbody tr:hover td:first-child {
  background: #0a2234;
}

.drawdown-panel {
  position: relative;
  overflow: hidden;
  padding-top: 34px;
}

.drawdown-caption {
  position: absolute;
  top: 10px;
  left: 16px;
  color: #809aa8;
  font-size: 10px;
}

.risk-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 4px 11px;
  border: 1px solid rgba(255, 105, 108, .24);
  border-radius: 999px;
  background: rgba(255, 105, 108, .06);
  color: #ff9a9c;
  font-size: 11px;
  white-space: nowrap;
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid rgba(92, 151, 178, .18);
  border-bottom: 1px solid rgba(92, 151, 178, .18);
}

.method-grid article {
  padding: 24px 22px 26px 0;
}

.method-grid article + article {
  padding-left: 22px;
  border-left: 1px solid rgba(92, 151, 178, .18);
}

.method-grid span {
  color: #60c9ed;
  font: 700 10px/1 ui-monospace, Consolas, monospace;
}

.method-grid h3 {
  margin: 14px 0 7px;
  font-size: 16px;
}

.method-grid p {
  margin: 0;
  color: #8fa6b3;
  font-size: 12px;
}

.record-section {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 32px;
  margin-top: 34px;
  padding: 22px;
  border: 1px solid rgba(92, 151, 178, .18);
  background: rgba(6, 22, 36, .75);
}

.record-section h2 {
  margin: 0;
  font-size: 23px;
}

.record-section ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: #91a8b4;
  font-size: 11px;
}

.record-section li:before {
  margin-right: 8px;
  color: #5bd3f5;
  content: "·";
}

.disclaimer {
  margin: 24px 0 0;
  padding: 16px 0;
  border-top: 1px solid rgba(93, 151, 177, .15);
  color: #6f8795;
  font-size: 10px;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  width: min(1240px, calc(100vw - 56px));
  margin: 0 auto;
  padding: 18px 0 30px;
  color: #6e8795;
  font-size: 10px;
}

.mobile-bottom-nav {
  display: none;
}

.noscript {
  position: fixed;
  right: 16px;
  bottom: 16px;
  left: 16px;
  z-index: 100;
  margin: 0;
  padding: 12px;
  background: #b74f43;
  color: #fff;
  text-align: center;
}

.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: 1040px) {
  .site-header {
    gap: 22px;
  }

  .desktop-nav {
    gap: 20px;
  }

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

  .sparkline {
    width: 150px;
  }

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

  .chart-toolbar {
    width: 100%;
    justify-content: space-between;
  }

  .period-control {
    grid-template-columns: repeat(4, 1fr);
  }

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

  .method-grid article:nth-child(3) {
    padding-left: 0;
    border-top: 1px solid rgba(92, 151, 178, .18);
    border-left: 0;
  }

  .method-grid article:nth-child(4) {
    border-top: 1px solid rgba(92, 151, 178, .18);
  }
}

@media (max-width: 720px) {
  body {
    padding-bottom: calc(74px + env(safe-area-inset-bottom));
  }

  .site-header {
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 7px;
    min-height: 58px;
    padding: 0 14px;
  }

  .brand-name {
    font-size: 20px;
  }

  .brand-separator {
    height: 18px;
    margin: 0 9px;
  }

  .brand-lab {
    font-size: 10px;
  }

  .desktop-nav {
    display: none;
  }

  .header-status {
    display: inline-flex;
    min-height: 28px;
    padding: 2px 8px;
    font-size: 10px;
  }

  .header-status > span:not(.status-dot) {
    display: none;
  }

  .menu-button {
    display: grid;
    width: 42px;
    height: 42px;
    padding: 10px 9px;
    place-content: center;
    gap: 5px;
    border: 0;
    background: transparent;
    cursor: pointer;
  }

  .menu-button span:not(.sr-only) {
    display: block;
    width: 23px;
    height: 2px;
    border-radius: 99px;
    background: #d9edf7;
    transition: transform .18s ease, opacity .18s ease;
  }

  .menu-button[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .menu-button[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .menu-button[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .mobile-menu {
    position: fixed;
    top: 58px;
    right: 0;
    left: 0;
    z-index: 29;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 9px 10px 11px;
    border-bottom: 1px solid rgba(92, 151, 178, .2);
    background: rgba(3, 16, 27, .98);
    backdrop-filter: blur(16px);
  }

  .mobile-menu[hidden] {
    display: none;
  }

  .mobile-menu a {
    display: grid;
    min-height: 42px;
    place-items: center;
    color: #a9c0cd;
    font-size: 12px;
  }

  main,
  footer {
    width: calc(100vw - 28px);
  }

  .hero {
    padding: 25px 0 20px;
  }

  .hero .eyebrow {
    font-size: 9px;
    letter-spacing: .12em;
  }

  .hero h1 {
    font-size: clamp(30px, 9vw, 40px);
  }

  .hero h1 span {
    display: block;
  }

  .hero-sub {
    margin-top: 9px;
    font-size: 12px;
  }

  .data-status {
    margin-top: 6px;
    font-size: 10px;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .section-heading h2 {
    font-size: 21px;
  }

  .section-aside {
    text-align: left;
  }

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

  .model-card {
    padding: 13px 12px 12px;
  }

  .card-heading h3 {
    font-size: 18px;
  }

  .card-kicker {
    font-size: 9px;
  }

  .sparkline {
    position: static;
    width: 44%;
    height: 38px;
    flex: 0 1 44%;
  }

  .card-main {
    margin-top: 12px;
  }

  .card-main-label {
    font-size: 9px;
    line-height: 1.25;
  }

  .card-main-value {
    max-width: 100%;
    font-size: clamp(22px, 7.8vw, 32px);
    letter-spacing: -.04em;
    overflow-wrap: anywhere;
  }

  .card-main-value.long-number {
    font-size: clamp(16px, 5.9vw, 24px);
    letter-spacing: -.055em;
  }

  .card-metrics {
    gap: 7px;
    margin-top: 11px;
    padding-top: 9px;
  }

  .card-metric span {
    min-height: 27px;
    font-size: 9px;
    line-height: 1.25;
    white-space: normal;
  }

  .card-metric b {
    font-size: clamp(13px, 4.1vw, 17px);
  }

  .chart-section {
    padding-top: 26px;
  }

  .chart-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .segmented {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    width: 100%;
  }

  .segmented button {
    min-height: 39px;
  }

  .period-control {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 5px;
  }

  .period-control button {
    min-height: 42px;
    font-size: 11px;
  }

  .chart-panel {
    border-radius: 6px;
  }

  .chart-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .chart-hint {
    display: none;
  }

  .legend {
    gap: 6px 12px;
  }

  .legend button {
    min-height: 32px;
    font-size: 10px;
  }

  .returns-section,
  .annual-section,
  .drawdown-section,
  .method-section {
    padding-top: 28px;
  }

  .scroll-hint {
    display: block;
  }

  table {
    min-width: 760px;
  }

  th,
  td {
    padding: 11px 12px;
  }

  th:first-child,
  td:first-child {
    box-shadow: 8px 0 16px rgba(0, 0, 0, .18);
  }

  .drawdown-panel {
    padding-top: 30px;
  }

  .method-grid {
    grid-template-columns: 1fr;
  }

  .method-grid article,
  .method-grid article + article {
    padding: 19px 0;
    border-top: 1px solid rgba(92, 151, 178, .18);
    border-left: 0;
  }

  .method-grid article:first-child {
    border-top: 0;
  }

  .record-section {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .record-section ul {
    grid-template-columns: 1fr;
  }

  footer {
    flex-direction: column;
    gap: 8px;
    padding-bottom: 22px;
  }

  .mobile-bottom-nav {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 35;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 5px 8px calc(5px + env(safe-area-inset-bottom));
    border-top: 1px solid rgba(86, 153, 182, .22);
    background: rgba(3, 15, 26, .97);
    backdrop-filter: blur(16px);
  }

  .mobile-bottom-nav a {
    display: flex;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 2px;
    color: #8ea8b5;
    font-size: 10px;
  }

  .nav-mark {
    position: relative;
    display: block;
    width: 20px;
    height: 20px;
  }

  .nav-mark:before,
  .nav-mark:after {
    position: absolute;
    content: "";
  }

  .nav-mark-overview:before {
    right: 2px;
    bottom: 2px;
    left: 2px;
    height: 2px;
    background: currentColor;
    box-shadow: -5px -5px 0 currentColor, 0 -10px 0 currentColor;
  }

  .nav-mark-overview:after {
    right: 2px;
    bottom: 7px;
    left: 2px;
    height: 7px;
    border: 2px solid currentColor;
    border-top: 0;
  }

  .nav-mark-chart:before {
    bottom: 3px;
    left: 3px;
    width: 16px;
    height: 10px;
    border-bottom: 2px solid currentColor;
    transform: skewY(-25deg);
  }

  .nav-mark-annual:before {
    inset: 2px;
    border: 2px solid currentColor;
  }

  .nav-mark-annual:after {
    top: 7px;
    right: 5px;
    left: 5px;
    height: 2px;
    background: currentColor;
    box-shadow: 0 5px 0 currentColor;
  }

  .nav-mark-method:before {
    inset: 1px 3px;
    border: 2px solid currentColor;
    border-radius: 50%;
  }

  .nav-mark-method:after {
    top: 5px;
    right: 6px;
    left: 6px;
    height: 2px;
    background: currentColor;
    box-shadow: 0 5px 0 currentColor, 0 10px 0 currentColor;
  }
}

@media (max-width: 420px) {
  .brand-separator,
  .brand-lab {
    display: none;
  }
}

@media (max-width: 370px) {
  main,
  footer {
    width: calc(100vw - 20px);
  }

  .model-grid {
    gap: 7px;
  }

  .model-card {
    padding-right: 10px;
    padding-left: 10px;
  }

  .sparkline {
    width: 42%;
  }

  .card-heading h3 {
    font-size: 17px;
  }

  .card-main-value {
    font-size: 21px;
  }

  .card-main-value.long-number {
    font-size: 15px;
  }

  .card-metric b {
    font-size: 13px;
  }
}

/* XQR visual-only refinement: approved dark-neon dashboard treatment. */
:root {
  --bg: #030f1d;
  --bg-2: #061727;
  --accent: #24bdf4;
  --red: #ff626b;
  --green: #57e6a2;
}
body {
  background:
    radial-gradient(ellipse 64% 24% at 50% 5%, rgba(21, 98, 155, .22), transparent 76%),
    radial-gradient(circle at 1% 30%, rgba(9, 87, 123, .08), transparent 30%),
    linear-gradient(180deg, #041321 0%, #03101d 42%, #041220 100%);
}
.ambient-grid { opacity: .32; background-size: 48px 48px; }
.site-header {
  min-height: 54px;
  padding-inline: max(22px, calc((100vw - 1518px) / 2));
  background: rgba(3, 15, 27, .94);
  border-bottom-color: rgba(57, 155, 196, .21);
  box-shadow: 0 4px 24px rgba(0, 0, 0, .11);
}
.desktop-nav { height: 54px; }
.desktop-nav a { font-size: 13px; }
.brand-name { font-size: 23px; }
.header-status { border-radius: 9px; }
main, footer { width: min(1518px, calc(100vw - 9.5vw)); }
.hero { padding: 20px 0 17px; max-width: 1100px; }
.hero .eyebrow { display: none; }
.hero h1 {
  font-size: clamp(30px, 2.55vw, 40px);
  letter-spacing: -.035em;
  text-shadow: 0 0 30px rgba(115, 215, 255, .08);
}
.hero-sub {
  margin-top: 7px;
  font-size: 14px;
  letter-spacing: .12em;
  color: #b4c5d2;
}
.data-status { margin-top: 2px; font-size: 10px; }
/* Keep the accessible model heading, while starting the visual canvas with cards. */
.models-section .compact-heading {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}
.model-grid { gap: 14px; }
.model-card {
  padding: 13px 17px;
  border-radius: 12px;
  border-color: color-mix(in srgb, var(--model-color) 90%, white 10%);
  background:
    radial-gradient(ellipse 70% 80% at 85% -10%, color-mix(in srgb, var(--model-color) 14%, transparent), transparent 86%),
    linear-gradient(155deg, color-mix(in srgb, var(--model-color) 7%, #07182a), #04111f 72%);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--model-color) 13%, transparent) inset,
    0 0 15px color-mix(in srgb, var(--model-color) 26%, transparent),
    0 0 30px color-mix(in srgb, var(--model-color) 9%, transparent),
    0 16px 25px rgba(0, 0, 0, .18);
  isolation: isolate;
}
.model-card::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(118deg, color-mix(in srgb, var(--model-color) 4%, transparent), transparent 46%);
  content: "";
  pointer-events: none;
}
.model-card.selected {
  border-color: color-mix(in srgb, var(--model-color) 93%, white 7%);
  background:
    radial-gradient(ellipse 70% 80% at 85% -10%, color-mix(in srgb, var(--model-color) 16%, transparent), transparent 86%),
    linear-gradient(155deg, color-mix(in srgb, var(--model-color) 8%, #07182a), #04111f 72%);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--model-color) 20%, transparent) inset,
    0 0 19px color-mix(in srgb, var(--model-color) 33%, transparent),
    0 0 36px color-mix(in srgb, var(--model-color) 12%, transparent),
    0 16px 26px rgba(0, 0, 0, .18);
}
.model-card:hover {
  transform: translateY(-3px);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--model-color) 24%, transparent) inset,
    0 0 26px color-mix(in srgb, var(--model-color) 37%, transparent),
    0 15px 30px rgba(0, 0, 0, .25);
}
.card-heading h3 { font-size: 20px; font-weight: 800; }
.card-kicker { font-size: 10px; color: #a6bfcc; }
.sparkline { width: 44%; height: 47px; flex: 0 1 44%; }
.sparkline svg { filter: drop-shadow(0 0 4px color-mix(in srgb, var(--model-color) 23%, transparent)); }
.card-main { margin-top: 0; }
.card-main-label { font-size: 11px; color: #bdcbd5; }
.card-main-value {
  margin-top: 1px;
  font-size: clamp(28px, 2.2vw, 37px);
  letter-spacing: -.045em;
  text-shadow: 0 0 20px rgba(255, 98, 107, .13);
}
.card-main-value.long-number { font-size: clamp(24px, 1.85vw, 31px); }
.card-metrics {
  min-width: 0;
  gap: 12px;
  margin-top: 8px;
  padding-top: 8px;
  border-top-color: rgba(106, 172, 203, .16);
}
.card-metric { min-width: 0; }
.card-metric + .card-metric {
  padding-left: 11px;
  border-left: 1px solid rgba(107, 172, 201, .19);
}
.card-metric span { min-height: 15px; font-size: 10px; }
.card-metric b { margin-top: 0; font-size: 17px; font-weight: 750; }
.chart-section { padding-top: 16px; }
.chart-heading { margin-bottom: 7px; }
.chart-heading .eyebrow { display: none; }
.chart-heading h2 { font-size: 24px; }
.chart-heading .section-aside { margin-top: 2px; }
.segmented {
  padding: 2px;
  border-color: rgba(86, 159, 193, .24);
  border-radius: 8px;
}
.segmented button { min-height: 30px; border-radius: 6px; font-size: 12px; }
.segmented button[aria-pressed="true"] {
  background: linear-gradient(135deg, #077bc4, #079fdf);
  box-shadow: 0 0 13px rgba(3, 158, 237, .23);
}
.period-control {
  gap: 5px;
  margin-bottom: 9px;
  padding: 4px;
  border-radius: 9px;
  border-color: rgba(78, 142, 179, .21);
}
.period-control button { min-height: 32px; border-radius: 6px; }
.period-control button[aria-pressed="true"] {
  background: linear-gradient(135deg, rgba(13, 117, 172, .42), rgba(15, 153, 208, .22));
  border-color: rgba(59, 193, 242, .68);
  box-shadow: 0 0 13px rgba(32, 183, 245, .13) inset;
}
.chart-panel, .table-panel, .drawdown-panel {
  border-color: rgba(77, 160, 208, .27);
  border-radius: 12px;
  background: linear-gradient(155deg, rgba(7, 29, 48, .95), rgba(3, 16, 30, .96));
  box-shadow: 0 12px 34px rgba(0, 0, 0, .19), 0 0 24px rgba(9, 87, 138, .045);
}
.chart-wrap {
  background:
    radial-gradient(ellipse 65% 80% at 55% 47%, rgba(15, 72, 113, .10), transparent 82%),
    linear-gradient(180deg, rgba(10, 33, 53, .12), transparent);
}
.nav-line {
  filter: drop-shadow(0 0 2.5px color-mix(in srgb, var(--series-glow) 28%, transparent));
}
.chart-footer { padding: 5px 17px 7px; border-top-color: rgba(85, 150, 186, .18); }
.legend { gap: 7px 22px; }
.legend button { font-size: 12px; }
.legend button > span { display: flex; align-items: center; gap: 9px; }
.legend-nav { color: #8199a7; font-size: 10px; font-weight: 400; }
.annual-section, .returns-section, .drawdown-section { padding-top: 18px; }
.annual-section .section-heading, .returns-section .section-heading { margin-bottom: 8px; }
.annual-section .section-heading h2, .returns-section .section-heading h2 { font-size: 23px; }
.annual-table thead th { background: rgba(49, 97, 132, .16); }
.annual-table tbody tr:nth-child(odd) td:not(:first-child) { background: rgba(26, 75, 111, .10); }
.annual-table td { font-size: 13px; font-weight: 650; }
.annual-table th, .annual-table td { padding: 7px 16px; }
@media (min-width: 721px) and (max-width: 1040px) {
  main, footer { width: calc(100vw - 40px); }
  .model-grid { gap: 12px; }
  .model-card { padding: 15px 16px; }
  .card-main { margin-top: 7px; }
  .chart-heading { align-items: flex-end; flex-direction: row; }
}
@media (max-width: 720px) {
  main, footer { width: calc(100vw - 26px); }
  .site-header { min-height: 55px; padding-inline: 13px; }
  .mobile-menu { top: 55px; }
  .brand-name { font-size: 21px; }
  .hero { padding: 18px 0 15px; }
  .hero h1 { font-size: clamp(28px, 7.7vw, 37px); line-height: 1.12; }
  .hero-sub { margin-top: 8px; font-size: 11px; letter-spacing: .02em; }
  .data-status { margin-top: 4px; font-size: 9px; }
  .model-grid { gap: 9px; }
  .model-card { padding: 12px 11px; border-radius: 10px; }
  .card-heading h3 { font-size: 18px; }
  .card-kicker { font-size: 9px; }
  .sparkline { width: 43%; height: 37px; flex-basis: 43%; }
  .card-main { margin-top: 9px; }
  .card-main-label { font-size: 9px; }
  .card-main-value { font-size: clamp(21px, 6.7vw, 28px); }
  .card-main-value.long-number { font-size: clamp(16px, 5.2vw, 22px); }
  .card-metrics { gap: 4px; margin-top: 10px; padding-top: 8px; }
  .card-metric + .card-metric { padding-left: 6px; }
  .card-metric span { min-height: 27px; font-size: 9px; }
  .card-metric b { font-size: clamp(12px, 3.8vw, 15px); }
  .chart-section { padding-top: 21px; }
  .chart-heading { margin-bottom: 10px; }
  .chart-heading h2 { font-size: 22px; }
  .chart-toolbar { gap: 7px; }
  .segmented button { min-height: 36px; }
  .period-control { gap: 4px; padding: 4px; }
  .period-control button { min-height: 42px; font-size: 11px; }
  .chart-panel { border-radius: 10px; }
  .chart-footer { padding: 7px 10px; }
  .legend { gap: 4px 9px; }
  .legend button > span { flex-direction: column; align-items: flex-start; gap: 0; }
  .legend button { font-size: 10px; }
  .legend-nav { font-size: 8px; }
  .annual-section, .returns-section, .drawdown-section { padding-top: 24px; }
  .annual-table td { font-size: 12px; }
}
@media (max-width: 370px) {
  main, footer { width: calc(100vw - 20px); }
  .model-grid { gap: 7px; }
  .model-card { padding: 11px 9px 12px; }
  .card-heading h3 { font-size: 17px; }
  .sparkline { width: 41%; flex-basis: 41%; }
  .card-main-value { font-size: 21px; }
  .card-main-value.long-number { font-size: 15px; }
  .card-metric b { font-size: 12px; letter-spacing: -.035em; }
  .card-metric span { font-size: 8px; }
  .card-metric + .card-metric { padding-left: 5px; }
}
.models-section, .chart-section, .annual-section, .returns-section, .method-section {
  scroll-margin-top: 70px;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *:before,
  *:after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* V2.2 presentation only: preserve the desktop financial tables unchanged. */
.mobile-period-grid { display: none; }

@media (max-width: 720px) {
  /* All five annual columns fit on screen. No oversized frozen year column. */
  .annual-section .scroll-hint { display: none; }
  .annual-section .table-scroll { overflow-x: visible; }
  .annual-table {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
  }
  .annual-table th,
  .annual-table td {
    box-sizing: border-box;
    width: 18%;
    padding: 10px 2px;
    font-size: 11px;
    letter-spacing: -.025em;
    text-align: center;
    white-space: nowrap;
  }
  .annual-table th:first-child,
  .annual-table td:first-child {
    position: static;
    width: 28%;
    padding-right: 3px;
    padding-left: 10px;
    box-shadow: none;
    text-align: left;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .annual-table th:first-child { color: #a3c8d8; }
  .annual-table td:first-child { font-size: 11px; line-height: 1.45; }
  .annual-table td:not(:first-child) { font-variant-numeric: tabular-nums; }

  /* Eight compact period tiles, each with all A/B/C/D results visible. */
  .returns-section .scroll-hint,
  .returns-section .table-scroll { display: none; }
  .mobile-period-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    padding: 10px;
  }
  .mobile-period-card {
    min-width: 0;
    padding: 11px 11px 9px;
    border: 1px solid rgba(77, 160, 208, .23);
    border-radius: 10px;
    background: linear-gradient(155deg, rgba(15, 44, 67, .75), rgba(5, 22, 38, .66));
  }
  .mobile-period-card h3 {
    margin: 0 0 8px;
    padding-bottom: 7px;
    border-bottom: 1px solid rgba(109, 167, 200, .13);
    color: #d7edf7;
    font-size: 13px;
    font-weight: 750;
  }
  .mobile-period-values { display: grid; gap: 5px; }
  .mobile-period-line {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    min-width: 0;
    gap: 4px;
  }
  .mobile-model-name {
    flex-shrink: 0;
    color: var(--model-color);
    font-size: 10px;
    white-space: nowrap;
  }
  .mobile-period-line b {
    min-width: 0;
    font-size: 11px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    letter-spacing: -.025em;
  }
}

@media (max-width: 370px) {
  .annual-table th,
  .annual-table td { padding: 9px 1px; font-size: 10px; }
  .annual-table td:first-child { padding-left: 7px; font-size: 10px; }
  .mobile-period-grid { gap: 7px; padding: 8px; }
  .mobile-period-card { padding: 10px 8px 9px; }
  .mobile-period-line b { font-size: 10px; }
  .mobile-model-name { font-size: 9px; }
}

/* V2.3: place the risk trace directly below its linked NAV chart. */
.drawdown-section {
  scroll-margin-top: 70px;
  padding-top: 20px;
}
.drawdown-section .section-heading { margin-bottom: 10px; }
.drawdown-section .section-heading h2 { font-size: 23px; }
.drawdown-section + .annual-section {
  margin-top: 16px;
  padding-top: 25px;
  border-top: 1px solid rgba(86, 157, 193, .19);
}

@media (max-width: 720px) {
  .drawdown-section { padding-top: 22px; }
  .drawdown-section .section-heading {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
  }
  .drawdown-section .section-heading h2 { font-size: 21px; }
  .drawdown-section .risk-pill {
    flex-shrink: 0;
    min-height: 27px;
    padding: 4px 8px;
    font-size: 10px;
  }
  .drawdown-section + .annual-section { margin-top: 13px; padding-top: 22px; }
}

@media (max-width: 340px) {
  /* Leave some breathing room for long published percentage strings. */
  .mobile-period-grid { gap: 6px; padding: 6px; }
  .mobile-period-card { padding-inline: 6px; }
  .mobile-period-line b { font-size: 9px; letter-spacing: -.04em; }
  .annual-table th, .annual-table td { font-size: 9px; letter-spacing: -.04em; }
}
