/* ============================================================
   nlp.jcrlabz.com — design system
   Dark-first, system fonts, zero external requests.
   ============================================================ */

:root {
  /* keeps native controls + scrollbars in step with the chosen theme,
     not with whatever the OS prefers */
  color-scheme: dark;

  --bg:        #08080c;
  --bg-2:      #0e0e15;
  --card:      rgba(255,255,255,.035);
  --card-2:    rgba(255,255,255,.055);
  --ink:       #f2f2f7;
  --ink-2:     #c3c3d2;
  --mut:       #8a8aa0;
  --line:      rgba(255,255,255,.10);
  --line-2:    rgba(255,255,255,.18);

  --acid:      #c9f24e;
  --violet:    #a78bfa;
  --pink:      #ff5ea8;
  --cyan:      #4ee6f2;
  --amber:     #ffb648;

  --on-accent: #0a0a10;

  --r-sm: 8px;
  --r:    14px;
  --r-lg: 22px;

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

  --maxw: 1180px;
  --shadow: 0 24px 70px -30px rgba(0,0,0,.9);
}

:root[data-theme="light"] {
  color-scheme: light;

  --bg:        #fbfbfd;
  --bg-2:      #f2f2f6;
  --card:      rgba(10,10,20,.028);
  --card-2:    rgba(10,10,20,.05);
  --ink:       #101018;
  --ink-2:     #33333f;
  --mut:       #63637a;
  --line:      rgba(10,10,20,.11);
  --line-2:    rgba(10,10,20,.20);

  /* accents are darkened for the light theme so they clear 4.5:1 both as
     small text on --bg and as button fills behind white --on-accent */
  --acid:      #4f7600;
  --violet:    #6d3ff0;
  --pink:      #cc1668;
  --cyan:      #007c92;
  --amber:     #a86200;

  --on-accent: #ffffff;
  --shadow: 0 20px 50px -28px rgba(20,20,50,.35);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Ambient glow behind everything */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(58rem 34rem at 12% -6%,  color-mix(in oklab, var(--violet) 26%, transparent), transparent 62%),
    radial-gradient(46rem 30rem at 92% 4%,   color-mix(in oklab, var(--cyan)   16%, transparent), transparent 60%),
    radial-gradient(52rem 32rem at 50% 108%, color-mix(in oklab, var(--pink)   14%, transparent), transparent 62%);
}
/* Fine grain */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .30;
  background-image: url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'>\
<filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3'/>\
<feColorMatrix type='saturate' values='0'/></filter>\
<rect width='140' height='140' filter='url(%23n)' opacity='.5'/></svg>");
}
:root[data-theme="light"] body::after { opacity: .16; }

/* ---------- typography ---------- */

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 760;
  letter-spacing: -.03em;
  line-height: 1.03;
  text-wrap: balance;
}
h1 { font-size: clamp(2.7rem, 8.2vw, 6.4rem); }
h2 { font-size: clamp(1.9rem, 4.6vw, 3.2rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); line-height: 1.2; }
p  { margin: 0; text-wrap: pretty; }

a { color: inherit; text-decoration: none; }

.mono {
  font-family: var(--mono);
  font-size: .74rem;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.lede {
  font-size: clamp(1.05rem, 1.75vw, 1.3rem);
  color: var(--ink-2);
  line-height: 1.55;
  max-width: 46ch;
}

.mut { color: var(--mut); }

/* ---------- layout ---------- */

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(1.1rem, 4vw, 2.5rem); }

section { position: relative; padding-block: clamp(4.5rem, 10vw, 8.5rem); }

.sec-head { margin-bottom: clamp(2.2rem, 5vw, 3.4rem); }
.sec-head .mono { color: var(--acid); display: block; margin-bottom: .9rem; }
.sec-head p { margin-top: 1rem; }

.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ---------- nav ---------- */

.nav {
  position: sticky; top: 0; z-index: 60;
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  background: color-mix(in oklab, var(--bg) 72%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.nav.stuck { border-bottom-color: var(--line); }
.nav .wrap {
  display: flex; align-items: center; gap: 1.4rem;
  height: 62px;
}
/* brand takes the slack so the theme button stays right-aligned even when
   .nav-links is hidden on small screens */
.brand { display: flex; align-items: center; gap: .6rem; font-weight: 700; letter-spacing: -.02em; margin-right: auto; }
.brand .dot {
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--acid);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--acid) 22%, transparent);
}
.nav-links { display: flex; gap: 1.5rem; }
.nav-links a {
  font-size: .875rem; color: var(--ink-2); font-weight: 500;
  position: relative; padding-block: 4px;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1.5px;
  background: var(--acid); transition: right .28s ease;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { right: 0; }
@media (max-width: 780px) { .nav-links { display: none; } }

.theme-btn {
  width: 34px; height: 34px; flex: none;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink-2);
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.theme-btn:hover { background: var(--card-2); color: var(--ink); border-color: var(--line-2); }
.theme-btn svg { width: 16px; height: 16px; }
.nav-links + .theme-btn { margin-left: .2rem; }
:root[data-theme="light"] .theme-btn .moon { display: none; }
:root:not([data-theme="light"]) .theme-btn .sun { display: none; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .8rem 1.35rem;
  border-radius: 100px;
  font-weight: 640; font-size: .93rem;
  border: 1px solid var(--line-2);
  color: var(--ink);
  cursor: pointer;
  transition: transform .18s cubic-bezier(.2,.8,.3,1), background .2s, border-color .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: var(--acid); color: var(--on-accent); border-color: transparent;
  box-shadow: 0 10px 30px -12px color-mix(in oklab, var(--acid) 70%, transparent);
}
.btn-primary:hover { box-shadow: 0 16px 40px -12px color-mix(in oklab, var(--acid) 80%, transparent); }
.btn-ghost { background: var(--card); }
.btn-ghost:hover { background: var(--card-2); }
.btn .arw { transition: transform .22s; }
.btn:hover .arw { transform: translateX(3px); }

:focus-visible { outline: 2px solid var(--acid); outline-offset: 3px; border-radius: 4px; }

/* ---------- hero ---------- */

.hero { padding-top: clamp(3.5rem, 9vw, 7rem); padding-bottom: clamp(3rem, 6vw, 5rem); }
.hero h1 { margin-bottom: 1.6rem; }
.hero h1 .grad {
  background: linear-gradient(100deg, var(--acid), var(--cyan) 42%, var(--violet) 78%, var(--pink));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .38rem .85rem .38rem .5rem;
  border: 1px solid var(--line); border-radius: 100px;
  background: var(--card);
  margin-bottom: 1.8rem;
}
.hero-badge b {
  background: var(--acid); color: var(--on-accent);
  border-radius: 100px; padding: .1rem .55rem;
  font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 800;
}
.hero-badge span { font-size: .82rem; color: var(--ink-2); }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2.3rem; }

.hero-stats {
  display: flex; flex-wrap: wrap; gap: clamp(1.5rem, 4vw, 3.4rem);
  margin-top: 3.4rem; padding-top: 2.2rem; border-top: 1px solid var(--line);
}
.hero-stats div strong {
  display: block; font-size: 1.85rem; font-weight: 760; letter-spacing: -.03em; line-height: 1;
}
.hero-stats div span { font-size: .8rem; color: var(--mut); }

/* live pipeline strip */
.pipe {
  margin-top: 3rem;
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: linear-gradient(180deg, var(--card), transparent);
  padding: 1.4rem;
  overflow: hidden;
}
.pipe-row { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; min-height: 44px; }
.pipe-label { font-family: var(--mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--mut); width: 100%; margin-bottom: .7rem; }
.tok {
  font-family: var(--mono); font-size: .82rem;
  padding: .3rem .6rem; border-radius: var(--r-sm);
  border: 1px solid var(--line-2);
  background: var(--card-2);
  white-space: pre;
  animation: pop .32s cubic-bezier(.2,1.3,.4,1) backwards;
}
@keyframes pop { from { opacity: 0; transform: translateY(6px) scale(.94); } }
.tok.v0 { border-color: color-mix(in oklab, var(--acid) 55%, transparent);   color: var(--acid); }
.tok.v1 { border-color: color-mix(in oklab, var(--cyan) 55%, transparent);   color: var(--cyan); }
.tok.v2 { border-color: color-mix(in oklab, var(--violet) 55%, transparent); color: var(--violet); }
.tok.v3 { border-color: color-mix(in oklab, var(--pink) 55%, transparent);   color: var(--pink); }
.tok.v4 { border-color: color-mix(in oklab, var(--amber) 55%, transparent);  color: var(--amber); }

/* ---------- marquee ---------- */

.marquee {
  border-block: 1px solid var(--line);
  padding-block: .95rem;
  overflow: hidden;
  background: var(--card);
  --dur: 42s;
}
.marquee-inner { display: flex; width: max-content; animation: slide var(--dur) linear infinite; }
.marquee:hover .marquee-inner { animation-play-state: paused; }
.marquee ul { display: flex; gap: 2.4rem; list-style: none; margin: 0; padding: 0 1.2rem 0 0; }
.marquee li {
  font-family: var(--mono); font-size: .76rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--mut); white-space: nowrap;
  display: flex; align-items: center; gap: 2.4rem;
}
.marquee li::after { content: "◆"; color: var(--acid); font-size: .5rem; letter-spacing: 0; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- path / units ---------- */

.units { display: grid; gap: 1rem; }
.unit {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, var(--card), transparent 70%);
  overflow: hidden;
  transition: border-color .25s, background .25s;
}
.unit:hover { border-color: var(--line-2); }
.unit > summary {
  list-style: none;
  cursor: pointer;
  display: grid;
  grid-template-columns: 3.2rem 1fr auto;
  gap: clamp(.8rem, 2.5vw, 1.6rem);
  align-items: start;
  padding: clamp(1.2rem, 3vw, 1.7rem);
}
.unit > summary::-webkit-details-marker { display: none; }
.unit-n {
  font-family: var(--mono); font-size: 1.5rem; font-weight: 700;
  letter-spacing: -.02em; text-transform: none;
  color: color-mix(in oklab, var(--ink) 26%, transparent);
  line-height: 1.1;
  transition: color .25s;
}
.unit:hover .unit-n, .unit[open] .unit-n { color: var(--acid); }
.unit-h3 { margin-bottom: .35rem; }
.unit-alt { font-size: .8rem; color: var(--mut); font-family: var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.unit-sum { margin-top: .8rem; color: var(--ink-2); font-size: .95rem; max-width: 62ch; }
.chev {
  width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid var(--line); display: grid; place-items: center;
  color: var(--mut); flex: none; transition: transform .3s, color .25s, border-color .25s;
}
.unit[open] .chev { transform: rotate(180deg); color: var(--acid); border-color: var(--acid); }
.unit-body { padding: 0 clamp(1.2rem, 3vw, 1.7rem) clamp(1.2rem, 3vw, 1.7rem); }
.unit-body-in {
  padding-left: clamp(0rem, 3vw, 4.8rem);
  border-top: 1px solid var(--line); padding-top: 1.3rem;
}

.chips { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: 1.4rem; }
.chip {
  font-size: .76rem; padding: .28rem .68rem; border-radius: 100px;
  border: 1px solid var(--line); background: var(--card-2); color: var(--ink-2);
}

.decks { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.decks li { display: flex; align-items: stretch; gap: .25rem; }
.decks a {
  display: flex; align-items: baseline; gap: .8rem; flex-wrap: wrap;
  padding: .7rem .9rem; border-radius: var(--r);
  border: 1px solid transparent;
  transition: background .2s, border-color .2s, transform .2s;
}
.decks a.read { flex: 1; min-width: 0; }
.decks a.read:hover { background: var(--card-2); border-color: var(--line); transform: translateX(3px); }

/* download stays one click away, but reading in the browser is the primary action */
.decks a.dl {
  flex: none; width: 40px; padding: 0;
  display: grid; place-items: center; color: var(--mut);
}
.decks a.dl:hover { background: var(--card-2); border-color: var(--line); color: var(--acid); }
.decks a.dl svg { width: 15px; height: 15px; }
.decks .pdf {
  font-family: var(--mono); font-size: .6rem; letter-spacing: .1em;
  border: 1px solid var(--line-2); border-radius: 4px; padding: .05rem .3rem;
  color: var(--mut); flex: none;
}
.decks .nm { font-weight: 550; font-size: .93rem; }
.decks .mt { font-size: .78rem; color: var(--mut); margin-left: auto; font-family: var(--mono); flex: none; }
.decks .note { flex-basis: 100%; font-size: .78rem; color: var(--mut); font-style: italic; }

/* ---------- lab ---------- */

.lab { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--bg-2); overflow: hidden; box-shadow: var(--shadow); }
.lab-tabs {
  display: flex; gap: .3rem; padding: .55rem;
  border-bottom: 1px solid var(--line);
  overflow-x: auto; scrollbar-width: none;
  background: var(--card);
}
.lab-tabs::-webkit-scrollbar { display: none; }
.lab-tab {
  flex: none;
  padding: .55rem 1rem; border-radius: 100px;
  border: 1px solid transparent; background: none; cursor: pointer;
  font-family: inherit; font-size: .85rem; font-weight: 560; color: var(--mut);
  white-space: nowrap;
  transition: background .2s, color .2s, border-color .2s;
}
.lab-tab:hover { color: var(--ink); background: var(--card-2); }
.lab-tab[aria-selected="true"] { background: var(--acid); color: var(--on-accent); border-color: transparent; }

.lab-panel { padding: clamp(1.2rem, 3.5vw, 2.2rem); }
.lab-panel[hidden] { display: none; }
.lab-panel > h3 { margin-bottom: .5rem; }
.lab-why { color: var(--ink-2); font-size: .94rem; max-width: 64ch; margin-bottom: 1.7rem; }
.lab-note {
  margin-top: 1.5rem; padding: .85rem 1rem; border-radius: var(--r);
  border: 1px solid var(--line); border-left: 2px solid var(--acid);
  background: var(--card); font-size: .84rem; color: var(--ink-2);
}
.lab-note b { color: var(--ink); }

.field { display: block; margin-bottom: 1.1rem; }
.field > span {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  font-family: var(--mono); font-size: .68rem; letter-spacing: .13em; text-transform: uppercase;
  color: var(--mut); margin-bottom: .5rem;
}
.field > span b { color: var(--acid); font-size: .82rem; letter-spacing: .02em; }

textarea, input[type="text"] {
  width: 100%; font-family: var(--mono); font-size: .87rem; line-height: 1.6;
  color: var(--ink); background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r); padding: .8rem .95rem; resize: vertical;
  transition: border-color .2s, background .2s;
}
textarea:focus, input[type="text"]:focus { border-color: var(--acid); background: var(--card-2); outline: none; }

input[type="range"] {
  width: 100%; -webkit-appearance: none; appearance: none;
  background: none; height: 22px; cursor: pointer;
}
input[type="range"]::-webkit-slider-runnable-track { height: 3px; border-radius: 3px; background: var(--line-2); }
input[type="range"]::-moz-range-track { height: 3px; border-radius: 3px; background: var(--line-2); }
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%;
  background: var(--acid); margin-top: -6.5px; border: 0;
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--acid) 20%, transparent);
}
input[type="range"]::-moz-range-thumb {
  width: 16px; height: 16px; border-radius: 50%; border: 0; background: var(--acid);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--acid) 20%, transparent);
}

.out {
  border: 1px solid var(--line); border-radius: var(--r);
  background: var(--card); padding: 1rem; min-height: 3.5rem;
}
.out-toks { display: flex; flex-wrap: wrap; gap: .35rem; }

.stat-row { display: flex; flex-wrap: wrap; gap: 1.6rem; margin-top: 1.2rem; }
.stat { flex: 1 1 7rem; }
.stat b { display: block; font-size: 1.35rem; font-weight: 720; letter-spacing: -.02em; line-height: 1.2; }
.stat span { font-family: var(--mono); font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; color: var(--mut); }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; }
@media (max-width: 720px) { .two-col { grid-template-columns: 1fr; } }

canvas { display: block; width: 100%; height: auto; border-radius: var(--r); }

/* bar list (distributions, similarity, dims) */
.bars { display: grid; gap: .4rem; margin: 0; padding: 0; list-style: none; }
.bar-row { display: grid; grid-template-columns: minmax(4.5rem, auto) 1fr minmax(3rem, auto); gap: .7rem; align-items: center; }
.bar-row .k { font-family: var(--mono); font-size: .78rem; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; }
.bar-row .t { height: 7px; border-radius: 4px; background: var(--card-2); overflow: hidden; }
.bar-row .t i { display: block; height: 100%; border-radius: 4px; background: var(--acid); transition: width .45s cubic-bezier(.2,.8,.3,1); }
.bar-row .t i.neg { background: var(--pink); margin-left: auto; }
.bar-row .v { font-family: var(--mono); font-size: .72rem; color: var(--mut); text-align: right; }

.pills { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1rem; }
.pill {
  font-family: var(--mono); font-size: .74rem;
  padding: .3rem .7rem; border-radius: 100px; cursor: pointer;
  border: 1px solid var(--line); background: var(--card); color: var(--ink-2);
  transition: background .2s, color .2s, border-color .2s;
}
.pill:hover { background: var(--card-2); color: var(--ink); border-color: var(--line-2); }
.pill[aria-pressed="true"] { background: var(--violet); color: var(--on-accent); border-color: transparent; }

.gen-out {
  font-family: var(--mono); font-size: .9rem; line-height: 1.85;
  min-height: 6.5rem;
}
.gen-out .new { color: var(--acid); }
.gen-out .seed { color: var(--mut); }

/* ---------- glossary ---------- */

.gloss { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: .8rem; }
.gterm {
  border: 1px solid var(--line); border-radius: var(--r);
  background: var(--card); padding: 1rem 1.1rem;
  transition: border-color .25s, background .25s, transform .25s;
}
.gterm:hover { border-color: var(--line-2); background: var(--card-2); transform: translateY(-2px); }
.gterm > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: .6rem; font-weight: 620; font-size: .95rem; }
.gterm > summary::-webkit-details-marker { display: none; }
.gterm > summary::before { content: "+"; color: var(--acid); font-family: var(--mono); font-size: 1rem; transition: transform .25s; }
.gterm[open] > summary::before { content: "−"; }
.gterm p { margin-top: .7rem; font-size: .87rem; color: var(--ink-2); }

/* ---------- start / cta ---------- */

.steps { counter-reset: s; display: grid; gap: 1rem; }
.step {
  display: grid; grid-template-columns: auto 1fr; gap: 1.1rem; align-items: start;
  padding: 1.2rem 1.3rem; border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--card);
}
.step::before {
  counter-increment: s; content: counter(s);
  width: 1.9rem; height: 1.9rem; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--acid); color: var(--on-accent);
  font-family: var(--mono); font-size: .8rem; font-weight: 700;
}
.step h3 { font-size: 1.02rem; margin-bottom: .3rem; }
.step p { font-size: .9rem; color: var(--ink-2); }

.cta {
  border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: clamp(2rem, 6vw, 4rem);
  background:
    radial-gradient(30rem 16rem at 15% 0%, color-mix(in oklab, var(--violet) 22%, transparent), transparent 70%),
    var(--card);
  text-align: center;
}
.cta h2 { margin-bottom: 1rem; }
.cta .lede { margin-inline: auto; }
.cta .hero-cta { justify-content: center; }

/* ---------- footer ---------- */

footer.site {
  border-top: 1px solid var(--line);
  padding-block: 2.5rem 3rem;
  font-size: .85rem; color: var(--mut);
}
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; }
footer.site a { color: var(--ink-2); }
footer.site a:hover { color: var(--acid); }
footer.site .sp { margin-left: auto; }

/* ---------- reveal ---------- */

.rv { opacity: 0; transform: translateY(18px); transition: opacity .7s cubic-bezier(.2,.8,.3,1), transform .7s cubic-bezier(.2,.8,.3,1); }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; } }

/* ---------- slides index page ---------- */

.slides-list { display: grid; gap: 2.6rem; }
.slides-group h2 { font-size: clamp(1.3rem, 3vw, 1.75rem); margin-bottom: .6rem; }
.slides-group > p { color: var(--ink-2); font-size: .92rem; max-width: 68ch; margin-bottom: 1.1rem; }
.back {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .85rem; color: var(--mut); margin-bottom: 2rem;
}
.back:hover { color: var(--acid); }

/* ---------- book parts ---------- */

.parts { display: grid; grid-template-columns: repeat(auto-fill, minmax(19rem, 1fr)); gap: .8rem; list-style: none; margin: 0; padding: 0; }
.part {
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: linear-gradient(180deg, var(--card), transparent 75%);
  transition: border-color .22s, transform .22s, background .22s;
}
.part:hover { border-color: var(--line-2); transform: translateY(-2px); }
.part > a { display: block; padding: 1.1rem 1.2rem; }
.part .rn {
  font-family: var(--mono); font-size: .68rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--acid);
}
.part .pg { float: right; font-family: var(--mono); font-size: .68rem; color: var(--mut); }
.part h3 { font-size: 1.02rem; margin: .35rem 0 .5rem; letter-spacing: -.015em; }
.part p { font-size: .8rem; color: var(--mut); line-height: 1.55; }
.book-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; align-items: center; }
.book-meta { font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--mut); }
