/* Flatline Cowboy: an echo on a monitor in the neon dark. Olive black, a
   chartreuse trace and the lilac of the cowboy's hat, both taken from the art
   at the top of the front page; titles cut by scanlines, with a colour split. */

:root {
  --bg: #0b0c09;
  --bg-2: #10120d;
  --panel: #13150f;
  --panel-2: #1a1d15;
  --line: #252a1c;
  --line-2: #363c29;
  --text: #eef3cf;
  --text-2: #c6caa9;
  --muted: #8a8e73;
  --neon: #d8f36a;
  --neon-2: #ecfaa8;
  --neon-glow: rgba(216, 243, 106, 0.32);
  --neon-wash: rgba(216, 243, 106, 0.08);
  --orchid: #d58ae0;
  --orchid-2: #e6b9ec;
  --orchid-glow: rgba(213, 138, 224, 0.3);
  --cyan: #63e6ff;
  --alarm: #ff6f7d;
  --ink: #12160a;

  --sans: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;
  --display: 'Geostar Fill', 'Rockwell', Georgia, serif;

  --max: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 4px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--neon-2); text-decoration-color: rgba(236, 250, 168, 0.35); text-underline-offset: 3px; }
a:hover { color: var(--neon); text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--neon); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--neon); color: var(--ink); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-family: var(--mono); }
.small { font-size: 14px; }
.muted { color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--neon); color: var(--ink); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }

/* ---------------------------------------------------------------- header */

.top { border-bottom: 1px solid var(--line); background: rgba(11, 12, 9, 0.86); position: sticky; top: 0; z-index: 5; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.top-row { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.mark { font-family: var(--display); font-size: 19px; color: var(--text); text-decoration: none; letter-spacing: 0.02em; }
.mark:hover { color: var(--neon); }
.mark-quiet { font: 500 13px var(--mono); color: var(--muted); letter-spacing: 0.06em; }
.top-nav a { font: 500 13px var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-2); text-decoration: none; }
.top-nav a:hover { color: var(--neon); }

/* ---------------------------------------------------------------- titles: scanlines and a colour split */

.fx { font-family: var(--display); font-weight: 400; letter-spacing: 0.01em; }
.fx-w {
  position: relative; display: inline-block; color: transparent;
  background:
    repeating-linear-gradient(180deg, transparent 0 3px, rgba(11, 12, 9, 0.5) 3px 4px),
    linear-gradient(180deg, #fbffe8 8%, var(--text) 45%, var(--neon) 100%);
  -webkit-background-clip: text; background-clip: text;
  filter: drop-shadow(0 0 0.16em var(--neon-glow));
}
.fx-w.amp { font-family: var(--sans); font-weight: 600; }
.fx-w::before, .fx-w::after { content: attr(data-t); position: absolute; inset: 0; z-index: -1; mix-blend-mode: screen; }
.fx-w::before { color: var(--orchid); transform: translate(-0.03em, 0); opacity: 0.75; }
.fx-w::after { color: var(--cyan); transform: translate(0.03em, 0.01em); opacity: 0.45; }
/* Now and then the signal slips. */
.wordmark .fx-w::before { animation: slip-a 7s steps(1) infinite; }
.wordmark .fx-w::after { animation: slip-b 7s steps(1) infinite; }
@keyframes slip-a {
  0%, 90%, 100% { transform: translate(-0.03em, 0); clip-path: none; }
  91% { transform: translate(-0.09em, -0.01em); clip-path: inset(10% 0 55% 0); }
  93% { transform: translate(0.05em, 0.01em); clip-path: inset(60% 0 8% 0); }
  95% { transform: translate(-0.06em, 0); clip-path: inset(30% 0 40% 0); }
}
@keyframes slip-b {
  0%, 90%, 100% { transform: translate(0.03em, 0.01em); clip-path: none; }
  92% { transform: translate(0.1em, 0); clip-path: inset(45% 0 25% 0); }
  94% { transform: translate(-0.04em, 0.02em); clip-path: inset(5% 0 70% 0); }
}

/* ---------------------------------------------------------------- the heartbeat */

.ecg { display: block; width: 100%; height: 64px; overflow: visible; }
.ecg .trace {
  fill: none;
  stroke: var(--neon);
  stroke-width: 2;
  stroke-linejoin: round;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 0 3px var(--neon-glow)) drop-shadow(0 0 10px var(--neon-glow));
}
.ecg-hero .trace { stroke-dasharray: 1; stroke-dashoffset: 1; animation: trace 2.4s cubic-bezier(.3, .1, .2, 1) .3s forwards; }
.ecg-foot { height: 36px; opacity: 0.5; margin-bottom: 18px; }
.ecg-foot .trace { filter: none; stroke-width: 1.5; }
.ecg-lost { height: 48px; margin: 28px 0; }
.ecg-lost .trace { stroke: var(--alarm); filter: drop-shadow(0 0 6px rgba(255, 111, 125, .45)); }
@keyframes trace { to { stroke-dashoffset: 0; } }

/* ---------------------------------------------------------------- hero: the echo on the monitor */

.hero { position: relative; padding-bottom: clamp(48px, 7vw, 88px); }
.echo { position: relative; height: clamp(300px, 46vw, 660px); overflow: hidden; background: #eef3c8; }
.echo img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 38%; }
/* Scanlines, a dark rim, and the picture sinking into the dark at the bottom. */
.echo::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    repeating-linear-gradient(to bottom, rgba(11, 12, 9, 0.16) 0 1px, transparent 1px 3px),
    linear-gradient(to bottom, rgba(11, 12, 9, 0.5) 0, transparent 14%, transparent 46%, rgba(11, 12, 9, 0.78) 80%, var(--bg) 100%),
    radial-gradient(ellipse 110% 95% at 58% 38%, transparent 50%, rgba(11, 12, 9, 0.62) 100%);
}
/* The monitor's refresh rolling down. */
.echo::before {
  content: ''; position: absolute; left: 0; right: 0; top: -20%; height: 18%; z-index: 1; pointer-events: none;
  background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.08), transparent);
  animation: roll 9s linear infinite;
}
@keyframes roll { to { transform: translateY(720%); } }

.hero-text { position: relative; z-index: 2; margin-top: clamp(-150px, -9vw, -52px); }
.wordmark { margin: 0; font-size: clamp(40px, 7.6vw, 100px); line-height: 1.02; }
.ecg-hero { margin: clamp(14px, 2.4vw, 26px) 0 clamp(12px, 2vw, 20px); height: clamp(48px, 7vw, 76px); }
.hero-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 24px; margin-bottom: 26px; }
.tagline { margin: 0; max-width: 760px; font-size: clamp(15px, 1.6vw, 18px); color: var(--neon-2); letter-spacing: 0.01em; }
.tagline .prompt { color: var(--neon); margin-right: 6px; }
.cursor { animation: blink 1.1s steps(1) infinite; color: var(--neon); }
@keyframes blink { 50% { opacity: 0; } }
.readout { margin: 0; display: flex; gap: 18px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.readout span:first-child::before { content: ''; display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%; background: var(--neon); box-shadow: 0 0 8px var(--neon); vertical-align: 1px; animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
.intro { max-width: 660px; }
.intro p { margin: 0 0 14px; font-size: clamp(17px, 1.6vw, 19px); color: var(--text-2); }
.intro em { color: var(--text); }

/* ---------------------------------------------------------------- clips (clips.js), and the gameplay one */

.clip {
  position: relative; margin: 0; aspect-ratio: 16 / 9; overflow: hidden; background: #000;
  border: 1px solid var(--line-2); border-radius: var(--radius);
  box-shadow: 0 30px 80px -40px #000, 0 0 50px -24px var(--neon-glow);
}
.clip-portrait { aspect-ratio: 9 / 16; }
.clip-video { display: block; width: 100%; height: 100%; object-fit: cover; }
.clip::after { /* the feed's scanlines */
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(to bottom, rgba(0, 0, 0, .18) 0 1px, transparent 1px 3px);
}
.clip-tag {
  position: absolute; top: 12px; left: 14px; z-index: 1; padding: 3px 8px; border-radius: 2px;
  font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--text); background: rgba(11, 12, 9, .6);
}
.clip-tag::before { content: ''; display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: var(--alarm); box-shadow: 0 0 8px var(--alarm); vertical-align: 1px; animation: pulse 1.4s ease-in-out infinite; }
.clip.paused .clip-tag::before { animation: none; opacity: .4; }
.clip-toggle {
  position: absolute; right: 12px; bottom: 12px; z-index: 1; min-height: 32px; padding: 0 12px; cursor: pointer;
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--text);
  background: rgba(11, 12, 9, .6); border: 1px solid var(--line-2); border-radius: var(--radius);
}
.clip-toggle:hover { color: var(--neon); border-color: var(--neon); }

.reel { padding: 12px 0 64px; }
.reel .group-head { margin-bottom: 24px; }
.reel-grid { display: grid; gap: 28px 44px; }
@media (min-width: 960px) { .reel-grid { grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr); align-items: center; } }
.reel-text h3 { margin: 0 0 16px; font-size: clamp(30px, 3.6vw, 46px); line-height: 1.05; }
.reel-text p { margin: 0 0 14px; color: var(--text-2); }
.reel-text .reel-note { margin-top: 18px; font-size: 13px; letter-spacing: .04em; color: var(--orchid-2); }

/* ---------------------------------------------------------------- groups and cards */

.group { padding: 12px 0 72px; }
.group-head { display: grid; gap: 6px; margin-bottom: 28px; padding-top: 22px; border-top: 1px solid var(--line); }
.label {
  display: flex; align-items: baseline; gap: 14px; margin: 0;
  font: 500 13px var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--neon);
}
.label-count { color: var(--muted); letter-spacing: 0.06em; }
.lede { margin: 0; max-width: 640px; color: var(--text-2); }

.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(18px, 2.4vw, 28px); grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.cards > li { display: flex; }
.card {
  display: flex; flex-direction: column; width: 100%;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  color: inherit; text-decoration: none; overflow: hidden;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.card:hover { color: inherit; border-color: var(--line-2); transform: translateY(-2px); box-shadow: 0 14px 40px -18px rgba(0, 0, 0, .9), 0 0 0 1px var(--orchid-glow), 0 0 28px -10px var(--orchid-glow); }
.thumb { position: relative; aspect-ratio: 16 / 10; background: var(--bg-2); overflow: hidden; border-bottom: 1px solid var(--line); }
.thumb img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.8) brightness(.86); transition: filter .35s, transform .5s; }
/* Scanlines over the picture; they lift when you point at it. */
.thumb::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(to bottom, rgba(0, 0, 0, .22) 0 1px, transparent 1px 3px);
  transition: opacity .35s;
}
.card:hover .thumb img { filter: none; transform: scale(1.025); }
.card:hover .thumb::after { opacity: 0; }
.card-body { display: flex; flex-direction: column; flex: 1; padding: 18px 20px 18px; }
.card-num { margin: 0 0 2px; font-size: 12px; color: var(--muted); letter-spacing: .1em; }
.card h3 { margin: 0; font: 600 22px/1.25 var(--sans); letter-spacing: -0.005em; }
.card:hover h3 { color: var(--neon); }
.where { display: inline-block; margin: 4px 0 0; font-size: 13px; color: var(--orchid-2); word-break: break-all; }
a.where:hover { color: var(--orchid); }
.blurb { margin: 12px 0 18px; color: var(--text-2); font-size: 16px; line-height: 1.6; }
.card-foot { margin: auto 0 0; display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--muted); padding-top: 14px; border-top: 1px dashed var(--line-2); }
.more span { display: inline-block; transition: transform .2s; }
.card:hover .more { color: var(--neon); }
.card:hover .more span { transform: translateX(4px); }
.ccount:not(:empty)::before { content: '◆ '; color: var(--orchid); font-size: 10px; vertical-align: 1px; }

/* ---------------------------------------------------------------- project page */

.project { padding-top: 28px; padding-bottom: 40px; }
.back { font-size: 13px; color: var(--muted); text-decoration: none; letter-spacing: .04em; }
.back:hover { color: var(--neon); }
.project-head { margin: 34px 0 34px; max-width: 860px; }
.eyebrow { margin: 0 0 12px; font-size: 13px; color: var(--neon); letter-spacing: .14em; text-transform: uppercase; }
.project h1 { margin: 0; font-size: clamp(36px, 5.8vw, 70px); line-height: 1.06; }
.project .lede { margin-top: 20px; font-size: clamp(18px, 1.9vw, 21px); line-height: 1.55; max-width: 720px; }
.notice {
  display: inline-block; margin: 22px 0 0; padding: 9px 14px; max-width: 720px;
  font-size: 13px; line-height: 1.5; letter-spacing: .02em; color: var(--orchid-2);
  border: 1px dashed var(--orchid); border-radius: var(--radius); background: rgba(213, 138, 224, .06);
}
.notice::before { content: ''; display: inline-block; width: 7px; height: 7px; margin-right: 9px; border-radius: 50%; background: var(--orchid); box-shadow: 0 0 8px var(--orchid); vertical-align: 1px; animation: pulse 1.4s ease-in-out infinite; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 26px; }
.actions .where { margin: 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px; border-radius: var(--radius);
  font: 500 14px var(--mono); letter-spacing: .06em; text-transform: uppercase; text-decoration: none;
  border: 1px solid var(--line-2); background: transparent; color: var(--text); cursor: pointer;
  transition: background .15s, border-color .15s, color .15s, box-shadow .15s;
}
.btn:hover { border-color: var(--neon); color: var(--neon); }
.btn.primary { background: var(--neon); border-color: var(--neon); color: var(--ink); }
.btn.primary:hover { background: var(--neon-2); border-color: var(--neon-2); color: var(--ink); box-shadow: 0 0 22px var(--neon-glow); }
.btn.small { min-height: 34px; padding: 0 12px; font-size: 12px; }
.btn.ghost { border-color: transparent; color: var(--text-2); }
.btn.ghost:hover { border-color: var(--line-2); }
.btn.danger:hover { border-color: var(--alarm); color: var(--alarm); }
.btn[disabled] { opacity: .5; cursor: progress; }
.link { background: none; border: 0; padding: 0; font: inherit; color: var(--neon-2); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

.shot { margin: 0 0 48px; }
.shot-frame { position: relative; border: 1px solid var(--line-2); border-radius: var(--radius); overflow: hidden; background: var(--bg-2); box-shadow: 0 30px 80px -40px #000; }
.shot-frame::before { /* the monitor's top edge catching the light */
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--neon), transparent); opacity: .6; z-index: 1;
}
.shot-frame img { width: 100%; }
.shot figcaption { margin-top: 10px; color: var(--muted); }
.shot-more { margin: 56px 0 0; }

/* A project told by a portrait clip: the video beside the write-up, stacked on a phone. */
.feature { display: grid; gap: 36px; align-items: start; }
.feature-clip { margin: 0; width: min(100%, 400px); justify-self: center; }
.feature-clip figcaption { margin-top: 10px; color: var(--muted); }
.feature-text { display: grid; gap: 32px; }
@media (min-width: 900px) {
  .feature { grid-template-columns: minmax(300px, 400px) minmax(0, 1fr); gap: 56px; }
  .feature-clip { position: sticky; top: 80px; justify-self: stretch; width: 100%; }
}

/* The table diagram: the hub, the devices round it, and the wires (rig.js) between them. */
.rig { margin: 64px 0 0; padding-top: 22px; border-top: 1px solid var(--line); }
.rig .label { margin-bottom: 26px; }
.rig-board { position: relative; display: grid; gap: 14px; }
.rig-node { position: relative; z-index: 1; margin: 0; padding: 16px 18px 14px; background: var(--panel); border: 1px solid var(--line-2); border-radius: var(--radius); }
.rig-node p { margin: 0; }
.rig-hub { background: var(--panel-2); border-color: var(--neon); box-shadow: 0 0 0 1px var(--neon-glow), 0 0 44px -14px var(--neon-glow); }
.rig-icon { display: block; width: 30px; height: 30px; margin-bottom: 10px; fill: none; stroke: var(--neon); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 4px var(--neon-glow)); }
.rig-node[data-flow='both'] .rig-icon { stroke: var(--orchid); filter: drop-shadow(0 0 4px var(--orchid-glow)); }
.rig-hub .rig-icon { width: 38px; height: 38px; }
.rig-title { font: 600 18px/1.3 var(--sans); color: var(--text); }
.rig-hub .rig-title { font: 400 30px/1.1 var(--display); color: var(--neon-2); }
.rig-node .rig-sub { margin-top: 2px; font-size: 12px; color: var(--orchid-2); word-break: break-all; }
.rig-node .rig-text { margin-top: 8px; font-size: 15px; line-height: 1.55; color: var(--text-2); }
.rig-node .rig-flow { margin-top: 10px; font-size: 12px; letter-spacing: .04em; color: var(--neon); }
.rig-node[data-flow='both'] .rig-flow { color: var(--orchid-2); }
/* Out of the flow always, so drawing the wires can never change the size they're drawn for. */
.rig-wires { display: none; position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; overflow: visible; pointer-events: none; }
.rig-note { margin: 20px 0 0; max-width: 680px; color: var(--muted); }
@media (min-width: 900px) {
  .rig-board {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr) minmax(0, 1fr);
    grid-template-areas: 'tv lights phones' 'tv hub phones' 'screens sound phones';
    gap: 40px 72px; align-items: center;
  }
  .rig-node[data-area='hub'] { grid-area: hub; }
  .rig-node[data-area='tv'] { grid-area: tv; }
  .rig-node[data-area='lights'] { grid-area: lights; }
  .rig-node[data-area='phones'] { grid-area: phones; }
  .rig-node[data-area='screens'] { grid-area: screens; }
  .rig-node[data-area='sound'] { grid-area: sound; }
  .rig-hub { padding: 22px 24px 20px; }
  .rig-node .rig-flow { display: none; }
  .rig-wires { display: block; }
  .rig-wires .wire { fill: none; stroke: rgba(216, 243, 106, .3); stroke-width: 1.5; stroke-dasharray: 3 5; }
  .rig-wires .pulse { fill: none; stroke: var(--neon); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 10 150; animation: flow 2.6s linear infinite; filter: drop-shadow(0 0 5px var(--neon-glow)); }
  .rig-wires .pulse.back { stroke: var(--orchid); animation-direction: reverse; animation-delay: -1.3s; filter: drop-shadow(0 0 5px var(--orchid-glow)); }
}
@keyframes flow { from { stroke-dashoffset: 160; } to { stroke-dashoffset: 0; } }

.cols { display: grid; gap: 36px 56px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .cols { grid-template-columns: minmax(0, 1fr) 320px; } }
.prose p { margin: 0 0 20px; font-size: 18px; color: var(--text-2); max-width: 680px; }
.prose p:first-child { color: var(--text); }
.prose b { color: var(--text); font-weight: 600; }
.facts { align-self: start; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); padding: 6px 20px; }
.facts dl { margin: 0; }
.facts div { padding: 14px 0; border-bottom: 1px dashed var(--line-2); }
.facts div:last-child { border-bottom: 0; }
.facts dt { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--neon); margin-bottom: 2px; }
.facts dd { margin: 0; font-size: 15px; color: var(--text-2); line-height: 1.5; }

/* ---------------------------------------------------------------- comments */

.comments { margin-top: 64px; padding-top: 22px; border-top: 1px solid var(--line); max-width: 820px; }
.comments .label { margin-bottom: 22px; }
.comment-form, .key-form { display: grid; gap: 14px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.field { display: grid; gap: 6px; font: 500 12px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--text-2); }
.field .opt { color: var(--muted); text-transform: none; letter-spacing: 0; }
.field-name { max-width: 320px; }
input, textarea {
  width: 100%; font: 400 16px/1.5 var(--sans); color: var(--text); letter-spacing: 0; text-transform: none;
  background: var(--bg); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 10px 12px;
  transition: border-color .15s, box-shadow .15s;
}
textarea { resize: vertical; min-height: 110px; }
input::placeholder, textarea::placeholder { color: #666a54; }
input:focus, textarea:focus { outline: none; border-color: var(--neon); box-shadow: 0 0 0 3px var(--neon-wash); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; align-items: center; justify-content: flex-end; gap: 16px; flex-wrap: wrap; }
.status { margin: 0; margin-right: auto; color: var(--muted); }
.status.err { color: var(--alarm); }
.status.ok { color: var(--neon); }
.as-owner { margin: 0; color: var(--orchid-2); }

.thread { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 14px; }
.comment { position: relative; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.comment.fresh { animation: arrive .6s ease-out; }
@keyframes arrive { from { box-shadow: 0 0 0 1px var(--neon), 0 0 24px var(--neon-glow); } }
.c-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-bottom: 6px; }
.c-name { font-weight: 600; color: var(--text); }
.c-time, .c-where { font: 400 12px var(--mono); color: var(--muted); }
.c-where { color: var(--orchid-2); text-decoration: none; }
.badge { font: 500 10px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink); background: var(--orchid); padding: 2px 6px; border-radius: 2px; }
.c-body { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--text-2); font-size: 16px; }
.c-tools { display: flex; gap: 6px; margin-top: 10px; }
.replies { list-style: none; margin: 14px 0 0; padding: 0 0 0 18px; display: grid; gap: 10px; border-left: 2px solid var(--orchid); }
.replies .comment { background: transparent; border: 0; padding: 4px 0 4px 2px; }
.comment.owner > .c-body { color: var(--text); }
.reply-form { display: grid; gap: 10px; margin-top: 12px; }
.reply-form textarea { min-height: 84px; }

/* ---------------------------------------------------------------- pager, footer, admin, 404 */

.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 72px; }
.pager a { display: grid; gap: 4px; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--muted); background: var(--panel); transition: border-color .2s; }
.pager a:hover { border-color: var(--neon); color: var(--muted); }
.pager-next { text-align: right; }
.pager-title { font: 600 18px var(--sans); color: var(--text); }
.pager a:hover .pager-title { color: var(--neon); }

.foot { padding: 48px 0 56px; color: var(--muted); }
.foot p { margin: 0 0 6px; }

.admin { padding-top: 40px; padding-bottom: 40px; max-width: 900px; }
.admin h1, .lost h1 { font-size: clamp(34px, 5vw, 56px); line-height: 1.08; margin: 0 0 24px; }
.key-form p { margin: 0; color: var(--text-2); }
.inbox-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tab { font: 500 13px var(--mono); letter-spacing: .04em; color: var(--text-2); background: none; border: 1px solid var(--line-2); border-radius: 999px; padding: 6px 14px; cursor: pointer; }
.tab[aria-selected='true'] { background: var(--neon); border-color: var(--neon); color: var(--ink); }
.tab span:not(:empty)::before { content: '· '; }

.lost { padding-top: clamp(56px, 10vw, 120px); padding-bottom: 80px; max-width: 760px; }
.lost h1 { margin-bottom: 0; }
.lost p { color: var(--text-2); font-size: 18px; }

[hidden] { display: none !important; }
[id] { scroll-margin-top: 72px; }

@media (max-width: 560px) {
  body { font-size: 16px; }
  .prose p { font-size: 17px; }
  .pager { grid-template-columns: 1fr; }
  .pager-next { text-align: left; }
  .form-foot .btn { width: 100%; }
  .echo { height: 104vw; }
  .echo img { object-position: 63% 50%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0s !important; animation-delay: 0s !important; transition: none !important; }
  .ecg-hero .trace { stroke-dashoffset: 0; }
  .cursor, .echo::before, .wordmark .fx-w::before, .wordmark .fx-w::after { animation: none !important; }
  html { scroll-behavior: auto; }
}
