/* Brokentooth.io v0.1 — approved direction, 21 Oct 2026.
   Near-monochrome: warm blacks, bone, ash. One red signal, used only as a pilot light. */

@font-face { font-family: "Barlow Semi Condensed"; font-weight: 200; font-display: swap; src: url(../fonts/barlow-semi-condensed-latin-200-normal.woff2) format("woff2"); }
@font-face { font-family: "Barlow Semi Condensed"; font-weight: 300; font-display: swap; src: url(../fonts/barlow-semi-condensed-latin-300-normal.woff2) format("woff2"); }
@font-face { font-family: "Barlow Semi Condensed"; font-weight: 600; font-display: swap; src: url(../fonts/barlow-semi-condensed-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 300; font-display: swap; src: url(../fonts/ibm-plex-mono-latin-300-normal.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 400; font-display: swap; src: url(../fonts/ibm-plex-mono-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 500; font-display: swap; src: url(../fonts/ibm-plex-mono-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Newsreader"; font-weight: 400; font-display: swap; src: url(../fonts/newsreader-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Newsreader"; font-weight: 400; font-style: italic; font-display: swap; src: url(../fonts/newsreader-latin-400-italic.woff2) format("woff2"); }
@font-face { font-family: "Newsreader"; font-weight: 600; font-display: swap; src: url(../fonts/newsreader-latin-600-normal.woff2) format("woff2"); }

:root {
  --ink-0: #0b0b0a;      /* page */
  --ink-1: #0f0f0e;      /* sidebar */
  --ink-2: #171715;      /* raised: active row, card hover */
  --line: #24231f;       /* hairlines */
  --line-2: #3a3832;     /* emphasised hairlines */
  --bone: #e6e1d6;       /* primary text, the specimen */
  --ash: #a29d92;        /* secondary text */
  --smoke: #6c6860;      /* tertiary text, tags */
  --signal: #d4382c;     /* pilot light: logo apex, statement, live specimen */

  --display: "Barlow Semi Condensed", "Arial Narrow", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --read: "Newsreader", Georgia, serif;

  --side: 272px;
  --gutter: clamp(20px, 3.4vw, 52px);
  --ease: cubic-bezier(.2, .7, .1, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink-0);
  color: var(--bone);
  font: 300 14px/1.65 var(--mono);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
i { font-style: normal; color: var(--smoke); }
:focus-visible { outline: 1px solid var(--bone); outline-offset: 3px; }
::selection { background: var(--bone); color: var(--ink-0); }

.skip { position: absolute; left: 12px; top: -60px; z-index: 50; padding: 8px 12px; background: var(--bone); color: var(--ink-0); font-size: 12px; }
.skip:focus { top: 12px; }

/* ---------- frame ---------- */
.frame { display: grid; grid-template-columns: var(--side) minmax(0, 1fr); min-height: 100vh; min-height: 100dvh; }
.main { min-width: 0; padding: 0 var(--gutter); outline: none; position: relative; }

/* ---------- sidebar ---------- */
.sidebar {
  position: sticky; top: 0; height: 100vh; height: 100dvh;
  display: flex; flex-direction: column;
  background: var(--ink-1);
  border-right: 1px solid var(--line);
  box-shadow: 1px 0 0 #000, 6px 0 0 -5px var(--line);
  overflow-y: auto; scrollbar-width: none;
}
.brand { display: block; padding: 30px 36px 0; }
.mark { width: 84px; height: 96px; color: var(--bone); display: block; margin-left: 46px; overflow: visible; }
.mark__signal { fill: var(--signal); }
.brand__name { display: block; margin-top: 24px; font: 400 15px/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; }
.brand__silo { display: flex; align-items: center; gap: 5px; margin-top: 12px; font-size: 9.5px; letter-spacing: .09em; white-space: nowrap; color: var(--ash); text-transform: uppercase; }
.brand__fracture { display: inline-block; flex: 0 0 16px; width: 16px; height: 18px; color: var(--bone); overflow: visible; }
.brand:hover .mark__tooth { stroke-dasharray: 2 2; }

.drawer { display: flex; flex-direction: column; flex: 1; }
.nav { margin-top: 36px; }
.nav ul, .system ul { list-style: none; margin: 0; padding: 0; }
.nav__link {
  position: relative; display: flex; align-items: center; gap: 28px;
  height: 44px; padding: 0 36px; margin: 0 0 0 10px;
  font: 400 14px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--bone);
  transition: background-color .25s var(--ease), color .25s var(--ease);
}
.nav__n { width: 18px; font-size: 11px; color: var(--smoke); letter-spacing: .05em; transition: color .25s; }
.nav__link::after {
  content: ""; position: absolute; left: 82px; right: 36px; bottom: 11px; height: 1px;
  background: currentColor; opacity: .35; transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease);
}
.nav__link:hover { color: #fff; }
.nav__link:hover .nav__n { color: var(--bone); }
.nav__link:hover::after { transform: scaleX(1); }
.nav__link[aria-current="page"] { background: var(--ink-2); }
.nav__link[aria-current="page"]::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 1px; background: var(--bone); }
.nav__link[aria-current="page"]::after { display: none; }

.system { margin: 30px 36px 0; padding-top: 26px; border-top: 1px solid var(--line-2); }
.system__title { margin: 0 0 18px; font: 400 11px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--ash); }
.system li { margin: 0; }
.system button, .system a {
  display: grid; grid-template-columns: 10px 1fr auto; align-items: center; gap: 8px; width: 100%;
  padding: 8px 0; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ash); text-align: left;
  transition: color .2s;
}
.system button:hover, .system a:hover, .system a[aria-current="page"] { color: var(--bone); }
kbd {
  justify-self: end; min-width: 22px; padding: 1px 5px; border: 1px solid var(--line-2); border-radius: 2px;
  font: 400 10px/1.5 var(--mono); color: var(--ash); text-align: center; letter-spacing: 0;
}
.pip { width: 4px; height: 4px; border-radius: 50%; background: var(--smoke); display: inline-block; transition: background-color .2s, box-shadow .2s; }
.system button:hover .pip, .system a:hover .pip { background: var(--bone); box-shadow: 0 0 6px rgba(230, 225, 214, .6); }

.sidebar__foot { margin-top: auto; padding: 0 36px 24px; }
.statement {
  position: relative; margin: 30px 0 22px; padding: 20px 0 0 40px; border-top: 1px solid var(--line);
  font-size: 10.5px; line-height: 1.6; letter-spacing: .14em; text-transform: uppercase; color: var(--ash);
}
.signal { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 10px rgba(212, 56, 44, .55); }
.statement .signal { position: absolute; left: 4px; top: 25px; }
.statement .signal::after { content: ""; position: absolute; left: 3px; top: 14px; width: 1px; height: 32px; background: linear-gradient(var(--line-2), transparent); }
.copyright { margin: 0; padding: 0 0 10px 6px; border-bottom: 1px solid var(--line-2); border-right: 1px solid var(--line-2); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ash); line-height: 1.7; }
.menu-toggle { display: none; }

/* ---------- status bar ---------- */
.statusbar {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  height: 72px; padding-top: 8px; position: relative; z-index: 4;
  font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--bone);
}
.statusbar p { margin: 0; display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.statusbar__left { color: var(--ash); }
.statusbar__pip { width: 9px; height: 9px; border-radius: 50%; border: 1px solid var(--smoke); position: relative; }
.statusbar__pip::after { content: ""; position: absolute; inset: 2px; border-radius: 50%; background: var(--ash); }
.clock { font-variant-numeric: tabular-nums; }
.clock__pip { width: 6px; height: 6px; border-radius: 50%; background: var(--bone); }
.clock__pip.is-tick { animation: tick 1.2s var(--ease); }
@keyframes tick { 0% { box-shadow: 0 0 0 0 rgba(230, 225, 214, .55); } 100% { box-shadow: 0 0 0 9px rgba(230, 225, 214, 0); } }

/* ---------- hero ---------- */
.main { overflow-x: clip; }
.hero {
  position: relative;
  display: grid; grid-template-columns: minmax(340px, 40%) minmax(0, 1fr); grid-template-rows: auto 1fr;
  grid-template-areas: "head spec" "intro spec";
  height: clamp(560px, calc(100vh - 300px), 680px);
  margin-right: calc(-1 * var(--gutter));
}
.hero__head { grid-area: head; position: relative; z-index: 2; padding: clamp(24px, 5vh, 58px) 0 0 clamp(0px, 1.6vw, 20px); pointer-events: none; }
.hero__intro { grid-area: intro; position: relative; z-index: 2; padding: 0 0 30px clamp(0px, 1.6vw, 20px); pointer-events: none; }
.hero__intro > * { pointer-events: auto; }
.hero__title {
  margin: 0;
  font: 200 clamp(52px, 5.1vw, 84px)/.93 var(--display);
  letter-spacing: .005em; text-transform: uppercase; color: var(--bone);
}
.hero__title span, .hero__title strong { display: block; }
.hero__title strong { font-weight: 600; color: #f1ede4; letter-spacing: .01em; }
.hero__lede { max-width: 31em; margin: clamp(22px, 4vh, 38px) 0 0; font-size: 14px; line-height: 1.75; color: var(--bone); font-weight: 300; }
.cta {
  position: relative; display: inline-flex; align-items: center; gap: 22px;
  margin-top: clamp(24px, 4.5vh, 46px); padding: 18px 2px 12px 0;
  font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--bone);
  border-bottom: 1px solid var(--line-2);
}
.cta::before { content: ""; position: absolute; left: 0; top: 0; width: 58px; height: 1px; background: var(--bone); transition: width .5s var(--ease); }
.cta:hover::before { width: 100%; }
.longway { display: block; width: max-content; margin-top: 14px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--smoke); transition: color .3s var(--ease); }
.longway:hover, .longway:focus-visible { color: var(--bone); }
.i-arrow { width: 15px; height: 10px; flex: none; transition: transform .35s var(--ease); }
.cta:hover .i-arrow, .rule-head__link:hover .i-arrow { transform: translateX(4px); }

/* ---------- specimen ---------- */
.specimen { grid-area: spec; position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 196px; min-height: 0; }
.specimen__field {
  position: relative; grid-column: 1; margin: -64px -40px -34px -22%;
  outline: none; cursor: grab; touch-action: pan-y;
  -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent;
}
.specimen__field:active { cursor: grabbing; }
.specimen__field:focus-visible { outline: 1px dashed var(--line-2); outline-offset: -24px; }
.specimen__canvas, .specimen__poster { position: absolute; inset: 0; width: 100%; height: 100%; }
.specimen__poster { object-fit: contain; transition: opacity .9s var(--ease); }
.specimen__canvas { opacity: 0; transition: opacity 1.1s var(--ease); }
.specimen[data-state="live"] .specimen__canvas { opacity: 1; }
.specimen[data-state="live"] .specimen__poster { opacity: 0; }
.specimen[data-mode="probe"] .specimen__field { cursor: crosshair; }
.specimen[data-mode="distort"] .specimen__field { cursor: move; }

.specimen__readout {
  position: absolute; left: 0; top: 0; z-index: 3; pointer-events: none;
  display: grid; gap: 2px; padding: 6px 8px 6px 10px; border-left: 1px solid var(--bone);
  background: rgba(11, 11, 10, .72); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap;
}
[hidden] { display: none !important; }
.specimen__readout b { font-weight: 500; color: var(--bone); }
.specimen__readout span { color: var(--ash); letter-spacing: .06em; font-variant-numeric: tabular-nums; }

.specimen__orbit {
  position: absolute; pointer-events: none; left: 50%; top: 50%;
  height: 86%; aspect-ratio: 1; transform: translate(-50%, -50%);
  border-radius: 50%; border: 1px solid rgba(230, 225, 214, .055);
}
.specimen__orbit::after { content: ""; position: absolute; inset: 16%; border-radius: 50%; border: 1px dashed rgba(230, 225, 214, .03); }

.specimen__rail {
  grid-column: 2; position: relative; z-index: 3;
  display: flex; flex-direction: column; padding: 60px var(--gutter) 30px 0;
  pointer-events: none;
}
.specimen__rail > * { pointer-events: auto; }
.specimen__note { margin: 0; font-size: 9.5px; line-height: 1.75; letter-spacing: .16em; text-transform: uppercase; color: var(--ash); }
.specimen__tooth { color: var(--bone); letter-spacing: .08em; }
.specimen__tooth-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.specimen__oracle { display: block; color: var(--bone); letter-spacing: .08em; }
.specimen__instruction { display: block; margin-top: 4px; color: var(--ash); letter-spacing: .03em; }
.specimen__data { margin: 16px 0 0; font-size: 9.5px; line-height: 1.75; letter-spacing: .14em; text-transform: uppercase; color: var(--smoke); display: grid; }
.specimen__ticks { margin: auto 0; display: grid; gap: 34px; padding: 20px 0; }
.specimen__ticks i { display: block; height: 1px; background: var(--line-2); }
.specimen__ticks i:nth-child(1) { width: 70%; justify-self: end; }
.specimen__ticks i:nth-child(3) { width: 45%; justify-self: end; }
.specimen__controls { width: 100%; }
.modes { display: grid; }
.mode {
  display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 4px 0;
  font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--smoke); text-align: left;
  transition: color .2s;
}
.mode:hover { color: var(--ash); }
.mode:disabled { cursor: default; opacity: .5; }
.mode[aria-checked="true"], .mode.is-busy { color: var(--bone); }
.mode__pip { width: 7px; height: 7px; border-radius: 50%; border: 1px solid currentColor; position: relative; flex: none; }
.mode__pip::after { content: ""; position: absolute; inset: 1.5px; border-radius: 50%; background: currentColor; transform: scale(0); transition: transform .3s var(--ease); }
.mode[aria-checked="true"] .mode__pip::after, .mode.is-busy .mode__pip::after { transform: scale(1); }
.mode.is-busy .mode__pip::after { animation: busy .9s steps(2) infinite; }
@keyframes busy { 50% { opacity: .2; } }
.specimen__help { margin: 12px 0 0; padding-top: 10px; border-top: 1px solid var(--line); font-size: 10px; line-height: 1.6; letter-spacing: .06em; color: var(--ash); min-height: 3.3em; }

.cross { position: absolute; width: 11px; height: 11px; pointer-events: none; }
.cross::before, .cross::after { content: ""; position: absolute; background: var(--line-2); }
.cross::before { left: 5px; top: 0; width: 1px; height: 11px; }
.cross::after { top: 5px; left: 0; height: 1px; width: 11px; }
.cross--a { left: 24%; top: 16%; } .cross--b { left: 26%; bottom: 12%; } .cross--c { right: 12%; bottom: 10%; }

/* ---------- recent ---------- */
.recent { position: relative; z-index: 2; padding: 6px 0 56px; }
.rule-head { display: flex; align-items: center; gap: 20px; margin: 0 0 22px; }
.rule-head h2 { margin: 0; font: 500 14px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; }
.rule-head__line { flex: 1; height: 1px; background: var(--line-2); }
.rule-head__link { display: inline-flex; align-items: center; gap: 12px; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--ash); transition: color .2s; }
.rule-head__link:hover { color: var(--bone); }

.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 1.8vw, 26px); }
.card-wrap { min-width: 0; }
.card {
  position: relative; display: flex; flex-direction: column; height: 100%;
  padding: 16px 16px 18px; border: 1px solid var(--line-2); background: var(--ink-0);
  transition: border-color .3s var(--ease), background-color .3s var(--ease);
}
.card__head { display: flex; align-items: center; gap: 8px; font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--ash); }
.card__type { flex: 1; }
.card__n { color: var(--ash); font-variant-numeric: tabular-nums; }
.card__cover { display: block; margin: 12px 0 16px; height: 84px; overflow: hidden; }
.card__cover img { width: 100%; height: 100%; object-fit: cover; opacity: .82; transition: opacity .3s, transform .6s var(--ease), filter .3s; }
.card__title { font: 400 16px/1.3 var(--mono); color: var(--bone); letter-spacing: .01em; }
.card__summary { margin-top: 10px; font-size: 13px; line-height: 1.6; color: var(--ash); }
.card__foot { margin-top: auto; padding-top: 22px; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; }
.tags { display: inline-flex; flex-wrap: wrap; gap: 4px 16px; font-size: 11px; color: var(--smoke); }
.badge { font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; padding: 1px 6px; border: 1px solid var(--line-2); color: var(--ash); white-space: nowrap; }
.badge--review { border-style: dashed; }

/* Electrification: a current runs once around a container when it becomes active. */
@property --charge { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.card::after, .charge::after {
  content: ""; position: absolute; inset: -1px; pointer-events: none; padding: 1px;
  background: conic-gradient(from var(--charge), transparent 0 76%, rgba(230, 225, 214, .15) 84%, #fff 88%, rgba(230, 225, 214, .15) 91%, transparent 96%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: 0;
}
.card:hover, .card:focus-visible { border-color: #57544c; background: var(--ink-2); }
.card:hover::after, .card:focus-visible::after { animation: charge .9s var(--ease) 1 forwards; }
.card:hover .pip, .card:focus-visible .pip { background: var(--bone); box-shadow: 0 0 6px rgba(230, 225, 214, .7); }
.card:hover .card__cover img, .card:focus-visible .card__cover img { opacity: 1; animation: jolt .32s steps(3) 1; }
@keyframes charge { 0% { --charge: 0deg; opacity: 1; } 85% { opacity: 1; } 100% { --charge: 360deg; opacity: 0; } }
@keyframes jolt { 0% { transform: translateX(0); filter: contrast(1.6) brightness(1.4); } 33% { transform: translateX(-2px); } 66% { transform: translateX(1px); filter: contrast(1.2); } 100% { transform: none; filter: none; } }

/* ---------- page heads & rows ---------- */
.page-head { padding: 26px 0 40px; border-bottom: 1px solid var(--line-2); max-width: 1180px; }
.crumbs { margin: 0 0 30px; font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--smoke); }
.crumbs a { color: var(--ash); transition: color .2s; }
.crumbs a:hover { color: var(--bone); }
.crumbs i { margin: 0 6px; }
.page-head__title { margin: 0; font: 200 clamp(56px, 7vw, 112px)/.9 var(--display); text-transform: uppercase; display: flex; align-items: flex-start; gap: 22px; }
.page-head__n { font: 400 12px/1 var(--mono); color: var(--smoke); letter-spacing: .08em; padding-top: 10px; }
.page-head__blurb { max-width: 36em; margin: 26px 0 0; color: var(--ash); font-size: 14px; }
.page-head__count { margin: 14px 0 0; font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--smoke); }

.rows { list-style: none; margin: 0 0 40px; padding: 0; max-width: 1180px; }
.row { border-bottom: 1px solid var(--line); }
.row__link {
  position: relative; display: grid; grid-template-columns: 40px 180px minmax(0, 1fr) 260px 110px; gap: 28px; align-items: start;
  padding: 26px 16px 26px 0; transition: background-color .25s var(--ease);
}
.row__link:hover, .row__link:focus-visible { background: var(--ink-2); }
.row__n { font-size: 11px; color: var(--smoke); padding: 4px 0 0 10px; }
.row__cover { height: 70px; overflow: hidden; border: 1px solid var(--line); }
.row__cover img { width: 100%; height: 100%; object-fit: cover; opacity: .75; transition: opacity .3s; }
.row__link:hover .row__cover img { opacity: 1; }
.row__title { display: block; font: 300 30px/1.05 var(--display); text-transform: uppercase; letter-spacing: .01em; }
.row__summary { display: block; margin-top: 10px; color: var(--ash); font-size: 13px; max-width: 46em; }
.row__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: 11px; color: var(--ash); padding-top: 4px; }
.row__type, .row__status { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; }
.row__type { color: var(--bone); }
.row__meta .tags { flex-basis: 100%; }
.row__date { font-size: 11px; color: var(--smoke); text-align: right; padding-top: 4px; font-variant-numeric: tabular-nums; }
.empty { padding: 40px 0; color: var(--ash); }

/* ---------- entry ---------- */
.entry { max-width: 1180px; padding-bottom: 40px; }
.entry__head {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 320px; column-gap: 56px;
  padding: 26px 28px 34px; margin: 0 -28px; border: 1px solid transparent;
}
.entry__head .crumbs { grid-column: 1 / -1; }
.entry__title { grid-column: 1; margin: 0; font: 200 clamp(52px, 6.4vw, 104px)/.92 var(--display); text-transform: uppercase; }
.entry__summary { grid-column: 1; margin: 22px 0 0; font-size: 15px; color: var(--ash); max-width: 34em; }
.entry__meta { grid-column: 2; grid-row: 2 / span 3; margin: 0; align-self: end; display: grid; gap: 0; border-top: 1px solid var(--line-2); }
.entry__meta div { display: grid; grid-template-columns: 92px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.entry__meta dt { font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--smoke); padding-top: 2px; }
.entry__meta dd { margin: 0; font-size: 12px; color: var(--bone); }
.entry__meta dd a { border-bottom: 1px solid var(--line-2); }
.entry__meta dd a:hover { border-color: var(--bone); }
.entry__cover { grid-column: 1 / -1; margin-top: 40px; height: 160px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; }
.entry__cover img { width: 100%; height: 100%; object-fit: cover; opacity: .7; }
.charge::after { inset: 0; }
.is-entry .charge::after { animation: charge 1.6s var(--ease) .35s 1 forwards; }

.notice { margin: 8px 0 34px; padding: 14px 18px; border: 1px dashed var(--line-2); font-size: 12.5px; color: var(--ash); max-width: 46em; }
.notice b { color: var(--bone); font-weight: 500; }

.embed { margin: 0 0 48px; border: 1px solid var(--line-2); }
.embed__bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ash); }
.embed__bar span { display: inline-flex; align-items: center; gap: 10px; }
.embed__bar a { display: inline-flex; align-items: center; gap: 10px; color: var(--bone); }
.pip--on { background: var(--bone); box-shadow: 0 0 6px rgba(230, 225, 214, .6); }
.embed iframe { display: block; width: 100%; height: min(72vh, 620px); border: 0; background: var(--ink-0); }

.prose { max-width: 40em; font-size: 15px; line-height: 1.75; color: #d9d4c9; }
.prose > * + * { margin-top: 1.1em; }
.prose p { margin: 0; }
.prose h2, .prose h3 { margin: 2.2em 0 0; font: 400 12px/1.4 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--bone); }
.prose h2 + *, .prose h3 + * { margin-top: .8em; }
.prose a { border-bottom: 1px solid var(--line-2); transition: border-color .2s; }
.prose a:hover { border-color: var(--bone); }
.prose strong { font-weight: 500; color: var(--bone); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .35em; }
.prose li::marker { color: var(--smoke); }
.prose code { font: 400 .88em var(--mono); background: var(--ink-2); padding: 1px 5px; }
.prose pre { margin: 1.6em 0; padding: 16px 18px; background: var(--ink-1); border: 1px solid var(--line); overflow-x: auto; font-size: 12.5px; line-height: 1.6; }
.prose pre code { background: none; padding: 0; }
.prose blockquote { margin: 1.8em 0; padding-left: 22px; border-left: 1px solid var(--bone); color: var(--bone); }
.prose hr { border: 0; height: 1px; background: var(--line-2); margin: 2.4em 0; }
.prose figure { margin: 2em 0; }
.prose figcaption { margin-top: 8px; font-size: 11px; color: var(--smoke); }

/* the person speaks in a reading face; the machine speaks in mono */
.prose--reading { font: 400 19px/1.62 var(--read); color: #e2ddd2; max-width: 34em; }
.prose--reading p, .prose--reading li { hanging-punctuation: first; }
.prose--reading blockquote { font-style: italic; border-left-color: var(--line-2); color: var(--ash); }
.prose--reading code { font-size: .72em; }
.prose--reading pre { font-size: 12.5px; }
.prose--reading .anchor { scroll-margin-top: 24px; }

.gallery { list-style: none; margin: 48px 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.gallery figure { margin: 0; border: 1px solid var(--line); padding: 12px; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery figcaption { margin-top: 10px; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ash); }

.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 64px; border-top: 1px solid var(--line-2); }
.pager__link { display: block; padding: 20px 0; font: 300 24px/1.1 var(--display); text-transform: uppercase; transition: color .2s; }
.pager__link span { display: block; margin-bottom: 8px; font: 400 10px/1 var(--mono); letter-spacing: .16em; color: var(--smoke); }
.pager__link--next { text-align: right; }
.pager__link:hover { color: #fff; }

/* ---------- underside ---------- */
.underside { max-width: 640px; padding: 40px 0 120px; }
.underside__title { margin: 0; font: 200 clamp(64px, 9vw, 140px)/.9 var(--display); text-transform: uppercase; }
.underside__state { display: flex; align-items: center; gap: 10px; margin: 26px 0 0; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--ash); }
.underside__text { margin: 18px 0 0; color: var(--ash); max-width: 32em; }
.hatch { width: 140px; height: 60px; margin: 0 0 36px; border: 1px solid var(--line-2); position: relative; overflow: hidden;
  background: repeating-linear-gradient(135deg, transparent 0 7px, rgba(230, 225, 214, .07) 7px 8px); }
.hatch span { position: absolute; inset: 50% 20px auto; height: 1px; background: var(--line-2); }

/* ---------- footer (mobile + inner pages) ---------- */
.page-foot { display: none; }

/* ---------- search ---------- */
.search {
  width: min(640px, calc(100vw - 32px)); max-height: min(70vh, 640px); margin: 12vh auto auto; padding: 0;
  background: var(--ink-1); color: var(--bone); border: 1px solid var(--line-2);
}
.search::backdrop { background: rgba(5, 5, 4, .78); backdrop-filter: blur(3px); }
.search__form { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.search__label { font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--smoke); }
.search__input { width: 100%; background: none; border: 0; outline: none; color: var(--bone); font: 300 22px/1.2 var(--display); letter-spacing: .02em; }
.search__close { font-size: 10px; letter-spacing: .1em; padding: 2px 6px; border: 1px solid var(--line-2); color: var(--ash); }
.search__results { list-style: none; margin: 0; padding: 6px 0; overflow-y: auto; max-height: calc(min(70vh, 640px) - 70px); }
.search__results a { display: grid; grid-template-columns: 96px 1fr; gap: 14px; padding: 12px 18px; }
.search__results a:hover, .search__results a:focus-visible, .search__results a[aria-selected="true"] { background: var(--ink-2); outline: none; }
.search__results .k { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--smoke); padding-top: 3px; }
.search__results .t { font-size: 14px; }
.search__results .s { display: block; font-size: 12px; color: var(--ash); }
.search__results .none { padding: 18px; color: var(--ash); font-size: 12.5px; }

/* ---------- responsive ---------- */
@media (min-width: 1600px) {
  :root { --side: 300px; }
  .hero { min-height: 640px; }
}
@media (max-width: 1240px) {
  .row__link { grid-template-columns: 32px 140px minmax(0, 1fr) 110px; }
  .row__meta { grid-column: 3; grid-row: 2; }
  .row__date { grid-column: 4; grid-row: 1; }
  .entry__head { grid-template-columns: 1fr; }
  .entry__meta { grid-column: 1; grid-row: auto; margin-top: 34px; max-width: 520px; }
}
@media (max-width: 1100px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { grid-template-columns: minmax(300px, 46%) minmax(0, 1fr); }
  .specimen { grid-template-columns: minmax(0, 1fr) 150px; }
  .specimen__ticks { visibility: hidden; }
}
@media (max-width: 900px) {
  :root { --gutter: 20px; }
  .frame { grid-template-columns: 1fr; }
  .sidebar {
    position: sticky; top: 0; z-index: 20; height: auto; flex-direction: row; align-items: center; justify-content: space-between;
    padding: 0 8px 0 var(--gutter); min-height: 60px; overflow: visible;
    border-right: 0; border-bottom: 1px solid var(--line); box-shadow: none;
    background: var(--ink-1); /* no backdrop-filter: it would trap the fixed drawer */
  }
  .brand { display: flex; align-items: center; gap: 12px; padding: 0; }
  .mark { width: 26px; height: 30px; margin: 0; }
  .mark__stem { display: none; }
  .brand__name { margin: 0; font-size: 12.5px; letter-spacing: .18em; }
  .brand__silo { display: none; }
  .menu-toggle {
    display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 12px;
    font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--bone);
  }
  .menu-toggle__bars { width: 16px; height: 7px; border-top: 1px solid currentColor; border-bottom: 1px solid currentColor; transition: transform .3s var(--ease); }
  .menu-toggle[aria-expanded="true"] .menu-toggle__bars { transform: scaleY(0.15); }
  .drawer {
    position: fixed; left: 0; right: 0; top: 60px; bottom: 0; z-index: 19; overflow-y: auto;
    background: var(--ink-1); border-top: 1px solid var(--line);
    padding-bottom: env(safe-area-inset-bottom);
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .25s var(--ease), transform .35s var(--ease), visibility 0s .35s;
  }
  .sidebar.is-open .drawer { visibility: visible; opacity: 1; transform: none; transition: opacity .25s var(--ease), transform .35s var(--ease), visibility 0s; }
  .nav { margin-top: 18px; }
  .nav__link { height: 54px; margin: 0; padding: 0 var(--gutter); font-size: 15px; }
  .nav__link::after { left: 76px; }
  .system { margin: 26px var(--gutter) 0; }
  .system button, .system a { padding: 12px 0; }
  .sidebar__foot { padding: 0 var(--gutter) 30px; }

  .statusbar { height: auto; padding: 16px 0 4px; font-size: 9.5px; letter-spacing: .12em; }
  .clock__date { display: none; }
  .statusbar p { gap: 6px; }

  .hero { display: flex; flex-direction: column; height: auto; margin-right: 0; }
  .hero__head { padding: 20px 0 0; }
  .hero__title { font-size: clamp(46px, 13.4vw, 76px); }
  .specimen { display: block; margin: 0 calc(-1 * var(--gutter)); }
  .specimen__field { margin: 0; height: min(100vw, 520px); margin-top: -18px; }
  .specimen__orbit { height: 92%; }
  .specimen__rail { padding: 0 var(--gutter); display: grid; grid-template-columns: 1fr auto; column-gap: 16px; }
  .specimen__note { position: absolute; right: var(--gutter); top: calc(-1 * min(100vw, 520px) + 6px); width: 130px; font-size: 8.5px; text-align: right; }
  .specimen__data, .specimen__ticks { display: none; }
  .specimen__controls { grid-column: 1 / -1; display: grid; grid-template-columns: 3fr 1fr; column-gap: 10px; }
  .modes { grid-template-columns: repeat(3, auto); justify-content: start; column-gap: 18px; }
  .mode { justify-content: flex-start; gap: 8px; flex-direction: row-reverse; padding: 12px 0; font-size: 10px; letter-spacing: .12em; }
  .mode--action { justify-content: flex-end; }
  .specimen__help { grid-column: 1 / -1; margin-top: 0; min-height: 2.6em; padding-top: 8px; }
  .cross--c { display: none; }
  .hero__intro { padding: 18px 0 0; }
  .hero__lede { margin-top: 10px; font-size: 13.5px; }
  .cta { margin-top: 22px; }
  .recent { padding-top: 48px; }
  .cards { grid-template-columns: 1fr; }
  .card__cover { height: 84px; }
  .page-foot {
    display: block; margin: 20px 0 0; padding: 26px 0 calc(30px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line);
    font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ash);
  }
  .page-foot p { margin: 0 0 10px; display: flex; gap: 12px; align-items: baseline; }
  .page-foot a { border-bottom: 1px solid var(--line-2); }

  .page-head { padding: 16px 0 28px; }
  .crumbs { margin-bottom: 20px; }
  .page-head__title { font-size: clamp(48px, 15vw, 76px); gap: 12px; }
  .row__link { grid-template-columns: 1fr 96px; gap: 12px 16px; padding: 22px 0; }
  .row__n { display: none; }
  .row__cover { grid-column: 2; grid-row: 1; height: 56px; }
  .row__main { grid-column: 1; grid-row: 1; }
  .row__title { font-size: 24px; }
  .row__meta { grid-column: 1 / -1; grid-row: 2; }
  .row__date { grid-column: 1 / -1; grid-row: 3; text-align: left; padding: 0; }
  .entry__head { padding: 16px 0 26px; margin: 0; }
  .entry__title { font-size: clamp(44px, 13vw, 72px); }
  .entry__cover { height: 110px; }
  .gallery { grid-template-columns: 1fr; }
  .embed iframe { height: 70vh; }
  .prose--reading { font-size: 18px; }
  .pager__link { font-size: 19px; }
}
@media (max-width: 900px) and (min-width: 600px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }
  .card:hover::after, .is-entry .charge::after { animation: none; }
}
.search__input::-webkit-search-cancel-button { display: none; }
@media (hover: none) { .system kbd { display: none; } }

/* ---------- concept viewer ---------- */
.viewer { margin: 0 0 48px; border: 1px solid var(--line-2); }
.viewer__bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 24px; padding: 6px 14px; border-bottom: 1px solid var(--line); }
.viewer__tabs, .viewer__devices { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.viewer__tab, .viewer__device-btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 0;
  font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--smoke); transition: color .2s;
}
.viewer__tab:hover, .viewer__device-btn:hover { color: var(--ash); }
.viewer__tab[aria-selected="true"] { color: var(--bone); box-shadow: inset 0 -1px 0 var(--bone); }
.viewer__device-btn[aria-checked="true"] { color: var(--bone); }
.viewer__device-btn[aria-checked="true"] .mode__pip::after { transform: scale(1); }
.viewer__stage {
  position: relative; display: flex; justify-content: center; padding: 28px 20px; overflow: hidden;
  background: repeating-linear-gradient(0deg, transparent 0 23px, rgba(230, 225, 214, .025) 23px 24px), repeating-linear-gradient(90deg, transparent 0 23px, rgba(230, 225, 214, .025) 23px 24px);
}
.viewer__device { position: relative; flex: none; border: 1px solid var(--line-2); background: #000; box-shadow: 0 0 0 6px var(--ink-1), 0 0 0 7px var(--line); transition: width .45s var(--ease), height .45s var(--ease); }
.viewer__device[data-device="phone"] { border-radius: 18px; overflow: hidden; }
.viewer__device::before { content: "Loading"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--smoke); }
.viewer__device iframe { transition: opacity .4s var(--ease); }
.viewer__device[data-loading="true"] iframe { opacity: 0; }
.viewer__device iframe { position: absolute; left: 0; top: 0; border: 0; transform-origin: 0 0; background: var(--ink-0); }
.viewer__caption { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: baseline; padding: 12px 14px; border-top: 1px solid var(--line); font-size: 12px; color: var(--ash); }
.viewer__size { font-size: 10px; letter-spacing: .14em; color: var(--smoke); font-variant-numeric: tabular-nums; }
.viewer__caption span:nth-child(2) { flex: 1; min-width: 14em; }
.viewer__caption a { display: inline-flex; align-items: center; gap: 10px; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--bone); }
@media (max-width: 900px) { .viewer__stage { padding: 20px 12px; } }

/* ---------- Operator field note: editorial diagrams and proof ---------- */
.entry--writing .operator-intro {
  border-left: 3px solid var(--signal);
  padding: 20px 0 20px 25px;
  background: linear-gradient(90deg,rgba(212,56,44,.08),transparent 80%);
  margin: 20px 0 38px;
}
.entry--writing .operator-intro p {
  font: 300 clamp(28px,4vw,44px)/1.12 var(--display);
  text-transform: uppercase;
  letter-spacing: .015em;
  margin: 14px 0 0;
  color: var(--bone);
}
.entry--writing .operator-eyebrow,
.entry--writing .operator-pull span,
.entry--writing .operator-command span,
.entry--writing .operator-evidence span {
  display: block;
  font: 400 11px/1.4 var(--mono);
  color: #e16e60;
  letter-spacing: .17em;
  text-transform: uppercase;
}
.entry--writing .operator-visual {
  box-sizing: border-box;
  width: min(900px,calc(100vw - 350px));
  max-width: none;
  margin: 48px 0;
  border: 1px solid var(--line-2);
  padding: 10px;
  background: #111110;
}
.entry--writing .operator-visual img { display:block;width:100%;height:auto; }
.entry--writing .operator-visual figcaption {
  border-top: 1px solid var(--line);
  padding: 12px 8px 3px;
  font: 400 11px/1.5 var(--mono);
  letter-spacing: .03em;
  color: var(--ash);
}
.entry--writing .operator-surfaces {
  font: 400 12px/1.6 var(--mono);
  display: grid;
  gap: 1px;
  border: 1px solid var(--line-2);
  background: var(--line-2);
  margin: 30px 0;
}
.entry--writing .operator-surfaces > div {
  display: grid;
  grid-template-columns: 165px minmax(0,1fr);
  gap: 18px;
  padding: 15px 17px;
  background: #161615;
}
.entry--writing .operator-surfaces b { color: var(--bone);font-size:11px;text-transform:uppercase;letter-spacing:.06em; }
.entry--writing .operator-surfaces span { color: var(--ash); }
.entry--writing .operator-pull {
  border-top: 1px solid #9b4138;
  border-bottom: 1px solid #9b4138;
  margin: 46px 0;
  padding: 28px 10px 32px 0;
}
.entry--writing .operator-pull p {
  font: 300 clamp(30px,4vw,50px)/1.07 var(--display);
  text-transform: uppercase;
  color: var(--bone);
  margin: 14px 0 0;
}
.entry--writing .operator-command {
  padding: 22px 24px;
  background: #181615;
  border: 1px solid #4a312d;
  box-shadow: inset 3px 0 0 var(--signal);
  margin: 32px 0;
}
.entry--writing .operator-command p {
  margin: 14px 0 0;
  font: 400 clamp(17px,2vw,23px)/1.45 var(--read);
}
.entry--writing .operator-evidence {
  display: grid;
  gap: 16px;
  border: 1px solid #66544b;
  padding: 24px;
  margin: 34px 0;
  background: repeating-linear-gradient(135deg,#171614,#171614 18px,#191714 19px,#191714 20px);
}
.entry--writing .operator-evidence code {
  width: fit-content;
  max-width:100%;
  overflow-wrap:anywhere;
  font: 400 13px/1.55 var(--mono);
  color: var(--bone);
  background: #30241f;
  border-left: 2px solid var(--signal);
  padding: 10px 12px;
}
.entry--writing .operator-evidence small { font: 400 11px/1.65 var(--mono);color: var(--ash); }
@media (max-width:900px) {
  .entry--writing .operator-visual { width:calc(100vw - 40px);max-width:100%;padding:5px;margin:34px 0; }
  .entry--writing .operator-intro p { font-size:clamp(28px,9vw,39px); }
}
@media (max-width:500px) {
  .entry--writing .operator-surfaces > div { grid-template-columns:1fr; gap:3px; padding:14px 15px; }
  .entry--writing .operator-command { padding:18px 15px; }
  .entry--writing .operator-evidence { padding:18px 14px; }
  .entry--writing .operator-visual figcaption { font-size:10px; }
}
