/* ============================================================
   Engraphis -- design system
   ------------------------------------------------------------
   Direction: a lab logbook for machine memory. Warm ink and
   paper tones (not neon-on-black), one aged-amber accent for
   signal, one sealing-wax red used sparingly for emphasis.
   Type: Fraunces (display) + Source Serif 4 (reading) +
   IBM Plex Mono (data, labels, UI chrome). Ledger rows and
   hairline rules instead of icon-card grids.
   ============================================================ */

:root {
  --ink: #14120e;
  --ink-raised: #1c1811;
  --ink-panel: #201b14;
  --line: #3a3325;
  --line-soft: #29241a;
  --paper: #ece4d2;
  --paper-dim: #a89a7d;
  --paper-faint: #756a54;
  --ochre: #d9932f;
  --ochre-dim: #b97b23;
  --rust: #b1502f;
  --green: #7a9161;

  --radius: 3px;
  --max-width: 1160px;

  --font-display: "Fraunces", "Source Serif 4", Georgia, serif;
  --font-body: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--ink);
  background-image:
    radial-gradient(ellipse 900px 500px at 15% -10%, rgba(217, 147, 47, 0.07), transparent 60%),
    radial-gradient(ellipse 700px 500px at 100% 20%, rgba(177, 80, 47, 0.05), transparent 60%);
  color: var(--paper);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--paper);
  letter-spacing: -0.01em;
}

/* ---------- Mono utility text ---------- */

.mono {
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ochre);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.eyebrow::before {
  content: "";
  width: 14px;
  height: 1px;
  background: var(--ochre-dim);
  display: inline-block;
}

/* ---------- Header / Nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(20, 18, 14, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line-soft);
}

.nav {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 18px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--paper);
  flex-shrink: 0;
}

.nav-brand img { width: 24px; height: 24px; }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 30px;
  flex: 1;
  justify-content: flex-end;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
}

.nav-links a {
  color: var(--paper-dim);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--ochre);
  border-color: var(--ochre-dim);
}

.nav-social {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-right: 14px;
  border-right: 1px solid var(--line);
}

.nav-social a {
  color: var(--paper-dim);
  display: flex;
  transition: color 0.15s ease;
}

.nav-social a:hover { color: var(--ochre); }
.nav-social svg { width: 17px; height: 17px; }

.nav-cta { display: flex; align-items: center; gap: 12px; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  color: var(--paper);
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-family: var(--font-mono);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.btn-primary { background: var(--ochre); color: var(--ink); border-color: var(--ochre); }
.btn-primary:hover { background: #e9a545; border-color: #e9a545; }

.btn-secondary { background: transparent; color: var(--paper); border-color: var(--line); }
.btn-secondary:hover { border-color: var(--ochre); color: var(--ochre); }

.btn-ghost { color: var(--paper-dim); border-color: transparent; }
.btn-ghost:hover { color: var(--ochre); }

.btn-sm { padding: 8px 14px; font-size: 0.74rem; }
.btn-block { width: 100%; }

/* ---------- Ledger code / terminal blocks ---------- */

.code-block {
  background: var(--ink-raised);
  border: 1px solid var(--line);
  border-left: 2px solid var(--ochre-dim);
  padding: 16px 20px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--paper);
  text-align: left;
  overflow-x: auto;
  line-height: 1.8;
  white-space: pre-wrap;
}

.code-block .comment { color: var(--paper-faint); }
.code-block .prompt { color: var(--ochre); }

code {
  font-family: var(--font-mono);
  background: var(--ink-raised);
  border: 1px solid var(--line-soft);
  padding: 2px 6px;
  border-radius: 2px;
  font-size: 0.87em;
  color: var(--paper);
}

pre code { border: none; padding: 0; background: none; }

/* ---------- Hero ---------- */

.hero {
  padding: 64px 0 40px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.3rem, 4.4vw, 3.5rem);
  line-height: 1.08;
  margin: 20px 0 22px;
}

.hero h1 em {
  font-style: italic;
  color: var(--ochre);
}

.hero-sub {
  font-family: var(--font-body);
  color: var(--paper-dim);
  font-size: 1.12rem;
  line-height: 1.6;
  margin: 0 0 30px;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.hero-install { max-width: 480px; }

/* ---------- Decay curve signature ---------- */

.decay-chart {
  width: 100%;
  height: auto;
}

.decay-chart .axis { stroke: var(--line); stroke-width: 1; }
.decay-chart .curve {
  fill: none;
  stroke: var(--ochre);
  stroke-width: 2;
  stroke-linecap: round;
}
.decay-chart .curve-ghost {
  fill: none;
  stroke: var(--paper-faint);
  stroke-width: 1;
  stroke-dasharray: 3 4;
}
.decay-chart .event-dot { fill: var(--rust); }
.decay-chart .label {
  font-family: var(--font-mono);
  font-size: 10px;
  fill: var(--paper-faint);
  letter-spacing: 0.04em;
}
.decay-chart .label-accent { fill: var(--ochre); }
.decay-chart .tick { stroke: var(--line); stroke-width: 1; }

.hero-shot-frame {
  margin-top: 56px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink-panel);
}

.hero-shot-titlebar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--paper-faint);
}

.hero-shot-titlebar .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line); }

.hero-shot-frame img { width: 100%; display: block; }

/* ---------- Section scaffolding ---------- */

.section { padding: 76px 0; border-top: 1px solid var(--line-soft); }
.section-tight { padding-top: 0; }

.section-head { max-width: 620px; margin: 0 0 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.section-head h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin: 14px 0 12px;
}

.section-head p { color: var(--paper-dim); font-size: 1.02rem; margin: 0; }

/* ---------- Ledger list (replaces icon-card grids) ---------- */

.ledger {
  border-top: 1px solid var(--line);
}

.ledger-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line-soft);
}

.ledger-row .term {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: var(--ochre);
  letter-spacing: 0.02em;
}

.ledger-row .desc { color: var(--paper-dim); font-size: 0.97rem; }
.ledger-row .desc strong { color: var(--paper); font-weight: 600; }

/* ---------- Split compare (Problem / Way) ---------- */

.split-compare {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  gap: 44px;
}

.split-compare .rule { background: var(--line); }

.split-compare .col p {
  color: var(--paper-dim);
  font-size: 1rem;
  line-height: 1.7;
}

.split-compare .col h3 {
  font-size: 1.3rem;
  margin: 14px 0 14px;
}

/* ---------- Timeline strip (how it works: a real sequence) ---------- */

.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--ochre-dim);
  padding-top: 26px;
  position: relative;
}

.timeline-step {
  padding-right: 24px;
  border-right: 1px solid var(--line-soft);
}

.timeline-step:last-child { border-right: none; }

.timeline-step .num {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--rust);
  margin-bottom: 10px;
  display: block;
}

.timeline-step h3 { font-size: 1.05rem; margin: 0 0 8px; }
.timeline-step p { color: var(--paper-dim); font-size: 0.92rem; margin: 0; }

/* ---------- Tables ---------- */

.table-wrap { overflow-x: auto; border: 1px solid var(--line); }

table { width: 100%; border-collapse: collapse; font-size: 0.92rem; min-width: 560px; }

th, td { text-align: left; padding: 13px 18px; border-bottom: 1px solid var(--line-soft); }

thead th {
  background: var(--ink-raised);
  color: var(--paper-dim);
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

tbody tr:last-child td { border-bottom: none; }
td strong, td.win { color: var(--ochre); }

/* ---------- Pricing (flat index cards, not glowing SaaS cards) ---------- */

.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }

.price-card {
  background: var(--ink);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.price-card.featured { background: var(--ink-raised); }

.price-stamp {
  position: absolute;
  top: 24px;
  right: 24px;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  color: var(--rust);
  border: 1px solid var(--rust);
  padding: 3px 8px;
  transform: rotate(3deg);
}

.price-card .tier-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--paper-faint);
  margin-bottom: 10px;
}

.price-card h3 { font-size: 1.15rem; margin: 0 0 10px; }

.price-card .price {
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 600;
  margin: 4px 0 4px;
}

.price-card .price span { font-family: var(--font-mono); font-size: 0.85rem; color: var(--paper-dim); font-weight: 400; }

.price-card .price-note {
  font-family: var(--font-mono);
  color: var(--paper-faint);
  font-size: 0.76rem;
  margin-bottom: 22px;
}

.price-card .best-for {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--paper-dim);
  letter-spacing: 0.01em;
  margin: 16px 0 0;
}
.price-card .best-for b { color: var(--ochre); font-weight: 500; }

.price-features {
  list-style: none;
  padding: 0;
  margin: 0 0 26px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 11px;
  font-size: 0.9rem;
  color: var(--paper-dim);
}

.price-features li { display: flex; gap: 10px; align-items: flex-start; }
.price-features li::before { content: "\2014"; color: var(--ochre-dim); flex-shrink: 0; font-family: var(--font-mono); }

/* ---------- Quickstart panels (three genuinely parallel install paths) ---------- */

.quickstart-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }

.quickstart-item { background: var(--ink); padding: 26px 24px; }

.quickstart-item .term {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--paper-faint);
  margin-bottom: 8px;
}

.quickstart-item h3 { font-size: 1.05rem; margin: 0 0 12px; }

.quickstart-item .code-block { font-size: 0.76rem; padding: 14px; }

/* ---------- Notice ---------- */

.notice {
  border: 1px solid var(--line);
  border-left: 2px solid var(--rust);
  background: var(--ink-raised);
  padding: 16px 20px;
  font-size: 0.9rem;
  color: var(--paper-dim);
  margin: 24px 0;
}

.notice strong { color: var(--paper); }

/* ---------- CTA band ---------- */

.cta-band { border-top: 1px solid var(--line-soft); padding: 84px 0; text-align: center; }
.cta-band h2 { font-size: clamp(1.7rem, 4vw, 2.3rem); margin: 0 0 16px; }
.cta-band p { color: var(--paper-dim); margin: 0 0 32px; font-family: var(--font-mono); font-size: 0.9rem; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Footer ---------- */

.site-footer { border-top: 1px solid var(--line-soft); padding: 56px 0 32px; }

.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 40px; }

.footer-brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 600; margin-bottom: 12px; }
.footer-brand img { width: 20px; height: 20px; }

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--paper-faint);
  margin: 0 0 14px;
}

.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: var(--paper-dim); font-size: 0.92rem; }
.footer-col a:hover { color: var(--ochre); }

.footer-social { display: flex; gap: 14px; margin-top: 4px; }
.footer-social a { color: var(--paper-dim); display: flex; }
.footer-social a:hover { color: var(--ochre); }
.footer-social svg { width: 18px; height: 18px; }

.footer-bottom {
  border-top: 1px solid var(--line-soft);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--paper-faint);
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

/* ---------- Page header (non-home pages) ---------- */

.page-hero { padding: 60px 0 48px; border-bottom: 1px solid var(--line-soft); }

.page-hero h1 { font-size: clamp(2rem, 4vw, 2.6rem); margin: 16px 0 16px; max-width: 640px; }
.page-hero p { color: var(--paper-dim); font-size: 1.05rem; max-width: 600px; margin: 0; }

/* ---------- Prose (about/blog content) ---------- */

.prose { max-width: 680px; }

.prose h2 { font-family: var(--font-display); font-size: 1.5rem; margin: 46px 0 16px; color: var(--paper); }
.prose h3 { font-family: var(--font-display); font-size: 1.18rem; margin: 30px 0 12px; color: var(--paper); }
.prose p { margin: 0 0 18px; color: var(--paper-dim); }
.prose ul, .prose ol { color: var(--paper-dim); margin: 0 0 18px; padding-left: 22px; }
.prose li { margin-bottom: 9px; }
.prose a { color: var(--ochre); text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: var(--paper); }
.prose blockquote {
  border-left: 2px solid var(--ochre-dim);
  margin: 26px 0;
  padding: 2px 0 2px 20px;
  color: var(--paper-dim);
  font-family: var(--font-mono);
  font-size: 0.9rem;
}

/* ---------- Tags (replaces pill badges) ---------- */

.tag {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 8px;
  border: 1px solid var(--line);
  color: var(--paper-dim);
}

.tag-ochre { color: var(--ochre); border-color: var(--ochre-dim); }
.tag-rust { color: var(--rust); border-color: var(--rust); }

/* ---------- Blog ---------- */

.post-list { border-top: 1px solid var(--line); }

.post-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line-soft);
}

.post-item .post-meta { font-family: var(--font-mono); color: var(--paper-faint); font-size: 0.76rem; margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.04em; }
.post-item h3 { margin: 0 0 8px; font-size: 1.2rem; }
.post-item p { margin: 0; color: var(--paper-dim); font-size: 0.95rem; }

.post-header { padding: 56px 0 36px; border-bottom: 1px solid var(--line-soft); }
.post-header .post-meta { font-family: var(--font-mono); color: var(--paper-faint); font-size: 0.8rem; margin-bottom: 18px; text-transform: uppercase; letter-spacing: 0.04em; }
.post-header h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin: 0 0 12px; max-width: 720px; }

/* ---------- Contact ---------- */

.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }

.contact-card {
  background: var(--ink);
  padding: 30px 26px;
  transition: background 0.15s ease;
}

.contact-card:hover { background: var(--ink-raised); }
.contact-card .term { font-family: var(--font-mono); color: var(--ochre); font-size: 0.8rem; margin-bottom: 10px; text-transform: uppercase; letter-spacing: 0.04em; }
.contact-card h3 { font-size: 1.1rem; margin: 0 0 10px; }
.contact-card p { color: var(--paper-dim); font-size: 0.92rem; margin: 0; }

/* ---------- Motion ---------- */

.reveal { opacity: 0; transform: translateY(10px); animation: reveal 0.6s ease forwards; }
.reveal-1 { animation-delay: 0.05s; }
.reveal-2 { animation-delay: 0.15s; }
.reveal-3 { animation-delay: 0.25s; }
.reveal-4 { animation-delay: 0.35s; }

@keyframes reveal { to { opacity: 1; transform: translateY(0); } }

@media (prefers-reduced-motion: reduce) {
  .reveal { animation: none; opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Focus ---------- */

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--ochre);
  outline-offset: 2px;
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .split-compare { grid-template-columns: 1fr; }
  .split-compare .rule { display: none; }
  .timeline { grid-template-columns: 1fr 1fr; row-gap: 28px; }
  .timeline-step:nth-child(2) { border-right: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .ledger-row { grid-template-columns: 1fr; gap: 6px; }
}

@media (max-width: 700px) {
  .nav-menu { display: none; }
  .nav-toggle { display: flex; }
  .nav.open .nav-menu {
    display: flex;
    position: absolute;
    top: 66px;
    left: 0;
    right: 0;
    background: var(--ink);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 28px 28px;
    gap: 18px;
  }
  .nav.open .nav-links,
  .nav.open .nav-social,
  .nav.open .nav-cta {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 14px;
    border-right: none;
    padding-right: 0;
  }
  .nav.open .nav-cta .btn { width: 100%; }
  .timeline { grid-template-columns: 1fr; }
  .timeline-step { border-right: none; padding-right: 0; border-bottom: 1px solid var(--line-soft); padding-bottom: 20px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero { padding: 44px 0 30px; }
  .section { padding: 52px 0; }
}

/* ---------- Hero: compat strip + subordinated signature ---------- */

.hero-compat { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 22px; }
.hero-compat-label { font-family: var(--font-mono); font-size: 0.72rem; color: var(--paper-faint); letter-spacing: 0.06em; margin-right: 4px; }

.hero-visual .hero-shot-frame { margin-top: 0; }
.hero-signature { margin: 22px 0 0; }
.hero-signature .decay-chart { max-width: 420px; }
.hero-signature figcaption { font-family: var(--font-mono); font-size: 0.72rem; color: var(--paper-faint); margin-top: 6px; letter-spacing: 0.02em; }

/* ---------- Product gallery ---------- */

.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }

.shot {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink-panel);
  display: flex;
  flex-direction: column;
  margin: 0;
}

.shot img { width: 100%; display: block; }

.shot figcaption {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--paper-dim);
  padding: 12px 16px;
  border-top: 1px solid var(--line-soft);
}

.shot-ph {
  aspect-ratio: 16 / 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: var(--ink-raised);
  background-image: repeating-linear-gradient(45deg, transparent, transparent 9px, rgba(168, 154, 125, 0.045) 9px, rgba(168, 154, 125, 0.045) 10px);
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--paper-dim);
}

.shot-ph span { font-family: var(--font-mono); font-size: 0.7rem; color: var(--paper-faint); letter-spacing: 0.03em; }

@media (max-width: 700px) {
  .gallery-grid { grid-template-columns: 1fr; }
}

/* ---------- Knowledge Graph showcase ---------- */

.graph-showcase { margin-bottom: 34px; }
.graph-showcase .hero-shot-frame { margin-top: 0; }

.graph-points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--ochre-dim);
  padding-top: 26px;
}

.graph-point { padding-right: 28px; border-right: 1px solid var(--line-soft); }
.graph-point:last-child { border-right: none; padding-right: 0; }

.graph-point .num {
  color: var(--ochre);
  text-transform: uppercase;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
  display: block;
}

.graph-point h3 { font-size: 1.05rem; margin: 0 0 8px; }
.graph-point p { color: var(--paper-dim); font-size: 0.92rem; margin: 0; }

@media (max-width: 900px) {
  .graph-points { grid-template-columns: 1fr; row-gap: 24px; }
  .graph-point { border-right: none; padding-right: 0; border-bottom: 1px solid var(--line-soft); padding-bottom: 20px; }
  .graph-point:last-child { border-bottom: none; padding-bottom: 0; }
}

/* ---------- Final-release interactive polish ---------- */

.code-block { position: relative; }
.code-copy {
  position: absolute;
  top: 8px;
  right: 8px;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--paper-faint);
  background: var(--ink);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 3px 9px;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.code-block:hover .code-copy,
.code-copy:focus-visible { opacity: 1; }
.code-copy:hover,
.code-copy.copied { color: var(--ochre); border-color: var(--ochre-dim); opacity: 1; }

@keyframes draw-curve { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
html.js .decay-chart path { stroke-dasharray: 1; animation: draw-curve 1.6s ease forwards; }
@media (prefers-reduced-motion: reduce) {
  html.js .decay-chart path { animation: none; }
}

.graph-showcase .hero-shot-frame { position: relative; }
.graph-showcase .hero-shot-frame img { cursor: grab; }
.graph-showcase .hero-shot-frame img:active { cursor: grabbing; }
.graph-showcase .hero-shot-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%), rgba(201, 146, 82, 0.20), transparent 62%);
  opacity: 0;
  transition: opacity 0.3s ease;
  mix-blend-mode: screen;
}
.graph-showcase .hero-shot-frame:hover::after { opacity: 1; }

/* ---------- Living knowledge-graph hero constellation ---------- */

.hero { position: relative; overflow: hidden; }
.hero > .hero-grid { position: relative; z-index: 2; }
.hero-graph {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  display: block;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(96deg, var(--ink) 4%, rgba(20, 18, 14, 0) 52%),
    radial-gradient(130% 90% at 108% -10%, rgba(20, 18, 14, 0) 42%, var(--ink) 100%);
}
