:root {
  color-scheme: dark;
  --ink: #f2f4f2;
  --muted: #aeb9b8;
  --mint: #9cf1c1;
  --red: #ffaca9;
  --hairline: rgb(222 235 233 / .15);
  --inset: clamp(1.1rem, 3.9vw, 4.5rem);
  font-family: Inter, "Helvetica Neue", -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  background: #0b1214;
  color: var(--ink);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html { min-width: 280px; scroll-behavior: smooth; scroll-padding-top: 6.25rem; }
body { margin: 0; min-height: 100vh; font-size: 1rem; line-height: 1.48; overflow-wrap: break-word; }
a { color: inherit; }
button, select { font: inherit; }
button, summary, select, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid #b8fbd5; outline-offset: 4px; }
::selection { color: #0b1b15; background: #c6f4d6; }
h1, h2, h3, p, dl, dd { margin: 0; }
[hidden] { display: none !important; }

.viewport-photo {
  pointer-events: none;
  position: fixed;
  z-index: -1;
  inset: 0;
  background-image:
    linear-gradient(180deg, rgb(4 11 16 / .32) 0%, transparent 18%, rgb(7 15 18 / .17) 58%, rgb(7 14 17 / .57) 100%),
    linear-gradient(90deg, rgb(5 12 17 / .76), rgb(7 16 20 / .38) 45%, rgb(4 11 15 / .1) 82%),
    url("./assets/desk.webp");
  background-color: #132129;
  background-position: center, center, 59% 40%;
  background-size: cover;
}
.frame { width: min(100%, 1600px); padding-inline: var(--inset); margin-inline: auto; }
.skip {
  position: fixed; top: .65rem; left: var(--inset); z-index: 11;
  color: #08100c; background: var(--mint); padding: .7rem 1rem;
  transform: translateY(-170%); border-radius: 5px;
}
.skip:focus { transform: none; }

.mast {
  position: sticky; top: 0; z-index: 9; isolation: isolate;
}
.mast::before {
  content: ""; position: absolute; inset: 0 0 -.45rem; z-index: -1; pointer-events: none;
  -webkit-backdrop-filter: blur(9px); backdrop-filter: blur(9px);
  -webkit-mask-image: linear-gradient(#000 54%, transparent); mask-image: linear-gradient(#000 54%, transparent);
}
.mast-inner { min-height: 5.15rem; display: flex; align-items: center; gap: clamp(1rem, 3.7vw, 4rem); }
.brand {
  text-decoration: none; color: #fff; display: inline-flex; align-items: center; gap: .7rem;
  font-size: clamp(1.16rem, 1.5vw, 1.46rem); font-weight: 650; letter-spacing: -.055em;
  line-height: 1; min-height: 44px; white-space: nowrap;
}
.brand-mark {
  width: 1.95rem; height: 1.85rem; display: inline-flex; align-items: center;
  justify-content: center; gap: 2px; transform: skew(-20deg);
}
.brand-mark i { display: block; width: .35rem; height: .74rem; background: #daf2e3; }
.brand-mark i:nth-child(2) { height: 1.45rem; }
.brand-mark i:last-child { height: 1.02rem; }
.mast nav { display: flex; align-items: center; gap: .2rem; }
.mast nav a {
  min-height: 2.75rem; display: grid; place-content: center; padding: .42rem 1.02rem;
  color: #eff4f4; text-decoration: none; font-size: .93rem; font-weight: 480;
  border-radius: 2rem; transition: background .2s ease, color .2s ease;
}
.mast nav a:hover,
body:not(:has(:target)) .mast nav a[href="#overview"],
body:has(#overview:target) .mast nav a[href="#overview"],
body:has(#market:target) .mast nav a[href="#market"],
body:has(#journal:target) .mast nav a[href="#journal"] { background: rgb(230 245 241 / .10); color: #fff; }
.mode {
  color: #fff; margin-left: auto; white-space: nowrap; display: inline-flex; gap: .55rem;
  align-items: center; font-size: .88rem; font-weight: 500; text-shadow: 0 1px 8px #081112;
}
.mode-dot {
  display: inline-block; width: .53rem; height: .53rem; border-radius: 50%;
  border: 1px solid #c1f3ce; background: #a7e7bc; box-shadow: 0 0 0 .23rem rgb(154 226 180 / .13);
}
.hero {
  display: flex; justify-content: space-between; align-items: end; gap: 2rem;
  padding-block: clamp(1.35rem, 4.5vh, 3.3rem) clamp(1.65rem, 4.4vh, 3.2rem);
}
.eyebrow {
  display: flex; align-items: center; gap: .75rem; text-transform: uppercase; letter-spacing: .17em;
  color: #d4e6df; font-size: .76rem; font-weight: 640;
}
.eyebrow span { color: #9daea8; }
h1 {
  font-size: clamp(3.25rem, 6vw, 6.4rem); line-height: 1.08; letter-spacing: -.068em;
  font-weight: 470; margin-top: .45rem; margin-left: -.055em; text-wrap: balance;
}
.hero-subtitle { color: #d1d9d9; font-size: clamp(1rem, 1.16vw, 1.18rem); letter-spacing: -.021em; margin-top: .55rem; }
.hero-update {
  display: grid; justify-items: end; gap: .12rem; padding: .75rem 0 .12rem .75rem;
  text-shadow: 0 1px 9px #061013, 0 0 3px #061013;
}
.update-label, .section-note, .status-note { font-size: .79rem; color: #bdc9c8; }
#last-updated { font-size: .91rem; color: #f1f5f2; font-variant-numeric: tabular-nums; }
.watchlist-panel {
  border: 1px solid var(--hairline); border-radius: 15px; padding: .9rem 1.2rem;
  background: rgb(13 23 27 / .77); min-width: 0;
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
}
.desk-grid, .journal-layout {
  display: grid; grid-template-columns: minmax(0, 1.95fr) minmax(18rem, .95fr);
  align-items: start; gap: clamp(.85rem, 1.45vw, 1.4rem); margin-top: clamp(.85rem, 1.45vw, 1.4rem);
}
.rail { min-width: 0; display: grid; gap: clamp(.85rem, 1.45vw, 1.4rem); }
.surface {
  min-width: 0; border: 1px solid var(--hairline); border-radius: 17px;
  background: linear-gradient(125deg, rgb(22 33 36 / .91), rgb(12 21 25 / .86));
  -webkit-backdrop-filter: blur(19px); backdrop-filter: blur(19px);
  box-shadow: 0 14px 44px rgb(4 9 10 / .13);
}
.panel-heading, .mandate-title { display: flex; align-items: center; justify-content: space-between; gap: .9rem; }
h2 { font-size: clamp(1.16rem, 1.55vw, 1.65rem); font-weight: 550; letter-spacing: -.045em; line-height: 1.23; }
.chart-panel, .summary-panel, .positions-panel, .journal-panel, .mandate { padding: clamp(1.12rem, 1.65vw, 1.8rem); }
.chart-panel .panel-heading { margin-bottom: 1.02rem; }
.rail .panel-heading { align-items: baseline; flex-wrap: wrap; gap: .35rem .65rem; }
.rail h2 { font-size: clamp(1.12rem, 1.42vw, 1.43rem); }
.status-note { max-width: 21ch; }
.metrics {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  font-variant-numeric: tabular-nums; margin-top: 1.28rem;
}
.metrics dt { font-size: .84rem; color: var(--muted); }
.metrics dt span { font-size: .75rem; margin-left: .25rem; color: #adbfba; }
.metrics dd { font-size: clamp(1.45rem, 1.85vw, 2.1rem); font-weight: 480; line-height: 1.18; letter-spacing: -.045em; margin-top: .2rem; }
.metrics > .pnl-metric { grid-column: 1 / -1; border-bottom: 1px solid var(--hairline); padding-bottom: 1rem; margin-bottom: 1rem; }
.metrics .pnl-metric dd { font-size: clamp(2.5rem, 3.5vw, 4rem); line-height: 1; margin-top: .38rem; }
.up, .positive { color: var(--mint); }
.down, .negative { color: var(--red); }
.count {
  display: inline-grid; place-items: center; min-width: 1.55rem; min-height: 1.5rem; padding: 0 .34rem;
  border-radius: .4rem; background: rgb(225 239 232 / .09); color: #e3e9e6; font-size: .82rem;
  font-variant-numeric: tabular-nums;
}
#trades-container, #activity { margin-top: 1.05rem; }
.journal-layout { padding-bottom: clamp(2rem, 5vw, 5rem); }
.mandate {
  min-width: 0; border-radius: 17px; background: rgb(13 24 27 / .72);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.mandate-title h2 { font-size: clamp(1.12rem, 1.42vw, 1.43rem); }
.mandate-list { margin-top: 1rem; }
.mandate-list > div { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding-block: .52rem; }
.mandate-list dt { color: var(--muted); font-size: .93rem; }
.mandate-list dd { font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 510; }
.roles { margin-top: .75rem; border-top: 1px solid var(--hairline); }
.roles summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  cursor: pointer; min-height: 44px; padding-top: .6rem; font-size: .94rem; color: #e2ebe7; list-style: none;
}
.roles summary::-webkit-details-marker { display: none; }
.expand { width: .85rem; height: .85rem; position: relative; }
.expand::before, .expand::after { position: absolute; top: 47%; left: 6%; width: 88%; height: 1.5px; background: currentColor; content: ""; }
.expand::after { transform: rotate(90deg); transition: transform .2s ease; }
.roles[open] .expand::after { transform: rotate(0); }
.roles dl { margin-top: .5rem; }
.roles dl > div { padding-block: .55rem; }
.roles dt { font-size: .94rem; font-weight: 550; }
.roles dd { color: var(--muted); font-size: .88rem; margin-top: .13rem; }
.noscript { margin: 1rem 0; background: #152326; padding: 1rem; }
.footer {
  padding-bottom: 1.5rem; display: flex; justify-content: space-between; gap: 1rem;
  font-size: .83rem; color: #ced6d2; text-shadow: 0 1px 5px #030a0c;
}
.footer > :first-child { font-weight: 580; color: #eff4f1; }
.footer span span { padding-inline: .35em; opacity: .7; }

@media (min-width: 1800px) { .hero { padding-block: 3.5rem; } }
@media (max-width: 980px) {
  .desk-grid, .journal-layout { grid-template-columns: minmax(0, 1.75fr) minmax(16rem, 1fr); }
  .watchlist-panel { padding-inline: 1rem; }
}
@media (max-width: 800px) {
  .desk-grid, .journal-layout { grid-template-columns: minmax(0, 1fr); }
  .rail { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .hero { align-items: start; }
  .hero-update { align-self: end; }
  .metrics dd { font-size: 1.65rem; }
  .metrics .pnl-metric dd { font-size: 2.9rem; }
}
@media (max-width: 600px) {
  html { scroll-padding-top: 6.6rem; }
  :root { --inset: 1rem; }
  .mast-inner { min-height: 0; padding-block: .45rem 0; gap: 0; flex-wrap: wrap; justify-content: space-between; }
  .brand { font-size: 1.24rem; }
  .brand-mark { width: 1.6rem; }
  .mast nav { order: 3; width: 100%; gap: .3rem; padding-bottom: .2rem; }
  .mast nav a { min-height: 2.45rem; font-size: .87rem; padding: .25rem .87rem; }
  .mode { font-size: .81rem; }
  .hero { display: block; padding-block: 1.65rem 1.35rem; }
  .eyebrow { font-size: .73rem; }
  h1 { font-size: clamp(3.25rem, 11vw, 4rem); }
  .hero-subtitle { margin-top: .46rem; }
  .hero-update { justify-content: start; justify-items: start; display: flex; align-items: baseline; flex-wrap: wrap; gap: .28rem .7rem; padding: 0; margin-top: 1rem; }
  .update-label, #last-updated { font-size: .8rem; }
  .viewport-photo { background-position: center, center, 69% 20%; }
  .watchlist-panel { padding: .7rem .8rem; }
  .rail { grid-template-columns: minmax(0,1fr); }
  .surface, .watchlist-panel, .mandate { border-radius: 13px; }
  .metrics { margin-top: 1rem; }
  .metrics > .pnl-metric { margin-bottom: .8rem; padding-bottom: .85rem; }
  .journal-layout { padding-bottom: 2.5rem; }
}
@media (max-height: 520px) and (min-width: 601px) {
  .mast-inner { min-height: 3.4rem; }
  .hero { padding-block: 1.1rem; }
  h1 { font-size: 3.2rem; }
  html { scroll-padding-top: 4rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::after, *::before { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
@media (prefers-contrast: more), (prefers-reduced-transparency: reduce) {
  .viewport-photo { opacity: .35; }
  .surface, .mandate, .watchlist-panel { background: #101b1f; }
  .mast { background: #0b1214; }
}
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .mast { background: rgb(6 15 19 / .86); }
}
