/* ============================================================
   paperr — site styles
   Aesthetic: warm editorial. Paper ground, plum ink, rust rules.
   ============================================================ */

/* ---------- tokens ---------- */
:root {
  --paper:        #FBF7F0;
  --paper-2:      #F5EEE3;
  --paper-3:      #EDE3D4;
  --ink:          #2C1520;
  --ink-2:        #3B1D2E;
  --ink-soft:     #6B5560;
  --ink-faint:    #9A8891;

  --rust:         #A63418;
  --ember:        #F97316;
  --rose:         #EC4899;
  --moss:         #4F6B4A;

  --rule:         rgba(59, 29, 46, 0.14);
  --rule-strong:  rgba(59, 29, 46, 0.30);

  --grad: linear-gradient(135deg, var(--ember), var(--rose));

  --font-display: 'Bricolage Grotesque', 'Plus Jakarta Sans', -apple-system, sans-serif;
  --font-body:    'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono:    'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --measure: 1180px;
  --gutter: clamp(20px, 5vw, 56px);

  --shadow-soft:  0 4px 24px rgba(44, 21, 32, 0.06);
  --shadow-lift:  0 18px 48px rgba(44, 21, 32, 0.14);
  --shadow-deep:  0 32px 80px rgba(44, 21, 32, 0.22);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
::selection { background: var(--ember); color: #fff; }

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 450;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ---------- paper grain ---------- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.32;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}

/* ---------- layout ---------- */
.wrap {
  width: 100%;
  max-width: var(--measure);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: clamp(48px, 6vw, 88px); position: relative; }
.section--tight { padding-block: clamp(36px, 4.5vw, 64px); }

/* Dark "ink" sections */
.ink {
  background: var(--ink);
  color: var(--paper);
  --rule: rgba(251, 247, 240, 0.16);
  --rule-strong: rgba(251, 247, 240, 0.34);
  --ink-soft: rgba(251, 247, 240, 0.66);
  --ink-faint: rgba(251, 247, 240, 0.42);
}
.ink::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(700px 340px at 82% 6%, rgba(249, 115, 22, 0.16), transparent 70%),
    radial-gradient(560px 300px at 8% 96%, rgba(236, 72, 153, 0.11), transparent 72%);
}
.ink > * { position: relative; z-index: 1; }

/* ---------- typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-variation-settings: 'opsz' 40;
}
.display {
  font-size: clamp(2.9rem, 7.4vw, 5.6rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
}
.h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); }
.h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); letter-spacing: -0.02em; }

.lede {
  font-size: clamp(1.06rem, 1.5vw, 1.28rem);
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 60ch;
}
.muted { color: var(--ink-soft); }
.ital { font-family: var(--font-body); font-style: italic; font-weight: 500; }

/* gradient ink */
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* section eyebrow: 01 — LABEL */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--rust);
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}
.ink .eyebrow { color: var(--ember); }
.eyebrow::after {
  content: '';
  height: 1px;
  flex: 1;
  background: var(--rule);
  max-width: 220px;
}
.eyebrow__num {
  font-variant-numeric: tabular-nums;
  opacity: 0.5;
}

/* ---------- header ---------- */
.hdr {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 247, 240, 0.82);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.hdr.is-stuck {
  border-bottom-color: var(--rule);
  box-shadow: 0 1px 24px rgba(44, 21, 32, 0.05);
}
.hdr__in {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 68px;
}
.hdr__logo { color: var(--ink-2); flex-shrink: 0; display: flex; align-items: center; }
.hdr__logo svg { width: 148px; height: auto; }
@media (max-width: 480px) { .hdr__logo svg { width: 124px; } }
.hdr__nav {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: auto;
  font-size: 0.9rem;
  font-weight: 550;
}
.hdr__nav a:not(.btn) { color: var(--ink-soft); transition: color 0.2s; position: relative; }
.hdr__nav a:not(.btn)::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -5px;
  height: 1.5px;
  background: var(--rust);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.hdr__nav a:not(.btn):hover { color: var(--ink); }
.hdr__nav a:not(.btn):hover::after,
.hdr__nav a:not(.btn)[aria-current='page']::after { transform: scaleX(1); }
.hdr__nav a:not(.btn)[aria-current='page'] { color: var(--ink); }

.burger { display: none; margin-left: auto; padding: 8px; }
.burger span {
  display: block;
  width: 22px; height: 1.8px;
  background: var(--ink);
  transition: transform 0.3s var(--ease), opacity 0.2s;
}
.burger span + span { margin-top: 5px; }
.burger[aria-expanded='true'] span:nth-child(1) { transform: translateY(6.8px) rotate(45deg); }
.burger[aria-expanded='true'] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded='true'] span:nth-child(3) { transform: translateY(-6.8px) rotate(-45deg); }

@media (max-width: 860px) {
  .burger { display: block; }
  .hdr__nav {
    position: fixed;
    inset: 68px 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
    padding: 8px var(--gutter) 24px;
    font-size: 1.05rem;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.24s, transform 0.24s var(--ease);
    box-shadow: var(--shadow-lift);
  }
  .hdr__nav.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .hdr__nav a { padding: 14px 0; border-bottom: 1px solid var(--rule); }
  .hdr__nav a::after { display: none; }
  .hdr__nav .btn { margin-top: 18px; justify-content: center; border-bottom: none; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 22px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  transition: transform 0.22s var(--ease), box-shadow 0.22s, background 0.22s, color 0.22s;
  white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; flex-shrink: 0; }
.btn--primary {
  background: var(--ink);
  color: var(--paper);
  box-shadow: var(--shadow-soft);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.ink .btn--primary { background: var(--paper); color: var(--ink); }
.btn--ghost {
  border: 1.5px solid var(--rule-strong);
  color: var(--ink);
}
.btn--ghost:hover { border-color: var(--ink); transform: translateY(-2px); }
.ink .btn--ghost { color: var(--paper); }
.btn--flame {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 6px 22px rgba(236, 72, 153, 0.28);
}
.btn--flame:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(236, 72, 153, 0.36); }
.btn--sm { padding: 9px 16px; font-size: 0.83rem; }

/* ---------- hero ---------- */
.hero { position: relative; padding-block: clamp(56px, 8vw, 104px) clamp(48px, 6vw, 88px); overflow: hidden; }
.hero::before {
  content: '';
  position: absolute;
  top: -280px; right: -220px;
  width: 900px; height: 900px;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.13), rgba(236, 72, 153, 0.06) 42%, transparent 66%);
  pointer-events: none;
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  position: relative;
}
@media (max-width: 940px) { .hero__grid { grid-template-columns: 1fr; } }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 14px 6px 8px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 26px;
}
.pill__dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--moss);
  box-shadow: 0 0 0 3px rgba(79, 107, 74, 0.18);
  animation: pulse 2.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(79, 107, 74, 0.18); }
  50%      { box-shadow: 0 0 0 6px rgba(79, 107, 74, 0.05); }
}

.hero h1 { margin-bottom: 26px; }
.hero__lede { margin-bottom: 34px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 30px; }

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-top: 1px solid var(--rule);
  padding-top: 22px;
}
.hero__stat { padding-right: 18px; margin-right: 18px; border-right: 1px solid var(--rule); }
.hero__stat:last-child { border-right: none; margin-right: 0; padding-right: 0; }
.hero__stat b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  white-space: nowrap;
}
/* keep all four stats on one row on desktop */
@media (min-width: 941px) {
  .hero__stats { flex-wrap: nowrap; }
  .hero__stat span { white-space: nowrap; }
}
.hero__stat span {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* ---------- app mock ---------- */
.hero__mock { position: relative; }
.mock {
  position: relative;
  border-radius: 16px;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  box-shadow: var(--shadow-deep);
  overflow: hidden;
  transform: perspective(1600px) rotateY(-7deg) rotateX(2.5deg) translateZ(0);
  transition: transform 0.6s var(--ease);
}
.mock:hover { transform: perspective(1600px) rotateY(-3deg) rotateX(1deg); }
@media (max-width: 940px) { .mock { transform: none; } .mock:hover { transform: none; } }

.mock__bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 14px;
  background: var(--paper-3);
  border-bottom: 1px solid var(--rule);
}
.mock__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--rule-strong); }
.mock__brand {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.84rem;
  letter-spacing: -0.02em;
  color: var(--ink-2);
}
.mock__brand svg { width: 15px; height: auto; }
.mock__url {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  color: var(--ink-faint);
  letter-spacing: 0.02em;
}
.mock__body { display: grid; grid-template-columns: 52px 1fr; min-height: 372px; }
.mock__rail {
  border-right: 1px solid var(--rule);
  padding: 14px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  background: var(--paper-3);
}
.mock__rail i {
  width: 20px; height: 20px;
  border-radius: 6px;
  background: var(--rule);
  display: block;
}
.mock__rail i.on { background: var(--grad); }
.mock__logo {
  width: 30px; height: 30px;
  display: grid;
  place-items: center;
  margin-bottom: 6px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--rule);
}
.mock__logo svg { width: 26px; height: 26px; }
.mock__main { padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.mock__h {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.mock__h em {
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  color: var(--ink-faint);
  text-transform: uppercase;
}
.mock__task {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 9px;
  font-size: 0.78rem;
  font-weight: 550;
  box-shadow: 0 1px 2px rgba(44, 21, 32, 0.03);
  animation: rise 0.6s var(--ease) backwards;
}
.mock__task:nth-child(2) { animation-delay: 0.5s; }
.mock__task:nth-child(3) { animation-delay: 0.6s; }
.mock__task:nth-child(4) { animation-delay: 0.7s; }
@keyframes rise { from { opacity: 0; transform: translateY(9px); } }
.mock__box {
  width: 15px; height: 15px;
  border: 1.5px solid var(--rule-strong);
  border-radius: 4px;
  flex-shrink: 0;
}
.mock__task.done { color: var(--ink-faint); text-decoration: line-through; }
.mock__task.done .mock__box {
  background: var(--moss);
  border-color: var(--moss);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 10px;
  background-repeat: no-repeat;
  background-position: center;
}
.mock__tag {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.56rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 7px;
  border-radius: 5px;
  background: var(--paper-3);
  color: var(--ink-soft);
}
.mock__tag.hot { background: rgba(166, 52, 24, 0.1); color: var(--rust); }

.mock__chat {
  margin-top: auto;
  border-top: 1px solid var(--rule);
  padding-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mock__bubble {
  font-size: 0.75rem;
  padding: 8px 12px;
  border-radius: 12px;
  max-width: 84%;
  line-height: 1.45;
  animation: rise 0.6s var(--ease) backwards;
}
.mock__bubble.me {
  align-self: flex-end;
  background: var(--ink);
  color: var(--paper);
  border-bottom-right-radius: 3px;
  animation-delay: 0.9s;
}
.mock__bubble.dot {
  align-self: flex-start;
  background: #fff;
  border: 1px solid var(--rule);
  border-bottom-left-radius: 3px;
  animation-delay: 1.25s;
}
.mock__bubble.dot b { color: var(--rust); font-weight: 650; }

/* floating annotation chips on the mock */
.chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: var(--shadow-lift);
  animation: float 5s ease-in-out infinite;
  z-index: 3;
}
.chip svg { width: 12px; height: 12px; color: var(--rust); }
.chip--a { top: 12%; left: -34px; }
.chip--b { bottom: 16%; right: -26px; animation-delay: 1.6s; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}
@media (max-width: 940px) { .chip { display: none; } }

/* ---------- terminal ---------- */
.term {
  background: #1E0F17;
  border: 1px solid rgba(251, 247, 240, 0.13);
  border-radius: 13px;
  overflow: hidden;
  box-shadow: var(--shadow-deep);
  text-align: left;
}
.term__tabs {
  display: flex;
  gap: 2px;
  padding: 7px 7px 0;
  background: rgba(0, 0, 0, 0.28);
  border-bottom: 1px solid rgba(251, 247, 240, 0.1);
  overflow-x: auto;
  scrollbar-width: none;
}
.term__tabs::-webkit-scrollbar { display: none; }
.term__tab {
  padding: 9px 15px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 550;
  color: rgba(251, 247, 240, 0.48);
  border-radius: 8px 8px 0 0;
  white-space: nowrap;
  transition: color 0.2s, background 0.2s;
}
.term__tab:hover { color: rgba(251, 247, 240, 0.8); }
.term__tab[aria-selected='true'] {
  color: var(--paper);
  background: #1E0F17;
  box-shadow: inset 0 2px 0 var(--ember);
}
.term__body { padding: 20px 22px; position: relative; }
.term__panel { display: none; }
.term__panel.is-active { display: block; animation: fade 0.3s var(--ease); }
@keyframes fade { from { opacity: 0; } }

.term pre {
  font-family: var(--font-mono);
  font-size: clamp(0.74rem, 1.35vw, 0.83rem);
  line-height: 1.85;
  color: #F3E9DE;
  overflow-x: auto;
  padding-right: 44px;
  white-space: pre;
}
.term pre::-webkit-scrollbar { height: 5px; }
.term pre::-webkit-scrollbar-thumb { background: rgba(251, 247, 240, 0.2); border-radius: 3px; }
/* when a Copy button sits above the code, drop the code below it so they never overlap */
.copy + pre { padding-top: 30px; padding-right: 4px; }
.tk-c { color: #8C7A84; font-style: italic; }  /* comment */
.tk-p { color: var(--ember); user-select: none; } /* prompt $ */
.tk-f { color: #E9A87C; }                       /* flag */
.tk-s { color: #A8C29B; }                       /* string */

.copy {
  position: absolute;
  top: 14px; right: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border: 1px solid rgba(251, 247, 240, 0.2);
  border-radius: 7px;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(251, 247, 240, 0.6);
  background: rgba(251, 247, 240, 0.05);
  transition: all 0.2s;
}
.copy:hover { color: var(--paper); border-color: rgba(251, 247, 240, 0.45); background: rgba(251, 247, 240, 0.1); }
.copy svg { width: 12px; height: 12px; }
.copy.ok { color: #A8C29B; border-color: rgba(168, 194, 155, 0.5); }

/* inline one-liner copy row */
.oneliner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 13px 13px 18px;
  background: rgba(44, 21, 32, 0.045);
  border: 1px solid var(--rule);
  border-radius: 11px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  max-width: 460px;
}
.oneliner code { color: var(--ink); white-space: nowrap; overflow-x: auto; scrollbar-width: none; }
.oneliner code::-webkit-scrollbar { display: none; }
.oneliner .copy {
  position: static;
  margin-left: auto;
  flex-shrink: 0;
  border-color: var(--rule-strong);
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.7);
}
.oneliner .copy:hover { color: var(--ink); border-color: var(--ink); }
.oneliner .copy.ok { color: var(--moss); border-color: var(--moss); }
/* one-liner on dark ink sections */
.ink .oneliner { background: rgba(251, 247, 240, 0.06); }
.ink .oneliner code { color: var(--paper); }
.ink .oneliner .copy {
  background: rgba(251, 247, 240, 0.08);
  border-color: rgba(251, 247, 240, 0.22);
  color: rgba(251, 247, 240, 0.72);
}
.ink .oneliner .copy:hover { color: var(--paper); border-color: rgba(251, 247, 240, 0.5); }
.ink .oneliner .copy.ok { color: #A8C29B; border-color: rgba(168, 194, 155, 0.5); }

/* ---------- pillars ---------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: 14px;
  overflow: hidden;
}
.pillar {
  background: var(--paper);
  padding: 30px 26px;
  transition: background 0.3s;
}
.pillar:hover { background: var(--paper-2); }
.pillar__ico {
  width: 34px; height: 34px;
  color: var(--rust);
  margin-bottom: 18px;
}
.pillar__ico svg { width: 100%; height: 100%; stroke-width: 1.4; }
.pillar h3 { margin-bottom: 9px; }
.pillar p { font-size: 0.9rem; color: var(--ink-soft); line-height: 1.6; }

/* ---------- feature bento ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}
.card {
  grid-column: span 2;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 15px;
  padding: 26px 24px;
  position: relative;
  overflow: hidden;
  transition: transform 0.34s var(--ease), box-shadow 0.34s, border-color 0.34s;
}
.card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(420px 200px at var(--mx, 50%) var(--my, 0%), rgba(249, 115, 22, 0.1), transparent 68%);
  opacity: 0;
  transition: opacity 0.34s;
  pointer-events: none;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
  border-color: var(--rule-strong);
}
.card:hover::after { opacity: 1; }
.card__ico {
  width: 30px; height: 30px;
  color: var(--rust);
  margin-bottom: 16px;
}
.card__ico svg { width: 100%; height: 100%; stroke-width: 1.5; }
.card h3 { margin-bottom: 8px; }
.card p { font-size: 0.875rem; color: var(--ink-soft); line-height: 1.6; }
.card__list {
  list-style: none;
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.card__list li {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 4px 8px;
  border: 1px solid var(--rule);
  border-radius: 5px;
  color: var(--ink-soft);
}
.card--wide { grid-column: span 3; }
.card--hero { grid-column: span 4; }
.card--tall { grid-row: span 2; }
@media (max-width: 900px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .card, .card--wide, .card--hero { grid-column: span 1; }
  .card--tall { grid-row: span 1; }
}
@media (max-width: 560px) {
  .bento { grid-template-columns: 1fr; }
}

/* ---------- dotAi mark & lockup ---------- */
.dotmark {
  width: 1em; height: 1em;
  display: inline-block;
  vertical-align: -0.16em;
  flex-shrink: 0;
}
.dotmark line { stroke-linecap: butt; }
.hdr__nav .dotmark { width: 15px; height: 15px; margin-right: 6px; color: var(--rust); vertical-align: -0.18em; }
.dotlockup { display: inline-flex; align-items: center; gap: 13px; margin-bottom: 20px; }
.dotlockup__badge {
  width: 48px; height: 48px;
  border-radius: 14px;
  background: var(--grad);
  display: grid;
  place-items: center;
  color: #fff;
  box-shadow: 0 10px 26px rgba(236, 72, 153, 0.3);
  flex-shrink: 0;
}
.dotlockup__badge .dotmark { width: 27px; height: 27px; }
.dotlockup__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.45rem;
  letter-spacing: -0.02em;
}
.mock__bubble.dot b { display: inline-flex; align-items: center; gap: 4px; }
.mock__bubble.dot b .dotmark { width: 12px; height: 12px; color: var(--rust); }

/* ---------- dotAi ---------- */
.dot__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
@media (max-width: 900px) { .dot__grid { grid-template-columns: 1fr; } }

.says {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.says__q {
  align-self: flex-start;
  padding: 12px 17px;
  border-radius: 14px;
  border-bottom-left-radius: 4px;
  background: rgba(251, 247, 240, 0.07);
  border: 1px solid var(--rule);
  font-family: var(--font-body);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(0.98rem, 1.5vw, 1.12rem);
  transition: transform 0.3s var(--ease), background 0.3s;
}
.says__q:hover { transform: translateX(5px); background: rgba(251, 247, 240, 0.12); }
.says__q::before { content: '“'; color: var(--ember); }
.says__q::after { content: '”'; color: var(--ember); }

/* agent table */
.agents {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin-top: 8px;
}
.agents th {
  text-align: left;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  padding: 0 0 12px;
  border-bottom: 1px solid var(--rule-strong);
}
.agents td { padding: 15px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.agents td:first-child {
  color: var(--ink);
  font-weight: 650;
  white-space: nowrap;
  padding-right: 26px;
  font-size: 0.92rem;
}
.ink .agents td:first-child { color: var(--paper); }
.agents tr:hover td { background: rgba(251, 247, 240, 0.03); }
.agents td:last-child { color: var(--ink-soft); line-height: 1.55; }
@media (max-width: 620px) {
  .agents, .agents tbody, .agents tr, .agents td { display: block; width: 100%; }
  .agents thead { display: none; }
  .agents tr { padding: 14px 0; border-bottom: 1px solid var(--rule); }
  .agents td { border: none; padding: 0; }
  .agents td:first-child { margin-bottom: 5px; }
}

/* ---------- modes ---------- */
.modes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 880px) { .modes { grid-template-columns: 1fr; } }
.mode {
  border: 1px solid var(--rule);
  border-radius: 15px;
  padding: 28px 26px;
  background: var(--paper);
  position: relative;
  overflow: hidden;
  transition: transform 0.34s var(--ease), box-shadow 0.34s;
}
.mode:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.mode__frame {
  height: 128px;
  margin-bottom: 22px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
/* device silhouettes drawn in CSS */
.dev {
  border: 1.8px solid var(--ink-2);
  border-radius: 5px;
  background:
    linear-gradient(var(--paper-3), var(--paper-3)) padding-box;
  position: relative;
  overflow: hidden;
}
.dev::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grad);
  opacity: 0.14;
}
.dev--desktop { width: 168px; height: 106px; border-radius: 6px 6px 2px 2px; }
.dev--desktop::after {
  content: '';
  position: absolute;
  left: 12px; top: 0; bottom: 0;
  width: 32px;
  border-right: 1.5px solid var(--rule-strong);
  background: rgba(255,255,255,0.5);
}
.dev--phone { width: 60px; height: 118px; border-radius: 9px; }
.dev--phone::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 15px;
  border-top: 1.5px solid var(--rule-strong);
  background: rgba(255,255,255,0.6);
}
.dev--tablet { width: 138px; height: 100px; border-radius: 7px; }
.dev--tablet::after {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 20px;
  border-right: 1.5px solid var(--rule-strong);
  background: rgba(255,255,255,0.5);
}
.mode__k {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: 9px;
}
.mode h3 { margin-bottom: 9px; }
.mode p { font-size: 0.88rem; color: var(--ink-soft); line-height: 1.6; }

/* ---------- stack ---------- */
.stack {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: 13px;
  overflow: hidden;
}
.stack__i {
  background: var(--paper);
  padding: 20px 20px;
  transition: background 0.25s;
}
.stack__i:hover { background: var(--paper-2); }
.stack__i dt {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 6px;
}
.stack__i dd { font-size: 0.92rem; font-weight: 600; letter-spacing: -0.01em; }

/* ---------- footnote ---------- */
.fn-ref {
  color: var(--ember);
  font-weight: 700;
  text-decoration: none;
  padding: 0 1px 0 2px;
  vertical-align: super;
  font-size: 0.7em;
}
.fn-ref:hover { text-decoration: underline; }
.footnote {
  margin-top: 34px;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
  font-size: 0.76rem;
  line-height: 1.5;
  color: var(--ink-faint);
  max-width: 78ch;
  scroll-margin-top: 90px;
}
.footnote__star { color: var(--ember); font-weight: 700; margin-right: 3px; }

/* ---------- friction / every-brain ---------- */
.friction {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 14px;
}
.fri {
  display: flex;
  gap: 15px;
  padding: 22px 22px;
  border: 1px solid var(--rule);
  border-radius: 13px;
  background: var(--paper);
  transition: transform 0.3s var(--ease), box-shadow 0.3s, border-color 0.3s;
}
.fri:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); border-color: var(--rule-strong); }
.fri__ico {
  flex-shrink: 0;
  width: 38px; height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(166, 52, 24, 0.09);
  color: var(--rust);
}
.fri__ico svg { width: 19px; height: 19px; stroke-width: 1.7; }
.fri h3 { font-size: 1.02rem; margin-bottom: 5px; letter-spacing: -0.02em; }
.fri p { font-size: 0.85rem; color: var(--ink-soft); line-height: 1.55; }

/* ---------- maker ---------- */
.maker__card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(26px, 4vw, 52px);
  align-items: start;
  padding: clamp(30px, 4vw, 52px);
  border: 1px solid var(--rule);
  border-radius: 20px;
  background:
    radial-gradient(600px 300px at 100% 0%, rgba(249, 115, 22, 0.07), transparent 60%),
    var(--paper);
  box-shadow: var(--shadow-soft);
}
@media (max-width: 720px) { .maker__card { grid-template-columns: 1fr; text-align: left; gap: 24px; } }
.maker__mono {
  width: clamp(96px, 13vw, 132px);
  aspect-ratio: 1;
  border-radius: 24px;
  background: var(--grad);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 5vw, 3.3rem);
  color: #fff;
  letter-spacing: -0.04em;
  box-shadow: 0 14px 34px rgba(236, 72, 153, 0.28);
  position: relative;
  overflow: hidden;
}
img.maker__mono { object-fit: cover; }
.maker__mono::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='0.35'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}
.maker__k {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.maker__name {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  letter-spacing: -0.03em;
  margin-bottom: 4px;
}
.maker__role {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-soft);
  margin-bottom: 18px;
}
.maker__bio { font-size: 0.98rem; color: var(--ink-soft); line-height: 1.65; max-width: 56ch; margin-bottom: 22px; }
.maker__bio strong { color: var(--ink); font-weight: 650; }
.maker__links { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- FAQ ---------- */
.faq { max-width: 840px; }
.faq__item { border-bottom: 1px solid var(--rule); }
.faq__item:first-child { border-top: 1px solid var(--rule); }
.faq__item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 24px 6px;
  font-size: clamp(1rem, 1.5vw, 1.14rem);
  font-weight: 650;
  letter-spacing: -0.01em;
  color: var(--ink);
  transition: color 0.2s;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--rust); }
.faq__q { flex: 1; }
.faq__ico {
  flex-shrink: 0;
  width: 22px; height: 22px;
  color: var(--rust);
  transition: transform 0.32s var(--ease);
}
.faq__item[open] summary .faq__ico { transform: rotate(45deg); }
.faq__a {
  padding: 0 46px 26px 6px;
  color: var(--ink-soft);
  line-height: 1.68;
  font-size: 0.95rem;
  max-width: 72ch;
  animation: faqIn 0.35s var(--ease);
}
.faq__a a { color: var(--rust); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(166,52,24,0.4); }
.faq__a a:hover { text-decoration-color: var(--rust); }
.faq__a em { font-style: normal; color: var(--ink); font-weight: 600; }
@keyframes faqIn { from { opacity: 0; transform: translateY(-6px); } }

/* ---------- CTA band ---------- */
.cta { text-align: center; }
.cta .display { margin-bottom: 22px; }
.cta .lede { margin-inline: auto; margin-bottom: 34px; }
.cta__row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* ---------- footer ---------- */
.ftr {
  border-top: 1px solid var(--rule);
  padding-block: 56px 34px;
  background: var(--paper-2);
}
.ftr__grid {
  display: grid;
  grid-template-columns: 1.7fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 44px;
}
@media (max-width: 800px) { .ftr__grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 460px) { .ftr__grid { grid-template-columns: 1fr; } }
.ftr__logo { color: var(--ink-2); margin-bottom: 16px; }
.ftr__logo svg { width: 116px; }
.ftr__blurb { font-size: 0.87rem; color: var(--ink-soft); max-width: 34ch; line-height: 1.6; }
.ftr h4 {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 16px;
}
.ftr ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.ftr ul a { font-size: 0.88rem; color: var(--ink-soft); transition: color 0.2s; }
.ftr ul a:hover { color: var(--rust); }
.ftr__base {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  color: var(--ink-faint);
}

/* ---------- docs layout ---------- */
.doc {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: clamp(32px, 5vw, 68px);
  align-items: start;
  padding-block: clamp(44px, 6vw, 72px) clamp(72px, 9vw, 112px);
}
@media (max-width: 900px) { .doc { grid-template-columns: 1fr; } }

.toc { position: sticky; top: 92px; }
@media (max-width: 900px) {
  .toc {
    position: static;
    border: 1px solid var(--rule);
    border-radius: 12px;
    padding: 20px;
    background: var(--paper-2);
  }
}
.toc h4 {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 14px;
}
.toc ul { list-style: none; display: flex; flex-direction: column; gap: 2px; }
.toc a {
  display: block;
  padding: 7px 12px;
  font-size: 0.855rem;
  color: var(--ink-soft);
  border-left: 2px solid var(--rule);
  transition: all 0.2s;
}
.toc a:hover { color: var(--ink); border-left-color: var(--ink-faint); background: rgba(44,21,32,0.03); }
.toc a.is-active {
  color: var(--rust);
  border-left-color: var(--rust);
  font-weight: 650;
  background: rgba(166, 52, 24, 0.05);
}

.prose > * + * { margin-top: 20px; }
.prose h2 {
  font-size: clamp(1.65rem, 3vw, 2.15rem);
  margin-top: 60px;
  padding-top: 30px;
  border-top: 1px solid var(--rule);
  scroll-margin-top: 92px;
}
.prose > h2:first-child { margin-top: 0; border-top: none; padding-top: 0; }
.prose h3 { font-size: 1.16rem; margin-top: 34px; scroll-margin-top: 92px; }
.prose p, .prose li { color: var(--ink-soft); line-height: 1.72; }
.prose strong { color: var(--ink); font-weight: 650; }
.prose ul, .prose ol { padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.prose li::marker { color: var(--rust); }
.prose a:not(.btn) {
  color: var(--rust);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(166, 52, 24, 0.35);
  transition: text-decoration-color 0.2s;
}
.prose a:not(.btn):hover { text-decoration-color: var(--rust); }
.prose code:not(pre code) {
  font-family: var(--font-mono);
  font-size: 0.855em;
  padding: 2px 6px;
  border-radius: 5px;
  background: rgba(166, 52, 24, 0.08);
  color: var(--rust);
  white-space: nowrap;
}
.prose .term { margin-top: 22px; }

/* doc tables */
.tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  margin-top: 22px;
  border: 1px solid var(--rule);
  border-radius: 11px;
  overflow: hidden;
}
.tbl th {
  text-align: left;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-faint);
  background: var(--paper-2);
  padding: 12px 16px;
  border-bottom: 1px solid var(--rule);
  font-weight: 600;
}
.tbl td { padding: 13px 16px; border-bottom: 1px solid var(--rule); color: var(--ink-soft); vertical-align: top; }
.tbl tr:last-child td { border-bottom: none; }
.tbl tbody tr:hover td { background: rgba(44, 21, 32, 0.02); }
.tbl code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  color: var(--rust);
  white-space: nowrap;
}
.tbl__wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* callout */
.note {
  display: flex;
  gap: 14px;
  padding: 18px 20px;
  border-radius: 11px;
  border: 1px solid var(--rule);
  border-left: 3px solid var(--rust);
  background: rgba(166, 52, 24, 0.045);
  margin-top: 24px;
}
.note svg { width: 18px; height: 18px; color: var(--rust); flex-shrink: 0; margin-top: 3px; }
.note p { font-size: 0.875rem; margin: 0; }
.note p + p { margin-top: 8px; }
.note--warn { border-left-color: #B45309; background: rgba(180, 83, 9, 0.05); }
.note--warn svg { color: #B45309; }
.note--good { border-left-color: var(--moss); background: rgba(79, 107, 74, 0.06); }
.note--good svg { color: var(--moss); }

/* page header for subpages */
.phead { padding-block: clamp(52px, 7vw, 84px) 0; }
.phead h1 { font-size: clamp(2.4rem, 5.4vw, 3.9rem); margin-bottom: 18px; letter-spacing: -0.035em; }
.phead .lede { margin-bottom: 0; }

/* file tree */
.tree {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.95;
  padding: 22px 24px;
  border: 1px solid var(--rule);
  border-radius: 11px;
  background: var(--paper-2);
  overflow-x: auto;
  color: var(--ink-soft);
  white-space: pre;
  margin-top: 22px;
}
.tree b { color: var(--ink); font-weight: 650; }
.tree i { color: var(--ink-faint); font-style: normal; }

/* ---------- gallery ---------- */
.galfilter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 34px;
}
.galfilter button {
  padding: 8px 15px;
  border-radius: 999px;
  border: 1px solid var(--rule);
  background: var(--paper);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  transition: all 0.2s var(--ease);
}
.galfilter button:hover { border-color: var(--rule-strong); color: var(--ink); }
.galfilter button[aria-pressed='true'] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}
.gal {
  columns: 3 320px;
  column-gap: 16px;
}
.shot {
  break-inside: avoid;
  margin: 0 0 16px;
  border: 1px solid var(--rule);
  border-radius: 13px;
  overflow: hidden;
  background: var(--paper-2);
  cursor: zoom-in;
  position: relative;
  display: block;
  width: 100%;
  transition: transform 0.34s var(--ease), box-shadow 0.34s, border-color 0.34s;
}
.shot.hide { display: none; }
.shot:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); border-color: var(--rule-strong); }
.shot img { width: 100%; height: auto; display: block; }
.shot figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 26px 14px 12px;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(to top, rgba(20, 9, 14, 0.82), transparent);
  opacity: 0;
  transition: opacity 0.28s;
}
.shot:hover figcaption { opacity: 1; }
.shot__cat {
  display: inline-block;
  color: var(--ember);
}

/* lightbox */
.lb {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  place-items: center;
  padding: clamp(16px, 4vw, 56px);
  background: rgba(20, 9, 14, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.lb.open { display: grid; animation: fade 0.24s var(--ease); }
.lb__stage { position: relative; max-width: 1200px; width: 100%; }
.lb__img {
  width: 100%;
  max-height: 82vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: var(--shadow-deep);
  background: #000;
}
.lb__cap {
  margin-top: 14px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(251, 247, 240, 0.7);
}
.lb__cap b { color: var(--paper); font-weight: 600; }
.lb__close, .lb__nav {
  position: absolute;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(251, 247, 240, 0.1);
  border: 1px solid rgba(251, 247, 240, 0.22);
  color: var(--paper);
  transition: background 0.2s, transform 0.2s;
}
.lb__close:hover, .lb__nav:hover { background: rgba(251, 247, 240, 0.22); }
.lb__close { top: -8px; right: -8px; width: 42px; height: 42px; }
.lb__close svg { width: 20px; height: 20px; }
.lb__nav { top: 50%; transform: translateY(-50%); width: 48px; height: 48px; }
.lb__nav:hover { transform: translateY(-50%) scale(1.06); }
.lb__nav svg { width: 24px; height: 24px; }
.lb__prev { left: -68px; }
.lb__next { right: -68px; }
@media (max-width: 1360px) {
  .lb__prev { left: 8px; }
  .lb__next { right: 8px; }
  .lb__nav { background: rgba(20, 9, 14, 0.5); }
}

/* ---------- changelog ---------- */
.log { max-width: 820px; }
.rel { position: relative; padding-left: 34px; padding-bottom: 44px; }
.rel::before {
  content: '';
  position: absolute;
  left: 6px; top: 8px; bottom: -8px;
  width: 2px;
  background: var(--rule);
}
.rel:last-child::before { display: none; }
.rel::after {
  content: '';
  position: absolute;
  left: 0; top: 6px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--grad);
  box-shadow: 0 0 0 4px var(--paper);
}
.rel__head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 12px; margin-bottom: 6px; }
.rel__v {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.rel--latest .rel__pill {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--grad);
  color: #fff;
}
.rel__date {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.rel__lede { color: var(--ink-soft); font-size: 1.02rem; margin-bottom: 22px; line-height: 1.6; }
.chgroup { margin-bottom: 22px; }
.chgroup > h4 {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 9px;
}
.chgroup > h4 .tagn {
  color: var(--ink-faint);
  font-variant-numeric: tabular-nums;
}
.chitem {
  border: 1px solid var(--rule);
  border-radius: 11px;
  padding: 15px 17px;
  margin-bottom: 9px;
  background: var(--paper);
  transition: border-color 0.25s, background 0.25s;
}
.chitem:hover { border-color: var(--rule-strong); background: var(--paper-2); }
.chitem h5 { font-size: 0.96rem; font-weight: 650; letter-spacing: -0.01em; margin-bottom: 4px; }
.chitem p { font-size: 0.875rem; color: var(--ink-soft); line-height: 1.55; }
.chitem code {
  font-family: var(--font-mono);
  font-size: 0.82em;
  color: var(--rust);
  background: rgba(166, 52, 24, 0.08);
  padding: 1px 5px;
  border-radius: 4px;
}
.chlist { list-style: none; display: flex; flex-direction: column; gap: 7px; }
.chlist li {
  font-size: 0.875rem;
  color: var(--ink-soft);
  line-height: 1.5;
  padding-left: 18px;
  position: relative;
}
.chlist li::before {
  content: '';
  position: absolute;
  left: 2px; top: 9px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--rust);
  opacity: 0.6;
}
.chlist code {
  font-family: var(--font-mono);
  font-size: 0.82em;
  color: var(--rust);
}

/* ---------- reveal on scroll ---------- */
.rv { opacity: 0; transform: translateY(20px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.rv.in { opacity: 1; transform: none; }
.rv-d1 { transition-delay: 0.08s; }
.rv-d2 { transition-delay: 0.16s; }
.rv-d3 { transition-delay: 0.24s; }
.rv-d4 { transition-delay: 0.32s; }
.rv-d5 { transition-delay: 0.4s; }
.rv-d6 { transition-delay: 0.48s; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; } }

/* hero staggered load-in */
.ld { animation: ldin 0.85s var(--ease) backwards; }
.ld-1 { animation-delay: 0.05s; }
.ld-2 { animation-delay: 0.14s; }
.ld-3 { animation-delay: 0.23s; }
.ld-4 { animation-delay: 0.32s; }
.ld-5 { animation-delay: 0.41s; }
.ld-6 { animation-delay: 0.2s; }
@keyframes ldin { from { opacity: 0; transform: translateY(18px); } }

/* accessibility */
.skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 200;
  padding: 12px 20px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 8px;
  font-weight: 600;
}
.skip:focus { left: var(--gutter); }
:focus-visible { outline: 2px solid var(--rust); outline-offset: 3px; border-radius: 4px; }
.ink :focus-visible { outline-color: var(--ember); }
