/* DIAMIND — the observatory.
   Deep night-blue bench, millimetre grid, one synapse-blue accent. IBM Plex, the instrument face. Fire only inside the stone.
   Display: Anybody (condensed numerals, expanded engraving). Text: Geist. Instruments: Martian Mono. */

:root {
  color-scheme: dark;
  --velvet: #070b12;
  --velvet-2: #0c1220;
  --velvet-3: #121b2c;
  --velvet-4: #19253a;
  --hair: rgba(234, 240, 248, 0.09);
  --hair-2: rgba(234, 240, 248, 0.16);
  --hair-3: rgba(234, 240, 248, 0.32);
  --paper: #eaf0f8;
  --ash: #93a4bb;
  --smoke: #5f6f86;
  --ice: #60a5fa;
  --ice-2: #93c5fd;
  --ice-dim: rgba(96, 165, 250, 0.14);
  --gold: #60a5fa;
  --crack: #f87171;
  --amber: #fbbf24;
  --clear: #34d399;
  --display: "IBM Plex Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --text: "IBM Plex Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --gutter: clamp(16px, 4vw, 44px);
  --max: 1240px;
  --r: 2px;
  --r-2: 4px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: radial-gradient(rgba(234, 240, 248, 0.07) 1px, transparent 1.2px) 0 0 / 26px 26px, radial-gradient(90% 60% at 50% 0%, #0f1826 0%, transparent 70%), var(--velvet);
  color: var(--paper);
  font: 400 15px/1.6 var(--text);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, canvas { display: block; max-width: 100%; }
/* a fine film grain over everything: kills the flat-black look without touching the blacks */
body::after { display: none; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: rgba(37, 99, 235, 0.22); color: var(--paper); }
:focus-visible { outline: 1.5px solid var(--ice); outline-offset: 3px; border-radius: 2px; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding-inline: var(--gutter); }

/* ------------------------------------------------------------------ type */
.eyebrow {
  font: 400 11px/1.4 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ash);
}
.mono { font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.01em; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--ash); }
.faint { color: var(--smoke); }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 600; text-wrap: balance; letter-spacing: -0.03em; }
h1 { font-size: clamp(38px, 5.2vw, 68px); line-height: 1.02; }
h2 { font-size: clamp(28px, 3.3vw, 42px); line-height: 1.06; letter-spacing: -0.025em; }
h3 { font-size: 20px; line-height: 1.25; font-weight: 600; letter-spacing: -0.015em; }
p { margin: 0; }
.lede { font-size: 17.5px; line-height: 1.6; color: #cfcbc2; max-width: 58ch; }
.prose { max-width: 62ch; color: #c8c4bb; }
.prose p + p { margin-top: 0.9em; }
.big-num {
  font-family: var(--mono);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 0.82;
  font-variant-numeric: tabular-nums;
}

/* ------------------------------------------------------------------ header */
.top {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 11, 18, 0.82);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--hair);
}
.top .wrap { display: flex; align-items: center; gap: 28px; height: 60px; }
.brand { display: flex; align-items: center; gap: 8px; flex: none; }
.brand svg { width: 22px; height: 22px; }
.wordmark {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.3em;
  margin-right: -0.3em;
  text-transform: uppercase;
}
.nav { display: flex; gap: 4px; margin-left: 10px; }
.nav a {
  position: relative;
  padding: 8px 12px;
  font-size: 14px;
  color: var(--ash);
  border-radius: var(--r);
  transition: color 0.2s var(--ease);
}
.nav a:hover { color: var(--paper); }
.nav a[aria-current="page"] { color: var(--paper); }
.nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: -11px;
  height: 1px;
  background: var(--ice);
}
.top-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.clock {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 34px;
  padding: 0 12px;
  border: 1px solid var(--hair);
  border-radius: 999px;
  font: 400 11.5px/1 var(--mono);
  color: var(--ash);
  white-space: nowrap;
}
.clock b { font-weight: 500; color: var(--paper); font-variant-numeric: tabular-nums; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--smoke); flex: none; }
.dot.live { background: var(--ice-2); box-shadow: 0 0 0 3px rgba(234, 220, 178, 0.16); }
.dot.warn { background: var(--amber); }
.dot.bad { background: var(--crack); }
.btn.burger { display: none; }
@media (max-width: 560px) { #buy-top { display: none; } }

/* ------------------------------------------------------------------ buttons & fields */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border-radius: var(--r);
  border: 1px solid var(--hair-2);
  background: transparent;
  color: var(--paper);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease), opacity 0.2s;
}
.btn:hover { border-color: var(--hair-3); background: rgba(234, 240, 248, 0.05); }
.btn.primary { background: #2563eb; border-color: #2563eb; color: #fff; font-weight: 600; }
.btn.primary:hover { background: #1e40af; border-color: #1e40af; box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.18); }
.btn.small { height: 32px; padding: 0 11px; font-size: 13px; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.42; cursor: not-allowed; }
.btn .arrow { transition: transform 0.2s var(--ease); }
.btn:hover .arrow { transform: translateX(2px); }
.link { color: #93c5fd; border-bottom: 1px solid rgba(147, 197, 253, 0.35); transition: border-color 0.2s; }
.link:hover { border-color: var(--ice-2); }

.field { display: flex; align-items: stretch; border: 1px solid var(--hair-2); border-radius: var(--r); background: var(--velvet-2); transition: border-color 0.2s; }
.field:focus-within { border-color: var(--ice-2); }
.field input {
  flex: 1;
  min-width: 0;
  height: 50px;
  padding: 0 16px;
  background: none;
  border: 0;
  outline: none;
  font: 400 13.5px/1 var(--mono);
  letter-spacing: 0.01em;
}
.field input::placeholder { color: var(--smoke); }
.field .btn { height: auto; margin: 5px; }
.input {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  background: var(--velvet-2);
  border: 1px solid var(--hair-2);
  border-radius: var(--r);
  font: 400 13px/1 var(--mono);
  outline: none;
}
.input:focus { border-color: var(--ice-2); }
label.lbl { display: block; margin-bottom: 7px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 10px;
  border: 1px solid var(--hair);
  border-radius: 999px;
  font: 400 11.5px/1 var(--mono);
  color: var(--ash);
  background: none;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}
.chip:hover { color: var(--paper); border-color: var(--hair-3); }

/* state pill */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 22px;
  padding: 0 9px 0 8px;
  border-radius: 999px;
  font: 500 10.5px/1 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  border: 1px solid var(--hair-2);
  color: var(--ash);
}
.pill::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.pill.ice { color: var(--ice-2); border-color: rgba(213, 191, 132, 0.35); }
.pill.good { color: #6ee7a8; border-color: rgba(110, 231, 168, 0.4); background: rgba(110, 231, 168, 0.1); }
.pill.warn { color: #fcd34d; border-color: rgba(252, 211, 77, 0.4); background: rgba(252, 211, 77, 0.1); }
.pill.bad { color: #fca5a5; border-color: rgba(252, 165, 165, 0.4); background: rgba(252, 165, 165, 0.1); }

/* ------------------------------------------------------------------ layout blocks */
main { display: block; }
.section { padding-block: clamp(64px, 9vw, 120px); border-top: 1px solid var(--hair); }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 32px 64px; align-items: end; margin-bottom: clamp(32px, 4vw, 52px); }
.section-head .eyebrow { margin-bottom: 14px; }
.section-head p { color: #c2beb5; max-width: 56ch; }
.page-head { padding-block: clamp(44px, 6vw, 76px) clamp(28px, 4vw, 44px); }
.page-head h1 { font-size: clamp(38px, 4.8vw, 62px); }
.page-head .lede { margin-top: 16px; }

.panel { background: var(--velvet-2); border: 1px solid var(--hair); border-radius: var(--r-2); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3); }
.panel-pad { padding: clamp(18px, 2.4vw, 28px); }
.rule { height: 1px; background: var(--hair); border: 0; margin: 0; }

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

/* stat row: label over value, hairline-separated */
.stats { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
.stat { padding: 16px 18px 15px 0; min-width: 0; }
.stat + .stat { padding-left: 18px; border-left: 1px solid var(--hair); }
.stat .v { margin-top: 7px; font: 500 16px/1.25 var(--mono); font-variant-numeric: tabular-nums; color: var(--paper); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat .s { margin-top: 3px; font-size: 12.5px; color: var(--smoke); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* tables */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
.t th {
  text-align: left;
  font: 400 10.5px/1 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--smoke);
  padding: 0 14px 12px 0;
  border-bottom: 1px solid var(--hair);
  white-space: nowrap;
}
.t td { padding: 13px 14px 13px 0; border-bottom: 1px solid var(--hair); vertical-align: middle; white-space: nowrap; }
.t td.r, .t th.r { text-align: right; }
.t td.mono { font-size: 12.5px; }
.t tbody tr { transition: background 0.15s; }
.t tbody tr.click { cursor: pointer; }
.t tbody tr.click:hover { background: rgba(245, 240, 230, 0.025); }
.t .tok { display: flex; align-items: center; gap: 10px; min-width: 0; }
.t .tok img, .avatar { width: 24px; height: 24px; border-radius: 50%; background: var(--velvet-4); flex: none; object-fit: cover; }
.avatar.ph { display: grid; place-items: center; font: 500 10px/1 var(--mono); color: var(--ash); }
.t .tok b { font-weight: 500; }

.hard-cell { display: flex; align-items: center; gap: 10px; }
.hard-bar { width: 72px; height: 3px; background: var(--hair); border-radius: 2px; overflow: hidden; }
.hard-bar i { display: block; height: 100%; background: var(--c, var(--ice-2)); }

.empty { padding: 28px 0; color: var(--ash); font-size: 14px; }
.skeleton { position: relative; overflow: hidden; background: var(--velvet-3); border-radius: 2px; color: transparent !important; }
.skeleton::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(245, 240, 230, 0.05), transparent); animation: shimmer 1.4s infinite; }
@keyframes shimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
@media (prefers-reduced-motion: reduce) { .skeleton::after { animation: none; } }

/* toast */
.toasts { position: fixed; right: 16px; bottom: 16px; z-index: 90; display: grid; gap: 8px; max-width: min(420px, calc(100vw - 32px)); }
.toast { padding: 12px 14px; background: var(--velvet-2); border: 1px solid var(--hair-2); border-radius: var(--r-2); font-size: 13.5px; box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5); animation: toast-in 0.25s var(--ease); }
.toast.bad { border-color: rgba(240, 138, 106, 0.4); }
.toast.good { border-color: rgba(155, 224, 180, 0.35); }
.toast a { color: var(--ice-2); }
@keyframes toast-in { from { transform: translateY(8px); opacity: 0; } }

/* copy address */
.addr { display: inline-flex; align-items: center; gap: 6px; font: 400 12.5px/1 var(--mono); color: var(--ash); background: none; border: 0; padding: 0; cursor: pointer; }
.addr:hover { color: var(--paper); }
.addr svg { width: 12px; height: 12px; opacity: 0.7; }

/* ------------------------------------------------------------------ hero */
.hero { position: relative; padding-block: clamp(36px, 5vw, 72px) clamp(56px, 7vw, 96px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px 56px; align-items: center; }
.hero h1 { font-size: clamp(40px, 5vw, 68px); max-width: 11ch; }
.hero h1 em { display: inline-block; font-style: normal; font-weight: 300; letter-spacing: 0; }
.hero .lede { margin-top: 24px; }
.hero-scan { margin-top: 34px; max-width: 560px; }
.hero-scan .row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.hero-scan .chips { margin-top: 12px; }
.stone-wrap { position: relative; aspect-ratio: 1 / 1; width: 100%; max-width: 640px; margin-left: auto; }
.stone-wrap::before {
  content: "";
  position: absolute;
  inset: 12% 8% 0;
  background: radial-gradient(closest-side, rgba(234, 220, 178, 0.075), transparent 72%);
  pointer-events: none;
}
.stone { position: relative; width: 100%; height: 100%; }
.stone[data-fallback="1"] { display: none; }
.stone-cap { position: absolute; left: 0; right: 0; bottom: 2%; display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; }
.live-strip { margin-top: clamp(40px, 5vw, 64px); --n: 4; }

/* the loop */
.loop { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--hair); }
.loop-step { padding: 22px 22px 0 0; min-width: 0; }
.loop-step + .loop-step { padding-left: 22px; border-left: 1px solid var(--hair); }
.loop-step .n { font: 400 11px/1 var(--mono); color: var(--smoke); letter-spacing: 0.1em; }
.loop-step h3 { margin-top: 20px; }
.loop-step p { margin-top: 10px; font-size: 14px; color: var(--ash); }
.loop-step .spec { margin-top: 16px; font: 400 11.5px/1.7 var(--mono); color: #cfcbc2; }

/* replay */
.replay { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr); gap: 20px; }
.chart-box { position: relative; }
.chart-box svg { width: 100%; height: auto; overflow: visible; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 14px; font: 400 11.5px/1 var(--mono); color: var(--ash); }
.chart-legend i { display: inline-block; width: 14px; height: 2px; vertical-align: middle; margin-right: 7px; background: var(--c); }
.chart-legend i.mk { width: 7px; height: 7px; border-radius: 50%; }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.tab { height: 30px; padding: 0 12px; border: 1px solid var(--hair); border-radius: 999px; background: none; font: 400 12px/1 var(--mono); color: var(--ash); cursor: pointer; transition: color 0.2s, border-color 0.2s, background 0.2s; }
.tab:hover { color: var(--paper); }
.tab[aria-selected="true"] { color: var(--velvet); background: var(--ice); border-color: var(--ice); }

/* sensor bars */
.bars { display: grid; gap: 9px; }
.bar-row { display: grid; grid-template-columns: 92px minmax(0, 1fr) 42px; align-items: center; gap: 12px; font: 400 11.5px/1 var(--mono); }
.bar-row .k { color: var(--ash); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-row .v { text-align: right; font-variant-numeric: tabular-nums; }
.bar { position: relative; height: 4px; background: var(--hair); border-radius: 2px; overflow: hidden; }
.bar i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--c, var(--ice-2)); border-radius: 2px; transition: width 0.35s var(--ease); }
.bar.center::before { content: ""; position: absolute; left: 50%; top: -2px; bottom: -2px; width: 1px; background: var(--hair-3); }

/* mohs */
.mohs { position: relative; margin-top: 26px; }
.mohs-scale { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); border-top: 1px solid var(--hair-2); }
.mohs-scale span { position: relative; padding-top: 12px; font: 400 10px/1.2 var(--mono); color: var(--smoke); text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mohs-scale span::before { content: ""; position: absolute; left: 0; top: -5px; width: 1px; height: 9px; background: var(--hair-3); }
.mohs-scale span b { display: block; font-weight: 500; color: var(--ash); margin-bottom: 3px; }
.mohs-marker { position: absolute; top: -11px; width: 2px; height: 20px; background: var(--ice); transform: translateX(-1px); transition: left 0.6s var(--ease); }
.mohs-marker::after { content: ""; position: absolute; left: -4px; top: -6px; border: 5px solid transparent; border-top-color: var(--ice); }

/* tests */
.tests { display: grid; }
.test { display: grid; grid-template-columns: 150px minmax(0, 1fr) 132px; gap: 18px; align-items: start; padding: 16px 0; border-bottom: 1px solid var(--hair); }
.test:first-child { border-top: 1px solid var(--hair); }
.test .name { font-weight: 500; }
.test .q { font-size: 12.5px; color: var(--smoke); margin-top: 3px; }
.test .d { color: #c8c4bb; font-size: 14px; }
.test .src { margin-top: 6px; }
.test .score { display: grid; gap: 7px; justify-items: end; }
.test .score .big { font: 500 18px/1 var(--mono); font-variant-numeric: tabular-nums; }
.test .score .bar { width: 100%; }

/* stepper */
.steps { counter-reset: step; display: grid; }
.step { position: relative; display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 16px; align-items: start; padding: 20px 0; border-bottom: 1px solid var(--hair); }
.step:first-child { border-top: 1px solid var(--hair); }
.step .i { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--hair-2); font: 500 11px/1 var(--mono); color: var(--ash); }
.step.done .i { background: var(--ice); color: var(--velvet); border-color: var(--ice); }
.step.now .i { border-color: var(--ice-2); color: var(--ice); }
.step h3 { font-size: 17px; }
.step p { margin-top: 5px; font-size: 14px; color: var(--ash); }
.step .check { margin-top: 8px; font: 400 12px/1.6 var(--mono); color: var(--ash); }
.step .check .ok { color: var(--clear); }
.step .check .no { color: var(--crack); }

/* network svg */
.net svg { width: 100%; height: auto; }
.net text { font: 400 10.5px var(--mono); fill: var(--ash); }

/* footer */
.foot { border-top: 1px solid var(--hair); padding-block: 44px 56px; color: var(--ash); font-size: 13.5px; }
.foot .wrap { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 28px; }
.foot h4 { margin: 0 0 12px; font: 400 10.5px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--smoke); }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot a:hover { color: var(--paper); }
.foot .fine { margin-top: 14px; max-width: 42ch; color: var(--smoke); font-size: 13px; }

/* ------------------------------------------------------------------ responsive */
@media (max-width: 1080px) {
  .loop { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .loop-step { padding: 22px 18px 26px 0; }
  .loop-step + .loop-step { padding-left: 0; border-left: 0; }
  .loop-step:nth-child(2n) { padding-left: 18px; border-left: 1px solid var(--hair); }
  .loop-step:nth-child(n + 3) { border-top: 1px solid var(--hair); }
  .replay { grid-template-columns: minmax(0, 1fr); }
  .test { grid-template-columns: 130px minmax(0, 1fr) 100px; }
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .stone-wrap { order: -1; max-width: 460px; margin: 4px auto -18px; }
  .stone-cap { display: none; }
  .section-head { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .grid-2, .grid-3 { grid-template-columns: minmax(0, 1fr); }
  .stats { --n: 2 !important; }
  .stat:nth-child(2n + 1) { padding-left: 0; border-left: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--hair); }
  .foot .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav { display: none; position: absolute; top: 60px; left: 0; right: 0; flex-direction: column; gap: 0; padding: 8px var(--gutter) 16px; background: var(--velvet); border-bottom: 1px solid var(--hair); }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; font-size: 16px; border-bottom: 1px solid var(--hair); }
  .nav a[aria-current="page"]::after { display: none; }
  .btn.burger { display: inline-flex; }
  .clock .lbl-long { display: none; }
}
@media (max-width: 560px) {
  body { font-size: 14.5px; }
  .loop { grid-template-columns: minmax(0, 1fr); }
  .loop-step:nth-child(2n) { padding-left: 0; border-left: 0; }
  .loop-step:nth-child(n + 2) { border-top: 1px solid var(--hair); }
  .test { grid-template-columns: minmax(0, 1fr) 70px; }
  .test .d-col { grid-column: 1 / -1; grid-row: 2; }
  .field input { height: 46px; font-size: 12.5px; }
  .top .wrap { gap: 12px; }
  .clock { display: none; }
  .foot .wrap { grid-template-columns: minmax(0, 1fr); }
  .bar-row { grid-template-columns: 80px minmax(0, 1fr) 38px; }
}

/* ------------------------------------------------------------------ radar */
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.t.radar td { padding-top: 11px; padding-bottom: 11px; }
.t.radar td:first-child, .t.radar th:first-child { width: 28px; padding-right: 6px; }
.star { width: 24px; height: 24px; border: 0; background: none; color: var(--smoke); cursor: pointer; padding: 0; display: grid; place-items: center; border-radius: 50%; transition: color 0.15s, background 0.15s; }
.star:hover { color: var(--paper); background: rgba(245, 240, 230, 0.06); }
.star[aria-pressed="true"] { color: var(--amber); }
.star svg { width: 14px; height: 14px; }
.raise { display: grid; gap: 5px; min-width: 120px; }
.raise .bar { height: 3px; }
.raise .k { font: 400 11.5px/1 var(--mono); color: var(--ash); display: flex; justify-content: space-between; gap: 8px; }
.brain-cell { display: flex; align-items: center; gap: 9px; min-width: 150px; }
.brain-cell .bar { width: 64px; height: 4px; }
.row-new { animation: row-in 0.6s var(--ease); }
@keyframes row-in { from { background: rgba(234, 220, 178, 0.12); } }
.grad-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--hair); font-size: 14px; }
.grad-row:last-child { border-bottom: 0; }
.stone-net { position: absolute; inset: 0; }
@media (max-width: 900px) { .filters .mono { margin-left: 0 !important; width: 100%; } }

/* ------------------------------------------------------------------ hero v2 */
.hero-v2 { padding-block: clamp(28px, 4vw, 56px) clamp(56px, 7vw, 96px); }
.hero-v2 .hero-grid { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: 24px 48px; align-items: center; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; }
.hero-v2 .hero-scan { margin-top: 30px; }
.stone-col { display: grid; gap: 14px; }
.stone-wrap { position: relative; aspect-ratio: 1 / 1; width: 100%; max-width: 680px; margin: 0 auto; }
.stone-wrap::before { display: none; }
.stone-glow { position: absolute; inset: 6% 4% 10%; border-radius: 50%; background: radial-gradient(closest-side, rgba(37, 99, 235, 0.12), rgba(37, 99, 235, 0.04) 55%, transparent 74%); filter: blur(10px); pointer-events: none; }
.stone-floor { position: absolute; left: 18%; right: 18%; bottom: 5%; height: 9%; border-radius: 50%; background: radial-gradient(closest-side, rgba(96, 165, 250, 0.16), rgba(96, 165, 250, 0.04) 55%, transparent 75%); filter: blur(12px); pointer-events: none; }
.stone { position: relative; width: 100%; height: 100%; z-index: 1; }
.stone-net { z-index: 2; }
.thought { border: 1px solid var(--hair); border-radius: var(--r-2); background: rgba(12, 18, 32, 0.86); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); padding: 12px 14px; max-width: 680px; margin: 0 auto; width: 100%; }
.thought-head { display: flex; align-items: center; gap: 10px; }
.thought-head .faint { margin-left: auto; }
.thought-body { margin-top: 10px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 14px; align-items: center; min-height: 52px; }
.thought-line { display: flex; align-items: center; gap: 10px; min-width: 0; font-size: 14px; }
.thought-line b { font-weight: 500; }
.thought-line .mono { color: var(--ash); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.thought-sensors { display: flex; gap: 3px; align-items: flex-end; height: 22px; }
.thought-sensors i { display: block; width: 5px; background: var(--gold); border-radius: 1px; opacity: 0.85; transition: height 0.5s var(--ease); }
.door-grid { gap: 16px; }
.door { display: flex; flex-direction: column; gap: 12px; padding: 22px 22px 18px; border: 1px solid var(--hair); border-radius: var(--r-2); background: var(--velvet-2); transition: border-color 0.2s var(--ease), transform 0.25s var(--ease), background 0.2s; min-height: 100%; }
.door:hover { border-color: var(--hair-3); background: var(--velvet-3); transform: translateY(-2px); }
.door-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.door h3 { font-size: 26px; }
.door p { color: var(--ash); font-size: 14.5px; }
.door-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-top: 12px; border-top: 1px solid var(--hair); font-size: 12px; }
.door .arrow { color: var(--ice-2); transition: transform 0.2s var(--ease); }
.door:hover .arrow { transform: translateX(3px); }
.uses .test { grid-template-columns: 150px minmax(0, 1fr); }
.token-card { display: flex; flex-direction: column; justify-content: center; background: radial-gradient(120% 90% at 100% 0%, rgba(96, 165, 250, 0.16), transparent 55%), var(--velvet-2); }
.token-card .big-num { font-size: clamp(56px, 6vw, 84px); font-weight: 600; letter-spacing: -0.02em; }
@media (max-width: 1080px) { .door-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 900px) {
  .hero-v2 .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .stone-col { order: -1; }
  .stone-wrap { max-width: 440px; margin: 0 auto -6px; }
  .thought-body { grid-template-columns: minmax(0, 1fr); }
  .thought-sensors { display: none; }
  .uses .test { grid-template-columns: minmax(0, 1fr); }
  .uses .test .d-col { grid-column: auto; grid-row: auto; }
}

/* ------------------------------------------------------------------ scan stone */
.scan-stone { position: relative; width: 100%; max-width: 360px; aspect-ratio: 1 / 1; margin: 0 auto; }
.scan-stone canvas#scan-stone { position: relative; z-index: 1; width: 100%; height: 100%; }
.stone-legend { position: absolute; left: 0; right: 0; bottom: -6px; display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; z-index: 3; }
.stone-legend .spot { width: 7px; height: 7px; border-radius: 50%; background: var(--crack); box-shadow: 0 0 0 2px rgba(240, 138, 106, 0.25); }
.stone-legend .spot.clear { background: var(--clear); box-shadow: 0 0 0 2px rgba(155, 224, 180, 0.25); }

/* ------------------------------------------------------------------ motion */
.tilt-on { transition: transform 0.25s var(--ease), border-color 0.2s var(--ease), background 0.2s; transform-style: preserve-3d; will-change: transform; position: relative; }
.tilt-on::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(240px circle at var(--lx, 50%) var(--ly, 50%), rgba(37, 99, 235, 0.08), transparent 60%); opacity: 0; transition: opacity 0.3s; pointer-events: none; }
.tilt-on:hover::after { opacity: 1; }
.reveal { transform: translateY(14px); transition: transform 0.9s var(--ease); }
.reveal.in { transform: none; }
.stone-col { will-change: transform; }
.hero-copy { will-change: transform; }
.stone-back { z-index: 0; }

/* ------------------------------------------------------------------ the stage (brain page): the stone, full screen, with its HUD */
.stage { position: relative; min-height: min(calc(100svh - 60px), 980px); display: grid; grid-template-rows: auto auto auto auto; align-content: start; overflow: hidden; isolation: isolate; }
.stage-mid { position: relative; }
.stage-bg { position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 55% at 50% 58%, rgba(37, 99, 235, 0.10), transparent 70%); pointer-events: none; }
.stage-title { position: relative; z-index: 3; padding-top: clamp(22px, 3vw, 40px); text-align: center; }
.stage-title h1 { margin-top: 12px; font-size: clamp(36px, 4.8vw, 64px); }
.stage-title h1 em { font-style: normal; font-weight: 300; color: #93c5fd; }
.stage-lede { margin: 12px auto 0; max-width: 56ch; text-align: center; font-size: 15px; color: var(--ash); }
.stage-stone { position: relative; z-index: 1; width: min(100%, 76vh, 76svh, 820px); aspect-ratio: 1 / 1; margin: -7vh auto 0; }
.stage-mid .hud-l, .stage-mid .hud-r { top: 54%; }
.stage-stone .stone { position: relative; width: 100%; height: 100%; z-index: 1; }
.hud { position: absolute; z-index: 4; border: 1px solid var(--hair); border-radius: var(--r-2); background: rgba(12, 18, 32, 0.88); box-shadow: 0 1px 2px rgba(11, 15, 20, 0.05); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); padding: 14px 16px; width: 272px; }
.hud-l { left: var(--gutter); top: 52%; transform: translateY(-50%); }
.hud-r { right: var(--gutter); top: 52%; transform: translateY(-50%); }
.hud-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.hud-rows { display: grid; gap: 7px; margin-top: 12px; }
.hud-row { display: grid; grid-template-columns: 76px minmax(0, 1fr) 34px; align-items: center; gap: 10px; font: 400 11px/1 var(--mono); color: var(--ash); }
.hud-row .num { text-align: right; color: var(--paper); }
.hud-bar { height: 3px; background: var(--hair-2); border-radius: 2px; overflow: hidden; }
.hud-bar i { display: block; height: 100%; background: var(--gold); transition: width 0.5s var(--ease); }
.hud-note { margin-top: 12px; font-size: 12px; line-height: 1.5; color: var(--smoke); }
.hud-outs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.hud-out .big-num { font-size: 24px; color: var(--ash); transition: color 0.3s; letter-spacing: -0.02em; }
.hud-out.on .big-num { color: var(--ice); }
.hud-out .eyebrow { margin-top: 8px; font-size: 10px; }
.hud-b { position: relative; z-index: 4; width: min(100%, 760px); margin: -9vh auto 0; display: grid; gap: 12px; }
.hud-thought { display: flex; align-items: center; gap: 10px; min-width: 0; }
.hud-thought .eyebrow { white-space: nowrap; }
.hud-thought .mono { color: var(--ash); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stage-row { display: flex; justify-content: space-between; gap: 10px 18px; flex-wrap: wrap; }
.stage-row .chips { gap: 5px; }
.stage-scan .field { background: var(--velvet-2); }
.stage-hint { position: relative; z-index: 3; text-align: center; padding: 18px 0 14px; }
.chip.on { color: var(--paper); border-color: var(--ice-2); }
.dot.live { background: var(--clear); box-shadow: 0 0 0 3px rgba(155, 224, 180, 0.18); }

.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.door h3 { font-size: 24px; }
.anat { gap: 16px; }
.anat-card { padding: 22px 22px 24px; border: 1px solid var(--hair); border-radius: var(--r-2); background: var(--velvet-2); }
.anat-card .n { font: 400 11px/1 var(--mono); letter-spacing: 0.12em; color: var(--ice-2); }
.anat-card h3 { margin-top: 12px; }
.anat-card p { margin-top: 10px; color: var(--ash); font-size: 14.5px; }
.token-uses .use { padding: 20px 20px 22px; border: 1px solid var(--hair); border-radius: var(--r-2); background: var(--velvet-2); display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.token-uses .use h3 { font-size: 20px; }
.token-uses .use p { color: var(--ash); font-size: 14px; }
.token-uses .use .pill { margin-top: auto; }

/* how-to strip on the home page */
.howto { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); margin-top: clamp(40px, 5vw, 64px); }
.howto div { padding: 18px 20px 18px 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: start; }
.howto div + div { padding-left: 20px; border-left: 1px solid var(--hair); }
.howto b { font-family: var(--mono); font-weight: 500; font-size: 26px; line-height: 0.9; color: var(--ice); }
.howto p { font-size: 14px; color: var(--ash); }
.howto p strong { display: block; color: var(--paper); font-weight: 500; margin-bottom: 2px; }
.hero-v2 .hero-scan { margin-top: 26px; }
.hero-v2 .hero-actions { margin-top: 18px; }

@media (max-width: 1180px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .hud { width: 236px; } .hud-row { grid-template-columns: 66px minmax(0, 1fr) 32px; } .hud-out .big-num { font-size: 28px; } }
@media (max-width: 900px) {
  .stage { min-height: 0; }
  .stage-stone { width: min(100%, 560px); margin-top: 0; }
  .hud-l, .hud-r { position: relative; left: auto; right: auto; top: auto; transform: none; width: auto; }
  .stage-side { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .hud-b { margin-top: 12px; }
  .howto { grid-template-columns: minmax(0, 1fr); }
  .howto div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--hair); }
  .anat { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) { .grid-4 { grid-template-columns: minmax(0, 1fr); } .stage-side { grid-template-columns: minmax(0, 1fr); } .stage-title h1 { font-size: 34px; } }

/* ------------------------------------------------------------------ v4: track record, game, lineage, wallet, badge */
h1 em.thin { font-style: normal; font-weight: 300; color: #93c5fd; }
.hud-record { font-size: 12.5px; }
.hud-record a { color: var(--ash); }
.hud-record a b { color: var(--ice); font-weight: 500; }
.hud-record a:hover { color: var(--paper); }
.play { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr); gap: 20px; }
.play-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.play-facts { display: flex; flex-wrap: wrap; gap: 14px 28px; margin-top: 16px; }
.play-facts .mono { margin-top: 4px; font-size: 13px; }
.play-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--hair); }
.play-verdict { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; gap: 18px; align-items: center; margin-top: 18px; padding: 16px 18px; border: 1px solid var(--hair-2); border-radius: var(--r-2); background: var(--velvet-3); }
.play-verdict .pill { margin-top: 6px; }
.play-note { color: var(--ash); font-size: 13.5px; }
.play-vs { display: grid; grid-template-columns: 1fr auto 1fr; gap: 14px; align-items: center; margin-top: 14px; }
.vs .big-num { font-size: 44px; }
.vs .eyebrow { margin-top: 8px; }
.vs-mid { text-align: center; }
.lineage { display: grid; border-top: 1px solid var(--hair); }
.gen { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--hair); }
.gen-n { font-family: var(--mono); font-weight: 500; font-size: 30px; color: var(--ice); line-height: 1; }
.gen-title { font-family: var(--display); font-weight: 560; font-size: 19px; }
.gen-sub { margin-top: 4px; color: var(--ash); font-size: 13.5px; }
.wallet-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 18px; flex-wrap: wrap; }
.wallet-score { display: flex; align-items: flex-end; gap: 16px; }
.wallet-score .big-num { font-size: clamp(56px, 7vw, 92px); }
.badge-row { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px; align-items: center; margin-top: 16px; }
.badge-row img { border-radius: 8px; }
.calls-grid .tests .test { padding: 12px 0; }
.chip .spot { width: 7px; height: 7px; border-radius: 50%; background: var(--crack); }
.chip .spot.clear { background: var(--clear); }
@media (max-width: 900px) {
  .play { grid-template-columns: minmax(0, 1fr); }
  .play-verdict { grid-template-columns: auto auto; }
  .play-verdict .play-note { grid-column: 1 / -1; }
  .badge-row { grid-template-columns: minmax(0, 1fr); }
  .gen { grid-template-columns: 48px minmax(0, 1fr); }
  .gen > .pill { grid-column: 2; justify-self: start; }
}

/* the gallery: hero italics, bars, remaining dark leftovers */
.hero h1 em { font-style: normal; font-weight: 300; color: #93c5fd; }
.hero .lede, .lede { color: var(--ash); }
.prose { color: var(--ash); }
.section-head p { color: var(--ash); }
.hard-bar { background: var(--hair-2); }
.raise .bar { background: var(--hair-2); }
.skeleton { background: var(--velvet-3); }
.mohs-marker { background: var(--paper); }
.anat-card .n { color: var(--ice); }
.chip:hover { background: rgba(234, 240, 248, 0.05); }
.tab[aria-selected="true"] { background: #2563eb; color: #fff; border-color: #2563eb; }
.clock { background: var(--velvet-2); }
.hud-why { margin-top: 12px; display: grid; gap: 6px; border-top: 1px solid var(--hair); padding-top: 12px; }
.hud-why div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; font: 400 11.5px/1.35 var(--mono); color: var(--ash); }
.hud-why b { font-weight: 500; color: var(--paper); }
.hud-why .up { color: var(--clear); }
.hud-why .down { color: var(--crack); }

/* the laboratory: numbered sections, figure captions, ruled data */
body { counter-reset: fig; }
.section .section-head > div > .eyebrow::before, .page-head > .wrap > .eyebrow::before { counter-increment: fig; content: counter(fig, decimal-leading-zero) "  ·  "; color: #93c5fd; }
.eyebrow { color: var(--ash); letter-spacing: 0.14em; }
.stats { border-top: 1px solid var(--hair-3); }
.stat .v { font-family: var(--mono); font-weight: 500; }
.t th { font-family: var(--mono); letter-spacing: 0.1em; }
.section { border-top: 1px solid var(--hair-2); }
.foot { background: var(--velvet-2); }
.lede, .prose, .section-head p { font-weight: 400; }
.hud-head .eyebrow::before, .thought-head .eyebrow::before { content: none; }

/* signals and entry levels */
.signals { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.signal { display: grid; gap: 6px; padding: 14px 14px 12px; border: 1px solid var(--hair); border-radius: var(--r-2); background: var(--velvet-2); transition: border-color 0.2s; }
.signal:hover { border-color: var(--ice-2); }
.sig-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.sig-ret { font-family: var(--mono); font-weight: 500; font-size: 24px; letter-spacing: -0.02em; }
.sig-ret.up { color: var(--clear); }
.sig-ret.down { color: var(--crack); }
.sig-meta { font-size: 11.5px; color: var(--ash); }
.entry { display: grid; gap: 3px; min-width: 130px; font-size: 12px; }
.entry .mono.on { color: var(--ice); font-weight: 500; }
.entry .faint { font-size: 11px; }
#quick { width: 100%; padding-top: 10px; }
#quick .chip.on { color: #fff; background: var(--ice); border-color: var(--ice); }
@media (max-width: 1080px) { .signals { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .signals { grid-template-columns: minmax(0, 1fr); } }

/* access tiers and wallet reasons */
.acc-wrap { display: grid; gap: 12px; }
.acc { display: grid; border: 1px solid var(--hair); border-radius: var(--r-2); overflow: hidden; background: var(--velvet-2); }
.acc-row { display: grid; grid-template-columns: 1.1fr 1fr 1.2fr; gap: 12px; padding: 11px 14px; border-top: 1px solid var(--hair); font-size: 13.5px; align-items: center; }
.acc-row:first-child { border-top: 0; }
.acc-head { background: var(--velvet-2); font: 500 11px/1.4 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ash); }
.acc-free { color: var(--ash); }
.acc-holder { color: var(--paper); }
.acc.is-holder .acc-holder { color: var(--ice); font-weight: 500; }
.acc-note { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13.5px; color: var(--ash); }
.reasons { display: grid; gap: 10px; }
.reason { padding: 12px 14px; border: 1px solid var(--hair); border-radius: var(--r-2); background: var(--velvet-2); }
.reason b { font-weight: 600; }
.reason p { margin-top: 4px; color: var(--ash); font-size: 13.5px; }
.chip.lock { color: var(--ice); border-color: rgba(37, 99, 235, 0.35); background: rgba(37, 99, 235, 0.06); }
@media (max-width: 560px) { .acc-row { grid-template-columns: minmax(0, 1fr); gap: 4px; } .acc-head span:not(:first-child) { display: none; } }

/* ------------------------------------------------------------------ the chamber: black glass where the specimen lives */
.chamber { --c-ink: #eaf0f8; --c-ash: #93a4bb; --c-smoke: #5f6f86; --c-hair: rgba(234, 240, 248, 0.1); --c-hair-2: rgba(234, 240, 248, 0.18); color: var(--c-ink); background: transparent; }
.chamber .eyebrow, .chamber .faint, .chamber .muted { color: var(--c-ash); }
.chamber .faint { color: var(--c-smoke); }
.chamber h1, .chamber h2, .chamber h3 { color: #fff; }
.chamber .lede, .chamber .stage-lede { color: var(--c-ash); }
.chamber .stage-title h1 em, .chamber h1 em.thin { color: #93c5fd; }
.chamber .eyebrow::before { color: #93c5fd; }
.chamber .hud { background: rgba(6, 10, 18, 0.72); border-color: var(--c-hair-2); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.chamber .hud-row { color: var(--c-ash); }
.chamber .hud-row .num { color: #fff; }
.chamber .hud-bar { background: rgba(234, 240, 248, 0.14); }
.chamber .hud-bar i { background: #60a5fa; }
.chamber .hud-note { color: var(--c-smoke); }
.chamber .hud-out .big-num { color: #c7d2e2; }
.chamber .hud-out.on .big-num { color: #93c5fd; }
.chamber .hud-why { border-color: var(--c-hair); }
.chamber .hud-why div { color: var(--c-ash); }
.chamber .hud-why b { color: #fff; }
.chamber .hud-why .up { color: #6ee7a8; }
.chamber .hud-why .down { color: #fca5a5; }
.chamber .pill { color: var(--c-ash); border-color: var(--c-hair-2); }
.chamber .pill.ice { color: #93c5fd; border-color: rgba(147, 197, 253, 0.4); background: rgba(96, 165, 250, 0.12); }
.chamber .pill.good { color: #6ee7a8; border-color: rgba(110, 231, 168, 0.4); background: rgba(110, 231, 168, 0.1); }
.chamber .pill.warn { color: #fcd34d; border-color: rgba(252, 211, 77, 0.4); background: rgba(252, 211, 77, 0.1); }
.chamber .pill.bad { color: #fca5a5; border-color: rgba(252, 165, 165, 0.4); background: rgba(252, 165, 165, 0.1); }
.chamber .chip { color: #c7d2e2; border-color: var(--c-hair-2); }
.chamber .chip:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }
.chamber .chip.on { color: #fff; border-color: #60a5fa; background: rgba(96, 165, 250, 0.16); }
.chamber .field { background: rgba(255, 255, 255, 0.06); border-color: var(--c-hair-2); }
.chamber .field input { color: #fff; }
.chamber .field input::placeholder { color: var(--c-smoke); }
.chamber .btn { color: #fff; border-color: var(--c-hair-2); }
.chamber .btn:hover { background: rgba(255, 255, 255, 0.06); }
.chamber .btn.primary { background: #2563eb; border-color: #2563eb; }
.chamber .hud-record a { color: var(--c-ash); }
.chamber .hud-record a b { color: #93c5fd; }
.chamber .hud-record a:hover { color: #fff; }
.chamber .hud-thought .mono { color: var(--c-ash); }
.chamber .stage-hint { color: var(--c-smoke); }
.chamber .stage-bg { background: radial-gradient(50% 45% at 50% 58%, rgba(96, 165, 250, 0.16), transparent 70%); }
.chamber .thought { background: rgba(6, 10, 18, 0.7); border-color: var(--c-hair-2); color: var(--c-ink); }
.chamber .thought-line .mono { color: var(--c-ash); }
.chamber .thought-sensors i { background: #60a5fa; }
.chamber .stone-glow { background: radial-gradient(closest-side, rgba(96, 165, 250, 0.18), rgba(96, 165, 250, 0.05) 55%, transparent 74%); }
.chamber .stone-floor { background: radial-gradient(closest-side, rgba(96, 165, 250, 0.16), rgba(96, 165, 250, 0.04) 55%, transparent 75%); }
.chamber .stats { border-color: var(--c-hair-2); }
.chamber .stat { border-color: var(--c-hair) !important; }
.chamber .stat .v { color: #fff; }
.chamber .stat .s { color: var(--c-ash); }
.chamber .skeleton { background: rgba(255, 255, 255, 0.08); }
.chamber .clock { background: rgba(6, 10, 18, 0.7); border-color: var(--c-hair-2); color: var(--c-ink); }
.chamber .link { color: #93c5fd; border-color: rgba(147, 197, 253, 0.35); }
.chamber .prose, .chamber p { color: var(--c-ash); }
.chamber .page-head-actions .btn { color: #fff; }

/* page heads: a black band with the market's EEG under the title */
.page-head.chamber { position: relative; overflow: hidden; padding-bottom: clamp(80px, 9vw, 120px); margin-bottom: 8px; border-bottom: 1px solid var(--hair); }
.page-head.chamber .wrap { position: relative; z-index: 2; }
.page-head.chamber .eeg { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 96px; opacity: 0.85; z-index: 1; pointer-events: none; }
.page-head.chamber .lede { color: var(--c-ash); }
.page-head.chamber .field { background: rgba(255, 255, 255, 0.07); }
.page-head.chamber .field input { color: #fff; }
.page-head.chamber h1 em { color: #93c5fd; }

/* the stage as a chamber */
.stage.chamber { border-radius: 0; }
.stage-eeg { position: relative; z-index: 3; width: min(100%, 980px); margin: -3vh auto 0; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(280px, 1fr); gap: 14px; align-items: stretch; }
.stage-eeg .eeg { width: 100%; height: 120px; border: 1px solid var(--c-hair); border-radius: var(--r-2); background: rgba(6, 10, 18, 0.55); }
.log { border: 1px solid var(--c-hair); border-radius: var(--r-2); background: rgba(6, 10, 18, 0.55); padding: 8px 10px; font: 400 11px/1.5 var(--mono); color: var(--c-ash); overflow: hidden; height: 120px; display: flex; flex-direction: column; gap: 2px; }
.log-line { display: grid; grid-template-columns: 62px minmax(0, 1fr); gap: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; animation: log-in 0.4s var(--ease); }
.log-line .log-t { color: var(--c-smoke); }
.log-line.defend { color: #93c5fd; }
.log-line.calm { color: #6ee7a8; }
@keyframes log-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.stage.chamber .hud-b { margin-top: 14px; }

/* the home chamber */
.hero-chamber { padding: 0; border-radius: 0; box-shadow: none; }
.hero-chamber .stone-wrap { max-width: 680px; }
.hero-eeg { width: 100%; height: 84px; margin-top: 12px; border-top: 1px solid var(--c-hair); }
.hero-chamber .thought { max-width: none; }

/* rewind */
.rewind-bar { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; margin-top: 14px; }
.rewind-bar input[type="range"] { width: 100%; accent-color: var(--ice); }
@media (max-width: 900px) { .stage-eeg { grid-template-columns: minmax(0, 1fr); width: 100%; } .log { height: 100px; } }
.chamber .clock b, .chamber .clock span { color: #fff; }
.chamber .clock .dot.live { background: #6ee7a8; box-shadow: 0 0 0 3px rgba(110, 231, 168, 0.2); }
.stage-eeg { margin-top: 3vh; }

/* the living logo */
.logo-stone { position: relative; width: 30px; height: 30px; display: block; flex: none; }
.logo-stone canvas.stone { position: absolute; inset: -9px; width: 48px; height: 48px; }
.logo-stone svg { position: absolute; inset: 4px; width: 22px; height: 22px; display: none; }
.logo-stone canvas[data-fallback] ~ svg { display: block; }
.foot .brand svg { width: 22px; height: 22px; }
.chip.lock { color: #93c5fd; border-color: rgba(147, 197, 253, 0.4); background: rgba(96, 165, 250, 0.1); }
.acc-head { background: var(--velvet-3); }
.howto p strong, .reason b, .gen-title { color: var(--paper); }
.mohs-marker { background: #93c5fd; }

/* playbook (scan) */
.playbook { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 20px; align-items: start; }
.pb-verdict { display: grid; gap: 10px; padding: 18px; border: 1px solid var(--hair-2); border-radius: var(--r-2); background: var(--velvet-3); }
.pb-verdict .big { font-family: var(--mono); font-weight: 500; font-size: 30px; letter-spacing: -0.02em; }
.pb-verdict.buy .big { color: #93c5fd; }
.pb-verdict.wait .big { color: var(--paper); }
.pb-verdict.avoid .big { color: #fca5a5; }
.pb-lines { display: grid; gap: 8px; }
.pb-line { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: start; font-size: 13.5px; color: var(--ash); }
.pb-line b { color: var(--paper); font-weight: 500; }
.pb-line i { font-style: normal; font-family: var(--mono); font-size: 12px; color: #93c5fd; }
.pb-line.risk i { color: #fca5a5; }
.pb-line.good i { color: #6ee7a8; }
.sig-hl { display: flex; gap: 10px; font: 400 11px/1 var(--mono); }
.sig-hl .hi { color: #6ee7a8; }
.sig-hl .lo { color: #fca5a5; }

/* the crystal wordmark */
.wordmark-img { height: 34px; width: auto; display: block; filter: drop-shadow(0 0 5px rgba(147, 197, 253, 0.3)); }
.foot .wordmark-img { height: 28px; }
.hero-wordmark { width: min(100%, 420px); height: auto; filter: drop-shadow(0 0 18px rgba(147, 197, 253, 0.3)); }
/* floating shards: a fixed canvas behind the content */
#shards { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
@media (max-width: 560px) { .wordmark-img { height: 26px; } }

/* CA and X buttons */
.btn.ghost { color: var(--ash); border-style: dashed; }
.btn.ghost:hover { color: var(--paper); }
#btn-ca .dot { background: var(--smoke); }
#btn-ca:not([aria-disabled]) .dot { background: #6ee7a8; box-shadow: 0 0 0 3px rgba(110, 231, 168, 0.2); }
#btn-ca b { font-weight: 500; font-size: 12px; }
#btn-x svg { display: block; }
@media (max-width: 900px) { #btn-x span, #btn-ca b { display: none; } }
/* stacking: sparks above the ground, below everything that reads */
#shards { z-index: 0; }
main, .foot { position: relative; z-index: 1; }
