/* dusk's mind: the inside view. same sky, same panels as the homepage board, calmer glow. */
.mind-page::after { opacity: calc(var(--glow) * .45); }

/* header lockup: the face and the wordmark, at the homepage logo's scale */
.brand-lockup { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); }
.brand-lockup:hover { text-decoration: none; }
.brand-lockup img { width: 26px; height: auto; }
.brand-wordmark { height: 18px; width: auto; }
.top nav a[aria-current="page"], .foot-cols a[aria-current="page"] { color: var(--ink); }

.mind { position: relative; z-index: 1; max-width: 1280px; margin: 0 auto; padding: 40px var(--gutter) 128px; }

/* who's speaking, and exactly what he's doing right now */
/* the way home: an obvious button at the top of the page */
.back { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 30px; padding: 11px 16px 11px 13px; font: 13px/1 var(--mono); color: var(--ink);
  border: 1px solid var(--line-2); background: rgba(10, 9, 23, .55); transition: border-color .15s, background-color .15s; }
.back:hover { border-color: var(--lilac); background-color: rgba(185, 174, 252, .06); text-decoration: none; }
.back .ico { transition: transform .2s cubic-bezier(.2, .8, .2, 1); }
.back:hover .ico { transform: translateX(-3px); }
.mind-hero { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: 32px; }
.mind-hero h1 { margin: 0 0 14px; font: 400 clamp(2.4rem, 4.4vw, 3.6rem)/1.02 var(--sans); letter-spacing: -.035em; }
.mind-lede { margin: 0; max-width: 52ch; font: 400 17px/1.65 var(--sans); color: var(--ink-2); text-wrap: pretty; }
.state { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; padding: 12px 16px; border: 1px solid var(--line-2); border-radius: 10px; background: rgba(10, 9, 23, .55); }
.state-line { display: inline-flex; align-items: center; gap: 9px; font: 500 15px/1 var(--sans); color: var(--ink); }
.state small { font: 11px/1.4 var(--mono); color: var(--ink-3); }
.state .dot { width: 7px; height: 7px; background: var(--ink-3); display: inline-block; }
.state[data-mode="live"] .dot { background: var(--up); animation: pulse 2.4s steps(2, jump-none) infinite; }
.state[data-mode="watching"] .dot { background: var(--aqua); animation: pulse 2.4s steps(2, jump-none) infinite; }
.state[data-mode="offline"] .dot { background: var(--ember); }
.state[data-mode="connecting"] .dot { animation: pulse 1.2s steps(2, jump-none) infinite; }


/* panels: the homepage board's surface */
.mind-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 24px; margin-bottom: 24px; align-items: start; }
.mind-main, .mind-side { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.traders-panel .leaders { max-height: 360px; overflow: auto; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; padding-right: 5px; }
.traders-panel .leaders:focus-visible { outline: 1px solid var(--aqua); outline-offset: 5px; }
.traders-panel .leader:last-child { border-bottom: 0; }
.traders-panel .panel-head { flex-wrap: wrap; }
.traders-panel .leader b { overflow-wrap: anywhere; }
.mind-side .journal-panel { flex: 1; }
.jev-visual { color: var(--aqua); margin: -8px -12px 0; }
.jev-visual svg { width: 100%; display: block; }
.jev-visual text { fill: var(--ink-3); font: 10px var(--mono); }
.jev-wire { stroke: var(--ink-3); stroke-width: .6; fill: none; opacity: .4; }
.jev-thread { stroke: currentColor; stroke-width: .4; opacity: .12; }
.jev-neuron, .jev-input circle, .jev-output { fill: currentColor; opacity: .45; }
.jev-input[data-available="true"] circle { opacity: 1; }
.jev-ring { fill: none; stroke: currentColor; stroke-width: .6; stroke-dasharray: 2 7; opacity: .35; transform-origin: 224px 115px; }
.jev-visual[data-active="true"] .jev-ring { animation: jev-orbit 10s linear infinite; }
.jev-visual[data-active="true"] .jev-neuron { animation: jev-light 1.4s ease-in-out var(--delay) infinite alternate; }
.jev-visual[data-active="true"] .jev-wire { stroke: var(--aqua); stroke-dasharray: 5 5; animation: jev-flow 1.5s linear infinite; opacity: .9; }
.jev-received .jev-output { animation: jev-receipt 1.8s ease-out; transform-origin: 375px 115px; }
.jev-metrics { display: grid; gap: 9px; }
.jev-metrics > div { display: grid; grid-template-columns: 85px 1fr 48px; align-items: center; gap: 10px; font: 10px var(--mono); color: var(--ink-3); }
.jev-metrics i { height: 3px; background: var(--line); }
.jev-metrics b { display: block; height: 100%; background: var(--aqua); transform-origin: left center; transition: transform .35s; }
.jev-metrics strong { text-align: right; color: var(--ink-2); font-weight: 400; }
.thesis-book .thesis:last-child { border-bottom: 0; }
.thesis-book .thesis summary { padding: 6px 0; }
@keyframes jev-orbit { to { transform: rotate(360deg); } }
@keyframes jev-light { to { opacity: 1; } }
@keyframes jev-flow { to { stroke-dashoffset: -20; } }
@keyframes jev-receipt { 20% { transform: scale(1.9); opacity: 1; } 100% { transform: scale(1); opacity: .45; } }
@media (prefers-reduced-motion: reduce) { .jev-visual * { animation: none !important; transition: none !important; } }
.journal-panel { display: flex; flex-direction: column; }
.journal-wrap { position: relative; flex: 1; min-height: 340px; }
.panel { min-width: 0; border: 1px solid var(--line-2); border-radius: 12px; background: rgba(10, 9, 23, .55); padding: 22px 22px 20px; }
.panel + .panel { margin-top: 24px; }
.mind-grid .panel + .panel { margin-top: 0; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.panel-head h2 { margin: 0; font: 500 20px/1.2 var(--sans); letter-spacing: -.015em; }
.panel-head > span { font: 11px/1.4 var(--mono); color: var(--ink-3); }
.panel-head > span b { font-weight: 400; }
.panel-note { margin: 8px 0 16px; font: 400 13px/1.6 var(--sans); color: var(--ink-3); }
.fine { display: block; margin: 10px 0 0; font: 400 12px/1.65 var(--sans); color: var(--ink-3); }
.empty { margin: 0; padding: 18px 0; font: 12px/1.7 var(--mono); color: var(--ink-3); list-style: none; }
.up { color: var(--up); } .down { color: var(--down); }
.pulse { width: 7px; height: 7px; background: var(--ink-3); }
.pulse.on { background: var(--aqua); animation: pulse 2.4s steps(2, jump-none) infinite; }
.chip { justify-self: end; text-align: center; font: 11px/1 var(--mono); color: var(--ink-3); padding: 5px 8px; border: 1px solid var(--line-2); border-radius: 999px; white-space: nowrap; }
.chip.entry { color: var(--up); border-color: rgba(126, 240, 184, .35); background: rgba(126, 240, 184, .06); }

/* the radar */
.cand { border-top: 1px solid var(--line); }
.cand-head, .cand summary { display: grid; grid-template-columns: minmax(0, 1fr) 72px 132px 86px 10px; gap: 16px; align-items: center; }
.cand-mc { font: 13px/1 var(--mono); text-align: right; }
.cand-net { display: none; }
.cand-head span:nth-child(2) { text-align: right; }
.cand-head { padding: 0 4px 10px; font: 11px/1 var(--mono); color: var(--ink-3); }
.cand-head span:nth-child(4) { text-align: right; }
.cand summary { padding: 14px 4px; cursor: pointer; list-style: none; border-radius: 6px; }
.cand summary::-webkit-details-marker { display: none; }
.cand summary:hover { background: rgba(185, 174, 252, .04); }
.cand-name { display: flex; align-items: center; gap: 10px; min-width: 0; }
.coin { display: grid; place-items: center; flex: none; width: 22px; height: 22px; border-radius: 50%; overflow: hidden; background: var(--sky-2); font: 11px/1 var(--mono); color: var(--ink-2); }
.coin img { width: 100%; height: 100%; object-fit: cover; }
.cand-name b { font: 500 16px/1.2 var(--sans); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cand-name small { font: 11px/1 var(--mono); color: var(--ink-3); }
/* copy the contract: a small button in the row, and a clear contract section when the row is open */
.cand-copy, .contract-copy { display: inline-flex; align-items: center; gap: 7px; flex: none; color: var(--ink-3); cursor: pointer; transition: color .15s, border-color .15s; }
.cand-copy { justify-content: center; width: 26px; height: 26px; margin-left: -4px; border-radius: 6px; }
.cand-copy:hover, .contract-copy:hover { color: var(--ink); }
.cand-copy .ico-check, .contract-copy .ico-check, .copied .ico-copy { display: none; }
.copied .ico-check { display: inline-block; }
.cand-copy.copied, .contract-copy.copied { color: var(--up); }
.contract { display: flex; align-items: center; gap: 12px; margin: 6px 0 14px; padding: 10px 10px 10px 12px; border: 1px solid var(--line-2); border-radius: 8px; background: rgba(10, 9, 23, .4); }
.contract-label { flex: none; padding: 3px 5px; margin: 2px; font: 11px/1 var(--mono); color: var(--sky-0); background: var(--ink); box-shadow: 0 -2px 0 var(--ink), 0 2px 0 var(--ink), -2px 0 0 var(--ink), 2px 0 0 var(--ink); }
.contract code { flex: 1; min-width: 0; font: 12px/1.4 var(--mono); color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.contract-copy { margin-left: auto; padding: 8px 11px; font: 12px/1 var(--mono); color: var(--ink); border: 1px solid var(--line-2); border-radius: 6px; background: rgba(185, 174, 252, .06); }
.contract-copy:hover { border-color: var(--lilac); }
.contract-copy.copied { border-color: rgba(126, 240, 184, .5); }
.cand-score { display: grid; grid-template-columns: minmax(0, 1fr) 26px; gap: 10px; align-items: center; }
.cand-score i { height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; }
.cand-score i b { display: block; height: 100%; background: var(--lilac); }
.cand-score em { font: normal 12px/1 var(--mono); color: var(--ink-2); text-align: right; }
.cand-body { padding: 2px 4px 18px; }
.signals { display: flex; flex-wrap: wrap; gap: 8px; }
.signals span { font: 11px/1 var(--mono); color: var(--ink-2); background: rgba(185, 174, 252, .07); padding: 7px 9px; border-radius: 6px; }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 16px 0; }
.facts dt { font: 11px/1.4 var(--mono); color: var(--ink-3); }
.facts dd { margin: 4px 0 0; font: 500 14px/1.3 var(--sans); color: var(--ink); }
.checks { margin: 0; padding: 0 0 0 16px; font: 400 13px/1.8 var(--sans); color: var(--ink-2); }
.checks .pass { color: var(--up); }
.jev-line { margin: 14px 0 0; padding: 12px 14px; border-radius: 8px; background: rgba(127, 224, 208, .05); border: 1px solid rgba(127, 224, 208, .14); font: 12px/1.6 var(--mono); color: var(--ink-2); }
.jev-line b { color: var(--aqua); font-weight: 400; margin-right: 6px; }
.jev-line small { display: block; margin-top: 4px; font: 400 12px/1.5 var(--sans); color: var(--ink-3); }
.buyers { margin: 14px 0 0; padding: 0; list-style: none; font: 400 13px/1.8 var(--sans); color: var(--ink-3); }
.buyers b { color: var(--ink-2); font-weight: 500; }

/* the journal: a quiet timeline */
.journal { position: absolute; inset: 0; list-style: none; margin: 0; padding: 0 4px 0 0; overflow: auto; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; mask-image: linear-gradient(to bottom, #000 calc(100% - 36px), transparent); }
.journal li { position: relative; margin-left: 4px; padding: 0 0 18px 18px; border-left: 1px solid var(--line-2); }
.journal li:last-child { padding-bottom: 4px; }
.journal li::before { content: ""; position: absolute; left: -3px; top: 5px; width: 5px; height: 5px; background: var(--lilac); }
.journal li[data-type="jev"]::before { background: var(--aqua); }
.journal li[data-type="buy"]::before, .journal li[data-type="sell"]::before { background: var(--up); }
.journal li[data-type="connection"]::before, .journal li[data-type="system"]::before { background: var(--ink-3); }
.journal li.empty { border: 0; padding-left: 0; margin: 0; }
.journal li.empty::before { display: none; }
.j-meta { display: flex; align-items: center; gap: 10px; }
.journal time { font: 11px/1 var(--mono); color: var(--ink-3); }
.journal .tag { font: 11px/1 var(--mono); color: var(--ink-2); }
.journal p { margin: 6px 0 0; font: 400 14px/1.55 var(--sans); color: var(--ink); overflow-wrap: anywhere; }

/* trades */
.trades h3 { margin: 18px 0 4px; font: 11px/1.4 var(--mono); color: var(--ink-3); font-weight: 400; }
.trade { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font: 500 14px/1.4 var(--sans); }
.trade small { display: block; margin-top: 3px; font: 11px/1.4 var(--mono); color: var(--ink-3); font-weight: 400; }
.trade > span:last-child { text-align: right; }
.pending { margin: 12px 0 0; font: 12px/1.6 var(--mono); color: var(--ember); }
.not-live { margin-top: 12px; padding: 24px 26px; border: 1px dashed var(--line-2); border-radius: 10px; }
.not-live .not-live-title { margin: 0 0 8px; font: 500 18px/1.3 var(--sans); color: var(--ink); }
.not-live p { margin: 0; max-width: 64ch; font: 400 14px/1.7 var(--sans); color: var(--ink-2); }
.thesis { padding: 14px 0; border-bottom: 1px solid var(--line); }
.thesis summary { display: flex; justify-content: space-between; gap: 12px; cursor: pointer; font: 500 14px/1.4 var(--sans); }
.thesis summary span { font: 11px/1.4 var(--mono); color: var(--aqua); font-weight: 400; }
.thesis p { white-space: pre-wrap; font: 400 13px/1.8 var(--sans); color: var(--ink-2); }
.research-json { max-height: 380px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; font: 11px/1.6 var(--mono); color: var(--ink-2); padding: 12px; border: 1px solid var(--line); border-radius: 8px; }

/* how i decide */
.decide details { border-top: 1px solid var(--line); }
.decide details:first-of-type { margin-top: 12px; }
.decide summary { display: flex; justify-content: space-between; align-items: center; padding: 15px 2px; cursor: pointer; list-style: none; font: 400 15px/1.4 var(--sans); color: var(--ink); }
.decide summary::-webkit-details-marker { display: none; }
.decide summary::after, .cand summary::after { content: ""; flex: none; width: 10px; height: 10px; background: var(--ink-3); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 5 5' shape-rendering='crispEdges' fill='%23000'%3E%3Crect x='2' y='0' width='1' height='1'/%3E%3Crect x='2' y='1' width='1' height='1'/%3E%3Crect x='0' y='2' width='5' height='1'/%3E%3Crect x='2' y='3' width='1' height='1'/%3E%3Crect x='2' y='4' width='1' height='1'/%3E%3C/svg%3E") center / 10px 10px no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 5 5' shape-rendering='crispEdges' fill='%23000'%3E%3Crect x='2' y='0' width='1' height='1'/%3E%3Crect x='2' y='1' width='1' height='1'/%3E%3Crect x='0' y='2' width='5' height='1'/%3E%3Crect x='2' y='3' width='1' height='1'/%3E%3Crect x='2' y='4' width='1' height='1'/%3E%3C/svg%3E") center / 10px 10px no-repeat; }
.decide details[open] summary::after, .cand[open] summary::after { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 5 5' shape-rendering='crispEdges' fill='%23000'%3E%3Crect x='0' y='2' width='5' height='1'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 5 5' shape-rendering='crispEdges' fill='%23000'%3E%3Crect x='0' y='2' width='5' height='1'/%3E%3C/svg%3E"); }
.decide summary { gap: 12px; }
.sum-meta { margin-left: auto; font: 11px/1 var(--mono); color: var(--ink-3); }
.decide details > :not(summary) { margin-left: 2px; margin-right: 2px; }
.decide details[open] { padding-bottom: 18px; }
.rules { margin: 0; padding-left: 18px; font: 400 14px/1.9 var(--sans); color: var(--ink-2); }
.leaders .leader { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.leader-who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.avatar { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 50%; overflow: hidden; background: var(--sky-2); font: 13px/1 var(--mono); color: var(--ink-2); box-shadow: 0 0 0 1px var(--line-2); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.leader b { display: block; font: 500 14px/1.3 var(--sans); }
.leader small { display: block; margin-top: 3px; font: 11px/1.4 var(--mono); color: var(--ink-3); }
.weights { margin-top: 4px; }
.weight { display: grid; grid-template-columns: 96px minmax(0, 1fr) 40px; gap: 14px; align-items: center; margin: 10px 0; font: 12px/1 var(--mono); color: var(--ink-2); }
.weight i { height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; }
.weight i b { display: block; height: 100%; background: var(--aqua); }
.weight > span:last-child { text-align: right; color: var(--ink-3); }
.learning-event { margin: 12px 0 0; padding-top: 12px; border-top: 1px solid var(--line); font: 400 13px/1.7 var(--sans); color: var(--ink-2); }

@media (max-width: 980px) {
  .mind-grid { grid-template-columns: minmax(0, 1fr); }
  .journal-wrap { min-height: 0; }
  .journal { position: static; overflow: visible; mask-image: none; }
  .journal li:nth-child(n + 9) { display: none; }
}
@media (max-width: 640px) {
  .mind { padding-top: 28px; padding-bottom: 96px; }
  .mind-hero { flex-direction: column; align-items: stretch; gap: 22px; }
  .state { align-items: flex-start; }
  .panel { padding: 18px 16px 16px; }
  .cand-head { display: none; }
  .cand summary { grid-template-columns: minmax(0, 1fr) auto 10px; row-gap: 10px; }
  .cand-mc { grid-column: 1; grid-row: 2; text-align: left; }             /* the name keeps the first line; chain, market cap and score share the second */
  .cand-name small { display: none; }
  .cand-net { display: inline; margin-right: 10px; font: 11px/1 var(--mono); color: var(--ink-3); }
  .cand-score { grid-column: 2 / -1; grid-row: 2; width: 150px; justify-self: end; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .not-live { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .state .dot, .pulse.on { animation: none !important; }
}
/* narrow screens: the "bought" chip drops under the trader's name, so their rank stays on one line */
@media (max-width: 560px) {
  .leaders .leader { flex-wrap: wrap; row-gap: 8px; }
  .leaders .leader .chip { margin-left: 44px; }
}
