/* =========================================================
   WebHarbor — project page
   Same "Maritime Precision" system as assets/style.css (guides):
   cream paper, navy accent, teal and warm highlights.
   ========================================================= */

:root {
  --bg:          #F6F5F0;
  --bg-alt:      #EDECE6;
  --surface:     #FFFFFF;
  --text:        #0C1222;
  --text-soft:   #3D4559;
  --text-muted:  #6B7280;
  --border:      #D6D3C8;
  --border-soft: #E8E5DC;

  --accent:      #1B4B8F;
  --accent-ink:  #0F2E5A;
  --accent-soft: #E8EFF8;
  --teal:        #0D7377;
  --teal-soft:   #E6F5F5;
  --warm:        #C4713B;
  --warm-soft:   #FDF0E6;
  --warn:        #A63D2F;
  --warn-soft:   #FAECE9;
  --code-bg:     #0C1222;

  --serif: "DM Serif Display", Georgia, serif;
  --sans:  "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono:  "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --shadow-sm: 0 1px 2px rgba(12,18,34,.03), 0 2px 6px rgba(12,18,34,.05);
  --shadow-md: 0 4px 12px rgba(12,18,34,.06), 0 2px 4px rgba(12,18,34,.04);
  --shadow-lg: 0 12px 40px rgba(12,18,34,.10), 0 4px 12px rgba(12,18,34,.05);
  --shadow-xl: 0 20px 60px rgba(12,18,34,.14);

  --radius:    16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --max: 1248px;

  --tile-w: 248px;
  --tile-h: 155px;
  --tile-gap: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  text-wrap: pretty;
}
h1, h2, h3 { text-wrap: balance; }
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
button { font: inherit; color: inherit; }
code {
  font-family: var(--mono); font-size: .88em; color: var(--text);
  background: var(--bg-alt); border: 1px solid var(--border-soft);
  padding: .12em .42em; border-radius: 5px;
}
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 36px; }

/* ---------------- NAV (as in style.css) ---------------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246,245,240,.88);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border-soft);
}
.nav .wrap { display: flex; align-items: center; gap: 24px; padding-top: 14px; padding-bottom: 14px; max-width: 1400px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 1.15rem; color: var(--text); letter-spacing: .01em; }
.brand:hover { text-decoration: none; }
.brand-mark { color: var(--accent); font-size: 1.25rem; }
.nav-links { display: flex; gap: 24px; margin-left: auto; align-items: center; font-size: .875rem; font-weight: 600; letter-spacing: .01em; }
.nav-links a:not(.nav-cta) { color: var(--text-muted); position: relative; transition: color .2s; }
.nav-links a:not(.nav-cta):hover { color: var(--accent); text-decoration: none; }
.nav-links a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; bottom: -4px; width: 0; height: 1.5px; background: var(--accent); transition: width .25s ease;
}
.nav-links a:not(.nav-cta):hover::after { width: 100%; }
.nav-ctas { display: flex; gap: 10px; margin-left: 8px; }
.nav-cta {
  font-size: .875rem; font-weight: 700; padding: 8px 15px; border-radius: 8px;
  background: var(--accent); color: #fff; border: 1.5px solid var(--accent);
  transition: background .2s, transform .15s, border-color .2s, color .2s;
}
.nav-cta:hover { background: var(--accent-ink); border-color: var(--accent-ink); text-decoration: none; transform: translateY(-1px); }
.nav-cta.ghost { background: transparent; color: var(--accent); }
.nav-cta.ghost:hover { background: var(--accent-soft); color: var(--accent-ink); }
.nav-toggle { display: none; margin-left: auto; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--text); }
.nav-toggle span { display: block; width: 22px; height: 2px; background: currentColor; margin: 5px 0; border-radius: 2px; }

/* ---------------- HERO + WALL ---------------- */
.hero {
  position: relative;
  min-height: calc(100vh - 66px); min-height: calc(100svh - 66px);
  background: var(--bg);
  overflow: hidden;
  isolation: isolate;
  display: grid; place-items: center;
  border-bottom: 1px solid var(--border-soft);
}
.wall {
  position: absolute; inset: -8% -10%;
  z-index: 0;
  display: flex; flex-direction: column; justify-content: center; gap: var(--tile-gap);
  transform: perspective(1600px) rotateX(16deg) rotateZ(-7deg) scale(1.08);
  transform-origin: 50% 45%;
  transition: translate .9s cubic-bezier(.2,.8,.2,1);
  will-change: transform;
}
.row { position: relative; height: var(--tile-h); flex: none; }
.row.is-hot { z-index: 3; }
.track {
  display: flex; gap: var(--tile-gap); width: max-content;
  animation: drift var(--dur, 160s) linear infinite;
  animation-direction: var(--dir, normal);
  will-change: transform;
}
.row:nth-child(odd) .track { --dir: reverse; }
@keyframes drift { from { transform: translate3d(0,0,0); } to { transform: translate3d(calc(-50% - var(--tile-gap) / 2), 0, 0); } }
.hero.is-paused .track, .row.is-hot .track { animation-play-state: paused; }

/* tile background is a 6-frame strip; home.js steps visible tiles through it */
.tile {
  position: relative; flex: none;
  width: var(--tile-w); height: var(--tile-h);
  padding: 0; border: 1px solid var(--border); border-radius: 10px;
  background-color: var(--bg-alt);
  background-position: 0% 0;
  background-size: 600% 100%;
  background-repeat: no-repeat;
  cursor: pointer;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s ease, border-color .35s;
}
@keyframes frames { from { background-position: 0% 0; } to { background-position: 120% 0; } }
.tile-label {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 10px 12px;
  display: flex; align-items: baseline; gap: 8px;
  font-size: 13px; font-weight: 700; color: var(--text); text-align: left;
  background: rgba(255,255,255,.94);
  border-top: 1px solid var(--border-soft);
  opacity: 0; transform: translateY(100%);
  transition: opacity .25s ease, transform .25s ease;
}
.tile-label em {
  font-style: normal; font-family: var(--mono); font-size: 11px; font-weight: 500; margin-left: auto;
  color: var(--accent); background: var(--accent-soft); border: 1px solid rgba(27,75,143,.12); padding: 1px 6px; border-radius: 5px;
}
.tile-play {
  position: absolute; top: 42%; left: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px;
  border-radius: 50%; background: var(--accent); color: #fff;
  display: grid; place-items: center;
  opacity: 0; transform: scale(.7);
  transition: opacity .25s ease, transform .25s cubic-bezier(.2,.8,.2,1);
  box-shadow: 0 6px 20px rgba(27,75,143,.35);
}
.tile-play::before { content: ""; width: 0; height: 0; margin-left: 4px; border-style: solid; border-width: 8px 0 8px 13px; border-color: transparent transparent transparent currentColor; }
.tile:hover, .tile:focus-visible {
  transform: scale(1.12);
  z-index: 2;
  border-color: var(--accent);
  /* the wide cream spread washes out the rest of the wall */
  box-shadow: 0 0 0 2px var(--accent), 0 0 0 100vmax rgba(246,245,240,.55), var(--shadow-xl);
}
.tile:hover .tile-label, .tile:focus-visible .tile-label,
.tile:hover .tile-play, .tile:focus-visible .tile-play { opacity: 1; transform: none; }

.hero-shade {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    /* the original hero's soft navy / teal / warm glows */
    radial-gradient(ellipse 34% 40% at 30% 34%, rgba(27,75,143,.07), transparent 70%),
    radial-gradient(ellipse 30% 36% at 72% 30%, rgba(13,115,119,.06), transparent 70%),
    radial-gradient(ellipse 30% 30% at 52% 74%, rgba(196,113,59,.05), transparent 70%),
    radial-gradient(ellipse 56% 58% at 50% 50%, rgba(246,245,240,.98) 0%, rgba(246,245,240,.95) 52%, rgba(246,245,240,.55) 78%, rgba(246,245,240,.12) 100%),
    linear-gradient(180deg, rgba(246,245,240,.55) 0%, rgba(246,245,240,.08) 18%, rgba(246,245,240,.08) 80%, rgba(246,245,240,.96) 100%);
}
.hero-content {
  position: relative; z-index: 2;
  pointer-events: none;
  text-align: center;
  padding: 64px 24px 120px;
  max-width: 1180px;
}
.hero-content a, .hero-content button { pointer-events: auto; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: .79rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  color: var(--text-muted); background: var(--surface); border: 1px solid var(--border);
  padding: 7px 18px; border-radius: 999px; box-shadow: var(--shadow-sm);
}
.eyebrow .dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); }
.eyebrow .dot::after { /* transform + opacity only, so the pulse stays on the compositor */
  content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid var(--teal);
  animation: pulse-dot 2.2s ease-out infinite; will-change: transform, opacity;
}
@keyframes pulse-dot { from { transform: scale(.4); opacity: .55; } 70%, to { transform: scale(1); opacity: 0; } }
.hero-title {
  margin: 28px 0 22px;
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2.2rem, 4.3vw, 3.7rem); line-height: 1.12; letter-spacing: -.01em;
  color: var(--text); text-wrap: initial;
}
.hero-title .line { white-space: nowrap; }
@media (max-width: 760px) { .hero-title .line { white-space: normal; } .hero-title br { display: none; } }
.accent { color: var(--accent); }
.hero .lede { margin: 0 auto; max-width: 760px; font-size: 1.12rem; line-height: 1.7; color: var(--text-soft); }
.hero .lede a { font-weight: 600; white-space: nowrap; }
h2 a { color: inherit; text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 6px; }
h2 a:hover { color: var(--accent); }
.hero-actions { margin-top: 32px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .9rem; font-weight: 700; letter-spacing: .01em;
  padding: 13px 24px; border-radius: var(--radius-sm);
  border: 1.5px solid transparent; cursor: pointer;
  transition: all .2s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn svg { width: 16px; height: 16px; flex: none; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 2px 8px rgba(27,75,143,.25); }
.btn-primary:hover { background: var(--accent-ink); box-shadow: 0 4px 16px rgba(27,75,143,.3); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.btn .soon { font-family: var(--mono); font-size: 10.5px; font-weight: 500; letter-spacing: .04em; color: var(--warm); background: var(--warm-soft); padding: 1px 6px; border-radius: 5px; }
.btn[aria-disabled="true"] { cursor: default; }
.btn[aria-disabled="true"]:hover { transform: none; border-color: var(--border); background: var(--surface); color: var(--text); }
.hero-stats { margin: 40px auto 0; display: grid; grid-template-columns: repeat(4, auto); justify-content: center; }
.hero-stats div { padding: 0 28px; border-left: 1px solid var(--border); }
.hero-stats div:first-child { border-left: 0; }
.hero-stats b { display: block; font-family: var(--serif); font-weight: 400; font-size: 2.4rem; line-height: 1.05; color: var(--accent); }
.hero-stats span { font-size: .8rem; color: var(--text-muted); letter-spacing: .02em; }
.hero-hint {
  position: absolute; z-index: 2; left: 50%; bottom: 24px; transform: translateX(-50%);
  display: flex; align-items: center; gap: 10px; white-space: nowrap; margin: 0;
  font-size: 13px; color: var(--text-muted); pointer-events: none;
  padding: 7px 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm);
}
.wall-toggle {
  position: absolute; z-index: 3; right: 22px; bottom: 22px;
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
  background: var(--surface); border: 1px solid var(--border); color: var(--text-soft); box-shadow: var(--shadow-sm);
}
.wall-toggle:hover { color: var(--accent); border-color: var(--accent); }
.wall-toggle svg { width: 14px; height: 14px; }
.wall-toggle .i-play { display: none; }
.hero.is-user-paused .wall-toggle .i-play { display: block; }
.hero.is-user-paused .wall-toggle .i-pause { display: none; }

/* ---------------- SECTIONS (as in style.css) ---------------- */
section { position: relative; }
.section { padding: 100px 0; }
.section + .section { border-top: 1px solid var(--border-soft); }
.section-alt { background: #F1F0EA; }
.kicker {
  display: inline-block;
  font-family: var(--mono); font-size: .79rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); background: var(--accent-soft); border: 1px solid rgba(27,75,143,.12);
  padding: 6px 14px; border-radius: 6px; margin-bottom: 22px;
}
h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(1.8rem, 3vw, 2.5rem); line-height: 1.22; letter-spacing: -.005em;
  margin: 0 0 18px; max-width: 900px; color: var(--text);
}
h2 em { font-style: normal; color: var(--accent); }
h3 { font-size: 1.05rem; line-height: 1.35; margin: 0 0 8px; }
.lead { font-size: 1.06rem; color: var(--text-soft); line-height: 1.7; max-width: 70ch; margin: 0 0 12px; }
.muted { color: var(--text-muted); }
.note { font-size: .86rem; color: var(--text-muted); }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s cubic-bezier(.22,1,.36,1), transform .7s cubic-bezier(.22,1,.36,1); }
.reveal.is-in { opacity: 1; transform: none; }

/* white cards */
.panel, .why-card, .step, .cmp, .method-figure {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm);
}

/* ---------------- MOTIVATION ---------------- */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.why-card { padding: 26px; transition: transform .2s ease, box-shadow .2s ease; }
.why-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.why-card .big { font-family: var(--serif); font-size: 3rem; line-height: 1; color: var(--warn); }
.why-card .big small { font-size: 1.3rem; }
.why-card p { margin: 10px 0 0; color: var(--text-soft); font-size: .95rem; }
.why-card.good .big { color: var(--teal); }

.cmp { margin-top: 40px; overflow: hidden; }
.cmp-scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
.cmp table { min-width: 720px; }
.cmp th, .cmp td { padding: 13px 18px; text-align: center; border-bottom: 1px solid var(--border-soft); font-size: .92rem; }
.cmp th { font-size: .78rem; font-weight: 700; color: var(--text); background: var(--bg-alt); }
.cmp td:first-child, .cmp th:first-child { text-align: left; font-weight: 600; }
.cmp .group td { background: #FAF9F5; font-family: var(--mono); font-size: .72rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); padding: 8px 18px; }
.cmp tr.ours td { background: var(--accent-soft); color: var(--accent-ink); font-weight: 700; border-bottom: 0; }
.cmp tr.ours td:first-child { box-shadow: inset 4px 0 0 var(--accent); }
.yes { color: var(--teal); font-weight: 700; }
.no { color: #B9B3A5; }
.part { color: var(--warm); font-weight: 700; }

/* ---------------- APPROACH ---------------- */
.method-figure { margin: 40px 0 0; padding: 22px; }
.method-figure img { width: 100%; height: auto; border-radius: 8px; }
.method-figure figcaption { font-size: .86rem; color: var(--text-muted); margin-top: 12px; text-align: center; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 24px; }
.step { padding: 26px; }
.step-n {
  display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  font-family: var(--serif); font-size: 1.05rem; color: var(--accent);
  border: 1.5px solid var(--accent); background: var(--accent-soft); margin-bottom: 14px;
}
.step h3 { font-family: var(--serif); font-weight: 400; font-size: 1.25rem; }
.step p { margin: 0; font-size: .94rem; color: var(--text-soft); }
.step .fact { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--border); font-size: .87rem; color: var(--text-muted); }
.step .fact b { color: var(--text); }

/* thesis-style callout (as "Why humans are essential" in style.css) */
.thesis {
  display: flex; gap: 22px; align-items: baseline;
  margin-top: 24px; padding: 22px 28px; border-radius: 12px;
  background: var(--accent-soft); border-left: 4px solid var(--accent);
}
.thesis .label { flex: none; font-family: var(--mono); font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.thesis p { margin: 0; color: var(--text); font-size: .98rem; }

/* ---------------- SUITE ---------------- */
.suite-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 22px; margin-top: 40px; align-items: start; }
.panel { padding: 26px; }
.panel h3 { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-family: var(--serif); font-weight: 400; font-size: 1.3rem; }
.panel h3 small { font-family: var(--sans); font-weight: 500; font-size: .8rem; color: var(--text-muted); }
.mini-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 18px; }
.mini-stats div { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 14px 14px 12px; }
.panel .mini-stats div { background: var(--bg); border-color: var(--border-soft); }
.mini-stats b { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.7rem; line-height: 1.1; color: var(--accent); }
.mini-stats span { font-size: .78rem; color: var(--text-muted); line-height: 1.35; display: block; }
.split { display: grid; grid-template-columns: 250px 1fr; gap: 24px; align-items: center; margin-top: 8px; }
.donut { width: 100%; max-width: 250px; aspect-ratio: 1; }
.legend { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; font-size: .9rem; }
.legend li { display: flex; align-items: center; gap: 10px; }
.legend i { width: 12px; height: 12px; border-radius: 3px; flex: none; }
.legend b { font-family: var(--mono); font-size: .84rem; margin-left: auto; padding-left: 12px; }

/* ---------------- EXPLORER ---------------- */
.explorer-tools { display: flex; flex-direction: column; align-items: center; gap: 16px; margin-top: 36px; }
.search { position: relative; width: 100%; max-width: 560px; }
.search input {
  width: 100%; padding: 11px 16px 11px 42px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--border); background: var(--surface); color: var(--text);
  font: inherit; font-size: .95rem; box-shadow: var(--shadow-sm);
}
.search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.search input::placeholder { color: #9AA0AD; }
.search svg { position: absolute; left: 15px; top: 50%; width: 17px; height: 17px; transform: translateY(-50%); color: var(--text-muted); }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.chip {
  padding: 6px 13px; border-radius: 999px; font-size: .84rem; font-weight: 600; cursor: pointer;
  background: var(--surface); border: 1px solid var(--border); color: var(--text-soft);
  transition: background .2s, color .2s, border-color .2s;
}
.chip:hover { color: var(--accent); border-color: var(--accent); }
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.chip .c { font-family: var(--mono); font-size: .72rem; opacity: .7; margin-left: 4px; }
.grid { margin-top: 26px; display: grid; gap: 20px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card {
  display: block; text-align: left; padding: 0; cursor: pointer;
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px; overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .25s cubic-bezier(.2,.8,.2,1), border-color .25s, box-shadow .25s;
  content-visibility: auto; contain-intrinsic-size: 214px 220px;
}
.card:hover, .card:focus-visible { transform: translateY(-4px); border-color: var(--accent); box-shadow: var(--shadow-lg); }
.card-shot { display: block; position: relative; aspect-ratio: 16 / 10; background: var(--bg-alt); overflow: hidden; border-bottom: 1px solid var(--border-soft); }
.card-shot img { width: 100%; height: 100%; object-fit: cover; }
.card-shot::after { /* frames strip on hover */
  content: ""; position: absolute; inset: 0; opacity: 0;
  background-size: 600% 100%; background-repeat: no-repeat;
}
.card.is-live .card-shot::after { background-image: var(--strip); opacity: 1; background-position: calc(var(--f, 0) * 20%) 0; }
.card-body { display: block; padding: 12px 14px 14px; }
.card-name { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: .95rem; color: var(--text); line-height: 1.35; }
.card-name .wv { font-family: var(--mono); font-size: .62rem; font-weight: 500; letter-spacing: .04em; padding: 1px 6px; border-radius: 5px; background: var(--warm-soft); color: var(--warm); }
.card-meta { display: block; margin-top: 3px; font-family: var(--mono); font-size: .74rem; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.35; }
.card[hidden] { display: none; }
.card-foot { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: .76rem; color: var(--text-muted); }
.card-foot .port { font-family: var(--mono); font-size: .72rem; color: var(--accent); background: var(--accent-soft); border: 1px solid rgba(27,75,143,.12); padding: 1px 7px; border-radius: 5px; }
.grid.is-collapsed .card:nth-child(n + 13) { display: none; } /* 12 cards = 3x4, 4x3 or 6x2 */
@media (max-width: 900px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.grid-empty { color: var(--text-muted); margin-top: 24px; text-align: center; }
.grid-count { margin: 14px 0 0; text-align: center; }
.grid-more { display: flex; justify-content: center; margin-top: 28px; }
.grid-more[hidden] { display: none; }

/* ---------------- RESULTS ---------------- */
.results-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; margin-top: 24px; }
.callouts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 36px; }
.callout { border-radius: 12px; padding: 18px 20px 16px; background: var(--accent-soft); border-left: 4px solid var(--accent); }
.callout b { font-family: var(--serif); font-weight: 400; font-size: 2.2rem; line-height: 1; color: var(--accent); display: block; }
.callout span { font-size: .86rem; color: var(--text-soft); }
.callout.sea { background: var(--teal-soft); border-left-color: var(--teal); }
.callout.sea b { color: var(--teal); }
.callout.warm { background: var(--warm-soft); border-left-color: var(--warm); }
.callout.warm b { color: var(--warm); }

/* ---------------- QUICKSTART ---------------- */
.qs-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; margin-top: 36px; }
.code { position: relative; background: var(--code-bg); color: #DCE3F0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); }
.code-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px 10px 18px; border-bottom: 1px solid rgba(255,255,255,.08); font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: #7E8AA6; }
.copy { background: transparent; border: 1px solid rgba(255,255,255,.2); color: #C4CCDD; font-family: var(--mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; padding: 4px 10px; border-radius: 6px; cursor: pointer; }
.copy:hover { background: rgba(255,255,255,.08); }
.code pre { margin: 0; padding: 18px; overflow-x: auto; font-family: var(--mono); font-size: .82rem; line-height: 1.75; }
.code .c { color: #7E8AA6; }
.code .k { color: #9FC1F2; }
.code .s { color: #8FD8CF; }
.qs-notes { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; font-size: .92rem; color: var(--text-soft); }
.qs-notes li { display: flex; gap: 10px; }
.qs-notes li::before { content: "→"; color: var(--accent); }

/* ---------------- COMMUNITY ---------------- */
.community-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 22px; margin-top: 36px; }
.people { font-size: .9rem; line-height: 1.85; color: var(--text-soft); }
.people h4 { font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin: 18px 0 4px; font-weight: 600; }
.people h4:first-child { margin-top: 0; }
.people p { margin: 0; }
.people .pp { white-space: nowrap; }
.people sup { font-size: .62em; margin-left: 1px; color: var(--text-muted); }
.affils { columns: 2; column-gap: 26px; font-size: .84rem; color: var(--text-muted); padding-left: 18px; margin: 8px 0 0; }
.affils li { break-inside: avoid; }
.community-grid .thesis { flex-direction: column; gap: 8px; }

/* ---------------- CITE / FOOTER ---------------- */
.cite .code { margin-top: 24px; }
footer { border-top: 1px solid var(--border-soft); padding: 40px 0 44px; font-size: .88rem; color: var(--text-muted); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; }
footer b { color: var(--text); font-family: var(--serif); font-weight: 400; font-size: 1.05rem; }
.foot-links { display: flex; flex-wrap: wrap; gap: 18px; font-weight: 600; }

/* ---------------- PLAYER ---------------- */
.player {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center;
  padding: 24px;
  background: rgba(12,18,34,.42);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  opacity: 0; visibility: hidden;
  transition: opacity .3s ease, visibility 0s linear .3s;
}
.player.is-open { opacity: 1; visibility: visible; transition: opacity .3s ease; }
.player-box {
  width: min(1380px, 100%); max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px);
  display: grid; grid-template-columns: minmax(0, 1fr) 360px;
  background: var(--surface); color: var(--text);
  border: 1px solid var(--border); border-radius: 20px; overflow: hidden;
  box-shadow: var(--shadow-xl);
  transform: translateY(16px) scale(.98); transition: transform .4s cubic-bezier(.2,.8,.2,1);
}
.player.is-open .player-box { transform: none; }
.player-main { display: flex; flex-direction: column; min-width: 0; padding: 16px 16px 14px; gap: 12px; }
.browser { border-radius: 12px; overflow: hidden; background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.browser-bar { display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 12px; background: var(--bg-alt); border-bottom: 1px solid var(--border); font-size: .8rem; }
.browser-bar .dots { display: flex; gap: 6px; }
.browser-bar .dots i { width: 10px; height: 10px; border-radius: 50%; background: #D0CCC0; }
.browser-bar .dots i:nth-child(1) { background: #EE6A5F; }
.browser-bar .dots i:nth-child(2) { background: #F5BD4F; }
.browser-bar .dots i:nth-child(3) { background: #61C554; }
.urlbar {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--border-soft); border-radius: 8px; padding: 4px 12px;
  font-family: var(--mono); font-size: .74rem; color: var(--text-muted); white-space: nowrap; overflow: hidden;
}
.urlbar svg { width: 12px; height: 12px; flex: none; color: var(--teal); }
.urlbar .u { overflow: hidden; text-overflow: ellipsis; }
.urlbar .u b { color: var(--text); font-weight: 500; }
.mirror-of { font-family: var(--mono); font-size: .7rem; color: var(--text-muted); white-space: nowrap; }
.mirror-of b { color: var(--accent); font-weight: 600; }
.stage { position: relative; aspect-ratio: 16 / 10; background: var(--bg-alt); overflow: hidden; }
.stage img.frame {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top;
  transition: opacity .38s ease, transform .5s cubic-bezier(.3,.7,.2,1);
}
.stage img.frame.is-hidden { opacity: 0; }
.stage .loading { position: absolute; inset: 0; display: grid; place-items: center; color: var(--text-muted); font-size: .9rem; background: var(--bg-alt); transition: opacity .3s; }
.stage .loading.is-gone { opacity: 0; pointer-events: none; }
.target {
  position: absolute; border-radius: 6px; pointer-events: none;
  box-shadow: 0 0 0 2px var(--warm), 0 0 0 6px rgba(196,113,59,.25);
  opacity: 0; transition: opacity .25s ease, left .5s cubic-bezier(.3,.7,.2,1), top .5s cubic-bezier(.3,.7,.2,1), width .5s, height .5s;
}
.target.is-on { opacity: 1; }
.cursor {
  position: absolute; left: 50%; top: 50%; width: 26px; height: 26px; margin: -3px 0 0 -5px; pointer-events: none; z-index: 3;
  transition: left .7s cubic-bezier(.45,.05,.2,1), top .7s cubic-bezier(.45,.05,.2,1), opacity .3s;
  filter: drop-shadow(0 3px 6px rgba(0,0,0,.3));
}
.ripple { position: absolute; width: 56px; height: 56px; margin: -28px 0 0 -28px; border-radius: 50%; pointer-events: none; z-index: 2; border: 3px solid var(--warm); opacity: 0; }
.ripple.is-go { animation: ripple .6s ease-out; }
@keyframes ripple { from { opacity: .95; transform: scale(.25); } to { opacity: 0; transform: scale(1.5); } }
.bubble {
  position: absolute; z-index: 4; max-width: 70%;
  padding: 8px 12px; border-radius: 10px;
  background: var(--code-bg); color: #fff; font-family: var(--mono); font-size: .8rem; line-height: 1.4;
  box-shadow: var(--shadow-lg);
  opacity: 0; transform: translateY(6px); transition: opacity .2s, transform .2s;
  white-space: pre-wrap; word-break: break-word;
}
.bubble.is-on { opacity: 1; transform: none; }
.bubble .tag { color: #9FC1F2; margin-right: 6px; }
.bubble .caret { display: inline-block; width: 7px; height: 14px; background: #9FC1F2; vertical-align: -2px; margin-left: 1px; animation: caret 1s steps(2) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.answer {
  position: absolute; z-index: 5; left: 50%; bottom: 6%; transform: translate(-50%, 16px);
  width: min(86%, 640px); padding: 16px 18px; border-radius: 14px;
  background: rgba(255,255,255,.97); color: var(--text); border: 1px solid var(--border); border-left: 4px solid var(--accent);
  box-shadow: var(--shadow-xl);
  opacity: 0; transition: opacity .35s, transform .45s cubic-bezier(.2,.8,.2,1);
  font-size: .9rem; line-height: 1.55; max-height: 60%; overflow: auto;
}
.answer.is-on { opacity: 1; transform: translate(-50%, 0); }
.answer .h { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: .7rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.answer-text { white-space: pre-line; }

.controls { display: flex; align-items: center; gap: 10px; }
.ctl {
  width: 38px; height: 38px; border-radius: 10px; flex: none;
  display: grid; place-items: center; cursor: pointer;
  background: var(--surface); border: 1px solid var(--border); color: var(--text-soft);
  transition: border-color .2s, color .2s, background .2s;
}
.ctl:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.ctl svg { width: 15px; height: 15px; }
.ctl.play .i-play { display: none; }
.player.is-paused .ctl.play .i-play { display: block; }
.player.is-paused .ctl.play .i-pause { display: none; }
.segs { flex: 1; display: flex; gap: 3px; align-items: center; height: 38px; min-width: 0; }
.seg { flex: 1; height: 6px; border-radius: 3px; background: var(--border-soft); cursor: pointer; position: relative; overflow: hidden; border: 0; padding: 0; }
.seg::after { content: ""; position: absolute; inset: 0; width: var(--p, 0%); background: var(--accent); border-radius: 3px; }
.seg.done::after { width: 100%; }
.seg:hover { background: var(--border); }
.speed { font-family: var(--mono); font-size: .76rem; width: auto; padding: 0 10px; }

.player-side { display: flex; flex-direction: column; min-height: 0; border-left: 1px solid var(--border); background: var(--bg); }
.side-head { padding: 18px 20px 14px; border-bottom: 1px solid var(--border-soft); position: relative; }
.side-head .site { font-family: var(--serif); font-size: 1.75rem; line-height: 1.1; color: var(--text); padding-right: 40px; }
.side-head .meta { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 4px 12px; font-family: var(--mono); font-size: .72rem; color: var(--text-muted); }
.side-head .meta b { color: var(--accent); font-weight: 600; }
.close {
  position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--border); color: var(--text-soft); cursor: pointer; display: grid; place-items: center;
}
.close svg { width: 13px; height: 13px; }
.close:hover { border-color: var(--accent); color: var(--accent); }
.task { padding: 14px 20px 16px; border-bottom: 1px solid var(--border-soft); }
.task .h, .side-steps .h { font-family: var(--mono); font-size: .7rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.task p { margin: 0; font-size: .9rem; line-height: 1.55; color: var(--text); }
.side-steps { flex: 1; min-height: 0; overflow-y: auto; padding: 14px 12px 14px 20px; overscroll-behavior: contain; }
.side-steps ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; counter-reset: s; }
.side-steps li {
  counter-increment: s; display: grid; grid-template-columns: 26px 1fr; gap: 8px; align-items: start;
  padding: 7px 8px; border-radius: 9px; font-size: .84rem; line-height: 1.4; color: var(--text-muted); cursor: pointer;
  transition: background .2s, color .2s;
}
.side-steps li::before { content: counter(s, decimal-leading-zero); font-family: var(--mono); font-size: .7rem; padding-top: 2px; color: #A3A8B4; }
.side-steps li:hover { background: var(--bg-alt); color: var(--text-soft); }
.side-steps li.is-past { color: var(--text-soft); }
.side-steps li.is-now { background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; }
.side-steps li.is-now::before { color: var(--accent); }
.side-steps li .cap { display: block; min-width: 0; }
.side-steps li .act { display: block; font-family: var(--mono); font-size: .7rem; font-weight: 400; color: #9AA0AD; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-foot { padding: 12px 20px 16px; border-top: 1px solid var(--border-soft); display: flex; align-items: center; gap: 10px; font-size: .78rem; color: var(--text-muted); }
.side-foot .grow { flex: 1; }
.side-foot button { background: var(--surface); border: 1px solid var(--border); color: var(--text-soft); border-radius: 8px; padding: 6px 10px; font-size: .78rem; font-weight: 600; cursor: pointer; }
.side-foot button:hover { border-color: var(--accent); color: var(--accent); }

/* ---------------- RESPONSIVE ---------------- */
@media (max-width: 1080px) {
  .player-box { grid-template-columns: 1fr; overflow-y: auto; }
  .player-side { border-left: 0; border-top: 1px solid var(--border); }
  .side-steps { max-height: 260px; }
  .suite-grid, .results-grid, .community-grid, .qs-grid { grid-template-columns: minmax(0, 1fr); }
  .nav-links { gap: 18px; }
}
@media (max-width: 900px) {
  :root { --tile-w: 196px; --tile-h: 122px; --tile-gap: 10px; }
  .nav-links { display: none; position: absolute; top: 100%; left: 12px; right: 12px; flex-direction: column; align-items: stretch; gap: 4px;
    padding: 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-lg); }
  .nav-links a:not(.nav-cta) { padding: 8px 10px; }
  .nav-ctas { margin: 6px 0 0; }
  .nav.is-open .nav-links { display: flex; }
  .nav-toggle { display: block; }
  .why-grid, .steps, .callouts { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: repeat(2, auto); row-gap: 18px; }
  .hero-stats div:nth-child(3) { border-left: 0; }
  .split { grid-template-columns: 1fr; justify-items: center; }
  .mini-stats { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 76px 0; }
  .thesis { flex-direction: column; gap: 8px; }
}
@media (max-width: 760px) {
  .hero-shade {
    background:
      radial-gradient(ellipse 90% 62% at 50% 48%, rgba(246,245,240,.97) 0%, rgba(246,245,240,.9) 60%, rgba(246,245,240,.66) 100%),
      linear-gradient(180deg, rgba(246,245,240,.7) 0%, rgba(246,245,240,0) 20%, rgba(246,245,240,0) 80%, rgba(246,245,240,.92) 100%);
  }
  .eyebrow { font-size: .68rem; letter-spacing: .1em; padding: 6px 14px; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  :root { --tile-w: 164px; --tile-h: 102px; --tile-gap: 8px; }
  .hero-content { padding: 52px 12px 108px; }
  .hero .lede { font-size: 1rem; }
  .hero-stats div { padding: 0 16px; }
  .hero-stats b { font-size: 2rem; }
  .hero-hint { font-size: 12px; bottom: 18px; }
  .hero-hint .desk { display: none; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .card-body { padding: 10px; }
  .chips { flex-wrap: nowrap; justify-content: flex-start; align-self: stretch; overflow-x: auto; margin: 0 -16px; padding: 2px 16px 6px; scrollbar-width: none; }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex: none; }
  .player { padding: 0; }
  .player-box { max-height: 100vh; max-height: 100dvh; border-radius: 0; height: 100%; }
  .player-main { padding: 10px; }
  .mirror-of { display: none; }
  .panel { padding: 20px; }
  .affils { columns: 1; }
}
@media (hover: none) {
  .tile-label { opacity: 1; transform: none; padding: 6px 10px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .track, .eyebrow .dot::after { animation: none !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------------- INTERACTIVE CHARTS (assets/charts.js) ---------------- */
.panel-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 16px; }
.panel-head h3 { margin: 0; }
.panel-ctl { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; }
.panel-head .panel-ctl { margin: 0; }
.panel-ctl:empty { display: none; }
.segctl {
  display: inline-flex; padding: 3px; gap: 2px; border-radius: 9px;
  background: var(--bg-alt); border: 1px solid var(--border-soft);
}
.segctl button {
  border: 0; background: transparent; cursor: pointer;
  font-size: .78rem; font-weight: 600; color: var(--text-muted);
  padding: 5px 11px; border-radius: 7px; transition: background .2s, color .2s, box-shadow .2s;
}
.segctl button:hover { color: var(--accent); }
.segctl button[aria-pressed="true"] { background: var(--surface); color: var(--accent-ink); box-shadow: var(--shadow-sm); }
.chart-cap { margin: 10px 0 6px; font-size: .8rem; }
.chart-cap:empty { display: none; }
.chart-sub { margin: 14px 0 4px; font-family: var(--mono); font-size: .68rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); }
.chart-sub span { letter-spacing: .04em; text-transform: none; font-weight: 400; margin-left: 6px; color: #9AA0AD; }

.bchart { position: relative; margin-top: 8px; transition: height .5s cubic-bezier(.2,.8,.2,1); }
.brow {
  position: absolute; left: 0; right: 0; top: 0; height: 30px;
  display: grid; grid-template-columns: minmax(120px, 34%) 1fr 64px; align-items: center; gap: 12px;
  font-size: .86rem; border-radius: 7px; padding: 0 4px; margin: 0 -4px;
  transition: transform .55s cubic-bezier(.2,.8,.2,1), opacity .3s ease, background .15s;
  cursor: default; outline-offset: 0;
}
.brow:hover, .brow:focus-visible { background: var(--accent-soft); }
.brow.is-out { opacity: 0; pointer-events: none; }
.blabel { color: var(--text-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.btrack { height: 12px; border-radius: 6px; background: var(--bg-alt); overflow: hidden; }
.bfill { display: block; height: 100%; width: 0; border-radius: 6px; background: #A9BCDB; transition: width .8s cubic-bezier(.2,.8,.2,1); }
.bval { font-family: var(--mono); font-size: .78rem; text-align: right; color: var(--text-soft); white-space: nowrap; }
.brow.alt .bfill { background: var(--teal); }
.brow.ref .bfill { background: #7D9BC9; }
.brow.ours .blabel { color: var(--accent-ink); font-weight: 700; }
.brow.ours .bfill { background: var(--accent); }
.brow.ours .bval { color: var(--accent-ink); font-weight: 700; }
#ch-coverage .bc-a .bfill, #ch-latency .bfill { background: var(--accent); }
#ch-latency .brow.alt .bfill { background: var(--teal); }

.tip {
  position: fixed; left: 0; top: 0; z-index: 120; pointer-events: none;
  max-width: 280px; padding: 9px 12px; border-radius: 10px;
  background: var(--surface); color: var(--text); border: 1px solid var(--border); box-shadow: var(--shadow-lg);
  font-size: .8rem; line-height: 1.5;
  opacity: 0; transition: opacity .15s ease;
}
.tip.is-on { opacity: 1; }
.tip b { color: var(--accent-ink); }
.tip-dim { color: var(--text-muted); }

/* donut */
.donut-wrap { position: relative; width: 100%; max-width: 250px; }
.donut .arc { cursor: pointer; transition: stroke-width .2s, opacity .2s; }
.donut .arc.is-dim { opacity: .28; }
.donut .arc:focus { outline: none; }
.donut-center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; pointer-events: none; padding: 0 64px; }
.donut-center b { font-family: var(--serif); font-weight: 400; font-size: 1.75rem; line-height: 1.05; color: var(--text); }
.donut-center span { font-size: .72rem; line-height: 1.3; color: var(--text-muted); }
.legend li { padding: 3px 6px; margin: -3px -6px; border-radius: 6px; cursor: default; transition: background .15s; }
.legend li.is-hot { background: var(--accent-soft); }

/* slope */
.slope { width: 100%; height: auto; margin-top: 8px; overflow: visible; }
.slope .axis { stroke: var(--border); }
.slope .ax-label { font-family: var(--sans); font-size: 13px; fill: var(--text-muted); }
.slope .sl { cursor: pointer; outline: none; transition: opacity .2s; }
.slope .sl-line { stroke: var(--c); stroke-width: 3; stroke-linecap: round; transition: stroke-width .2s; }
.slope .sl-hit { stroke: transparent; stroke-width: 18; }
.slope .sl circle { fill: var(--c); }
.slope .sl-name { font-family: var(--sans); font-size: 13.5px; fill: var(--text-soft); }
.slope .num { font-family: var(--mono); font-size: 13.5px; fill: var(--text); }
.slope .gain { fill: var(--teal); }
.slope.has-hot .sl { opacity: .22; }
.slope.has-hot .sl.is-hot { opacity: 1; }
.slope .sl.is-hot .sl-line { stroke-width: 4.5; }

/* dumbbell */
.dlegend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 14px 0 4px; font-size: .8rem; color: var(--text-soft); }
.dlegend span { display: inline-flex; align-items: center; gap: 7px; }
.dlegend .dot { position: static; transform: none; margin: 0; }
.dlegend .dgain-h { margin-left: auto; font-family: var(--mono); font-size: .72rem; color: var(--teal); }
#ch-rl { margin-top: 6px; }
.dumb { display: grid; grid-template-columns: 150px 1fr 64px; align-items: center; gap: 14px; height: 40px; }
.dlabel { font-size: .88rem; color: var(--text-soft); }
.dtrack { position: relative; height: 24px; background: linear-gradient(90deg, var(--border-soft) 1px, transparent 1px) 0 0 / 20% 100%; border-right: 1px solid var(--border-soft); }
.dtrack::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--border-soft); }
.dspan { position: absolute; top: 50%; height: 4px; margin-top: -2px; border-radius: 2px; background: #C9CFDA; transition: left .6s cubic-bezier(.2,.8,.2,1), width .6s cubic-bezier(.2,.8,.2,1); }
.dot { position: absolute; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; display: inline-block; cursor: pointer;
  transition: left .6s cubic-bezier(.2,.8,.2,1), transform .15s; outline: none; }
.dot:hover, .dot:focus-visible { transform: scale(1.3); }
.dot.sft { background: #A3A8B4; border-radius: 3px; }
.dot.owr { background: var(--warm); }
.dot.wh { background: var(--accent); transform: rotate(45deg) scale(.9); border-radius: 2px; }
.dot.wh:hover, .dot.wh:focus-visible { transform: rotate(45deg) scale(1.2); }
.dlegend .dot.wh { transform: rotate(45deg) scale(.8); }
.dgain { font-family: var(--mono); font-size: .82rem; font-weight: 600; color: var(--teal); text-align: right; }
.daxis { display: grid; grid-template-columns: 150px 1fr 64px; gap: 14px; margin-top: 4px; }
.daxis .ticks { display: flex; justify-content: space-between; font-family: var(--mono); font-size: .7rem; color: var(--text-muted); margin: 0 -4px; }
.results-grid .panel.wide { grid-column: 1 / -1; }

/* comparison table crosshair */
.cmp tbody tr:not(.group):hover td { background: #FBFAF6; }
.cmp tr.ours:hover td { background: #DCE6F4; }
.cmp td.is-col, .cmp th.is-col { box-shadow: inset 0 0 0 9999px rgba(27,75,143,.05); }

/* method figure zoom */
.method-figure img { cursor: zoom-in; }
.zoom { position: fixed; inset: 0; z-index: 110; display: grid; place-items: center; padding: 24px; background: rgba(12,18,34,.55);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; visibility: hidden; transition: opacity .25s, visibility 0s linear .25s; overflow: auto; }
.zoom.is-open { opacity: 1; visibility: visible; transition: opacity .25s; }
.zoom-inner { position: relative; width: min(1700px, 100%); background: var(--surface); border-radius: 16px; padding: 18px; box-shadow: var(--shadow-xl); }
.zoom-inner img { width: 100%; height: auto; cursor: zoom-out; }
.zoom .close { top: -14px; right: -14px; }

@media (max-width: 600px) {
  .brow { grid-template-columns: minmax(110px, 46%) 1fr 50px; gap: 8px; font-size: .8rem; }
  .dumb, .daxis { grid-template-columns: 92px 1fr 44px; gap: 8px; }
  .dlabel { font-size: .78rem; }
  .dlegend .dgain-h { margin-left: 0; }
  .segctl button { padding: 5px 8px; font-size: .74rem; }
  .zoom { padding: 8px; }
  .zoom .close { top: 6px; right: 6px; }
}
.results-grid, .suite-grid { align-items: start; }
.daxis .ticks i { font-style: normal; }
