/* ClawCodex website — editorial / newspaper design system.
   IBM Plex Serif (display + prose), IBM Plex Sans (UI), IBM Plex Mono (labels,
   code). Cobalt-blue accent, hairline rules, generous whitespace. */

/* ------------------------------------------------------------------ tokens */
:root {
  --paper: #ffffff;
  --paper-2: #f7f7f4;
  --ink: #0f0f12;
  --ink-2: #56565f;
  --ink-3: #8a8a93;
  --rule: #e7e7ea;
  --rule-strong: #d3d3d9;

  --accent: #2438ff;
  --accent-700: #182bd6;
  --accent-50: #eef0ff;
  --accent-100: #dde1ff;
  --claw: #e3622b;

  --term-bg: #0d0f15;
  --term-panel: #14171f;
  --term-rule: #232733;
  --term-text: #e7e8ec;
  --term-comment: #6a7180;
  --term-green: #46d08a;
  --term-amber: #e6a64a;
  --term-blue: #7aa2ff;

  --serif: "IBM Plex Serif", Georgia, "Times New Roman", serif;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --container: 1180px;
  --radius: 4px;
  --pad-x: clamp(1.1rem, 4vw, 2.5rem);
  --section-y: clamp(3.5rem, 7vw, 6rem);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ------------------------------------------------------------------- reset */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
code,
pre {
  font-family: var(--mono);
}
h1,
h2,
h3,
h4 {
  font-weight: 600;
  line-height: 1.1;
  margin: 0;
  letter-spacing: -0.01em;
}
::selection {
  background: var(--accent);
  color: #fff;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--pad-x);
}
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 100;
}
.skip-link:focus {
  left: 0.5rem;
  top: 0.5rem;
}

/* ----------------------------------------------------------------- eyebrow */
.eyebrow {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
}

/* ---------------------------------------------------------------- masthead */
.masthead {
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
}
.masthead__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-block: 0.5rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.masthead__right {
  white-space: nowrap;
}

/* ------------------------------------------------------------------ header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--rule);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
}
.brand:hover {
  text-decoration: none;
}
.brand__mark {
  width: 38px;
  height: 38px;
  object-fit: contain;
  flex: none;
}
.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}
.brand__name {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}
.brand__tag {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.78rem;
  color: var(--ink-2);
}

/* nav */
.nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}
.nav__link {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.94rem;
  color: var(--ink);
}
.nav__link:hover {
  color: var(--accent);
  text-decoration: none;
}
.nav__link[aria-current="page"] {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-thickness: 2px;
}
.nav__actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 42px;
  height: 38px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  cursor: pointer;
}
.nav-toggle__bar {
  width: 18px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}

/* ----------------------------------------------------------------- buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1;
  padding: 0.72em 1.15em;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.18s var(--ease), color 0.18s var(--ease),
    border-color 0.18s var(--ease), transform 0.18s var(--ease);
}
.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}
.btn--primary {
  background: var(--ink);
  color: #fff;
}
.btn--primary:hover {
  background: var(--accent);
}
.btn--accent {
  background: var(--accent);
  color: #fff;
}
.btn--accent:hover {
  background: var(--accent-700);
}
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--rule-strong);
}
.btn--ghost:hover {
  border-color: var(--ink);
}
.btn--text {
  background: transparent;
  color: var(--accent);
  padding-inline: 0.25em;
}
.btn--text:hover {
  text-decoration: underline;
}
.btn__arrow {
  transition: transform 0.18s var(--ease);
}
.btn:hover .btn__arrow {
  transform: translateX(3px);
}
.btn__star {
  color: var(--term-amber);
}
.btn--accent .btn__star {
  color: #fff;
}

/* ------------------------------------------------------------------ ticker */
.ticker {
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid var(--rule);
  background: var(--paper-2);
  overflow: hidden;
}
.ticker__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--ink);
  color: #fff;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  padding-inline: 1rem;
  flex-shrink: 0;
}
.ticker__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--claw);
  box-shadow: 0 0 0 0 rgba(227, 98, 43, 0.6);
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(227, 98, 43, 0.55);
  }
  70% {
    box-shadow: 0 0 0 7px rgba(227, 98, 43, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(227, 98, 43, 0);
  }
}
.ticker__viewport {
  overflow: hidden;
  flex: 1;
}
.ticker__track {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  will-change: transform;
  animation: marquee 60s linear infinite;
}
.ticker:hover .ticker__track {
  animation-play-state: paused;
}
.ticker__item {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding-inline: 0.9rem;
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--ink-2);
}
.ticker__kind {
  color: var(--accent);
  text-transform: uppercase;
  font-weight: 500;
}
.ticker__sep {
  color: var(--rule-strong);
}
@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* -------------------------------------------------------------------- hero */
.hero {
  border-bottom: 1px solid var(--rule);
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: clamp(2rem, 5vw, 4rem);
  padding-block: clamp(3rem, 6vw, 5rem);
  align-items: start;
}
.hero__main {
  min-width: 0;
}
.hero__title {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin: 1.1rem 0 0;
}
.hero__lead {
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  line-height: 1.6;
  color: #26262c;
  margin: 1.5rem 0 0;
  max-width: 36ch;
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem;
  margin-top: 2rem;
}
.hero__meta {
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--ink-3);
  letter-spacing: 0.04em;
  margin-top: 1.4rem;
}
.hero__aside {
  min-width: 0;
  border-left: 1px solid var(--rule);
  padding-left: clamp(1.5rem, 3vw, 3rem);
}
.hero__aside .eyebrow {
  margin-bottom: 0.8rem;
}
.hero__asidemeta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--ink-3);
  margin-top: 0.8rem;
}
.hero__asidelink {
  font-family: var(--mono);
}

/* callout */
.callout {
  border-left: 3px solid var(--accent);
  background: var(--accent-50);
  padding: 1rem 1.25rem;
  margin-top: 1.8rem;
  border-radius: 0 var(--radius) var(--radius) 0;
}
.callout__title {
  font-family: var(--sans);
  color: var(--accent-700);
  font-size: 0.92rem;
  display: block;
  margin-bottom: 0.2rem;
}
.callout__body {
  font-size: 0.98rem;
  color: #2c2c34;
}

/* ---------------------------------------------------------------- terminal */
.terminal {
  margin: 0;
  background: var(--term-bg);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--term-rule);
  box-shadow: 0 18px 40px -24px rgba(0, 0, 0, 0.55);
}
.terminal__bar {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.8rem;
  background: var(--term-panel);
  border-bottom: 1px solid var(--term-rule);
}
.terminal__dots {
  display: inline-flex;
  gap: 6px;
}
.terminal__dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #353a46;
}
.terminal__dots i:first-child {
  background: #e3622b;
}
.terminal__dots i:nth-child(2) {
  background: #e6a64a;
}
.terminal__dots i:nth-child(3) {
  background: #46d08a;
}
.terminal__title {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--term-comment);
  letter-spacing: 0.06em;
  margin-right: auto;
}
.terminal__copy,
.codeblock__copy {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--term-text);
  background: transparent;
  border: 1px solid var(--term-rule);
  border-radius: 3px;
  padding: 0.25rem 0.5rem;
  cursor: pointer;
  transition: background 0.15s var(--ease), border-color 0.15s var(--ease);
}
.terminal__copy:hover,
.codeblock__copy:hover {
  border-color: var(--term-green);
  color: var(--term-green);
}
.terminal__copy.is-copied,
.codeblock__copy.is-copied {
  color: var(--term-green);
  border-color: var(--term-green);
}
.terminal__body {
  margin: 0;
  padding: 1rem 1.1rem;
  overflow-x: auto;
  font-size: 0.86rem;
  line-height: 1.7;
  color: var(--term-text);
}
.t-line {
  display: block;
  white-space: pre;
}
.t-comment {
  color: var(--term-comment);
}
.t-output {
  color: var(--ink-3);
}
.t-pfx {
  color: var(--term-green);
  user-select: none;
}
.t-cmd {
  color: var(--term-text);
}

/* light code block */
.codeblock {
  position: relative;
  background: var(--term-bg);
  border: 1px solid var(--term-rule);
  border-radius: var(--radius);
  margin: 1rem 0 0;
}
.codeblock pre {
  margin: 0;
  padding: 1rem 1.1rem;
  overflow-x: auto;
  color: var(--term-text);
  font-size: 0.84rem;
  line-height: 1.65;
}
.codeblock__copy {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  z-index: 2;
}

/* -------------------------------------------------------------- stats band */
.statsband {
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
}
.statsband__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.stat {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: clamp(1.4rem, 3vw, 2.2rem) clamp(1rem, 2vw, 1.6rem);
  border-left: 1px solid var(--rule);
}
.stat:first-child {
  border-left: none;
  padding-left: 0;
}
.stat__value {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  letter-spacing: -0.02em;
}
.stat__label {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.9rem;
}
.stat__sub {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--ink-3);
}

/* ----------------------------------------------------------------- showcase */
.showcase {
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
  padding-block: clamp(2.5rem, 5vw, 4rem);
}
.showcase__fig {
  margin: 0;
}
.showcase__frame {
  position: relative;
  border: 1px solid var(--term-rule);
  border-radius: 8px;
  background: var(--term-bg);
  padding-top: 2.2rem;
  overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.5);
}
.showcase__dots {
  position: absolute;
  top: 0.85rem;
  left: 0.95rem;
  display: inline-flex;
  gap: 6px;
}
.showcase__dots i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}
.showcase__dots i:nth-child(1) {
  background: #e3622b;
}
.showcase__dots i:nth-child(2) {
  background: #e6a64a;
}
.showcase__dots i:nth-child(3) {
  background: #46d08a;
}
.showcase__img {
  display: block;
  width: 100%;
  height: auto;
}
.showcase__cap {
  margin-top: 1rem;
  font-family: var(--mono);
  font-size: 0.84rem;
  color: var(--ink-2);
}

/* ----------------------------------------------------------------- section */
.section {
  padding-block: var(--section-y);
  border-bottom: 1px solid var(--rule);
}
.section--alt {
  background: var(--paper-2);
}
.section--lead {
  padding-top: clamp(2.5rem, 5vw, 4rem);
}
.section__head {
  display: grid;
  grid-template-columns: minmax(0, 6.5rem) 1fr;
  gap: clamp(1rem, 4vw, 3rem);
  align-items: start;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.section__head--plain {
  grid-template-columns: 1fr;
}
.section__index {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(3rem, 7vw, 5.5rem);
  line-height: 0.8;
  color: #e2e2e8;
}
@supports ((-webkit-text-stroke: 1px #000) or (text-stroke: 1px #000)) {
  .section__index {
    color: transparent;
    -webkit-text-stroke: 1.5px var(--rule-strong);
  }
}
.section__heading {
  max-width: 60ch;
}
.section__title {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3.4vw, 2.7rem);
  line-height: 1.08;
  margin-top: 0.5rem;
}
.section__lead {
  font-size: 1.12rem;
  color: #34343b;
  margin: 1rem 0 0;
}
.section__lead2 {
  color: var(--ink-2);
  margin: 0 0 1rem;
}
.section__after {
  margin-top: 1.8rem;
  font-family: var(--mono);
  font-size: 0.85rem;
}
.section__after a {
  font-family: var(--mono);
}

/* ----------------------------------------------------------------- pillars */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.pillar {
  padding: clamp(1.4rem, 2.5vw, 2rem);
  border-left: 1px solid var(--rule);
}
.pillar:first-child {
  border-left: none;
  padding-left: 0;
}
.pillar__index {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--accent);
  display: block;
  margin-bottom: 0.8rem;
}
.pillar .eyebrow {
  display: block;
  margin-bottom: 0.4rem;
}
.pillar__title {
  font-family: var(--serif);
  font-size: 1.4rem;
  line-height: 1.15;
  margin-bottom: 0.6rem;
}
.pillar__body {
  color: var(--ink-2);
  font-size: 1rem;
}

/* ---------------------------------------------------------------- features */
.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
.feature {
  background: var(--paper);
  padding: 1.5rem 1.4rem;
}
.section--alt .feature {
  background: var(--paper-2);
}
.feature__title {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1.02rem;
  margin-bottom: 0.5rem;
}
.feature__body {
  font-size: 0.95rem;
  color: var(--ink-2);
  line-height: 1.55;
}

/* --------------------------------------------------------------- providers */
.providers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
.provider {
  background: var(--paper);
  padding: 1.1rem 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.provider__name {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1.05rem;
}
.provider__note {
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--ink-3);
}
.providers__note {
  margin-top: 1.2rem;
  color: var(--ink-2);
  font-size: 0.98rem;
}
.providers__demo {
  margin-top: 1.6rem;
  max-width: 760px;
}

/* ------------------------------------------------------- loop + abstraction */
.loop {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
}
.icard {
  border-top: 2px solid var(--ink);
  padding-top: 1rem;
}
.icard__index {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--accent);
}
.icard__title {
  font-family: var(--serif);
  font-size: 1.25rem;
  margin: 0.4rem 0 0.4rem;
}
.icard__body {
  color: var(--ink-2);
  font-size: 0.94rem;
}
.abstractions {
  margin-top: 2.6rem;
}
.abstractions__title {
  margin-bottom: 1.2rem;
}
.abstractions__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem 1.6rem;
}
.abstractions__grid .icard {
  border-top-color: var(--rule-strong);
  border-top-width: 1px;
}

/* --------------------------------------------------------------- swe-bench */
.swe {
  margin: 0;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: clamp(1.4rem, 3vw, 2.2rem);
  background: var(--paper);
}
.swe__bars {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.swe__row {
  display: grid;
  grid-template-columns: 7rem 1fr auto auto;
  align-items: center;
  gap: 1rem;
}
.swe__agent {
  font-family: var(--mono);
  font-size: 0.9rem;
}
.swe__row--win .swe__agent {
  color: var(--accent);
  font-weight: 600;
}
.swe__track {
  height: 16px;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: 2px;
  overflow: hidden;
}
.swe__fill {
  height: 100%;
  background: repeating-linear-gradient(
    45deg,
    var(--rule-strong),
    var(--rule-strong) 6px,
    #cfcfd6 6px,
    #cfcfd6 12px
  );
}
.swe__row--win .swe__fill {
  background: var(--accent);
}
.swe__pct {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.2rem;
  min-width: 4ch;
  text-align: right;
}
.swe__abs {
  font-family: var(--mono);
  font-size: 0.76rem;
  color: var(--ink-3);
  min-width: 8ch;
  text-align: right;
}
.swe__breakdown {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}
.swe__chip {
  font-family: var(--mono);
  font-size: 0.76rem;
  color: var(--ink-2);
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
}
.swe__chip b {
  color: var(--ink);
}
.swe__cap {
  margin-top: 1.3rem;
  font-size: 0.9rem;
  color: var(--ink-2);
}

/* ------------------------------------------------------------------- demos */
.demos {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
}
.demo {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: border-color 0.18s var(--ease), transform 0.18s var(--ease);
}
.demo:hover {
  border-color: var(--rule-strong);
  transform: translateY(-2px);
}
.demo__stack {
  font-family: var(--mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
}
.demo__title {
  font-family: var(--serif);
  font-size: 1.25rem;
}
.demo__body {
  font-size: 0.92rem;
  color: var(--ink-2);
  flex: 1;
}
.demo__path {
  font-size: 0.74rem;
  color: var(--ink-3);
}

/* ----------------------------------------------------------------- release */
.release {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
}
.release__item {
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1.4rem;
  background: var(--paper);
}
.release__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.6rem;
}
.release__tag {
  font-family: var(--mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #fff;
  background: var(--ink);
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
}
.release__ref {
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--ink-3);
}
.release__title {
  font-family: var(--serif);
  font-size: 1.3rem;
  margin-bottom: 0.4rem;
}
.release__body {
  color: var(--ink-2);
  font-size: 0.95rem;
}

/* -------------------------------------------------------------------- join */
.join {
  background: var(--ink);
  color: #fff;
}
.join__inner {
  padding-block: clamp(3.5rem, 7vw, 6rem);
  text-align: center;
}
.join .eyebrow {
  color: var(--term-green);
}
.join__title {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin: 0.6rem 0 0;
}
.join__body {
  max-width: 56ch;
  margin: 1.1rem auto 0;
  color: #c9c9d2;
}
.join__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  justify-content: center;
  margin-top: 2rem;
}
.join .btn--ghost {
  color: #fff;
  border-color: #34343d;
}
.join .btn--ghost:hover {
  border-color: #fff;
}

/* ----------------------------------------------------------------- install */
.install {
  display: flex;
  flex-direction: column;
  gap: clamp(2rem, 4vw, 3.2rem);
}
.install__step {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.6rem;
  border-top: 1px solid var(--rule);
  padding-top: 1.6rem;
}
.install__stephead {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.install__stepnum {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 2.4rem;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--rule-strong);
  line-height: 1;
}
.install__steptitle {
  font-family: var(--serif);
  font-size: 1.6rem;
}
.install__intro {
  color: var(--ink-2);
  max-width: 70ch;
  margin: 0;
}
.install__note {
  font-size: 0.9rem;
  color: var(--ink-2);
  border-left: 2px solid var(--accent-100);
  padding-left: 0.9rem;
  margin: 0.9rem 0 0;
}
.install__rows {
  display: grid;
  gap: 1.2rem;
  margin-top: 0.4rem;
}
.install__rowlabel {
  font-family: var(--mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
}
.install__rowbody {
  font-size: 0.9rem;
  color: var(--ink-2);
  margin: 0.5rem 0 0;
}
.install__next {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  border-top: 1px solid var(--rule);
  padding-top: 1.8rem;
}
.nextgrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  margin-top: 1rem;
}
.nextcard {
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1.3rem;
  color: var(--ink);
  transition: border-color 0.18s var(--ease), transform 0.18s var(--ease);
}
.nextcard:hover {
  border-color: var(--ink);
  text-decoration: none;
  transform: translateY(-2px);
}
.nextcard__title {
  font-family: var(--serif);
  font-size: 1.3rem;
  margin-bottom: 0.3rem;
}
.nextcard__body {
  color: var(--ink-2);
  font-size: 0.94rem;
}

/* -------------------------------------------------------------------- docs */
.docgrid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
}
.doccard {
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1.5rem;
  background: var(--paper);
}
.doccard__title {
  font-family: var(--serif);
  font-size: 1.4rem;
  margin-bottom: 0.4rem;
}
.doccard__body {
  color: var(--ink-2);
  font-size: 0.96rem;
  margin-bottom: 0.8rem;
}
.doccard__cta {
  font-family: var(--mono);
  font-size: 0.84rem;
}
.cmdtable {
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
}
.cmdtable table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.cmdtable th {
  text-align: left;
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--rule);
  background: var(--paper-2);
}
.cmdtable td {
  padding: 0.65rem 1rem;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}
.cmdtable tr:last-child td {
  border-bottom: none;
}
.cmdtable td:first-child {
  white-space: nowrap;
  color: var(--accent);
}
.cmdtable code {
  font-size: 0.86rem;
}
.clilist {
  display: grid;
  gap: 0.4rem;
}
.cliex {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--rule);
}
.cliex__code {
  font-size: 0.86rem;
  color: var(--ink);
  background: var(--paper-2);
  border: 1px solid var(--rule);
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
}
.cliex__desc {
  color: var(--ink-2);
  font-size: 0.94rem;
}

/* ---------------------------------------------------------------- activity */
.actlist {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--rule);
}
.act {
  display: grid;
  grid-template-columns: 7rem 4.5rem 1fr auto;
  gap: 1rem;
  align-items: baseline;
  padding: 1rem 0;
  border-bottom: 1px solid var(--rule);
}
.act__date {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--ink-3);
}
.act__kind {
  font-family: var(--mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.15rem 0.45rem;
  border-radius: 3px;
  text-align: center;
  align-self: center;
}
.act__kind--feat {
  background: var(--accent-50);
  color: var(--accent-700);
}
.act__kind--stat {
  background: #eef7f0;
  color: #1f7a4d;
}
.act__title {
  font-size: 1rem;
}
.act__ref {
  font-family: var(--mono);
  font-size: 0.76rem;
  color: var(--ink-3);
}

/* ----------------------------------------------------------------- roadmap */
.rmgrid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
.rm {
  background: var(--paper);
  padding: 1.5rem;
}
.rm__head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
}
.rm__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ink-3);
}
.rm--shipped .rm__dot {
  background: #1f9d57;
}
.rm--underway .rm__dot {
  background: var(--accent);
}
.rm--considered .rm__dot {
  background: var(--term-amber);
}
.rm--ruledout .rm__dot {
  background: var(--ink-3);
}
.rm__label {
  font-family: var(--sans);
  font-size: 1.1rem;
}
.rm__count {
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--ink-3);
  margin-left: auto;
}
.rm__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}
.rm__title {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.98rem;
}
.rm--ruledout .rm__title {
  text-decoration: line-through;
  color: var(--ink-2);
}
.rm__body {
  font-size: 0.9rem;
  color: var(--ink-2);
  margin: 0.2rem 0 0;
}
.rm__cta {
  margin-top: 2rem;
}
.rm__ctabody {
  color: var(--ink-2);
  margin: 0.4rem 0 0;
}

/* -------------------------------------------------------------------- faq */
.faq {
  border-top: 1px solid var(--rule);
}
.faq__item {
  border-bottom: 1px solid var(--rule);
}
.faq__q {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 1.2rem 0;
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--ink);
}
.faq__qnum {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--accent);
  flex-shrink: 0;
}
.faq__qtext {
  flex: 1;
}
.faq__toggle {
  font-family: var(--mono);
  font-size: 1.3rem;
  color: var(--ink-3);
  flex-shrink: 0;
}
.faq__q[aria-expanded="true"] .faq__toggle {
  color: var(--accent);
}
.faq__a {
  padding: 0 0 1.4rem 2.8rem;
  max-width: 75ch;
  color: #2c2c33;
}
.faq__a p {
  margin: 0 0 0.8rem;
}
.faq__a pre {
  background: var(--term-bg);
  color: var(--term-text);
  padding: 0.9rem 1rem;
  border-radius: var(--radius);
  overflow-x: auto;
  font-size: 0.82rem;
  line-height: 1.6;
}
.faq__a code {
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: 3px;
  padding: 0.05rem 0.35rem;
  font-size: 0.84rem;
}
.faq__a pre code {
  background: none;
  border: none;
  padding: 0;
}
.faq__sources {
  font-family: var(--mono);
  font-size: 0.76rem;
  color: var(--ink-3);
}
.faq__sources code {
  background: none !important;
  border: none !important;
  color: var(--ink-2);
}
.faq__closing {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2rem;
  font-family: var(--serif);
  font-size: 1.2rem;
}

/* -------------------------------------------------------------- contribute */
.csteps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
.cstep {
  background: var(--paper);
  padding: 1.6rem;
}
.cstep__index {
  font-family: var(--serif);
  font-size: 1.8rem;
  color: var(--accent);
  display: block;
  margin-bottom: 0.4rem;
}
.cstep .eyebrow {
  display: block;
  margin-bottom: 0.3rem;
}
.cstep__title {
  font-family: var(--serif);
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
}
.cstep__body {
  color: var(--ink-2);
  font-size: 0.96rem;
  margin: 0 0 0.8rem;
}
.cstep__cta {
  font-family: var(--mono);
  font-size: 0.82rem;
}
.rules {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
}
.rules__col {
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1.4rem;
}
.rules__col--yes {
  border-top: 3px solid #1f9d57;
}
.rules__col--no {
  border-top: 3px solid var(--claw);
}
.rules__title {
  font-family: var(--mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.8rem;
}
.rules__col--yes .rules__title {
  color: #1f9d57;
}
.rules__col--no .rules__title {
  color: var(--claw);
}
.rules ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--ink-2);
  font-size: 0.96rem;
  display: grid;
  gap: 0.6rem;
}

/* ------------------------------------------------------------------ footer */
.site-footer {
  background: var(--paper);
}
.site-footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 2fr;
  gap: clamp(2rem, 5vw, 4rem);
  padding-block: clamp(3rem, 5vw, 4.5rem);
}
.footer__brand .brand {
  margin-bottom: 1rem;
}
.footer__blurb {
  color: var(--ink-2);
  font-size: 0.96rem;
  max-width: 42ch;
}
.footer__meta {
  display: flex;
  gap: 1rem;
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--ink-3);
  margin-top: 1rem;
}
.footer__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.footer__title {
  font-family: var(--mono);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  margin-bottom: 0.9rem;
}
.footer__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}
.footer__link {
  color: var(--ink);
  font-size: 0.94rem;
}
.footer__link:hover {
  color: var(--accent);
}
.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  padding-block: 1.3rem;
  border-top: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--ink-3);
}

/* ------------------------------------------------------------- responsive */
@media (max-width: 980px) {
  .hero__grid {
    grid-template-columns: 1fr;
  }
  .hero__aside {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid var(--rule);
    padding-top: 2rem;
  }
  .features,
  .abstractions__grid,
  .demos {
    grid-template-columns: repeat(2, 1fr);
  }
  .loop {
    grid-template-columns: repeat(2, 1fr);
  }
  .release {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .nav-toggle {
    display: flex;
  }
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
    padding: 0.5rem var(--pad-x) 1.2rem;
    box-shadow: 0 20px 30px -20px rgba(0, 0, 0, 0.25);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s var(--ease), transform 0.18s var(--ease);
  }
  .nav__links {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .nav__link {
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--rule);
    font-size: 1.05rem;
  }
  .nav__actions {
    margin-top: 1rem;
    flex-direction: column;
    align-items: stretch;
  }
  .nav__actions .btn {
    justify-content: center;
  }
  .nav-open .nav {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .nav-open .nav-toggle__bar:first-child {
    transform: translateY(3.5px) rotate(45deg);
  }
  .nav-open .nav-toggle__bar:last-child {
    transform: translateY(-3.5px) rotate(-45deg);
  }
}

@media (max-width: 720px) {
  .statsband__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid var(--rule);
  }
  .stat:nth-child(2) {
    border-left: 1px solid var(--rule);
    padding-left: 1rem;
  }
  .stat:nth-child(-n + 2) {
    border-top: none;
  }
  .section__head {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }
  .section__index {
    font-size: 2.6rem;
  }
  .pillars,
  .features,
  .providers,
  .loop,
  .abstractions__grid,
  .demos,
  .rmgrid,
  .csteps,
  .rules,
  .docgrid,
  .nextgrid {
    grid-template-columns: 1fr;
  }
  .pillar,
  .stat {
    border-left: none;
    padding-left: 0;
  }
  .swe__row {
    grid-template-columns: 5.5rem 1fr auto;
  }
  .swe__abs {
    display: none;
  }
  .act {
    grid-template-columns: 1fr auto;
    gap: 0.3rem 0.8rem;
  }
  .act__title {
    grid-column: 1 / -1;
    order: 3;
  }
  .faq__a {
    padding-left: 0;
  }
  .site-footer__inner {
    grid-template-columns: 1fr;
  }
  .footer__cols {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .ticker__track {
    animation: none !important;
  }
}
