/* =========================================================
   rho (Robotics Harness Optimization) FINAL
   Synthesis base: Variant C story-driven scroll.
   Grafts: Variant B task explorer + comparison bars,
           Variant A lazy-load discipline.
   No build step, no CDN. System fonts only.
   ========================================================= */

:root {
  --bg:        #08090d;
  --bg-2:      #0d0f16;
  --surface:   #12141d;
  --surface-2: #181b26;
  --line:      #262a37;
  --text:      #f3f5f8;
  --muted:     #9aa2b1;
  --faint:     #868d9d;

  --green:     #5cf2a0;   /* the new way: frozen code */
  --green-2:   #38e0c0;
  --cyan:      #38bdf8;
  --coral:     #ff6b5c;   /* past research: LLM in the loop */
  --amber:     #ffcf5c;

  --grad: linear-gradient(110deg, var(--green) 0%, var(--green-2) 45%, var(--cyan) 100%);

  --maxw: 1080px;
  --pad: clamp(20px, 5vw, 64px);
  --radius: 16px;

  --font: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: var(--green-2); text-decoration: none; }
a:hover { text-decoration: underline; }

img, video { max-width: 100%; display: block; }

[data-count] { font-variant-numeric: tabular-nums; }

sup { font-size: 0.62em; }

.rho {
  font-style: normal;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 800;
}

/* ========== scroll progress + nav ========== */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px;
  background: transparent; z-index: 60;
}
.scroll-progress span {
  display: block; height: 100%; width: 0%;
  background: var(--grad);
  box-shadow: 0 0 12px rgba(92, 242, 160, 0.5);
}

.topnav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  padding: 14px var(--pad);
  background: rgba(8, 9, 13, 0);
  border-bottom: 1px solid transparent;
  transition: background .35s ease, border-color .35s ease, backdrop-filter .35s ease;
}
.topnav.scrolled {
  background: rgba(8, 9, 13, 0.82);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom-color: var(--line);
}
.brand { display: flex; align-items: baseline; gap: 10px; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand-glyph { font-size: 1.5rem; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand-word { font-size: 0.82rem; letter-spacing: 0.02em; color: var(--muted); font-weight: 600; }
.topnav-links { display: flex; align-items: center; gap: clamp(10px, 2vw, 26px); }
.topnav-links a { color: var(--muted); font-size: 0.86rem; font-weight: 600; }
.topnav-links a:hover { color: var(--text); text-decoration: none; }
.topnav-cta {
  padding: 7px 16px; border-radius: 999px;
  background: var(--green); color: #04140c !important; font-weight: 700;
}
.topnav-cta:hover { background: #7af7b4; }

@media (max-width: 720px) {
  .brand-word { display: none; }
  .topnav-links a:not(.topnav-cta) { display: none; }
}

/* ========== HERO ========== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-start;
  padding: 60px var(--pad) 48px;
  overflow: hidden;
}
.hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
  filter: saturate(108%) contrast(104%);
}
.hero-scrim {
  position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(120% 90% at 18% 30%, rgba(8,9,13,0.55) 0%, rgba(8,9,13,0.86) 55%, rgba(8,9,13,0.97) 100%),
    linear-gradient(180deg, rgba(8,9,13,0.45) 0%, rgba(8,9,13,0.2) 40%, rgba(8,9,13,0.98) 100%);
}
.hero-inner {
  position: relative; z-index: 2;
  max-width: 880px;
}

.badge-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 22px; }
.pill {
  font-size: 0.74rem; letter-spacing: 0.04em; text-transform: uppercase;
  font-weight: 700; padding: 6px 13px; border-radius: 999px;
}
.pill-soft { background: rgba(255,255,255,0.07); color: var(--muted); border: 1px solid var(--line); }

.hero-title {
  font-size: clamp(5rem, 22vw, 13rem);
  line-height: 1.0; margin: 0 0 18px;
  padding-bottom: 0.2em;   /* clear the rho descender so it never collides with .hero-sub */
  letter-spacing: -0.02em;
}
.hero-title .rho { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub {
  font-size: clamp(1.5rem, 4.4vw, 2.7rem);
  font-weight: 800; line-height: 1.08; margin: 0 0 22px;
  letter-spacing: -0.015em; max-width: 20ch;
  text-wrap: balance;
}
.hero-tldr {
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  color: #d7dce6; max-width: 52ch; margin: 0 0 34px; font-weight: 500;
}

.hero-leads { display: flex; flex-wrap: wrap; gap: clamp(20px, 5vw, 56px); margin-bottom: 36px; }
.lead { display: flex; flex-direction: column; gap: 4px; max-width: 260px; }
.lead-num {
  font-size: clamp(1.7rem, 4.6vw, 2.8rem); font-weight: 800;
  line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums;
}
.lead-accent .lead-num { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead-label { font-size: 0.92rem; color: var(--muted); line-height: 1.35; }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 36px; }
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 12px 20px; border-radius: 999px;
  background: var(--surface-2); color: var(--text);
  border: 1px solid var(--line); font-weight: 600; font-size: 0.96rem;
  transition: transform .15s ease, border-color .15s ease, background .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); border-color: var(--green); }
.btn .ico { font-size: 0.8em; opacity: 0.85; }
.btn-primary { background: var(--green); color: #04140c; border-color: var(--green); font-weight: 700; }
.btn-primary:hover { background: #7af7b4; }
.btn[data-soon], .btn[aria-disabled="true"] { opacity: 0.6; cursor: default; }
.btn[data-soon]:hover, .btn[aria-disabled="true"]:hover { transform: none; border-color: var(--line); }

.authors { font-size: 1rem; color: #dfe3ec; margin: 0 0 4px; line-height: 1.7; }
.authors a { color: var(--text); border-bottom: 1px solid var(--green-2); }
.authors a:hover { color: var(--green); text-decoration: none; }
.affil { font-size: 0.9rem; color: var(--muted); margin: 0; }

.scroll-cue {
  position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%);
  z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 4px;
  color: var(--muted); font-size: 0.74rem; letter-spacing: 0.18em; text-transform: uppercase;
}
.scroll-cue:hover { color: var(--text); text-decoration: none; }
.scroll-cue .chev { font-size: 1.1rem; animation: bob 1.8s ease-in-out infinite; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

/* ========== ACT scaffolding ========== */
.act { position: relative; padding: clamp(80px, 12vh, 150px) 0; }
.act-problem { background: linear-gradient(180deg, var(--bg) 0%, #100b0e 100%); }
.act-idea    { background: linear-gradient(180deg, #100b0e 0%, var(--bg-2) 100%); }
.act-results { background: var(--bg-2); }
.act-try     { background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 100%); }

.act-rail {
  position: absolute; top: clamp(80px, 12vh, 150px); left: clamp(12px, 2vw, 28px);
  display: flex; flex-direction: column; gap: 6px;
}
.act-no { font-size: 0.8rem; font-weight: 800; color: var(--faint); font-variant-numeric: tabular-nums; }
.act-tag {
  font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted); writing-mode: vertical-rl; transform: rotate(180deg);
  margin-top: 6px;
}
@media (max-width: 900px) { .act-rail { display: none; } }

.act-body { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }

.kicker {
  font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase;
  font-weight: 700; color: var(--green-2); margin: 0 0 14px;
}
.act-problem .kicker { color: var(--coral); }
.act-head {
  font-size: clamp(2rem, 5.2vw, 3.6rem); font-weight: 800;
  line-height: 1.06; letter-spacing: -0.02em; margin: 0 0 24px; max-width: 20ch;
}
.act-head em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.act-problem .act-head em { background: none; color: var(--coral); }
.act-lede { font-size: clamp(1.05rem, 2vw, 1.3rem); color: #d4d9e3; max-width: 62ch; margin: 0 0 40px; }

/* big number block */
.bignum { margin: 48px 0; text-align: center; }
.bignum-val {
  display: block; font-size: clamp(1.7rem, 4.6vw, 2.8rem); font-weight: 800;
  line-height: 1; letter-spacing: -0.03em; color: var(--coral);
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 60px rgba(255, 107, 92, 0.25);
}
.bignum figcaption { max-width: 44ch; margin: 18px auto 0; color: var(--muted); font-size: 1rem; }

/* contrast cards */
.contrast-grid {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: stretch;
  gap: 20px; margin-top: 40px;
}
.contrast-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.contrast-card h3 { margin: 0 0 14px; font-size: 1.1rem; }
.contrast-card ul { margin: 0; padding-left: 18px; color: var(--muted); }
.contrast-card li { margin-bottom: 8px; }
.contrast-card.old { border-top: 3px solid var(--coral); }
.contrast-card.new { border-top: 3px solid var(--green); }
.contrast-card.new li { color: #cdd3de; }
.contrast-arrow { display: flex; align-items: center; font-size: 2rem; color: var(--faint); }
@media (max-width: 760px) {
  .contrast-grid { grid-template-columns: 1fr; }
  .contrast-arrow { transform: rotate(90deg); justify-content: center; }
}

/* figures */
.figure-wide { margin: 44px 0; }
.figure-wide img {
  width: 100%; border-radius: var(--radius);
  background: #fff; border: 1px solid var(--line);
}
figure { margin: 0; }
figcaption { color: var(--muted); font-size: 0.92rem; margin-top: 12px; line-height: 1.5; }
figcaption strong { color: var(--text); }

/* steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 36px 0; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.step-no {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--grad); color: #04140c; font-weight: 800; margin-bottom: 12px;
}
.step h3 { margin: 0 0 6px; font-size: 1.05rem; }
.step p { margin: 0; color: var(--muted); font-size: 0.92rem; }
@media (max-width: 820px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .steps { grid-template-columns: 1fr; } }

/* pull quote */
.pull { margin: 48px 0; padding: 30px 34px; border-left: 4px solid var(--green); background: var(--surface); border-radius: 0 var(--radius) var(--radius) 0; }
.pull p { margin: 0; font-size: clamp(1.1rem, 2.2vw, 1.4rem); color: #e3e7ef; }
.pull strong { color: var(--green); }

/* why-loop stat */
.why-loop { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; margin: 50px 0 0; }
.why-stat {
  font-size: clamp(1.6rem, 4.6vw, 2.8rem); font-weight: 800; letter-spacing: -0.02em;
  display: flex; align-items: center; gap: 16px; margin: 0; font-variant-numeric: tabular-nums;
}
.why-stat span:first-child { color: var(--faint); }
.why-stat span:last-child { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.why-arrow { color: var(--faint); -webkit-text-fill-color: var(--faint); }
.why-text { max-width: 42ch; color: var(--muted); margin: 0; }
.why-text em { color: var(--text); font-style: normal; font-weight: 600; }

/* ========== RESULTS ========== */
.sub-head { font-size: clamp(1.3rem, 3vw, 1.9rem); font-weight: 800; margin: 0 0 8px; letter-spacing: -0.01em; }
.sub-note { color: var(--muted); margin: 0 0 22px; max-width: 64ch; }

.rollouts { margin-bottom: 56px; }
.explorer { display: grid; grid-template-columns: 1.6fr 1fr; gap: 20px; align-items: start; }
.explorer-stage { background: #000; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.explorer-stage video { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #000; }
.explorer-meta { padding: 16px 18px 18px; background: var(--surface); }
.em-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.em-top h4 { margin: 0; font-size: 1.15rem; font-weight: 800; }
.reward-badge {
  font-family: var(--mono); font-size: 0.72rem; font-weight: 700;
  color: var(--cyan); background: var(--surface-2);
  border: 1px solid var(--line); padding: 4px 9px; border-radius: 8px; white-space: nowrap;
}
.reward-badge.fail { color: var(--cyan); background: var(--surface-2); border-color: var(--line); }
.explorer-caption { padding: 0; margin: 0 0 12px; color: var(--muted); font-size: 0.94rem; }
.vs-line { font-size: 0.84rem; font-weight: 700; padding: 9px 12px; border-radius: 9px; background: var(--surface-2); border: 1px solid var(--line); }
.vs-line.win,
.vs-line.lose,
.vs-line.hard { color: var(--cyan); border-color: var(--line); }
.nut-toggle { display: flex; gap: 6px; margin-top: 12px; background: var(--bg-2); padding: 5px; border-radius: 10px; border: 1px solid var(--line); }
.seg { flex: 1; border: none; background: transparent; color: var(--muted); font-weight: 700; font-size: 0.78rem; padding: 8px; border-radius: 7px; cursor: pointer; font-family: var(--font); }
.seg.is-active { background: var(--surface-2); color: var(--text); }

.explorer-tabs { display: flex; flex-direction: column; gap: 8px; max-height: 520px; overflow-y: auto; }
.tab {
  display: flex; align-items: center; gap: 12px;
  text-align: left; width: 100%;
  padding: 13px 16px; border-radius: 12px; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line);
  color: var(--text); font-size: 0.98rem; font-weight: 600; font-family: var(--font);
  transition: border-color .15s ease, background .15s ease, transform .12s ease;
}
.tab:hover { border-color: var(--green-2); transform: translateX(2px); }
.tab.is-active { border-color: var(--green); background: var(--surface-2); box-shadow: inset 3px 0 0 var(--green); }
.tab-dot { width: 9px; height: 9px; border-radius: 50%; flex: 0 0 auto; background: var(--cyan); }
.tab-dot.lose,
.tab-dot.hard { background: var(--cyan); }
.tab-name { flex: 1; }
@media (max-width: 820px) {
  .explorer { grid-template-columns: 1fr; }
  .explorer-tabs { flex-direction: row; flex-wrap: wrap; max-height: none; }
  .tab { width: auto; flex: 1 1 140px; }
}

/* stat band */
.stat-band { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 12px 0 56px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; border-top: 3px solid var(--green); }
.stat-num { display: block; font-size: clamp(1.2rem, 3vw, 1.8rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1; margin-bottom: 10px; font-variant-numeric: tabular-nums; }
.stat-num .vs { font-size: 0.5em; color: var(--faint); font-weight: 600; }
.stat-cap { color: var(--muted); font-size: 0.92rem; }
@media (max-width: 820px) { .stat-band { grid-template-columns: 1fr; } }

.result-block { margin: 56px 0; }
.result-split { display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; align-items: center; }
.result-fig img { width: 100%; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.result-nums { display: flex; flex-direction: column; gap: 22px; }
.rn-big { display: block; font-size: clamp(2rem, 5.2vw, 3.2rem); font-weight: 800; line-height: 0.9; letter-spacing: -0.03em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
.rn-cap { display: block; color: var(--muted); font-size: 0.9rem; margin-top: 4px; }
.rn-row { display: flex; gap: 22px; flex-wrap: wrap; }
.rn-mid { display: block; font-size: 1.7rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.rn-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.tagnum { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; font-size: 0.9rem; color: var(--muted); }
.tagnum strong { color: var(--green); }
@media (max-width: 820px) { .result-split { grid-template-columns: 1fr; } }

.vla-collapse {
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid rgba(255, 107, 92, 0.26);
  border-top: 3px solid var(--coral);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 107, 92, 0.10) 0%, rgba(92, 242, 160, 0.06) 52%, rgba(56, 189, 248, 0.06) 100%),
    var(--surface);
}
.vla-collapse .sub-head {
  max-width: 34ch;
  color: var(--text);
}
.perturb-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.85fr);
  gap: 28px;
  align-items: start;
}
.perturb-video video {
  width: 100%;
  aspect-ratio: 38 / 15;
  object-fit: contain;
  background: #000;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.perturb-copy {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.perturb-scoreboard {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.score-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 14px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(8, 9, 13, 0.34);
}
.score-name {
  color: var(--muted);
  font-weight: 700;
}
.score-val {
  grid-row: span 2;
  align-self: center;
  color: var(--text);
  font-size: clamp(1.45rem, 3.3vw, 2.15rem);
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.score-note {
  color: var(--faint);
  font-size: 0.82rem;
}
.score-rho {
  border-color: rgba(92, 242, 160, 0.42);
  background: rgba(92, 242, 160, 0.10);
}
.score-rho .score-val { color: var(--green); }
.score-zero {
  border-color: rgba(255, 107, 92, 0.36);
}
.score-zero .score-val { color: var(--coral); }
.scope-note,
.credit-line {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}
.scope-note {
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.scope-note strong:first-child { color: var(--amber); }
.credit-line { color: var(--faint); }
@media (max-width: 860px) {
  .vla-collapse .sub-head { max-width: none; }
  .perturb-grid { grid-template-columns: 1fr; }
}

.figure-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.figure-pair img { width: 100%; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
@media (max-width: 760px) { .figure-pair { grid-template-columns: 1fr; } }

/* o3de */
.o3de-stats { display: flex; align-items: center; gap: 36px; flex-wrap: wrap; margin: 8px 0 26px; }
.o3de-arrowstat { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; font-size: clamp(1.45rem, 4vw, 2.3rem); font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.o3de-arrowstat span:first-child { color: var(--coral); }
.o3de-arrowstat span:nth-child(3) { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.o3de-lab { font-size: 0.9rem !important; font-weight: 600; color: var(--muted) !important; -webkit-text-fill-color: var(--muted); align-self: center; }
.o3de-mini { display: flex; gap: 22px; flex-wrap: wrap; color: var(--muted); }
.o3de-mini strong { color: var(--green); font-size: 1.2rem; }
.o3de-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.o3de-grid img { width: 100%; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
@media (max-width: 760px) { .o3de-grid { grid-template-columns: 1fr; } }

/* structural-prior bars (grafted from Variant B, restyled) */
.bars { display: flex; flex-direction: column; gap: 14px; }
.bar-row { display: grid; grid-template-columns: 230px 1fr; gap: 16px; align-items: center; }
.bar-label { font-size: 0.9rem; color: var(--muted); font-weight: 600; text-align: right; }
.bar-track { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; height: 36px; }
.bar-fill {
  height: 100%; width: 0%;
  background: #3a455c;
  display: flex; align-items: center; justify-content: flex-end; padding-right: 12px;
  border-radius: 9px;
  transition: width 1s cubic-bezier(.2,.7,.2,1);
}
.bar-fill span { font-weight: 800; font-size: 0.86rem; color: var(--ink, #e6ecf5); }
.bar-fill.win { background: var(--grad); }
.bar-fill.win span { color: #04140c; }
.bar-fill.dim { background: #2d3647; }
.bar-fill.dim span { color: var(--muted); }
@media (max-width: 620px) {
  .bar-row { grid-template-columns: 1fr; gap: 6px; }
  .bar-label { text-align: left; }
}

/* honesty */
.honesty { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 4vw, 40px); }
.honesty-split { display: grid; grid-template-columns: 1fr 1.2fr; gap: 28px; align-items: start; }
.honesty-vid video { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 12px; background: #000; border: 1px solid var(--line); }
.honesty-text p { margin: 0 0 16px; }
.caveat { color: var(--muted); font-size: 0.94rem; border-top: 1px solid var(--line); padding-top: 16px; }
.caveat strong { color: var(--amber); }
@media (max-width: 760px) { .honesty-split { grid-template-columns: 1fr; } }

/* ========== TRY IT ========== */
.try-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 12px 0 48px; }
.try-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; color: var(--text); display: flex; flex-direction: column; gap: 8px;
  transition: transform .15s ease, border-color .15s ease;
}
.try-card:hover { text-decoration: none; transform: translateY(-3px); border-color: var(--green); }
.try-ico { font-size: 1.4rem; color: var(--green); }
.try-card h3 { margin: 4px 0 0; font-size: 1.15rem; }
.try-card p { margin: 0; color: var(--muted); font-size: 0.94rem; flex: 1; }
.try-go { color: var(--green-2); font-weight: 600; font-size: 0.92rem; margin-top: 6px; }
.try-soon { opacity: 0.62; cursor: default; }
.try-soon:hover { transform: none; border-color: var(--line); }
@media (max-width: 820px) { .try-cards { grid-template-columns: 1fr; } }

/* Scope note */
.scope-line { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 4px 20px; max-width: 760px; }
.scope-line summary { cursor: pointer; padding: 16px 0; font-weight: 700; font-size: 1.02rem; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.scope-line summary::-webkit-details-marker { display: none; }
.scope-line summary::after { content: "+"; color: var(--green); font-weight: 800; font-size: 1.4rem; transition: transform .2s ease; }
.scope-line[open] summary::after { content: "\2212"; }
.scope-line p { margin: 0 0 18px; color: var(--muted); }

/* ========== BIBTEX ========== */
.bibtex-section { padding: clamp(60px, 9vh, 110px) 0; background: var(--bg); border-top: 1px solid var(--line); }
.citation-plain { color: var(--muted); max-width: 70ch; margin: 0 0 20px; }
.bib-wrap { position: relative; }
.copy-btn {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  background: var(--green); color: #04140c; border: none; border-radius: 8px;
  padding: 8px 16px; font-weight: 700; font-size: 0.86rem; cursor: pointer; font-family: var(--font);
  transition: background .15s ease;
}
.copy-btn:hover { background: #7af7b4; }
.copy-btn.copied { background: var(--cyan); }
.bib-wrap pre {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; overflow-x: auto; margin: 0;
}
.bib-wrap code { font-family: var(--mono); font-size: 0.86rem; color: #cdd3de; line-height: 1.6; white-space: pre; }

/* ========== FOOTER ========== */
.footer { padding: 56px 0 72px; background: var(--bg); border-top: 1px solid var(--line); text-align: center; }
.foot-brand { font-size: 1.2rem; font-weight: 800; margin: 0 0 4px; }
.foot-affil { color: var(--muted); margin: 0 0 16px; }
.foot-links { margin: 0 0 16px; color: var(--faint); display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.foot-links a { color: var(--muted); }
.foot-fine { color: var(--faint); font-size: 0.84rem; max-width: 60ch; margin: 0 auto; }

/* ========== scroll reveal ========== */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); will-change: opacity, transform; }
.reveal.in { opacity: 1; transform: none; }

/* ========== reduced motion ========== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .bar-fill { transition: none; }
  .scroll-cue .chev { animation: none; }
  .hero-video { display: none; }
  .hero { background: linear-gradient(160deg, #0d1a14 0%, var(--bg) 70%); }
}

html { scroll-padding-top: 72px; }  /* keep anchored sections clear of the fixed nav */
