/* Sabiamia · scroll-craft build
   One pipeline run drawn in cream on brand navy. Page-local styles over the
   scrollcraft token floor. The engine is untouched; everything below is ours. */

:root {
  /* brand tokens onto the engine roles */
  --sc-canvas:      #04066A;
  --sc-surface:     #050510;
  --sc-ink:         #FFFDF3;
  --sc-ink-soft:    #A5A4C2;
  --sc-accent:      #FF4E1A;
  --sc-accent-ink:  #050510;
  --sc-font-display: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --sc-font-text:    'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --sc-font-mono:    'JetBrains Mono', 'SFMono-Regular', Menlo, Consolas, monospace;
  --sc-r-sm: 0; --sc-r-md: 0; --sc-r-lg: 0; --sc-r-pill: 0;
  --sc-shadow-color: 238 90% 3%;

  /* the house palette, by name */
  --navy: #04066A;
  --navy-sink: #03044f;
  --black: #050510;
  --cream: #FFFDF3;
  --cream-display: rgba(255, 253, 243, 0.92);
  --cream-80: rgba(255, 253, 243, 0.72);
  --cream-62: rgba(255, 253, 243, 0.56);
  --cream-40: rgba(255, 253, 243, 0.40);
  --cream-22: rgba(255, 253, 243, 0.22);
  --cream-10: rgba(255, 253, 243, 0.10);
  --cream-05: rgba(255, 253, 243, 0.05);
  --signal: #FF4E1A;

  --cell: 1.5rem;
  --gutter: 10rem;
  --edge: clamp(1.25rem, 4vw, 3.5rem);
  --max: 88rem;
  --col-gap: clamp(1.5rem, 3vw, 3rem);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --t-fast: 160ms;
  --t-med: 420ms;
}

html { scroll-padding-top: var(--cell); }
body {
  font-size: 1.0625rem;
  line-height: var(--cell);
  letter-spacing: normal;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
[hidden] { display: none !important; }
a { text-decoration: none; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 800; text-wrap: balance; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }

::selection { background: var(--cream); color: var(--navy); }
:focus-visible { outline: 2px solid var(--cream); outline-offset: 3px; }
@supports (scrollbar-color: auto) { html { scrollbar-color: var(--cream-40) var(--navy-sink); } }

/* ---------- type ---------- */
.display {
  color: var(--cream-display);
  font-family: var(--sc-font-display);
  font-stretch: 75%;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 0.92;
}
.h-xl { font-size: clamp(2.6rem, 7.6vw, 5.75rem); }
.h-lg { font-size: clamp(2.1rem, 4.4vw, 3.6rem); }
.h-md { font-size: clamp(1.5rem, 2.4vw, 2rem); letter-spacing: -0.02em; line-height: 1.05; }
.lead { font-size: clamp(1.0625rem, 1.3vw, 1.25rem); line-height: 1.5; color: var(--cream-80); max-width: 60ch; text-wrap: pretty; }
.body { color: var(--cream-80); max-width: 66ch; text-wrap: pretty; }
.mono { font-family: var(--sc-font-mono); font-variant-numeric: tabular-nums; }

/* ---------- layout ---------- */
.wrap { width: min(100% - 2 * var(--edge), var(--max)); margin-inline: auto; }

/* ---------- the progress trace ---------- */
[data-sc-progress] { background: var(--signal); height: 2px; }

/* ---------- folio: the margin chrome ---------- */
.folio {
  position: relative;
  font-family: var(--sc-font-mono);
  font-size: 0.8125rem;
  line-height: var(--cell);
  color: var(--cream-62);
}
.folio__in { position: sticky; top: calc(var(--cell) * 1.5); display: grid; gap: 0.25rem; }
.folio__t { color: var(--cream); font-variant-numeric: tabular-nums; }
.folio__n { color: var(--cream-62); white-space: nowrap; }
.folio__m { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.25rem; }
.folio__m .node { flex: none; }
.folio__s { transition: color var(--t-med) var(--ease-out); }
.is-passed .folio__s { color: var(--cream); }
.is-passed .node__fill { transform: scale(1); }
.is-passed .node__check { stroke-dashoffset: 0; }

.node { width: 30px; height: 18px; overflow: visible; }
.node__trace { fill: none; stroke: var(--cream-40); stroke-width: 1.5; stroke-linecap: round; }
.node__ring { fill: var(--navy); stroke: var(--cream); stroke-width: 1.5; }
.node__fill { fill: var(--cream); transform: scale(0); transform-origin: center; transition: transform var(--t-med) var(--ease-out); }
.node__check { fill: none; stroke: var(--navy); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 12; stroke-dashoffset: 12; transition: stroke-dashoffset var(--t-med) var(--ease-out) 120ms; }

/* ---------- chapters ---------- */
.chapter {
  display: grid;
  grid-template-columns: var(--gutter) minmax(0, 1fr);
  column-gap: var(--col-gap);
  padding-top: calc(var(--cell) * 4);
  padding-bottom: calc(var(--cell) * 4);
  position: relative;
}
.chapter::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: var(--cream-22);
}
.chapter--sink { position: relative; }
.chapter--sink::after {
  /* the ground is painted per chapter and cut hard: a bleed behind the wrap */
  content: ""; position: absolute; inset: 0 -50vw; z-index: -1;
  background: var(--navy-sink);
}
.chapter__body { min-width: 0; }
.chapter__head { display: grid; gap: var(--cell); margin-bottom: calc(var(--cell) * 2.5); }
.chapter__head .lead { margin-top: 0.25rem; }
.chapter__head .h-lg { max-width: 22ch; }

@media (max-width: 860px) {
  .chapter { grid-template-columns: minmax(0, 1fr); row-gap: var(--cell); padding-top: calc(var(--cell) * 3.5); padding-bottom: calc(var(--cell) * 3.5); }
  .folio__in { position: static; grid-template-columns: auto auto 1fr; align-items: center; gap: 0.75rem; }
  .folio__m { margin-top: 0; }
  .chapter__head { margin-bottom: calc(var(--cell) * 2); }
}

/* ---------- buttons: commands ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.75rem;
  font-family: var(--sc-font-mono); font-size: 0.9375rem; line-height: 1;
  padding: 0.875rem 1.125rem;
  border: 1px solid var(--cream);
  color: var(--cream);
  background: transparent;
  white-space: nowrap;
  transition: background-color var(--t-fast) var(--ease-out), color var(--t-fast) var(--ease-out), transform var(--t-fast) var(--ease-out), box-shadow var(--t-fast) var(--ease-out);
}
.btn:hover, .btn:focus-visible { background: var(--cream); color: var(--navy); transform: translateY(-2px); box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.7); }
.btn:hover .btn__prompt { opacity: 0.55; }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn--fill { background: var(--cream); color: var(--navy); }
.btn--fill:hover, .btn--fill:focus-visible { background: transparent; color: var(--cream); border-color: var(--cream); }
.btn--fill:hover .btn__prompt { opacity: 0.62; }
.btn__prompt { opacity: 0.62; }
.btn--fill .btn__prompt { opacity: 0.55; }
.btn--sm { padding: 0.5rem 0.875rem; font-size: 0.8125rem; }

.doors { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, max-content)); gap: 1rem 1.25rem; }
.door { display: grid; gap: 0.5rem; }
.door__label { font-size: 0.9375rem; color: var(--cream-62); padding-left: 0.125rem; }

/* ---------- log panel ---------- */
.log {
  min-width: 0; max-width: 100%;
  background: var(--black);
  color: var(--cream);
  border: 1px solid var(--cream-22);
  font-family: var(--sc-font-mono);
  font-size: 0.8125rem;
  line-height: 1.5rem;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.7), inset 0 1px 0 var(--cream-10);
}
.log__head { display: flex; align-items: center; gap: 1rem; padding: 0.5rem 1rem; color: var(--cream-62); font-size: 0.75rem; border-bottom: 1px solid var(--cream-10); }
.log__head b { color: var(--cream); font-weight: 500; }
.log__id { flex: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 70%; }
.log__fill { flex: 1 1 0; min-width: 0; }
.log__state { flex: none; color: var(--cream-62); white-space: nowrap; }
.log__body { padding: 0.75rem 1rem 1rem; overflow-x: auto; }
.log__line { display: grid; grid-template-columns: 5.5rem 1.25rem 1fr; column-gap: 0.75rem; white-space: pre-wrap; align-items: baseline; }
.log__line--k { grid-template-columns: 1.25rem 1fr; }
.log__t { color: var(--cream-62); }
.log__s { color: var(--cream); text-align: center; }
.log__s--run { color: var(--cream-62); }
.log__s--fail { color: var(--signal); }
.log__m { min-width: 0; }
.log__m .k { color: var(--cream); font-weight: 500; }
.log__m .d { color: var(--cream-62); }
.log__m .f { color: var(--signal); }
.log__m .ok { color: var(--cream); }
.log__cursor::after { content: "▍"; color: var(--cream); animation: blink 1s steps(2, start) infinite; margin-left: 2px; }
@keyframes blink { to { visibility: hidden; } }
.log__summary { margin-top: 0.75rem; padding-top: 0.75rem; border-top: 1px solid var(--cream-22); display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; color: var(--cream-62); }
.log__summary b { color: var(--cream); font-weight: 500; }
.log__summary a { color: var(--cream); text-decoration: underline; text-underline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .log__cursor::after { animation: none; } }
@media (max-width: 600px) { .log__state { display: none; } .log__id { max-width: 100%; } }

/* The run log: lines are off until scroll passes their threshold. */
.log--run .log__line[data-at] { display: none; }
.log--run .log__line[data-at].is-on { display: grid; }
.log--run .log__line.is-on:last-of-type { }
.log--run .log__line.is-new .log__m { animation: land 260ms var(--ease-out); }
@keyframes land { from { opacity: 0; transform: translate3d(0, 4px, 0); } }
@media (prefers-reduced-motion: reduce) { .log--run .log__line.is-new .log__m { animation: none; } }

/* ---------- hero: the run, pinned ---------- */
.hero { --p: var(--sc-p, 0); }
.hero__stage {
  display: grid;
  grid-template-rows: auto 1fr;
  background: var(--navy);
  isolation: isolate;
}
.hero__grid-plane {
  position: absolute; inset: -18% 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--cream-05) 1px, transparent 1px),
    linear-gradient(90deg, var(--cream-05) 1px, transparent 1px);
  background-size: 6rem 6rem;
  mask-image: radial-gradient(120% 80% at 70% 40%, #000 30%, transparent 85%);
}
.mast {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1.5rem;
  height: 3.75rem;
}
.mast__brand { display: inline-flex; align-items: center; gap: 0.75rem; }
.mast__logo { width: 28px; height: 28px; border-radius: 50%; }
.mast__word { font-family: var(--sc-font-display); font-stretch: 80%; font-weight: 900; font-size: 1.125rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--cream); }
.mast__nav { display: flex; justify-content: center; gap: 1.5rem; font-family: var(--sc-font-mono); font-size: 0.8125rem; }
.mast__nav a { color: var(--cream-80); padding: 0.25rem 0; position: relative; transition: color var(--t-fast) var(--ease-out); }
.mast__nav a:hover { color: var(--cream); }
.mast__nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: var(--cream); transform: scaleX(0); transform-origin: 0 50%; transition: transform var(--t-fast) var(--ease-out); }
.mast__nav a:hover::after { transform: scaleX(1); }

.hero__in {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: var(--gutter) minmax(0, 6fr) minmax(0, 6fr);
  column-gap: var(--col-gap);
  align-items: center;
  padding-bottom: calc(var(--cell) * 2);
}
.hero__folio .folio__in { position: static; }
.hero__copy {
  display: grid; gap: calc(var(--cell) * 1.25);
  --recede: clamp(0, (var(--p) - 0.22) / 0.4, 1);
  opacity: calc(1 - 0.6 * var(--recede));
  transform: translate3d(calc(-4vw * var(--recede)), 0, 0);
  will-change: opacity, transform;
}
.hero .h-xl { max-width: 12ch; font-size: clamp(2.6rem, 6.4vw, 4.5rem); }
.hero__log {
  position: relative;
  transform-origin: 100% 45%;
  transform: translate3d(calc(-7vw * var(--p)), 0, 0) scale(calc(0.94 + 0.12 * var(--p)));
  will-change: transform;
}
.hero__log .log { min-height: 25rem; line-height: 1.375rem; }

@media (prefers-reduced-motion: reduce) {
  .hero__copy { opacity: 1; transform: none; }
  .hero__log { transform: none; }
}
@media (max-width: 1100px) {
  .hero__in { grid-template-columns: var(--gutter) minmax(0, 1fr); row-gap: var(--cell); align-content: center; }
  .hero__log { grid-column: 2; transform: none; }
  .hero__copy { transform: none; opacity: 1; }
  .hero .h-xl { max-width: 18ch; }
  .hero__lead { display: none; }
}
@media (max-width: 860px) {
  .hero__stage { grid-template-rows: auto 1fr; }
  .mast { height: 3.25rem; grid-template-columns: auto 1fr auto; }
  .mast__nav { display: none; }
  .hero__in { grid-template-columns: minmax(0, 1fr); row-gap: var(--cell); padding-bottom: var(--cell); }
  .hero__folio { display: none; }
  .hero__log { grid-column: 1; }
  .hero__log .log { min-height: 0; font-size: 0.75rem; line-height: 1.25rem; }
  .hero__log .log__body { padding: 0.5rem 0.75rem 0.75rem; }
  .hero__log .log__line { grid-template-columns: 4.5rem 1rem 1fr; column-gap: 0.5rem; }
  .hero__log .log__line--k { grid-template-columns: 1rem 1fr; }
  .hero .h-xl { font-size: clamp(2.2rem, 9vw, 3rem); max-width: none; }
  .doors { grid-template-columns: 1fr; gap: 0.5rem; }
  .door__label { display: none; }
  .btn { padding: 0.75rem 1rem; font-size: 0.875rem; }
}
@media (max-width: 600px) {
  .hero__log .log__m .d { display: none; }
  .log__summary { gap: 0.25rem 1rem; }
}

/* ---------- build: the two doors ---------- */
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: calc(var(--cell) * 1.5) var(--col-gap); align-items: start; }
@media (max-width: 960px) { .split { grid-template-columns: minmax(0, 1fr); } }
.door-card { display: grid; gap: var(--cell); }
.door-card > div[data-sc-in] { display: grid; gap: var(--cell); }
.door-card ul { display: grid; gap: 0.25rem; color: var(--cream-80); }
.door-card li { display: grid; grid-template-columns: 1.25rem 1fr; gap: 0.5rem; }
.door-card li::before { content: ""; width: 1rem; height: var(--cell); background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 12'><path d='M2 2l4 4-4 4' fill='none' stroke='%23fffdf3' stroke-opacity='.64' stroke-width='1.25' stroke-linecap='round' stroke-linejoin='round'/></svg>") no-repeat left center / 8px 12px; }
.reveal-frame { will-change: clip-path; }
.label-synth { font-family: var(--sc-font-mono); font-size: 0.75rem; color: var(--cream-62); }

/* ---------- services: the ledger ---------- */
.svc__row {
  display: grid;
  grid-template-columns: minmax(0, 17rem) minmax(0, 1fr) minmax(0, 15rem);
  column-gap: clamp(1rem, 2.5vw, 2.5rem);
  padding: calc(var(--cell) * 0.75) 0 var(--cell);
  align-items: start;
}
.svc__row + .svc__row { border-top: 1px solid var(--cream-10); }
.svc__name { font-family: var(--sc-font-display); font-stretch: 85%; font-weight: 800; font-size: 1.375rem; line-height: 1.15; letter-spacing: -0.015em; color: var(--cream); }
.svc__desc { color: var(--cream-80); max-width: 60ch; text-wrap: pretty; }
.svc__ships { font-family: var(--sc-font-mono); font-size: 0.8125rem; line-height: 1.5rem; color: var(--cream-80); }
.svc__ships li { display: grid; grid-template-columns: 1rem 1fr; }
.svc__ships li::before { content: "└"; color: var(--cream-40); }
.svc__ships li:not(:last-child)::before { content: "├"; }
@media (max-width: 1100px) { .svc__row { grid-template-columns: minmax(0, 1fr); row-gap: 0.5rem; } }

/* ---------- stack: the rail ---------- */
.rail-act__stage { background: var(--black); }
.folio--float { position: absolute; top: calc(var(--cell) * 1.5); left: var(--edge); z-index: 2; }
.folio--float .folio__in { position: static; }
.rail {
  height: 100%;
  align-items: center;
  gap: clamp(2rem, 4vw, 3.5rem);
  padding-inline: var(--edge) calc(var(--edge) * 2);
  padding-top: calc(var(--cell) * 3);
}
.rail__item {
  flex: 0 0 clamp(17rem, 22vw, 21rem);
  display: grid; gap: 0.75rem; align-content: start;
  /* staggered settle: item k lands as p passes its slot; floor at 0.55 */
  --settle: clamp(0, (var(--sc-p, 1) * 1.12 - (var(--k) - 1) / 8) / 0.16, 1);
  opacity: calc(0.55 + 0.45 * var(--settle));
  transform: translate3d(0, calc(10px * (1 - var(--settle))), 0);
}
.rail__item:first-child { --settle: 1; }
.rail__lead { flex-basis: clamp(20rem, 34vw, 30rem); gap: var(--cell); padding-right: clamp(1rem, 3vw, 3rem); border-right: 1px solid var(--cream-22); }
.rail__lead .h-lg { max-width: 16ch; }
.rail__tail { flex-basis: clamp(19rem, 26vw, 24rem); }
.rail__note { margin-top: 0.5rem; }
.manifest__key { font-family: var(--sc-font-mono); font-size: 0.875rem; color: var(--cream-62); }
.manifest__key b { color: var(--cream); font-weight: 500; }
.tokens { font-family: var(--sc-font-mono); font-size: 0.9375rem; line-height: 2rem; color: var(--cream-80); }
.tok { display: block; white-space: nowrap; padding-left: 1rem; position: relative; }
.tok::before { content: "├"; position: absolute; left: 0; color: var(--cream-40); }
.tok:last-child::before { content: "└"; }
.checks { display: grid; gap: 0.125rem; font-family: var(--sc-font-mono); font-size: 0.8125rem; line-height: 1.5rem; }
.checks li { display: grid; grid-template-columns: 1.75rem 1fr; gap: 0.5rem; color: var(--cream-80); }
.checks li::before { content: "[x]"; color: var(--cream); font-weight: 500; letter-spacing: -0.05em; }
@media (prefers-reduced-motion: reduce) {
  .rail__item { --settle: 1; transform: none; }
  .rail { align-items: start; padding-top: calc(var(--cell) * 5); padding-bottom: var(--cell); }
}
@media (max-width: 860px) {
  .folio--float { left: var(--edge); }
  .rail { padding-top: calc(var(--cell) * 4); }
  .rail__item { flex-basis: min(78vw, 20rem); }
  .rail__lead { flex-basis: min(84vw, 24rem); }
  .rail__lead .h-lg { font-size: clamp(1.75rem, 6.5vw, 2.4rem); }
  .rail__tail { flex-basis: min(84vw, 22rem); }
}

/* ---------- work: schematics that draft themselves ---------- */
.records { display: grid; }
.record {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  gap: var(--cell) var(--col-gap);
  padding: calc(var(--cell) * 1.5) 0;
  align-items: center;
}
.record + .record { border-top: 1px solid var(--cream-10); }
.record__text { display: grid; gap: 0.75rem; align-content: start; }
.record__meta { display: flex; justify-content: space-between; gap: 1rem; font-family: var(--sc-font-mono); font-size: 0.75rem; color: var(--cream-62); }
.record__meta b { color: var(--cream); font-weight: 500; }
.record__title { font-family: var(--sc-font-display); font-stretch: 85%; font-weight: 800; font-size: 1.5rem; line-height: 1.1; letter-spacing: -0.015em; color: var(--cream); }
.record__desc { color: var(--cream-80); max-width: 46ch; text-wrap: pretty; }
.record__trace { display: flex; align-items: center; gap: 0.375rem; font-family: var(--sc-font-mono); font-size: 0.75rem; color: var(--cream-62); flex-wrap: wrap; margin-top: 0.25rem; }
.record__trace .node { width: 24px; height: 14px; }
.record__trace .node__fill { transform: scale(1); }
.record__trace .node__check { stroke-dashoffset: 0; }
.record__trace .tr { color: var(--cream-40); }
.record__fig { background: var(--black); border: 1px solid var(--cream-22); aspect-ratio: 16 / 9; display: grid; place-items: center; padding: 1rem; overflow: hidden; margin: 0; box-shadow: inset 0 1px 0 var(--cream-10), 0 18px 40px -20px rgba(0,0,0,0.6); }
.record__fig svg { width: 100%; height: 100%; overflow: visible; }

/* The draft. --sc-p comes from the record's flow act. The drawing runs from
   p 0.14 (figure just past the fold) to p 0.58 (figure mid-screen), and every
   element has its own --d (start) and --l (length) inside that window,
   assigned in drafting order by site.js: boxes, wires, nodes, labels. */
.record__fig svg {
  --t: clamp(0, (var(--sc-p, 1) - 0.14) / 0.44, 1);
}
[data-draft] .fig-box, [data-draft] .fig-line, [data-draft] .fig-node, [data-draft] .fig-t, [data-draft] .fig-fill {
  --e: clamp(0, (var(--t) - var(--d, 0)) / var(--l, 0.3), 1);
}
.record__fig .fig-box { fill: var(--black); stroke: var(--cream); stroke-width: 1.25; stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--e)); }
.record__fig .fig-box--soft { stroke: var(--cream-40); }
.record__fig .fig-line { fill: none; stroke: var(--cream-62); stroke-width: 1.25; stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--e)); }
.record__fig .fig-line--soft { stroke: var(--cream-40); }
.record__fig .fig-node { fill: var(--cream); transform: scale(var(--e)); transform-box: fill-box; transform-origin: center; }
.record__fig .fig-t { font-family: var(--sc-font-mono); font-size: 8px; fill: var(--cream); opacity: var(--e); }
.record__fig .fig-t--dim { fill: var(--cream-62); }
.record__fig .fig-fill { fill: var(--cream); transform: scaleY(var(--e)); transform-box: fill-box; transform-origin: bottom; }
.record__fig .fig-fill--dim { fill: var(--cream-22); transform: scaleX(var(--e)); transform-origin: left; }
@media (prefers-reduced-motion: reduce) { .record__fig svg { --t: 1; } }
@media (max-width: 960px) {
  .record { grid-template-columns: minmax(0, 1fr); }
  .record__fig { order: -1; }
  .record__fig svg { --t: clamp(0, (var(--sc-p, 1) - 0.1) / 0.36, 1); }
}

/* ---------- about ---------- */
.about__prose { display: grid; gap: var(--cell); }
.where { display: grid; gap: 0.5rem; margin-top: 0.5rem; }
.inline-list { font-family: var(--sc-font-mono); font-size: 0.875rem; line-height: 1.85rem; color: var(--cream-80); }
.inline-list li { display: inline; }
.inline-list li:not(:last-child)::after { content: "  │  "; color: var(--cream-40); white-space: pre; }
.principles li { padding: var(--cell) 0; }
.principles li + li { border-top: 1px solid var(--cream-10); }
.principles li:first-child { padding-top: 0; }
.principles b { display: block; font-family: var(--sc-font-display); font-stretch: 85%; font-weight: 800; font-size: 1.25rem; line-height: 1.2; margin-bottom: 0.25rem; color: var(--cream); }
.principles p { color: var(--cream-80); max-width: 62ch; text-wrap: pretty; }

/* ---------- close: the colophon ---------- */
.close {
  min-height: 100svh;
  display: grid; grid-template-rows: 1fr auto;
  background: var(--black);
  border-top: 1px solid var(--cream-22);
}
.close__in {
  display: grid;
  grid-template-columns: var(--gutter) minmax(0, 1fr);
  column-gap: var(--col-gap);
  padding-top: calc(var(--cell) * 5);
  padding-bottom: calc(var(--cell) * 4);
  align-content: center;
}
.close .node__ring { fill: var(--black); }
.close .node__check { stroke: var(--black); }
.close__body { display: grid; gap: calc(var(--cell) * 2); }
.close__body > div[data-sc-in] { display: grid; gap: calc(var(--cell) * 1.25); }
.close .h-lg { max-width: 18ch; }
.close__run { font-size: clamp(1.0625rem, 1.3vw, 1.25rem); line-height: 1.6; color: var(--cream-80); max-width: 60ch; text-wrap: pretty; }
.close__cmd { font-family: var(--sc-font-mono); font-size: 0.9em; color: var(--cream); white-space: nowrap; border-bottom: 1px solid var(--cream-40); transition: border-color var(--t-fast) var(--ease-out); }
.close__cmd::before { content: "$ "; color: var(--cream-62); }
.close__cmd:hover { border-color: var(--cream); }
.close__cta { color: var(--cream); font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; text-decoration-color: var(--signal); }
.close__cta:hover { text-decoration-color: var(--cream); }
.close__summary {
  font-family: var(--sc-font-mono); font-size: 0.875rem; line-height: 1.5rem; color: var(--cream-62);
  display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem;
  padding-top: var(--cell); border-top: 1px solid var(--cream-22);
  max-width: 44rem;
}
.close__summary b { color: var(--cream); font-weight: 500; }
.close__summary a { color: var(--cream); text-decoration: underline; text-underline-offset: 3px; }
.foot { border-top: 1px solid var(--cream-10); padding: calc(var(--cell) * 1.25) 0; font-family: var(--sc-font-mono); font-size: 0.8125rem; color: var(--cream-62); }
.foot__in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem; align-items: center; }
.foot__brand { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--cream); }
.foot__brand img { border-radius: 50%; }
.foot__links, .foot__contact { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.foot a { color: var(--cream-80); }
.foot a:hover { color: var(--cream); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 860px) {
  .close__in { grid-template-columns: minmax(0, 1fr); row-gap: var(--cell); padding-top: calc(var(--cell) * 3.5); padding-bottom: calc(var(--cell) * 3); }
}

/* Under reduced motion the engine keeps opacity reveals and drops position
   changes; the page follows suit above. Nothing here animates width, height,
   top or left. */
