/* ─────────────────────────────────────────────────────────────────────────
   RPV — Reptilian Proxy Vessel
   Monochrome interface. Space Grotesk for display, Inter for voice,
   IBM Plex Mono for instruments.
   ───────────────────────────────────────────────────────────────────────── */

:root {
  color-scheme: dark;
  --bg: #000;
  --bg-1: #0a0a0a;
  --bg-2: #111;
  --bg-3: #181818;
  --fg: #f2f2ee;
  --fg-dim: #a9a9a2;
  --fg-mute: #6c6c66;
  --gain: #9fd6ae;
  --loss: #d99a9a;
  --line: rgba(255, 255, 255, .12);
  --line-strong: rgba(255, 255, 255, .28);
  --inverse: #e9e9e3;
  --display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --radius: 2px;
  --radius-lg: 4px;
  --wrap: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
}

* { box-sizing: border-box; }

html {
  background: var(--bg);
  color: var(--fg);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: clip;
  background: var(--bg);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--display); }

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
button { font: inherit; color: inherit; cursor: pointer; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; overflow-wrap: anywhere; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; border-radius: 2px; }

.wrap {
  width: min(var(--wrap), 100% - (var(--gutter) * 2));
  margin: 0 auto;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 8px 12px;
  border-radius: var(--radius);
  color: #000;
  background: var(--fg);
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

.mono { font-family: var(--mono); }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }

.eyebrow {
  display: block;
  margin-bottom: 14px;
  color: var(--fg-dim);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.label {
  color: var(--fg-dim);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
}

/* P&L uses quiet text color; inverted blocks overwhelm compact metrics. */
.pl-pos { color: var(--gain); }
.pl-neg {
  padding: 0;
  border-radius: 0;
  color: var(--loss);
  background: transparent;
}
.pl-flag { display: inline-block; }

/* ── nav ─────────────────────────────────────────────────────────────── */

.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--line);
  background: rgba(0, 0, 0, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.nav__inner {
  display: flex;
  min-height: 64px;
  align-items: center;
  gap: 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: .02em;
}
.brand:hover { text-decoration: none; }

.brand__mark {
  display: grid;
  overflow: hidden;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: #000;
}
.brand__mark img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.5); }

.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__text small {
  color: var(--fg-dim);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.nav__links {
  display: flex;
  margin: 0 auto 0 8px;
  padding: 0;
  gap: 4px;
  list-style: none;
}
.nav__links a {
  display: inline-block;
  padding: 8px 12px;
  color: var(--fg-dim);
  font-family: var(--display);
  font-size: 14px;
  font-weight: 500;
}
.nav__links a:hover { color: var(--fg); text-decoration: none; }
.nav__links a[aria-current="page"] { color: var(--fg); box-shadow: inset 0 -2px 0 var(--fg); }

.nav__toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: none;
}
.nav__toggle span {
  display: block;
  width: 16px;
  height: 2px;
  margin: 3px auto;
  background: var(--fg);
}

/* Contract chip */
.ca {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 4px 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-1);
  font-family: var(--mono);
  font-size: 12px;
  white-space: nowrap;
}
.ca__label { margin-right: 8px; color: var(--fg-dim); font-weight: 600; letter-spacing: .1em; }
.ca__addr { font-variant-numeric: tabular-nums; }
.ca.is-placeholder .ca__addr { color: var(--fg-mute); }
.ca__btn {
  display: grid;
  width: 28px;
  height: 28px;
  margin-left: 6px;
  place-items: center;
  border: 0;
  border-radius: var(--radius);
  color: var(--fg-dim);
  background: none;
}
.ca__btn:hover { color: var(--fg); background: var(--bg-3); text-decoration: none; }
.ca__btn:disabled { opacity: .35; cursor: default; }
.ca__btn svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ca .ca__ico--check { display: none; }
.ca.is-copied .ca__ico--copy { display: none; }
.ca.is-copied .ca__ico--check { display: block; }

/* ── generic sections ────────────────────────────────────────────────── */

.section { padding: clamp(64px, 8vw, 112px) 0; border-top: 1px solid var(--line); }
.section--flush { border-top: 0; }

.section__head {
  display: grid;
  grid-template-columns: 1fr minmax(0, 480px);
  gap: 32px 64px;
  align-items: end;
  margin-bottom: 44px;
}
.section__head h2 {
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 600;
  letter-spacing: -.025em;
  line-height: 1.04;
}
.section__head p { color: var(--fg-dim); font-size: 16px; }

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-1);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 46px;
  padding: 0 22px;
  border: 1px solid var(--fg);
  border-radius: var(--radius);
  color: #000;
  background: var(--fg);
  font-family: var(--display);
  font-weight: 600;
  font-size: 14.5px;
}
.btn:hover { background: #fff; text-decoration: none; }
.btn--ghost { color: var(--fg); background: transparent; border-color: var(--line-strong); }
.btn--ghost:hover { background: var(--bg-2); border-color: var(--fg); }

.empty-note {
  margin: 0;
  padding: 28px 20px;
  color: var(--fg-dim);
  font-family: var(--mono);
  font-size: 12px;
}

.sync {
  color: var(--fg-dim);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.sync.is-stale { color: var(--fg); }

.live-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--fg);
  box-shadow: 0 0 10px rgba(255, 255, 255, .7);
  animation: pulse 2.4s ease-in-out infinite;
  vertical-align: middle;
}
.live-dot.is-stale { background: var(--fg-mute); box-shadow: none; animation: none; }

/* ── home: hero ──────────────────────────────────────────────────────── */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(340px, .78fr);
  gap: clamp(36px, 5vw, 76px);
  align-items: center;
  padding: clamp(44px, 5.2vw, 72px) 0 clamp(40px, 4.8vw, 66px);
}

.hero h1 {
  max-width: 680px;
  font-size: clamp(56px, 5.3vw, 76px);
  font-weight: 700;
  letter-spacing: -.055em;
  line-height: .9;
}

.hero__deck {
  max-width: 640px;
  margin: 22px 0 24px;
  color: var(--fg-dim);
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 1.55;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; }

.hero__optic {
  display: grid;
  min-width: 0;
  place-items: center;
}

.reptile-eye {
  position: relative;
  width: min(100%, 540px);
  aspect-ratio: 1.4;
  margin: 0 auto;
  background: radial-gradient(ellipse at center, rgba(170, 183, 111, .1), transparent 66%);
}
.reptile-eye__socket {
  position: absolute;
  inset: 14% 0;
  overflow: hidden;
  background: #060805;
  clip-path: polygon(0 50%, 8% 29%, 25% 12%, 50% 5%, 75% 12%, 92% 29%, 100% 50%, 92% 71%, 75% 88%, 50% 95%, 25% 88%, 8% 71%);
  filter: drop-shadow(0 0 28px rgba(177, 188, 114, .12));
}
.reptile-eye__sclera {
  position: absolute;
  inset: 1px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(231, 224, 153, .18) 0 20%, transparent 52%),
    radial-gradient(ellipse at center, #8f9160 0, #676b45 36%, #333923 68%, #10130c 100%);
  clip-path: inherit;
  box-shadow: inset 0 0 52px 22px #080a06;
}
.reptile-eye__sclera::before {
  position: absolute;
  inset: 0;
  content: "";
  opacity: .3;
  background:
    repeating-linear-gradient(7deg, transparent 0 17px, rgba(13, 17, 9, .45) 18px, transparent 20px),
    repeating-linear-gradient(-9deg, transparent 0 25px, rgba(201, 201, 133, .16) 26px, transparent 28px);
  mix-blend-mode: multiply;
}
.reptile-eye__iris {
  position: absolute;
  z-index: 2;
  top: 5%;
  bottom: 5%;
  left: 28%;
  width: 44%;
  border: 1px solid rgba(237, 228, 139, .32);
  border-radius: 50%;
  background:
    radial-gradient(circle, transparent 0 12%, rgba(0, 0, 0, .3) 13% 18%, transparent 19%),
    repeating-conic-gradient(from 2deg, #d1c76f 0 2deg, #77773f 3deg 6deg, #30331d 7deg 10deg);
  box-shadow:
    inset 0 0 18px 5px rgba(0, 0, 0, .9),
    inset 0 0 0 8px rgba(8, 10, 5, .3),
    0 0 24px rgba(211, 203, 111, .18);
  animation: reptileGaze 11s ease-in-out infinite;
}
.reptile-eye__iris::before {
  position: absolute;
  inset: 11%;
  border: 1px solid rgba(255, 245, 158, .2);
  border-radius: inherit;
  content: "";
  box-shadow: inset 0 0 22px rgba(0, 0, 0, .75);
}
.reptile-eye__pupil {
  position: absolute;
  z-index: 2;
  top: 7%;
  bottom: 7%;
  left: 43%;
  width: 14%;
  border-radius: 50%;
  background: #000;
  box-shadow: 0 0 14px 7px rgba(0, 0, 0, .94);
}
.reptile-eye__glint {
  position: absolute;
  z-index: 3;
  top: 20%;
  left: 28%;
  width: 9%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(255, 255, 225, .78);
  box-shadow: 0 0 9px rgba(255, 255, 225, .45);
}
.reptile-eye__lid {
  position: absolute;
  z-index: 5;
  left: -2%;
  width: 104%;
  height: 54%;
  background:
    repeating-radial-gradient(ellipse at center, transparent 0 13px, rgba(128, 137, 93, .08) 14px 15px),
    #050705;
}
.reptile-eye__lid--top {
  top: 0;
  border-bottom: 1px solid rgba(160, 173, 108, .26);
  transform: translateY(-96%);
  animation: reptileBlinkTop 8.5s cubic-bezier(.72, 0, .28, 1) 1.2s infinite;
}
.reptile-eye__lid--bottom {
  bottom: 0;
  border-top: 1px solid rgba(160, 173, 108, .2);
  transform: translateY(96%);
  animation: reptileBlinkBottom 8.5s cubic-bezier(.72, 0, .28, 1) 1.2s infinite;
}

/* ── home: live strip ────────────────────────────────────────────────── */

.strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, #020302, #050605 52%, #020302);
  --lane-perps: var(--fg);
  --lane-onchain: #b4b4ab;
  --lane-predictions: #75756e;
  --lane-cash: rgba(255, 255, 255, .16);
}
.strip__alloc {
  display: flex;
  height: 3px;
  gap: 2px;
  margin-top: -1px;
}
.strip__alloc i { display: block; height: 100%; background: var(--fg-mute); transition: width .6s ease; }
.strip__alloc i[data-lane="perps"] { background: var(--lane-perps); }
.strip__alloc i[data-lane="onchain"] { background: var(--lane-onchain); }
.strip__alloc i[data-lane="predictions"] { background: var(--lane-predictions); }
.strip__alloc i[data-lane="cash"] { background: var(--lane-cash); }

.strip__inner {
  display: grid;
  grid-template-columns: minmax(250px, 1.15fr) repeat(3, minmax(0, 1fr)) auto;
  align-items: stretch;
}
.strip__cell {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: 20px 22px 20px 0;
  color: var(--fg);
  transition: background .2s ease;
}
.strip__cell + .strip__cell { padding-left: 22px; border-left: 1px solid var(--line); }
.strip__cell:hover { text-decoration: none; background: rgba(255, 255, 255, .025); }
.strip__cell .label { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; white-space: nowrap; }
.strip__cell .label em { color: var(--fg-mute); font-style: normal; }
.strip__cell .label em::before { content: "// "; }
.strip__dot { flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--fg-mute); }
[data-lane="perps"] .strip__dot { background: var(--lane-perps); }
[data-lane="onchain"] .strip__dot { background: var(--lane-onchain); }
[data-lane="predictions"] .strip__dot { background: var(--lane-predictions); }
.strip__value {
  font-family: var(--mono);
  font-size: 20px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.03em;
  line-height: 1.1;
}
.strip__cell--total .strip__value { font-size: 28px; }
.strip__sub {
  margin-top: 7px;
  color: var(--fg-dim);
  font-family: var(--mono);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.strip__sub.pl-pos { color: var(--gain); }
.strip__sub.pl-neg { color: var(--loss); }
.strip__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 20px 0 20px 26px;
  border-left: 1px solid var(--line);
  color: var(--fg);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.strip__arrow { font-size: 16px; transition: transform .2s ease; }
.strip__link:hover { text-decoration: none; }
.strip__link:hover .strip__arrow { transform: translate(3px, -3px); }

/* ── home: origin ────────────────────────────────────────────────────── */

.origin {
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(380px, 1.12fr);
  gap: clamp(48px, 7vw, 112px);
  align-items: center;
}
.origin__copy h2 { max-width: 560px; font-size: clamp(38px, 5vw, 64px); font-weight: 600; letter-spacing: -.035em; line-height: .98; }
.origin__story { max-width: 590px; margin-top: 30px; }
.origin__story p { color: var(--fg-dim); font-size: 16px; line-height: 1.65; }
.origin__story p + p { margin-top: 16px; }
.origin__story strong { color: var(--fg); font-weight: 600; }
.origin__media { min-width: 0; }
.origin__tweet {
  margin: 0;
  overflow: hidden;
  border-radius: 22px;
  background: #080808;
  transition: transform .28s ease, border-color .28s ease, box-shadow .28s ease;
}
.origin__tweet:hover {
  z-index: 1;
  border-color: var(--line-strong);
  box-shadow: 0 22px 60px rgba(0, 0, 0, .48);
  transform: translateY(-6px) scale(1.025);
}
.origin__tweet img { display: block; width: 100%; height: auto; }
.origin__caption { margin-top: 10px; color: var(--fg-mute); font-family: var(--mono); font-size: 9px; letter-spacing: .1em; text-align: right; text-transform: uppercase; }

/* ── home: vessel log ────────────────────────────────────────────────── */

.log-layout { display: grid; grid-template-columns: minmax(260px, .7fr) minmax(0, 1.3fr); gap: clamp(48px, 8vw, 128px); align-items: start; }
.log-layout__intro { position: sticky; top: 104px; }
.log-layout__intro h2 { max-width: 430px; font-size: clamp(36px, 4.5vw, 58px); font-weight: 600; letter-spacing: -.035em; line-height: 1; }
.log-layout__intro p { max-width: 370px; margin-top: 22px; color: var(--fg-dim); font-size: 16px; }
.log-layout__intro a { display: inline-flex; gap: 8px; margin-top: 28px; border-bottom: 1px solid var(--line-strong); color: var(--fg); font-family: var(--mono); font-size: 11px; letter-spacing: .06em; }
.log-layout__intro a:hover { text-decoration: none; border-color: var(--fg); }
.log { border-top: 1px solid var(--line-strong); }
.log__item {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 20px;
  padding: 20px 8px 20px 0;
  border-bottom: 1px solid var(--line);
  transition: background-color .18s ease, padding-left .18s ease;
}
.log__item:hover { padding-left: 8px; background: rgba(255, 255, 255, .025); }
.log__num {
  padding-top: 3px;
  color: var(--fg-mute);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .1em;
}
.log__body { display: grid; grid-template-columns: minmax(150px, .52fr) minmax(0, 1fr); gap: 24px; align-items: baseline; }
.log__title { font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.log__text { color: var(--fg-dim); font-size: 14px; line-height: 1.55; }

/* ── footer ──────────────────────────────────────────────────────────── */

.footer { padding: 13px 0; border-top: 1px solid var(--line); }
.footer > .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
}
.footer__inner {
  display: flex;
  flex: 1;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
}
.footer__brand { display: flex; align-items: center; }
.footer__brand strong { font-size: 12px; font-weight: 700; }
.footer__brand span { display: none; }
.footer__links { display: flex; gap: 16px; margin: 0; padding: 0; list-style: none; font-size: 11px; }
.footer__links a { color: var(--fg-dim); }
.footer__links a:hover { color: var(--fg); }
.footer__meta {
  display: flex;
  flex: none;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  border: 0;
  color: var(--fg-mute);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .04em;
}
.footer__meta > span:first-child { display: none; }

/* ── portfolio: command deck ─────────────────────────────────────────── */

.portfolio-shell {
  display: grid;
  grid-template-columns: minmax(226px, 250px) minmax(0, 1fr);
  gap: 0;
  align-items: start;
  padding-top: clamp(22px, 3vw, 34px);
  padding-bottom: clamp(48px, 7vw, 84px);
}
.command-rail {
  position: sticky;
  top: 80px;
  min-width: 0;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  scrollbar-width: none;
}
.command-rail::-webkit-scrollbar { display: none; }
.command-rail__frame {
  position: relative;
  padding: 17px 18px 20px;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  border-left: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(255, 255, 255, .035), transparent 38%);
}
.command-rail__frame::before {
  position: absolute;
  top: -2px;
  left: -2px;
  width: 18px;
  height: 3px;
  content: "";
  background: #00c805;
}
.rail-total { padding-bottom: 2px; }
.rail-code {
  display: block;
  margin-bottom: 18px;
  color: #00c805;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .16em;
}
.pf-total {
  margin-top: 7px;
  font-family: var(--mono);
  font-size: clamp(27px, 3vw, 35px);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.035em;
  line-height: 1;
}
.pf-day {
  display: inline-block;
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.pf-day.pl-neg { padding: 0; }

.pf-venues {
  display: flex;
  flex-direction: column;
  margin-top: 20px;
  border-top: 1px solid var(--line);
}
.pf-venue {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 24px 10px 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
}
.pf-venue::after {
  position: absolute;
  right: 2px;
  color: var(--fg-mute);
  font-family: var(--mono);
  font-size: 11px;
  content: "↗";
}
.pf-venue:hover { background: rgba(255, 255, 255, .025); text-decoration: none; }
.pf-venue:hover::after { color: #00c805; }
.pf-venue__mark {
  display: grid;
  overflow: hidden;
  flex: none;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 0;
  background: transparent;
}
.pf-venue__mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: screen;
}
.pf-venue__mark--lighter img { filter: grayscale(1) contrast(1.25); }
.pf-venue__mark--polymarket img { filter: grayscale(1) contrast(10); }
.pf-venue__mark--robinhood img { filter: grayscale(1) contrast(10) invert(1); }
.pf-venue__name { display: flex; flex-direction: column; font-family: var(--display); font-size: 12.5px; font-weight: 600; line-height: 1.2; }
.pf-venue__name small { color: var(--fg-dim); font-family: var(--mono); font-size: 9px; font-weight: 400; letter-spacing: .1em; text-transform: uppercase; }

.pf-notice {
  margin-top: 16px;
  color: var(--fg-dim);
  font-family: var(--mono);
  font-size: 12px;
}
.pf-notice--warn { color: var(--fg); }

.pf-groups {
  margin-top: 24px;
  display: grid;
  gap: 10px;
}
.pf-group {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .018);
}
.pf-group::after {
  position: absolute;
  top: 9px;
  right: 9px;
  color: var(--fg-mute);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: .1em;
  content: "00";
}
.pf-group--lighter::after { content: "01"; }
.pf-group--polymarket::after { content: "02"; }
.pf-group--onchain::after { color: #00c805; content: "03"; }
.pf-group--performance::after { content: "04"; }
.pf-group__head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 8px 28px 7px 10px;
  border-bottom: 1px solid var(--line);
  color: var(--fg-dim);
  background: rgba(255, 255, 255, .025);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.pf-group__dot {
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--fg);
  box-shadow: 0 0 6px rgba(255, 255, 255, .35);
}
.pf-group__dot--ring { background: none; box-shadow: inset 0 0 0 1.5px var(--fg-dim); }
.pf-group__dot--chain { background: #00c805; box-shadow: 0 0 6px rgba(0, 200, 5, .28); }
.pf-group__dot--dim { background: var(--fg-mute); box-shadow: none; }
.pf-group__metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pf-group__metrics--three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pf-group__metrics--three .pf-stat:last-child { grid-column: 1 / -1; border-top: 1px solid var(--line); border-left: 0; }
.pf-stat { min-width: 0; padding: 10px 9px 11px; }
.pf-stat + .pf-stat { border-left: 1px solid var(--line); }
.pf-stat__label { display: block; margin-bottom: 4px; color: var(--fg-dim); font-family: var(--mono); font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
.pf-stat__value {
  display: block;
  font-family: var(--mono);
  font-size: 13.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.01em;
  white-space: nowrap;
}
.pf-stat__sub { display: block; margin-top: 3px; color: var(--fg-dim); font-family: var(--mono); font-size: 10.5px; font-variant-numeric: tabular-nums; }
.pf-group__note {
  margin: 0;
  padding: 8px 14px 10px;
  border-top: 1px solid var(--line);
  color: var(--fg-mute);
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.5;
}

/* ── portfolio: workspace ────────────────────────────────────────────── */

.command-workspace {
  min-width: 0;
  padding-left: clamp(16px, 2vw, 26px);
  border-left: 1px solid var(--line);
}
.workspace-head { border-top: 1px solid var(--line-strong); }
.workspace-kicker {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 9px 0 8px;
  border-bottom: 1px solid var(--line);
  color: var(--fg-mute);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.workspace-kicker span:first-child { color: var(--fg); }
.chart-card { display: flex; flex-direction: column; gap: 14px; padding: 19px 0 18px; border-bottom: 1px solid var(--line-strong); background: none; }
.chart-card__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
.chart-card__meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.chart-card__delta { display: inline-block; font-family: var(--mono); font-size: 13px; font-variant-numeric: tabular-nums; }
.chart-card__delta:empty { display: none; }
.chart-range { display: flex; align-items: center; gap: 4px; }
.chart-range__window { margin-right: 8px; color: var(--fg-dim); font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.chart-range__btn {
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--fg-dim);
  background: none;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .06em;
}
.chart-range__btn:hover { color: var(--fg); border-color: var(--line-strong); }
.chart-range__btn.is-active { color: #000; background: var(--fg); border-color: var(--fg); }
.chart-card__body { position: relative; height: clamp(260px, 33vw, 360px); min-height: 240px; }
.chart-card__body canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; }

.review-strip { margin-top: 24px; }
.review-strip .decision-panel {
  display: grid;
  grid-template-columns: minmax(145px, 190px) minmax(0, 1fr);
  gap: clamp(18px, 3vw, 34px);
  padding: 18px 0;
  border: 0;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  border-radius: 0;
  background: transparent;
}
.review-strip .decision-panel__head {
  margin: 0;
  padding: 0 18px 0 0;
  border: 0;
  border-right: 1px solid var(--line);
}

/* ── portfolio: tabs + panels ────────────────────────────────────────── */

.pf-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-top: 28px;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.pf-tab {
  position: relative;
  min-width: 0;
  padding: 13px 12px 12px 34px;
  border: 0;
  border-right: 1px solid var(--line);
  color: var(--fg-dim);
  background: none;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}
.pf-tab:last-child { border-right: 0; }
.pf-tab::before {
  position: absolute;
  left: 11px;
  color: var(--fg-mute);
  font-size: 8px;
  content: "00";
}
.pf-tab:nth-child(1)::before { content: "01"; }
.pf-tab:nth-child(2)::before { content: "02"; }
.pf-tab:nth-child(3)::before { content: "03"; }
.pf-tab:nth-child(4)::before { content: "04"; }
.pf-tab:hover { color: var(--fg); background: rgba(255, 255, 255, .025); }
.pf-tab.is-active { color: #000; background: var(--fg); }
.pf-tab.is-active::before { color: rgba(0, 0, 0, .55); }

.pf-panel { display: none; padding: 30px 0 0; }
.pf-panel.is-active { display: block; }

.lane-group { position: relative; padding-left: 48px; }
.lane-group + .lane-group { margin-top: 38px; padding-top: 32px; border-top: 1px solid var(--line-strong); }
.pf-section-head {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 12px 32px;
  margin-bottom: 17px;
}
.pf-section-head::before {
  position: absolute;
  top: 2px;
  left: -48px;
  width: 32px;
  color: var(--fg-mute);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .08em;
  content: "00";
}
.lane-group--predictions .pf-section-head::before { content: "01"; }
.lane-group--onchain .pf-section-head::before { content: "02"; color: #00c805; }
.lane-group--perps .pf-section-head::before { content: "03"; }
.pf-section-head h2 { margin-top: 3px; font-size: 24px; font-weight: 600; letter-spacing: -.025em; }
.pf-section-head p { max-width: 640px; margin: 0; color: var(--fg-dim); font-size: 11px; }
.lane-group > .pf-table-wrap { border-radius: 0; }
.lane-group.is-empty .pf-section-head {
  align-items: center;
  margin: 0;
  padding: 11px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.lane-group.is-empty .pf-section-head h2 { display: none; }
.lane-group.is-empty .pf-section-head .label { color: var(--fg); }

/* ── portfolio: tables ───────────────────────────────────────────────── */

.pf-table-wrap { overflow-x: hidden; border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); border-radius: 0; }
.pf-table { width: 100%; border-collapse: collapse; }
.pf-table th, .pf-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
.pf-table th {
  padding: 10px 14px;
  border-bottom: 1px solid var(--line-strong);
  color: var(--fg-mute);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.pf-table td { font-size: 13.5px; }
.pf-table td.num, .pf-table th.num { text-align: right; }
.pf-table td.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.pf-table tbody tr:last-child td { border-bottom: 0; }
.pf-table .pf-cell-market { font-family: var(--display); font-size: 14px; font-weight: 600; }
.pf-table .pf-cell-wrap { white-space: normal; min-width: 220px; color: var(--fg-dim); font-size: 13px; }
.pf-table--history,
.pf-table--activity { table-layout: fixed; }
.pf-table--history td:not(.num),
.pf-table--activity td:not(.num) { white-space: normal; overflow-wrap: anywhere; }
.pf-table--history .pf-cell-wrap,
.pf-table--activity .pf-cell-wrap { min-width: 0; }
.pf-table--history th:nth-child(1) { width: 13%; }
.pf-table--history th:nth-child(2) { width: 12%; }
.pf-table--history th:nth-child(3) { width: 13%; }
.pf-table--history th:nth-child(4) { width: 20%; }
.pf-table--history th:nth-child(5) { width: 18%; }
.pf-table--history th:nth-child(6) { width: 17%; }
.pf-table--history th:nth-child(8) { width: 44px; }
.pf-table--activity th:nth-child(1) { width: 11%; }
.pf-table--activity th:nth-child(2) { width: 8%; }
.pf-table--activity th:nth-child(3) { width: 10%; }
.pf-table--activity th:nth-child(4) { width: 12%; }
.pf-table--activity th:nth-child(5) { width: 8%; }
.pf-table--activity th:nth-child(6) { width: 10%; }
.pf-table--activity th:nth-child(7) { width: 10%; }
.pf-table--activity th:nth-child(8) { width: 12%; }
.pf-table--activity th:nth-child(10) { width: 44px; }
.pf-cell-side { font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: .1em; }
.pf-side-long::before, .pf-side-short::before { display: inline-block; width: 7px; height: 7px; margin-right: 8px; content: ""; border-radius: 1px; vertical-align: 1px; }
.pf-side-long::before { background: var(--fg); }
.pf-side-short::before { border: 1px solid var(--fg); box-sizing: border-box; }
.pf-action { font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.pf-action--liquidation { padding: 1px 6px; border-radius: var(--radius); color: #000; background: var(--inverse); }

.pf-row { cursor: pointer; transition: background-color .18s ease; }
.pf-row:hover td, .pf-row:focus-visible td { background: rgba(255, 255, 255, .035); }
.pf-row.is-open td { background: rgba(0, 200, 5, .035); border-bottom-color: transparent; }
.pf-row.is-open td:first-child { box-shadow: inset 2px 0 0 #00c805; }
.pf-table__chev-col { width: 46px; padding-right: 12px !important; text-align: right !important; }
.pf-chev {
  position: relative;
  display: inline-block;
  width: 23px;
  height: 23px;
  border: 1px solid var(--line);
  vertical-align: middle;
  transition: border-color .18s ease, background-color .18s ease;
}
.pf-chev::before,
.pf-chev::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 9px;
  height: 1px;
  content: "";
  background: var(--fg-dim);
  transform: translate(-50%, -50%);
  transition: opacity .18s ease, background-color .18s ease;
}
.pf-chev::after { transform: translate(-50%, -50%) rotate(90deg); }
.pf-row:hover .pf-chev,
.pf-row:focus-visible .pf-chev { border-color: var(--line-strong); background: rgba(255, 255, 255, .045); }
.pf-row.is-open .pf-chev { border-color: rgba(0, 200, 5, .55); background: rgba(0, 200, 5, .08); }
.pf-row.is-open .pf-chev::before { background: #00c805; }
.pf-row.is-open .pf-chev::after { opacity: 0; }
.pf-detail > td {
  padding: 0;
  border-bottom: 1px solid var(--line-strong) !important;
  background: linear-gradient(90deg, rgba(0, 200, 5, .04), rgba(255, 255, 255, .018) 45%, transparent);
  white-space: normal;
}
.pf-detail__inner {
  display: grid;
  gap: 17px;
  margin: 0;
  padding: 20px 22px 22px;
  border-top: 1px solid rgba(0, 200, 5, .28);
  border-left: 2px solid #00c805;
}

.stance-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.stance {
  padding: 4px 9px;
  border: 1px solid rgba(0, 200, 5, .42);
  border-radius: 0;
  color: #00c805;
  background: rgba(0, 200, 5, .06);
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.stance--opened, .stance--adding { color: #000; background: #00c805; border-color: #00c805; }
.stance-row .meta { color: var(--fg-dim); font-family: var(--mono); font-size: 11px; }

.thesis {
  display: grid;
  grid-template-columns: minmax(105px, .25fr) minmax(0, 1fr);
  gap: 18px;
  padding: 13px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: transparent;
}
.thesis__label { display: block; color: #00c805; font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
.thesis p { font-size: 14px; line-height: 1.55; }

.fact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.fact { min-width: 0; padding: 11px 12px 12px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.fact__label { display: block; color: var(--fg-dim); font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; }
.fact__value { display: inline-block; margin-top: 5px; font-family: var(--mono); font-size: 13.5px; font-variant-numeric: tabular-nums; }
.fact__value img { width: 18px; height: 18px; border-radius: 50%; background: #fff; }
.fact__value img.venue-logo--polymarket { filter: grayscale(1) contrast(10); mix-blend-mode: screen; }
.fact__value img.venue-logo--robinhood { filter: grayscale(1) contrast(10) invert(1); mix-blend-mode: screen; }
.fact__value a { display: inline-flex; align-items: center; gap: 8px; }

/* ── portfolio: decisions ────────────────────────────────────────────── */

.decision-panel {
  padding: .95rem 1rem;
  border: 1px solid rgba(0, 200, 5, .26);
  border-radius: 5px;
  background:
    linear-gradient(145deg, rgba(0, 200, 5, .055), transparent 45%),
    rgba(255, 255, 255, .025);
}
.decision-panel__head { margin-bottom: .85rem; padding-bottom: .7rem; border-bottom: 1px solid var(--line); }
.decision-panel__title { margin: .2rem 0 .25rem; font-family: "Lora", serif; font-size: 1.15rem; font-weight: 600; }
.decision-panel__meta { margin: 0; color: var(--fg-dim); font-family: "JetBrains Mono", var(--mono); font-size: .62rem; letter-spacing: .04em; }

.decision-stream { display: flex; flex-direction: column; gap: .75rem; }
.decision-card {
  position: relative;
  padding: .95rem 1rem .9rem;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: rgba(255, 255, 255, .025);
  font-family: "Lora", serif;
}
.decision-card.is-latest {
  border-color: rgba(0, 200, 5, .38);
  box-shadow: inset 3px 0 0 rgba(0, 200, 5, .58);
}
.decision-card__head { display: flex; align-items: baseline; gap: .5rem .75rem; margin-bottom: .45rem; }
.decision-card__meta { color: var(--fg-dim); font-family: "JetBrains Mono", var(--mono); font-size: .62rem; letter-spacing: .03em; }
.decision-card__copy { margin: 0 0 .7rem; color: var(--fg); font-size: .86rem; line-height: 1.5; white-space: pre-wrap; }
.decision-card__badges { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .55rem; }
.decision-chip {
  display: inline-flex;
  align-items: center;
  padding: .18rem .42rem;
  border: 1px solid var(--line);
  border-radius: 3px;
  font-family: "JetBrains Mono", var(--mono);
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .06em;
  line-height: 1.2;
  text-transform: uppercase;
}
.decision-chip--long { color: var(--gain); border-color: rgba(159, 214, 174, .4); background: rgba(159, 214, 174, .1); }
.decision-chip--short { color: var(--loss); border-color: rgba(217, 154, 154, .4); background: rgba(217, 154, 154, .1); }
.decision-chip--cash, .decision-chip--flat { color: var(--fg-dim); background: rgba(255, 255, 255, .04); }

.decision-card__more { margin-top: .15rem; }
.decision-card__more > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  width: 100%;
  min-height: 2.3rem;
  padding: .48rem .65rem;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 4px;
  background: rgba(255, 255, 255, .055);
  color: var(--fg);
  font-family: "JetBrains Mono", var(--mono);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  list-style: none;
  cursor: pointer;
  transition: border-color .18s ease, background-color .18s ease;
}
.decision-card__more > summary::-webkit-details-marker { display: none; }
.decision-card__more > summary:hover,
.decision-card__more > summary:focus-visible { border-color: rgba(0, 200, 5, .5); background: rgba(0, 200, 5, .07); }
.decision-card__more[open] > summary { border-color: rgba(0, 200, 5, .36); background: rgba(0, 200, 5, .055); }
.decision-card__more-icon { display: inline-block; color: #00c805; font-size: .82rem; transition: transform .18s ease; }
.decision-card__more[open] .decision-card__more-icon { transform: rotate(180deg); }
.decision-card__extra { display: flex; flex-direction: column; gap: .75rem; margin-top: .55rem; padding-top: .7rem; border-top: 1px solid rgba(0, 200, 5, .18); }
.decision-card__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .65rem; }
.decision-card__stat-value { display: block; font-family: "JetBrains Mono", var(--mono); font-size: .86rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.decision-card__label { display: block; margin-bottom: .28rem; color: var(--fg-dim); font-family: "JetBrains Mono", var(--mono); font-size: .58rem; letter-spacing: .1em; text-transform: uppercase; }
.decision-card__block p { margin-top: 0; color: var(--fg); font-size: .86rem; line-height: 1.5; }
.decision-card__action { margin-top: .4rem; padding: .55rem .65rem; border: 1px solid rgba(255, 255, 255, .15); border-radius: 4px; background: rgba(255, 255, 255, .035); }
.decision-panel__target-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem .65rem; }
.decision-panel__symbol { font-family: "JetBrains Mono", var(--mono); font-size: .78rem; font-weight: 700; letter-spacing: .04em; }
.decision-panel__size { color: var(--fg-dim); font-family: "JetBrains Mono", var(--mono); font-size: .62rem; }
.decision-panel__thesis { margin: .35rem 0 0 !important; color: var(--fg-dim) !important; font-size: .78rem !important; line-height: 1.5 !important; }
.decision-card__fills, .decision-card__adjustments { display: flex; flex-direction: column; gap: .28rem; margin: 0; padding: 0; list-style: none; }
.decision-card__fills li, .decision-card__adjustments li { color: var(--fg-dim); font-family: "JetBrains Mono", var(--mono); font-size: .68rem; }
.decision-card__fills li b { color: var(--fg); font-weight: 600; }
.decision-card__section > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  min-height: 2rem;
  padding: .4rem .55rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(255, 255, 255, .03);
  color: rgba(244, 244, 242, .76);
  font-family: "JetBrains Mono", var(--mono);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  list-style: none;
  cursor: pointer;
}
.decision-card__section > summary::-webkit-details-marker { display: none; }
.decision-card__section > summary:hover,
.decision-card__section > summary:focus-visible { color: var(--fg); border-color: var(--line-strong); background: rgba(255, 255, 255, .055); }
.decision-card__section-icon { color: #00c805; transition: transform .18s ease; }
.decision-card__section[open] .decision-card__section-icon { transform: rotate(180deg); }
.decision-card__section-body { padding-top: .4rem; }
.decision-card__pre {
  max-height: 320px;
  margin: .4rem 0 0;
  overflow: auto;
  padding: .75rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(0, 0, 0, .35);
  color: rgba(244, 244, 242, .78);
  font-family: "JetBrains Mono", var(--mono);
  font-size: .68rem;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}
.decision-card__link {
  display: inline-flex;
  margin-top: .55rem;
  padding: 0;
  border: 0;
  color: #00c805;
  background: none;
  font-family: "JetBrains Mono", var(--mono);
  font-size: .62rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
}
.decision-card__link:hover,
.decision-card__link:focus-visible { color: var(--fg); }

.decision-panel .decision-card { padding: 0; border: 0; border-radius: 0; background: transparent; }
.decision-panel .decision-card__head { display: none; }
.decision-panel .decision-card.is-latest { box-shadow: none; }

/* ── portfolio: pagination ───────────────────────────────────────────── */

.pf-pagination {
  display: grid;
  grid-template-columns: minmax(84px, 1fr) auto minmax(84px, 1fr);
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.pf-pagination__button {
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  background: rgba(255, 255, 255, .04);
  font-family: "JetBrains Mono", var(--mono);
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.pf-pagination__button:last-child { justify-self: end; }
.pf-pagination__button:hover:not(:disabled),
.pf-pagination__button:focus-visible:not(:disabled) { border-color: rgba(0, 200, 5, .48); background: rgba(0, 200, 5, .07); }
.pf-pagination__button:disabled { opacity: .28; cursor: default; }
.pf-pagination__status {
  color: var(--fg-dim);
  font-family: "JetBrains Mono", var(--mono);
  font-size: .62rem;
  letter-spacing: .04em;
  text-align: center;
}

/* ── motion ──────────────────────────────────────────────────────────── */

@keyframes pulse { 50% { opacity: .35; } }
@keyframes reptileGaze {
  0%, 18%, 100% { transform: translateX(0); }
  24%, 43% { transform: translateX(-8%); }
  50%, 72% { transform: translateX(9%); }
  80% { transform: translateX(0); }
}
@keyframes reptileBlinkTop {
  0%, 36%, 40%, 43%, 73%, 77%, 100% { transform: translateY(-96%); }
  38%, 41.5%, 75% { transform: translateY(0); }
}
@keyframes reptileBlinkBottom {
  0%, 36%, 40%, 43%, 73%, 77%, 100% { transform: translateY(96%); }
  38%, 41.5%, 75% { transform: translateY(0); }
}

/* ── responsive ──────────────────────────────────────────────────────── */

@media (max-width: 1080px) {
  .strip__inner { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .strip__cell--total { grid-column: 1 / -1; padding: 16px 0; border-bottom: 1px solid var(--line); }
  .strip__cell[data-lane="perps"] { padding-left: 0; border-left: 0; }
  .strip__cell { padding-top: 16px; padding-bottom: 16px; }
  .strip__link { grid-column: 1 / -1; padding: 13px 0; border-top: 1px solid var(--line); border-left: 0; }
  .portfolio-shell { grid-template-columns: minmax(198px, 210px) minmax(0, 1fr); }
  .command-workspace { padding-left: 16px; }
  .command-rail__frame { padding-right: 14px; padding-left: 14px; }
  .pf-stat__value { font-size: 12.5px; white-space: normal; overflow-wrap: break-word; }
  .pf-table .col-md { display: none; }
}

@media (max-width: 900px) {
  .nav__toggle { display: block; margin-left: auto; }
  .nav__links {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    padding: 10px var(--gutter) 16px;
    border-bottom: 1px solid var(--line);
    background: #000;
  }
  .nav__links.is-open { display: flex; }
  .nav .ca { display: none; }
  .hero { grid-template-columns: 1fr; }
  .reptile-eye { width: min(82vw, 480px); }
  .section__head { grid-template-columns: 1fr; gap: 16px; }
  .origin { grid-template-columns: 1fr; gap: 48px; }
  .origin__media { width: min(100%, 720px); }
  .log-layout { grid-template-columns: 1fr; gap: 42px; }
  .log-layout__intro { position: static; }
  .portfolio-shell { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .command-workspace { padding-left: 0; border-left: 0; }
  .command-rail { position: static; max-height: none; overflow: visible; }
  .command-rail__frame {
    display: grid;
    grid-template-columns: minmax(210px, .72fr) minmax(0, 1.28fr);
    gap: 0 28px;
    padding: 18px 20px;
    border-right: 1px solid var(--line);
  }
  .rail-total { grid-column: 1; grid-row: 1; }
  .pf-venues { grid-column: 1; grid-row: 2; }
  .pf-notice { grid-column: 1; grid-row: 3; }
  .pf-groups { grid-column: 2; grid-row: 1 / span 3; margin-top: 0; }
  .chart-card__body { height: 280px; min-height: 0; }
}

@media (max-width: 760px) {
  .pf-table .col-sm { display: none; }
}

@media (max-width: 600px) {
  body { font-size: 14px; }
  .brand__text small { display: none; }
  .hero h1 { font-size: clamp(44px, 11vw, 52px); }
  .hero__actions .btn { width: 100%; justify-content: center; }
  .strip__cell { padding: 14px 10px; }
  .strip__cell[data-lane="predictions"] { padding-right: 0; }
  .strip__cell .label em { display: none; }
  .strip__value { font-size: 15px; }
  .strip__cell--total .strip__value { font-size: 24px; }
  .strip__sub { font-size: 10px; white-space: normal; }
  .pf-total { font-size: clamp(31px, 10vw, 40px); }
  .command-rail__frame { display: block; padding: 17px 16px; }
  .pf-venues { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pf-venue { min-width: 0; padding: 9px 6px 9px 0; }
  .pf-venue::after { display: none; }
  .pf-venue__mark { width: 25px; height: 25px; }
  .pf-venue__name { min-width: 0; overflow: hidden; font-size: 10.5px; text-overflow: ellipsis; white-space: nowrap; }
  .pf-venue__name small { display: none; }
  .pf-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 20px; }
  .pf-group, .pf-stat { overflow: hidden; }
  .pf-stat { padding: 9px 12px 10px; }
  .pf-stat__value { font-size: 12.5px; white-space: normal; overflow-wrap: break-word; }
  .pf-group__metrics--three .pf-stat:last-child { padding-left: 12px; }
  .workspace-kicker span:last-child { display: none; }
  .review-strip .decision-panel { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .review-strip .decision-panel__head { padding: 0 0 14px; border-right: 0; border-bottom: 1px solid var(--line); }
  .pf-tab { padding-right: 7px; padding-left: 25px; font-size: 9px; }
  .pf-tab::before { left: 7px; font-size: 7px; }
  .lane-group { padding-left: 0; }
  .pf-section-head { grid-template-columns: minmax(0, 1fr); padding-left: 38px; }
  .pf-section-head::before { left: 0; }
  .pf-section-head h2 { font-size: 21px; }
  .pf-detail__inner { padding: 17px 14px 18px; }
  .thesis { grid-template-columns: minmax(0, 1fr); gap: 7px; }
  .fact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .decision-card__stats { grid-template-columns: 1fr; }
  .pf-group__head { padding-right: 28px; padding-left: 12px; }
  .pf-group__note { padding-right: 12px; padding-left: 12px; }
  .chart-card__body { height: 220px; }
  .pf-table th, .pf-table td { padding: 11px 10px; }
  .pf-table .pf-cell-wrap { min-width: 120px; }
  .origin__copy h2 { max-width: 310px; font-size: 36px; }
  .log__item { grid-template-columns: 34px minmax(0, 1fr); gap: 12px; padding: 17px 0; }
  .log__body { grid-template-columns: 1fr; gap: 6px; }
  .pf-pagination { grid-template-columns: 1fr 1fr; }
  .pf-pagination__status { grid-column: 1 / -1; grid-row: 1; }
  .footer > .wrap { flex-wrap: wrap; gap: 8px 16px; }
  .footer__inner { gap: 8px 16px; }
  .footer__links { gap: 12px; }
  .footer__meta { flex-direction: column; }
}

@media (max-width: 480px) {
  .pf-table .col-xs { display: none; }
}

/* ── 404 ─────────────────────────────────────────────────────────────── */
.notfound {
  min-height: calc(100vh - 220px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 14px;
  padding-top: 60px;
  padding-bottom: 80px;
}
.notfound__code {
  margin: 0;
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-size: clamp(96px, 18vw, 180px);
  font-weight: 700;
  line-height: .9;
  letter-spacing: -.03em;
  color: var(--fg);
}
.notfound__text {
  margin: 0;
  max-width: 460px;
  color: var(--fg-dim);
  font-size: 17px;
  line-height: 1.55;
}
.notfound__meta {
  margin: 6px 0 0;
  font-family: "IBM Plex Mono", monospace;
  font-size: 13px;
  color: var(--fg-dim);
}
.notfound__meta a { color: #00c805; text-decoration: none; }
.notfound__meta a:hover { text-decoration: underline; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
