/* Locard site
   VOICE   plain, direct, a bit forensic
   IDEA    a trace: dots that lead to a blinking cursor
   COLOUR  cool paper, ink, one amber
   TYPE    Archivo (condensed for display), JetBrains Mono for anything you type
*/
@font-face {
  font-family: "Archivo";
  src: url(fonts/archivo.woff2) format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url(fonts/jetbrains-mono.woff2) format("woff2");
  font-weight: 100 800;
  font-display: swap;
}

:root {
  --paper: #EEF1F4;
  --paper-2: #E3E8ED;
  --card: #F8FAFB;
  --ink: #0D1014;
  --ink-2: #2A323B;
  --slate: #56616D;
  --line: #CBD3DB;
  --amber: #FFB547;
  --amber-hi: #FFC56E;
  --amber-deep: #B86A00;
  --term: #0D1014;
  --term-2: #161B21;
  --term-3: #1F262E;
  --term-line: #262E37;
  --term-text: #E8EDF2;
  --term-dim: #7D8894;
  --term-red: #FF7A70;
  --term-green: #7DDB9A;
  --sans: "Archivo", ui-sans-serif, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Menlo, Consolas, monospace;
  --wrap: 1200px;
  --gutter: clamp(18px, 4vw, 40px);
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 18px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
body.locked { overflow: hidden; }
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-color: var(--amber-deep); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--ink); }
:focus-visible { outline: 3px solid var(--amber-deep); outline-offset: 3px; border-radius: 6px; }
code, kbd, pre { font-family: var(--mono); }
p code, li code, td code, dd code { font-size: .88em; background: var(--paper-2); padding: 1px 6px; border-radius: 5px; white-space: nowrap; }
::selection { background: var(--amber); color: var(--ink); }
.wrap { width: min(var(--wrap), 100% - var(--gutter) * 2); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 10px; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 10px; z-index: 50; }
.skip:focus { left: 10px; }

/* ---------- floating nav ---------- */
.nav {
  position: sticky; top: 12px; z-index: 30;
  width: min(var(--wrap), 100% - 24px); margin: 12px auto 0;
  display: flex; align-items: center; gap: 8px;
  padding: 8px 8px 8px 18px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--card) 78%, transparent);
  border: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  backdrop-filter: blur(18px) saturate(1.5);
  -webkit-backdrop-filter: blur(18px) saturate(1.5);
  box-shadow: 0 1px 0 rgba(255,255,255,.7) inset, 0 12px 32px -18px rgba(13,16,20,.35);
  transition: box-shadow .25s, background .25s;
}
.nav.menu-open { background: var(--term-2); border-color: var(--term-line); box-shadow: none; }
.nav.menu-open .brand { color: var(--term-text); }
.nav.menu-open .brand svg circle { fill: var(--term-text); }
.sheet li a span { white-space: nowrap; }
.nav.scrolled { background: color-mix(in srgb, var(--card) 90%, transparent); box-shadow: 0 1px 0 rgba(255,255,255,.7) inset, 0 16px 40px -18px rgba(13,16,20,.45); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 750; font-size: 20px; letter-spacing: -0.01em; margin-right: auto; }
.brand svg { width: 30px; height: 30px; }
.nav-links { display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; list-style: none; }
.nav-links a { display: block; padding: 9px 14px; border-radius: 999px; text-decoration: none; font-size: 16px; font-weight: 500; color: var(--ink-2); transition: background .15s; }
.nav-links a:hover { background: var(--paper-2); }
.nav-links a[aria-current="page"] { background: var(--ink); color: var(--paper); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px; border-radius: 999px; border: 0;
  font: 650 16px/1 var(--sans); text-decoration: none; cursor: pointer;
  background: var(--amber); color: var(--ink);
  transition: background .15s, transform .15s var(--ease);
}
.btn:hover { background: var(--amber-hi); }
.btn:active { transform: scale(.97); }
.btn.dark { background: var(--ink); color: var(--paper); }
.btn.dark:hover { background: #262E37; }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--paper); }
.btn svg { width: 18px; height: 18px; }

/* burger */
.burger {
  display: none; position: relative; z-index: 41;
  width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: var(--ink); cursor: pointer;
}
.burger span { position: absolute; left: 13px; right: 13px; height: 2px; border-radius: 2px; background: var(--paper); transition: transform .35s var(--ease), top .35s var(--ease), width .35s var(--ease); }
.burger span:nth-child(1) { top: 17px; }
.burger span:nth-child(2) { top: 25px; right: 18px; }
.burger[aria-expanded="true"] { background: var(--amber); }
.burger[aria-expanded="true"] span { background: var(--ink); }
.burger[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { top: 21px; right: 13px; transform: rotate(-45deg); }

.sheet {
  position: fixed; inset: 0; z-index: 29;
  display: flex; flex-direction: column;
  padding: 96px var(--gutter) 28px;
  background: var(--ink); color: var(--term-text);
  clip-path: circle(0 at calc(100% - 46px) 42px);
  visibility: hidden;
  transition: clip-path .55s var(--ease), visibility 0s .55s;
  overflow-y: auto;
}
.sheet.open { clip-path: circle(150% at calc(100% - 46px) 42px); visibility: visible; transition: clip-path .6s var(--ease), visibility 0s; }
.sheet::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(circle, rgba(232,237,242,.09) 1.2px, transparent 1.6px);
  background-size: 22px 22px;
  mask-image: linear-gradient(to bottom, #000, transparent 70%);
}
.sheet ul { position: relative; list-style: none; margin: 0; padding: 0; }
.sheet li { border-bottom: 1px solid var(--term-line); }
.sheet li a {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  padding: 16px 0; text-decoration: none;
  font-size: clamp(40px, 11.5vw, 60px); line-height: 1; font-weight: 800; font-stretch: 68%; letter-spacing: -0.01em;
}
.sheet li a small { max-width: 11em; font: 400 15px/1.3 var(--sans); color: var(--term-dim); text-align: right; letter-spacing: 0; font-stretch: 100%; }
.sheet li a[aria-current="page"] { color: var(--amber); }
.sheet .sheet-foot { position: relative; margin-top: auto; padding-top: 32px; display: grid; gap: 12px; }
.sheet .copy { width: 100%; justify-content: space-between; background: var(--term-3); box-shadow: inset 0 0 0 1px var(--term-line); }
.sheet .btn.ghost { color: var(--term-text); box-shadow: inset 0 0 0 1.5px var(--term-line); }
.sheet .btn.ghost:hover { background: var(--term-3); }
@media (prefers-reduced-motion: no-preference) {
  .sheet li { opacity: 0; transform: translateY(18px); transition: opacity .3s, transform .45s var(--ease); }
  .sheet.open li { opacity: 1; transform: none; }
  .sheet.open li:nth-child(1) { transition-delay: .12s; }
  .sheet.open li:nth-child(2) { transition-delay: .17s; }
  .sheet.open li:nth-child(3) { transition-delay: .22s; }
  .sheet.open li:nth-child(4) { transition-delay: .27s; }
}
@media (prefers-reduced-motion: reduce) {
  .sheet, .sheet.open { transition: none; }
}

/* ---------- shared bits ---------- */
.dots { position: relative; isolation: isolate; }
.dots::before {
  content: ""; position: absolute; inset: -120px 0 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(circle, rgba(13,16,20,.16) 1.2px, transparent 1.6px);
  background-size: 24px 24px;
  mask-image: radial-gradient(ellipse 70% 70% at 70% 30%, #000 10%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 70% 30%, #000 10%, transparent 70%);
}
h1, h2, .display {
  margin: 0; font-weight: 800; font-stretch: 68%; letter-spacing: -0.01em; text-wrap: balance;
}
h1 { font-size: clamp(52px, 7vw, 104px); line-height: .9; }
h2 { font-size: clamp(38px, 5vw, 66px); line-height: .95; }
h3 { margin: 0; font-size: 21px; line-height: 1.2; font-weight: 700; }
.lede { margin: 26px 0 0; max-width: 32em; font-size: clamp(19px, 1.6vw, 21px); color: var(--ink-2); }
.intro { margin: 18px 0 0; max-width: 36em; font-size: 19px; color: var(--ink-2); }
.sec { padding: clamp(64px, 9vw, 120px) 0; }
.sec.tight { padding-top: 0; }
.more { display: inline-block; margin-top: 28px; font-weight: 650; font-size: 17px; }

.trace { display: inline-flex; align-items: flex-end; gap: .07em; margin-left: .12em; height: .66em; }
.nw { white-space: nowrap; }
.trace i { display: block; border-radius: 50%; background: currentColor; }
.trace i:nth-child(1) { width: .1em; height: .1em; opacity: .4; }
.trace i:nth-child(2) { width: .14em; height: .14em; opacity: .7; }
.trace i:nth-child(3) { width: .19em; height: .19em; }
.trace b { display: block; width: .3em; height: .66em; margin-left: .05em; border-radius: .05em; background: var(--amber); }
@media (prefers-reduced-motion: no-preference) {
  .trace i { animation: dot .45s var(--ease) both; }
  .trace i:nth-child(1) { animation-delay: .25s; }
  .trace i:nth-child(2) { animation-delay: .4s; }
  .trace i:nth-child(3) { animation-delay: .55s; }
  .trace b { animation: fade .3s .75s both, blink 1.1s 1.1s steps(1) 4; }
}
@keyframes dot { from { transform: scale(0); opacity: 0; } }
@keyframes fade { from { opacity: 0; } }
@keyframes blink { 50% { opacity: 0; } }

.copy {
  display: inline-flex; align-items: center; gap: 14px;
  min-height: 56px; padding: 0 12px 0 20px;
  border: 0; border-radius: 16px; cursor: pointer;
  font: 500 16px/1 var(--mono);
  background: var(--ink); color: var(--term-text);
  box-shadow: 0 1px 0 rgba(255,255,255,.08) inset, 0 14px 30px -14px rgba(13,16,20,.6);
}
.copy .dollar { color: var(--term-dim); }
.copy .hint { font: 650 13px/1 var(--sans); padding: 8px 11px; border-radius: 999px; background: var(--amber); color: var(--ink); }
.copy:hover .hint { background: var(--amber-hi); }

/* ---------- terminal ---------- */
.term {
  position: relative;
  background: var(--term); color: var(--term-text);
  border-radius: 20px; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(13,16,20,.9), 0 50px 90px -40px rgba(13,16,20,.55), 0 30px 60px -30px rgba(184,106,0,.35);
}
.term-bar { display: flex; align-items: center; gap: 8px; padding: 13px 18px; background: var(--term-2); border-bottom: 1px solid var(--term-line); font: 500 13px/1 var(--mono); color: var(--term-dim); }
.term-bar span { width: 11px; height: 11px; border-radius: 50%; background: #2B333D; }
.term-bar em { font-style: normal; margin-left: 8px; }
.term pre, .snip { margin: 0; font: 400 13.5px/1.6 var(--mono); white-space: pre; overflow-x: auto; scrollbar-width: thin; scrollbar-color: #2B333D transparent; }
.d { color: var(--term-dim); } .r { color: var(--term-red); } .g { color: var(--term-green); } .a { color: var(--amber); } .b { font-weight: 700; }

/* ---------- home: hero ---------- */
.hero { padding: clamp(56px, 8vw, 104px) 0 clamp(64px, 8vw, 112px); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: clamp(36px, 5vw, 72px); align-items: center; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 34px; }
.small { font-size: 15px; color: var(--slate); margin: 18px 0 0; }
.ask { display: flex; align-items: center; gap: 10px; padding: 18px 20px 6px; font: 500 15px/1.4 var(--mono); }
.ask label { color: var(--amber); white-space: nowrap; }
.ask input { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; color: var(--term-text); font: inherit; font-size: 16px; caret-color: var(--amber); }
.ask input::placeholder { color: #55606C; }
.ask:focus-within { box-shadow: inset 3px 0 0 var(--amber); }
.out { padding: 10px 20px 20px; height: 25.5em; overflow: auto; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 18px 16px; border-top: 1px solid var(--term-line); background: var(--term-2); }
.chips p { margin: 0 6px 0 0; font: 500 13px/32px var(--sans); color: var(--term-dim); }
.chips button { min-height: 32px; font: 500 13px/1 var(--mono); color: var(--term-text); background: var(--term-3); border: 1px solid #2B333D; border-radius: 9px; padding: 8px 10px; cursor: pointer; }
.chips button:hover { border-color: var(--amber-deep); }
.chips button[aria-pressed="true"] { background: var(--amber); border-color: var(--amber); color: var(--ink); }

/* video */
.film video { width: 100%; height: auto; border-radius: 22px; background: var(--term); box-shadow: 0 0 0 1px var(--ink), 0 60px 110px -60px rgba(13,16,20,.6); }
.film p { margin: 16px 0 0; font-size: 15px; color: var(--slate); }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .film video { animation: grow linear both; animation-timeline: view(); animation-range: entry 0% cover 40%; }
    @keyframes grow { from { transform: scale(.9); border-radius: 36px; } }
  }
}

/* bento */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; margin-top: 48px; }
.tile { display: flex; flex-direction: column; gap: 18px; padding: 26px; border-radius: 24px; background: var(--card); border: 1px solid var(--line); min-height: 260px; }
.tile p { margin: 0; color: var(--ink-2); font-size: 17px; }
.tile h3 { font-size: 24px; font-stretch: 85%; letter-spacing: -0.005em; }
.tile .cmd { margin-top: auto; align-self: flex-start; font: 500 14px/1 var(--mono); padding: 10px 12px; border-radius: 10px; background: var(--paper-2); }
.tile.dark { background: var(--ink); color: var(--term-text); border-color: var(--ink); }
.tile.dark p { color: #C3CBD3; }
.tile.dark .cmd { background: var(--term-3); color: var(--term-text); }
.tile.amber { background: var(--amber); border-color: var(--amber); }
.tile.amber p { color: #3A2A10; }
.tile.amber .cmd { background: rgba(13,16,20,.1); }
.tile .snip { padding: 16px 18px; border-radius: 14px; background: var(--term-2); color: var(--term-text); font-size: 12.5px; }
.tile.w4 { grid-column: span 4; } .tile.w3 { grid-column: span 3; } .tile.w2 { grid-column: span 2; }
.tile.split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 24px; align-items: stretch; }
.tile.split > div { display: flex; flex-direction: column; gap: 14px; }

/* no trace band */
.band { background: var(--ink); color: var(--term-text); }
.band .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.band .intro { color: #C3CBD3; }
.band a { text-decoration-color: var(--amber); }
.panes { display: grid; grid-template-columns: 1.4fr 1fr; gap: 14px; }
.pane { border-radius: 18px; padding: 20px 20px 22px; background: var(--term-2); border: 1px solid var(--term-line); }
.pane h3 { margin: 0 0 14px; font-size: 16px; font-weight: 600; color: var(--term-dim); }
.pane pre { margin: 0; font-size: 13.5px; line-height: 1.7; white-space: pre; overflow-x: auto; }
.pane.pc { display: flex; flex-direction: column; }
.pane.pc .empty { flex: 1; display: grid; place-items: center; min-height: 160px; border: 1px dashed #2B333D; border-radius: 12px; color: var(--term-dim); font-size: 15px; }

/* cta */
.cta { position: relative; overflow: hidden; border-radius: 32px; padding: clamp(36px, 6vw, 72px); background: var(--amber); display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 32px; align-items: center; }
.cta h2 { max-width: 10em; }
.cta p { margin: 16px 0 0; max-width: 28em; color: #3A2A10; }
.cta .row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }

/* ---------- inner pages ---------- */
.page-head { padding: clamp(56px, 8vw, 96px) 0 clamp(40px, 5vw, 64px); }
.page-head h1 { font-size: clamp(54px, 8vw, 116px); }

/* tools page */
.toolbar { position: sticky; top: 84px; z-index: 10; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 12px 0; background: linear-gradient(var(--paper) 75%, transparent); }
.find { position: relative; flex: 1 1 260px; max-width: 380px; }
.find input { width: 100%; min-height: 48px; font: 500 16px/1 var(--sans); color: var(--ink); padding: 0 16px 0 46px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); }
.find input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--amber); }
.find svg { position: absolute; left: 16px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--slate); }
.cats { display: flex; flex-wrap: wrap; gap: 6px; }
.cats button { min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); font: 550 15px/1 var(--sans); color: var(--ink-2); cursor: pointer; }
.cats button:hover { border-color: var(--ink); }
.cats button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.cats button span { color: var(--slate); font-weight: 400; margin-left: 4px; }
.cats button[aria-pressed="true"] span { color: var(--term-dim); }
.catalog { margin-top: 24px; }
.cat { padding-top: 40px; }
.cat > h2 { font-size: clamp(30px, 3.4vw, 42px); }
.cat > p { margin: 8px 0 18px; color: var(--slate); }
.tool { border-top: 1px solid var(--line); }
.tool:last-child { border-bottom: 1px solid var(--line); }
.tool summary { list-style: none; display: grid; grid-template-columns: 10em minmax(0, 1fr) 28px; gap: 20px; align-items: baseline; padding: 18px 4px; cursor: pointer; border-radius: 10px; }
.tool summary::-webkit-details-marker { display: none; }
.tool summary:hover { background: var(--card); }
.tool summary code { font-size: 17px; font-weight: 650; }
.tool summary code span { font-weight: 400; color: var(--slate); font-size: 15px; }
.tool summary p { margin: 0; font-size: 17px; line-height: 1.45; }
.tool summary .tags { display: inline-flex; flex-wrap: wrap; gap: 6px; margin-left: 8px; vertical-align: 1px; }
.tag { font: 600 12px/1 var(--sans); padding: 5px 8px; border-radius: 999px; background: var(--paper-2); color: var(--ink-2); white-space: nowrap; }
.tag.key { background: #FFE3B8; color: #5C3600; }
.plus { position: relative; width: 22px; height: 22px; align-self: center; }
.plus::before, .plus::after { content: ""; position: absolute; left: 4px; right: 4px; top: 10px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .3s var(--ease); }
.plus::after { transform: rotate(90deg); }
.tool[open] .plus::after { transform: rotate(0); }
.tool .ex { margin: 0 0 22px calc(10em + 20px); }
.tool .ex pre { padding: 16px 18px; border-radius: 14px; background: var(--ink); color: var(--term-text); font-size: 13.5px; line-height: 1.75; }
.tool .ex p { margin: 10px 0 0; font-size: 15px; color: var(--slate); }
.tool mark { background: var(--amber); color: var(--ink); border-radius: 2px; }
.none { padding: 40px 0; color: var(--slate); }
.shared { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 40px; margin-top: 40px; }
.shared p { margin: 6px 0 0; font-size: 16px; color: var(--ink-2); }

/* get started */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.steps > li { counter-increment: s; display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 24px; padding: 32px 0; border-top: 2px solid var(--ink); }
.steps > li::before { content: counter(s); font-size: 56px; line-height: .85; font-weight: 800; font-stretch: 62%; color: var(--amber-deep); }
.steps h3 { font-size: 26px; font-stretch: 85%; }
.steps p { margin: 10px 0 0; max-width: 40em; color: var(--ink-2); }
.shell { margin: 16px 0 0; padding: 16px 20px; border-radius: 14px; background: var(--ink); color: var(--term-text); font: 400 15px/1.75 var(--mono); overflow-x: auto; white-space: pre; }
.tabs { margin-top: 18px; }
.tablist { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--paper-2); }
.tablist button { min-height: 40px; padding: 0 16px; border: 0; border-radius: 999px; background: transparent; font: 600 15px/1 var(--sans); color: var(--ink-2); cursor: pointer; }
.tablist button[aria-selected="true"] { background: var(--ink); color: var(--paper); }
.panel ol { margin: 14px 0 0; padding-left: 1.2em; }
.panel li { margin: 0 0 10px; padding-left: 4px; max-width: 40em; }
.table { width: 100%; border-collapse: collapse; margin-top: 24px; font-size: 16px; }
.table th { text-align: left; font-weight: 650; padding: 12px 14px 12px 0; border-bottom: 2px solid var(--ink); }
.table td { padding: 14px 14px 14px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.table td:first-child { white-space: nowrap; }
.note { margin-top: 20px; padding: 18px 22px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); font-size: 16px; max-width: 48em; }

/* about */
.story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.story blockquote { margin: 0; font-size: clamp(32px, 3.6vw, 48px); line-height: 1.02; font-weight: 750; font-stretch: 72%; letter-spacing: -0.01em; }
.story blockquote footer { margin-top: 16px; font: 400 16px/1.4 var(--sans); color: var(--slate); letter-spacing: 0; }
.story .body p { margin: 0 0 18px; max-width: 36em; color: var(--ink-2); }
.timeline { list-style: none; margin: 32px 0 0; padding: 0; border-left: 2px solid var(--ink); }
.timeline li { position: relative; padding: 0 0 22px 24px; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--ink); }
.timeline li:last-child::before { width: 10px; height: 20px; left: -6px; top: 2px; border-radius: 2px; background: var(--amber); }
.timeline b { display: block; font-size: 15px; color: var(--slate); font-weight: 600; }
.rules { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 56px; margin-top: 40px; }
.rule { padding: 26px 0; border-top: 2px solid var(--ink); }
.rule h3 { font-size: clamp(24px, 2.4vw, 30px); line-height: 1.1; font-weight: 780; font-stretch: 78%; letter-spacing: -0.01em; }
.rule p { margin: 10px 0 0; max-width: 30em; color: var(--ink-2); }
.cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 40px; }
.col { padding: 26px; border-radius: 24px; background: var(--card); border: 1px solid var(--line); }
.col p { margin: 10px 0 0; font-size: 16px; color: var(--ink-2); }

/* ---------- footer ---------- */
.foot { margin-top: clamp(40px, 6vw, 80px); padding: 56px 0 40px; background: var(--ink); color: #C3CBD3; font-size: 15px; }
.foot .wrap { display: grid; grid-template-columns: 1.6fr repeat(3, minmax(0, 1fr)); gap: 32px; }
.foot .brand { color: var(--term-text); margin-bottom: 14px; }
.foot p { margin: 0 0 10px; max-width: 30em; }
.foot h3 { font-size: 15px; font-weight: 600; color: var(--term-dim); margin-bottom: 12px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot a { text-decoration: none; color: var(--term-text); }
.foot a:hover { text-decoration: underline; text-decoration-color: var(--amber); }
.foot .base { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; margin-top: 16px; border-top: 1px solid var(--term-line); color: var(--term-dim); }
.foot .brand svg circle { fill: var(--term-text); }

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .hero .wrap, .band .wrap, .story, .cta { grid-template-columns: 1fr; }
  .cta .row { justify-content: flex-start; }
  .tile.w4, .tile.w3, .tile.w2 { grid-column: span 3; }
  .tile.split { grid-template-columns: 1fr; }
  .shared, .cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot .wrap { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .foot .wrap > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .nav-links, .nav .btn { display: none; }
  .burger { display: block; }
  .toolbar { top: 76px; }
}
@media (max-width: 700px) {
  body { font-size: 17px; }
  .bento { grid-template-columns: 1fr; }
  .tile.w4, .tile.w3, .tile.w2 { grid-column: auto; min-height: 0; }
  .panes, .rules, .shared, .cols { grid-template-columns: 1fr; }
  .tool summary { grid-template-columns: minmax(0, 1fr) 28px; gap: 4px 12px; }
  .tool summary code { grid-column: 1; }
  .tool summary p { grid-column: 1; grid-row: 2; }
  .tool summary .plus { grid-row: 1 / 3; grid-column: 2; }
  .tool .ex { margin-left: 0; }
  .toolbar { background: var(--paper); flex-wrap: nowrap; flex-direction: column; align-items: stretch; gap: 10px; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); box-shadow: 0 10px 16px -14px rgba(13,16,20,.35); }
  .find { max-width: none; flex: none; }
  .cats { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
  .cats::-webkit-scrollbar { display: none; }
  .cats button { flex: none; }
  .steps > li { grid-template-columns: 1fr; gap: 10px; }
  .out { font-size: 12px; height: 23em; }
  .copy { font-size: 15px; }
  .foot .wrap { grid-template-columns: 1fr 1fr; }
  .table thead { display: none; }
  .table tr { display: grid; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .table td { border: 0; padding: 3px 0; white-space: normal !important; }
}
