/* ============================================================
   Zhiyong He — dossier site
   Shared stylesheet for all pages (home / works / dispatches / photo log)
   Fonts: Archivo (display), IBM Plex Mono (meta), JetBrains Mono (terminal)
   ============================================================ */

:root {
  /* dossier — slate/blue (Tailwind slate + blue-600) */
  --paper: #f8fafc;
  --ink: #0f172a;
  --grey: #64748b;
  --hairline: #e2e8f0;
  --accent: #2563eb;
  --accent-soft: #eff6ff;
  /* terminal — Tokyo Night */
  --t-bg: #16161e;
  --t-panel: #1a1b26;
  --t-border: #292e42;
  --t-text: #c0caf5;
  --t-dim: #565f89;
  --t-green: #7aa2f7;
  --t-amber: #e0af68;
  --t-cyan: #7dcfff;
  --t-red: #f7768e;
  --t-link: #7dcfff;
  /* Header/nav must not resize while remote webfonts are loading. */
  --ui-mono: ui-monospace, "Cascadia Mono", "SFMono-Regular", Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html {
  overflow-y: scroll;
  scrollbar-gutter: stable;
}
body {
  background: var(--paper);
  color: var(--ink);
  font-family: "Archivo", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
.mono { font-family: "IBM Plex Mono", monospace; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ---------- header ---------- */
header { border-bottom: 2px solid var(--ink); }
.meta-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 32px;
  padding: 14px 0;
  font-family: var(--ui-mono);
  font-size: 12px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--grey);
  border-bottom: 1px solid var(--hairline);
}
.meta-bar b { color: var(--ink); font-weight: 500; }
.status-dot {
  display: inline-block; width: 8px; height: 8px;
  background: #19b35b; border-radius: 50%; margin-right: 6px;
}
.status-indicator[data-status="checking"] .status-dot { background: #94a3b8; }
.status-indicator[data-status="sleeping"] .status-dot { background: #64748b; }
.status-indicator[data-status="unknown"] .status-dot { background: #d97706; }

/* site nav — the dossier's table of sections */
.site-nav {
  display: grid;
  grid-template-columns: max-content max-content max-content max-content minmax(0, 1fr) max-content;
  align-items: center;
  gap: 24px;
  min-height: 50px;
  padding: 12px 0;
  font-family: var(--ui-mono);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.site-nav a {
  color: var(--grey);
  text-decoration: none;
  padding: 2px 0;
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
}
.site-nav a:hover, .site-nav a:focus-visible { color: var(--ink); outline: none; }
.site-nav a[aria-current="page"] { color: var(--accent); border-color: var(--accent); }
.site-nav .spacer { min-width: 0; }
.site-nav .ext { color: var(--grey); }
.site-nav .ext:hover, .site-nav .ext:focus-visible { color: var(--accent); }

h1 {
  font-weight: 900;
  font-size: clamp(56px, 11vw, 148px);
  line-height: .92;
  letter-spacing: -.03em;
  text-transform: uppercase;
  padding: 40px 0 8px;
}
h1 .thin { font-weight: 400; color: var(--grey); }
h1.page-title { font-size: clamp(44px, 8vw, 96px); }
.kicker {
  display: block;
  padding-top: 40px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
}
.kicker + h1 { padding-top: 10px; }
.tagline {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px 0 28px;
}
.tagline p { font-size: 19px; max-width: 46ch; }
.tagline .mono { font-size: 13px; color: var(--accent); }

/* ---------- terminal exhibit ---------- */
.exhibit { padding: 40px 0 56px; border-bottom: 1px solid var(--hairline); }
.exhibit-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 12px;
}
.exhibit-label b { color: var(--accent); font-weight: 500; }
.shell {
  border: 2px solid var(--ink);
  border-radius: 10px;
  background: var(--t-panel);
  overflow: hidden;
}
.shell .titlebar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: var(--t-bg);
  border-bottom: 1px solid var(--t-border);
  border-radius: 8px 8px 0 0;
  user-select: none;
}
.shell .dot { width: 12px; height: 12px; border-radius: 50%; }
.shell .dot.r { background: #ff5f57; } .shell .dot.y { background: #febc2e; } .shell .dot.g { background: #28c840; }
.shell .titlebar .title { margin-left: 10px; color: var(--t-dim); font-family: "JetBrains Mono", monospace; font-size: 12.5px; }
.shell .screen {
  height: clamp(300px, 44vh, 420px);
  overflow-y: auto;
  padding: 18px 20px 8px;
  background: var(--t-panel);
  color: var(--t-text);
  font-family: "JetBrains Mono", monospace;
  font-size: 14.5px;
  line-height: 1.55;
  scrollbar-width: thin;
  scrollbar-color: var(--t-border) transparent;
}
.shell.mini .screen { height: auto; padding-bottom: 18px; border-radius: 0 0 8px 8px; }
.shell .screen::-webkit-scrollbar { width: 8px; }
.shell .screen::-webkit-scrollbar-thumb { background: var(--t-border); border-radius: 4px; }
.shell .line { white-space: pre-wrap; word-break: break-word; }
.shell .prompt { color: var(--t-green); }
.shell .path { color: var(--t-cyan); }
.shell .cmd { color: var(--t-text); }
.shell .dim { color: var(--t-dim); }
.shell .green { color: var(--t-green); }
.shell .amber { color: var(--t-amber); }
.shell .cyan { color: var(--t-cyan); }
.shell .red { color: var(--t-red); }
.shell a { color: var(--t-link); text-decoration: none; }
.shell a:hover, .shell a:focus-visible { text-decoration: underline; }
.shell a:focus-visible { outline: 1px dashed var(--t-link); outline-offset: 2px; }
.shell .chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 20px 0;
  background: var(--t-panel);
  font-family: "JetBrains Mono", monospace;
}
.shell .chip {
  font: inherit;
  font-size: 12.5px;
  background: transparent;
  color: var(--t-dim);
  border: 1px solid var(--t-border);
  border-radius: 999px;
  padding: 3px 12px;
  cursor: pointer;
  transition: color .15s, border-color .15s;
}
.shell .chip:hover, .shell .chip:focus-visible { color: var(--t-green); border-color: var(--t-green); outline: none; }
.shell .inputline {
  display: flex;
  align-items: baseline;
  padding: 8px 20px 16px;
  background: var(--t-panel);
  border-radius: 0 0 8px 8px;
  font-family: "JetBrains Mono", monospace;
  font-size: 14.5px;
  color: var(--t-text);
}
.shell .inputline .ps1 { white-space: pre; }
.shell #shell-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--t-text);
  font: inherit;
  caret-color: var(--t-green);
  padding: 0;
}

/* ---------- section chrome ---------- */
section { padding: 56px 0; border-bottom: 1px solid var(--hairline); }
.sec-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 32px;
}
.sec-head h2 {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.sec-head .count { font-family: "IBM Plex Mono", monospace; font-size: 12px; color: var(--grey); }

/* ---------- dossier contents (home TOC) ---------- */
.toc { display: flex; flex-direction: column; }
.toc-row {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 18px;
  align-items: baseline;
  padding: 20px 8px;
  border-bottom: 1px solid var(--hairline);
  text-decoration: none;
  color: inherit;
  transition: background .12s;
}
.toc-row:first-child { border-top: 1px solid var(--hairline); }
.toc-row:hover, .toc-row:focus-visible { background: var(--accent-soft); outline: none; }
.toc-row .no { font-family: "IBM Plex Mono", monospace; font-size: 13px; color: var(--grey); }
.toc-row .name { font-weight: 700; font-size: 20px; letter-spacing: -.01em; }
.toc-row .hint { display: block; margin-top: 4px; font-weight: 400; font-size: 14px; color: var(--grey); }
.toc-row .go { font-family: "IBM Plex Mono", monospace; font-size: 13px; color: var(--accent); white-space: nowrap; }
.toc-row.here { cursor: default; }
.toc-row.here:hover { background: none; }
.toc-row.here .go { color: var(--grey); }
@media (max-width: 560px) {
  .toc-row { grid-template-columns: 44px 1fr; }
  .toc-row .go { display: none; }
}

/* ---------- works table ---------- */
.works { width: 100%; border-collapse: collapse; }
.works th {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--grey);
  text-align: left;
  padding: 0 16px 10px 0;
  border-bottom: 1px solid var(--ink);
}
.works td {
  padding: 18px 16px 18px 0;
  border-bottom: 1px solid var(--hairline);
  vertical-align: top;
}
.works tbody tr { transition: background .12s; }
.works tbody tr:hover { background: var(--accent-soft); }
.repo { font-weight: 700; font-size: 18px; letter-spacing: -.01em; }
.repo a { color: inherit; text-decoration: none; border-bottom: 2px solid transparent; }
.repo a:hover, .repo a:focus-visible { color: var(--accent); border-color: var(--accent); outline: none; }
.desc { color: var(--grey); font-size: 14.5px; max-width: 42ch; }
.lang { font-family: "IBM Plex Mono", monospace; font-size: 12.5px; white-space: nowrap; }
.stars { font-family: "IBM Plex Mono", monospace; font-size: 13px; text-align: right; white-space: nowrap; }
.stars-head { text-align: right; }
.bar-cell { width: 180px; }
.bar { height: 8px; background: var(--hairline); position: relative; margin-top: 8px; }
.bar i {
  position: absolute; inset: 0 auto 0 0;
  width: 0;
  background: var(--accent);
  transition: width 1s cubic-bezier(.2,.7,.2,1);
}
.works-state { padding: 28px 0 !important; }
.works-skeleton td { padding: 18px 16px 18px 0; }
.works-skeleton span,
.lab-card-skeleton span,
.log-line-skeleton span,
.activity-pulse-skeleton .activity-pulse-bars span,
.activity-pulse-skeleton .activity-pulse-scale span,
.gallery-skeleton > div,
.gallery-row-skeleton span {
  display: block;
  border-radius: 2px;
  background: linear-gradient(90deg, #eef2f7 0, #e2e8f0 44%, #f8fafc 76%, #eef2f7 100%);
  background-size: 240% 100%;
  animation: loading-shimmer 1.35s ease-in-out infinite;
}
.works-skeleton td:nth-child(1) span { width: 76%; height: 21px; }
.works-skeleton td:nth-child(2) span { width: 94%; height: 15px; }
.works-skeleton td:nth-child(3) span { width: 64%; height: 14px; }
.works-skeleton td:nth-child(4) span { width: 100%; height: 8px; margin-top: 7px; }
.works-skeleton td:nth-child(5) span { width: 40%; height: 14px; margin-left: auto; }
.works-actions { display: flex; justify-content: center; padding-top: 24px; }
.expand-btn {
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  color: var(--accent);
  background: transparent;
  border: 1px solid var(--accent);
  padding: 9px 16px;
  cursor: pointer;
}
.expand-btn:hover, .expand-btn:focus-visible { background: var(--accent); color: #fff; outline: none; }
.expand-btn[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) { .bar i { transition: none; } }
@media (max-width: 760px) {
  .bar-cell, .works th:nth-child(4) { display: none; }
}

/* ---------- lab (private R&D) ---------- */
.lab-note {
  font-family: "IBM Plex Mono", monospace;
  font-size: 12.5px;
  color: var(--grey);
  margin: -14px 0 26px;
  max-width: 70ch;
}
.lab-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.lab-card {
  background: #fff;
  border: 1px solid var(--hairline);
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.lab-card h3 { font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.lab-card p { color: var(--grey); font-size: 14px; flex: 1; }
.lab-card-skeleton { min-height: 188px; }
.lab-card-skeleton span:nth-child(1) { width: 54%; height: 20px; }
.lab-card-skeleton span:nth-child(2) { width: 100%; height: 54px; }
.lab-card-skeleton span:nth-child(3) { width: 72%; height: 20px; margin-top: auto; }
.lab-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.lab-tags .tag {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  border: 1px solid var(--hairline);
  padding: 3px 10px;
  color: var(--grey);
}
.lab-tags .tag.priv { color: var(--accent); border-color: var(--accent); }

/* ---------- about ---------- */
.about-lede {
  max-width: 760px;
  font-size: clamp(20px, 2.6vw, 30px);
  line-height: 1.35;
  letter-spacing: -.015em;
  margin-bottom: 32px;
}
.spec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
}
.spec { background: var(--paper); padding: 24px; }
.spec .k {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 10px;
}
.spec .v { font-size: 15.5px; }
.spec .v a { color: var(--accent); text-decoration: none; }
.spec .v a:hover, .spec .v a:focus-visible { text-decoration: underline; outline: none; }

/* ---------- capabilities ---------- */
.caps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 40px; }
.cap h3 { font-size: 15px; font-weight: 700; margin-bottom: 12px; text-transform: uppercase; letter-spacing: .06em; }
.cap ul { list-style: none; }
.cap li {
  padding: 7px 0;
  border-bottom: 1px solid var(--hairline);
  font-size: 14.5px;
  color: var(--grey);
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.cap li .lvl { font-family: "IBM Plex Mono", monospace; font-size: 11px; color: var(--ink); }

/* ---------- query ---------- */
.query-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  font-family: "IBM Plex Mono", monospace;
}
.query-row label {
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--grey);
  white-space: nowrap;
}
.query-row input {
  flex: 1;
  max-width: 380px;
  font: inherit;
  font-size: 13.5px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--ink);
  padding: 8px 12px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.query-row input:focus { border-color: var(--accent); box-shadow: 3px 3px 0 var(--accent); }
.query-row input::placeholder { color: var(--grey); }

/* ---------- case file modal ---------- */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, .55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 50;
}
.overlay[hidden] { display: none; }
.casefile {
  background: var(--paper);
  border: 2px solid var(--ink);
  box-shadow: 10px 10px 0 var(--ink);
  width: min(560px, 100%);
  max-height: calc(100vh - 96px);
  overflow-y: auto;
  padding: 28px 32px 32px;
  position: relative;
}
.cf-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--grey);
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 10px;
  margin-bottom: 16px;
}
.cf-close {
  font: inherit;
  background: none;
  border: 1px solid var(--hairline);
  color: var(--grey);
  width: 28px; height: 28px;
  cursor: pointer;
  transition: color .15s, border-color .15s;
}
.cf-close:hover, .cf-close:focus-visible { color: var(--accent); border-color: var(--accent); outline: none; }
.casefile h3 { font-size: 26px; font-weight: 800; letter-spacing: -.01em; margin-bottom: 8px; word-break: break-word; }
.cf-desc { color: var(--grey); font-size: 15px; margin-bottom: 20px; }
.cf-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--hairline); border: 1px solid var(--hairline); margin-bottom: 20px; }
.cf-meta .m { background: var(--paper); padding: 12px 14px; }
.cf-meta .k { font-family: "IBM Plex Mono", monospace; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--grey); }
.cf-meta .v { font-size: 14.5px; margin-top: 2px; }
.cf-langs .k { font-family: "IBM Plex Mono", monospace; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--grey); margin-bottom: 8px; }
.cf-bar { display: flex; height: 10px; border: 1px solid var(--ink); overflow: hidden; margin-bottom: 8px; }
.cf-bar i { display: block; height: 100%; }
.cf-legend { font-family: "IBM Plex Mono", monospace; font-size: 11.5px; color: var(--grey); margin-bottom: 20px; }
.cf-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 22px; }
.cf-tags .tag { font-family: "IBM Plex Mono", monospace; font-size: 11px; border: 1px solid var(--hairline); padding: 3px 10px; color: var(--grey); }
.cf-link {
  display: inline-block;
  font-family: "IBM Plex Mono", monospace;
  font-size: 13px;
  color: var(--paper);
  background: var(--ink);
  padding: 10px 18px;
  text-decoration: none;
  transition: background .15s;
}
.cf-link:hover, .cf-link:focus-visible { background: var(--accent); outline: none; }
.cf-demo { background: var(--accent); margin-left: 8px; }
.cf-demo:hover, .cf-demo:focus-visible { background: #1d4ed8; }
.cf-loading { font-family: "IBM Plex Mono", monospace; font-size: 13px; color: var(--grey); }

/* ---------- activity log ---------- */
.log { font-family: "IBM Plex Mono", monospace; font-size: 13px; }
.log-line {
  display: flex;
  gap: 20px;
  padding: 9px 0;
  border-bottom: 1px solid var(--hairline);
}
.log-line .t { color: var(--grey); white-space: nowrap; width: 76px; flex-shrink: 0; }
.log-line .kind { color: var(--accent); width: 44px; flex-shrink: 0; }
.log-line a { color: inherit; text-decoration: none; }
.log-line a:hover, .log-line a:focus-visible { color: var(--accent); text-decoration: underline; outline: none; }
.log-empty { color: var(--grey); padding: 9px 0; }
.log-skeleton { display: grid; }
.log-line-skeleton { pointer-events: none; }
.log-line-skeleton span:nth-child(1) { width: 58px; height: 13px; }
.log-line-skeleton span:nth-child(2) { width: 42px; height: 13px; }
.log-line-skeleton span:nth-child(3) { width: min(52vw, 330px); height: 13px; }
.activity-pulse {
  max-width: 820px;
  margin: 0 auto 22px;
  padding-top: 12px;
  border-top: 1px solid var(--hairline);
}
.activity-pulse-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--grey);
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.activity-pulse-bars {
  display: grid;
  grid-template-columns: repeat(30, minmax(0, 1fr));
  align-items: end;
  gap: 4px;
  height: 76px;
  margin-top: 11px;
  padding-bottom: 3px;
  border-bottom: 1px solid var(--hairline);
}
.activity-pulse-day {
  appearance: none;
  position: relative;
  display: flex;
  align-items: end;
  height: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
  color: inherit;
  font: inherit;
  border: 0;
  background: transparent;
  cursor: help;
}
.activity-pulse-day::after {
  content: attr(data-tooltip);
  position: absolute;
  z-index: 4;
  bottom: calc(100% + 8px);
  left: 50%;
  width: max-content;
  max-width: min(260px, 75vw);
  padding: 6px 8px;
  color: #fff;
  font-size: 10px;
  line-height: 1.4;
  letter-spacing: .02em;
  text-align: left;
  white-space: normal;
  pointer-events: none;
  background: var(--ink);
  border-radius: 2px;
  opacity: 0;
  transform: translate(-50%, 4px);
  transition: opacity .12s ease, transform .12s ease;
}
.activity-pulse-day:is(:hover, :focus-visible)::after {
  opacity: 1;
  transform: translate(-50%, 0);
}
.activity-pulse-day:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 3px;
}
.activity-pulse-day:nth-child(-n + 4)::after {
  left: 0;
  transform: translate(0, 4px);
}
.activity-pulse-day:nth-child(-n + 4):is(:hover, :focus-visible)::after {
  transform: translate(0, 0);
}
.activity-pulse-day:nth-last-child(-n + 4)::after {
  right: 0;
  left: auto;
  transform: translate(0, 4px);
}
.activity-pulse-day:nth-last-child(-n + 4):is(:hover, :focus-visible)::after {
  transform: translate(0, 0);
}
.activity-pulse-signal {
  width: 100%;
  min-height: 2px;
  height: 2px;
  background: #cbd5e1;
}
.activity-pulse-day.level-1 .activity-pulse-signal { height: 17px; background: #bfdbfe; }
.activity-pulse-day.level-2 .activity-pulse-signal { height: 34px; background: #93c5fd; }
.activity-pulse-day.level-3 .activity-pulse-signal { height: 52px; background: #60a5fa; }
.activity-pulse-day.level-4 .activity-pulse-signal { height: 70px; background: var(--accent); }
.activity-pulse-scale {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 7px;
  color: var(--grey);
  font-size: 9px;
  letter-spacing: .1em;
}
.activity-pulse-scale span:nth-child(2) { text-align: center; }
.activity-pulse-scale span:nth-child(3) { text-align: right; }
.activity-pulse-skeleton { pointer-events: none; }
.activity-pulse-skeleton .activity-pulse-bars span { min-height: 8px; }
.activity-pulse-skeleton .activity-pulse-bars span:nth-child(5n + 1) { height: 17px; }
.activity-pulse-skeleton .activity-pulse-bars span:nth-child(5n + 2) { height: 39px; }
.activity-pulse-skeleton .activity-pulse-bars span:nth-child(5n + 3) { height: 58px; }
.activity-pulse-skeleton .activity-pulse-bars span:nth-child(5n + 4) { height: 27px; }
.activity-pulse-skeleton .activity-pulse-bars span:nth-child(5n) { height: 9px; }
.activity-pulse-skeleton .activity-pulse-scale span { width: 44px; height: 8px; }
.activity-pulse-skeleton .activity-pulse-scale span:nth-child(2) { justify-self: center; }
.activity-pulse-skeleton .activity-pulse-scale span:nth-child(3) { justify-self: end; }
.activity-note { color: var(--grey); padding: 9px 0 14px; }
.activity-featured { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--hairline); border-left: 1px solid var(--hairline); }
.activity-featured-item { display: grid; gap: 8px; min-height: 112px; padding: 18px; color: inherit; text-decoration: none; border-right: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); background: #fff; transition: background .15s, color .15s; }
.activity-featured-item strong { font-size: 16px; letter-spacing: -.01em; }
.activity-featured-item span { color: var(--grey); font-size: 11px; }
.activity-featured-item:hover, .activity-featured-item:focus-visible { color: var(--accent); background: var(--accent-soft); outline: none; }
.refresh-btn {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  background: none;
  border: 1px solid var(--hairline);
  color: var(--grey);
  padding: 6px 14px;
  cursor: pointer;
  transition: color .15s, border-color .15s;
}
.refresh-btn:hover, .refresh-btn:focus-visible { color: var(--accent); border-color: var(--accent); outline: none; }
@media (max-width: 560px) {
  .log-line { flex-wrap: wrap; gap: 2px 12px; }
  .activity-pulse { max-width: none; margin: 0 0 22px; }
  .activity-pulse-bars { gap: 3px; height: 63px; }
  .activity-pulse-day.level-1 .activity-pulse-signal { height: 14px; }
  .activity-pulse-day.level-2 .activity-pulse-signal { height: 28px; }
  .activity-pulse-day.level-3 .activity-pulse-signal { height: 44px; }
  .activity-pulse-day.level-4 .activity-pulse-signal { height: 57px; }
}

/* ---------- photos (grouped by year, newest first) ---------- */
.photos-page main .wrap {
  max-width: 1200px;
  padding-right: clamp(18px, 2vw, 24px);
  padding-left: clamp(18px, 2vw, 24px);
}
#frames { display: block; }
.gallery-skeleton { display: grid; grid-template-columns: 1.35fr .9fr 1.1fr; grid-template-rows: 180px 135px; gap: var(--frame-gutter, 6px); }
.gallery-skeleton > div:nth-child(1) { grid-row: span 2; }
.gallery-skeleton > div:nth-child(4) { grid-column: span 2; }
.gallery-row-skeleton { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--frame-gutter); height: 220px; }
.gallery-row-skeleton span:nth-child(2) { opacity: .85; }
.gallery-row-skeleton span:nth-child(3) { opacity: .7; }
.gallery-row-skeleton span:nth-child(n + 4) { display: none; }
.year-block + .year-block { margin-top: 44px; }
.year-block { scroll-margin-top: 28px; }
.year-h {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 18px;
  font-family: "IBM Plex Mono", monospace;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.year-h .y { font-size: 20px; font-weight: 500; color: var(--ink); }
.year-h .n { font-size: 12px; color: var(--grey); }
.photo-year-nav {
  position: fixed;
  top: 50%;
  left: clamp(8px, 1.25vw, 20px);
  z-index: 20;
  width: 34px;
  padding: 10px 7px;
  border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(15, 23, 42, .72);
  box-shadow: 0 10px 30px rgba(15, 23, 42, .12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transform: translateY(-50%);
  transition: opacity .15s ease;
}
.photo-year-nav[hidden] { display: none; }
.photo-year-nav ol { display: grid; gap: 1px; list-style: none; }
.photo-year-nav button {
  position: relative;
  width: 100%;
  height: 23px;
  padding: 0;
  border: 0;
  display: grid;
  place-items: center end;
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
}
.photo-year-tick {
  width: 8px;
  height: 2px;
  display: block;
  background: currentColor;
  transition: width .15s ease, color .15s ease;
}
.photo-year-label {
  position: absolute;
  top: 50%;
  right: auto;
  left: calc(100% + 11px);
  padding: 3px 6px;
  border: 1px solid rgba(255, 255, 255, .1);
  background: rgba(15, 23, 42, .96);
  color: #f8fafc;
  font-family: "IBM Plex Mono", monospace;
  font-size: 9px;
  letter-spacing: .1em;
  line-height: 1.2;
  opacity: 0;
  pointer-events: none;
  transform: translate(-4px, -50%);
  transition: opacity .15s ease, transform .15s ease;
}
.photo-year-nav button:hover,
.photo-year-nav button:focus-visible { color: #f8fafc; outline: none; }
.photo-year-nav button:focus-visible { box-shadow: inset 0 0 0 1px #f8fafc; }
.photo-year-nav button:hover .photo-year-tick,
.photo-year-nav button:focus-visible .photo-year-tick { width: 14px; }
.photo-year-nav button:hover .photo-year-label,
.photo-year-nav button:focus-visible .photo-year-label,
.photo-year-nav button[aria-current="true"] .photo-year-label {
  opacity: 1;
  transform: translate(0, -50%);
}
.photo-year-nav button[aria-current="true"] { color: #60a5fa; }
.photo-year-nav button[aria-current="true"] .photo-year-tick { width: 18px; }
body.photo-viewer-open .photo-year-nav { opacity: 0; pointer-events: none; }
.frames {
  --frame-gutter: 6px;
  position: relative;
  display: block;
}
.frame-row {
  display: flex;
  gap: var(--frame-gutter);
  margin-bottom: var(--frame-gutter);
}
.frame {
  border: 1px dashed var(--grey);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--grey);
  padding: 12px;
}
.frames.is-empty .frame-row { height: 220px; }
.frames.is-empty .frame { flex: 1 1 0; aspect-ratio: auto; }
.frame.real {
  position: absolute;
  min-width: 0;
  border: 0;
  padding: 0;
  display: block;
  overflow: hidden;
}
.photo-open {
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  display: block;
  background: #fff;
  color: inherit;
  line-height: 0;
  cursor: zoom-in;
}
.photo-open img { width: 100%; height: 100%; display: block; object-fit: cover; opacity: 0; }
.photo-open img.is-ready { opacity: 1; }
.frame.is-image-error .photo-open {
  position: relative;
  background: repeating-linear-gradient(-45deg, #f4f6f9, #f4f6f9 8px, #eef1f5 8px, #eef1f5 16px);
}
.frame.is-image-error .photo-open::before {
  content: "Preview unavailable";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--grey);
  font-family: "IBM Plex Mono", monospace;
  font-size: 9px;
  line-height: 1.4;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.photo-open:focus-visible { position: relative; z-index: 1; outline: 3px solid var(--accent); outline-offset: -3px; }
.frame-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  max-height: 100%;
  overflow: hidden;
  padding: 26px 10px 8px;
  background: linear-gradient(to top, rgba(255, 255, 255, .96) 60%, rgba(255, 255, 255, 0));
  color: var(--ink);
  text-align: left;
  text-transform: none;
  letter-spacing: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease;
}
.frame.is-meta-visible .frame-caption,
.photo-open:focus-visible + .frame-caption,
.frame-caption:focus-within { opacity: 1; }
.frame-caption strong { font-family: "Archivo", sans-serif; font-size: 14px; }
.frame-caption span { font-size: 10.5px; color: var(--grey); }
.frame-caption .frame-meta {
  font-family: "IBM Plex Mono", monospace;
  font-size: 9.5px;
  line-height: 1.35;
  color: var(--grey);
}
.frame-caption .frame-location { color: var(--accent); }
.frame-caption a.frame-location { text-decoration: none; }
.frame-caption a { pointer-events: auto; }
.frame-caption a.frame-location:hover,
.frame-caption a.frame-location:focus-visible { color: var(--accent); text-decoration: underline; outline: none; }

html.photo-viewer-open,
body.photo-viewer-open { overflow: hidden; }
html.photo-viewer-open { scrollbar-gutter: auto; }
.photo-viewer {
  width: 100vw;
  max-width: none;
  height: 100vh;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: #070b12;
  color: #f8fafc;
}
.photo-viewer::backdrop { background: rgba(7, 11, 18, .96); }
.photo-viewer-shell { height: 100%; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.photo-viewer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 13px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, .16);
}
.photo-viewer-heading { min-width: 0; display: flex; align-items: baseline; gap: 12px; }
.photo-viewer-heading span,
.photo-viewer-meta,
.photo-viewer-actions button { font-family: "IBM Plex Mono", monospace; }
.photo-viewer-heading span { flex: 0 0 auto; color: #94a3b8; font-size: 9px; letter-spacing: .13em; text-transform: uppercase; }
.photo-viewer-heading strong { overflow: hidden; font-family: "Archivo", sans-serif; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.photo-viewer-actions { flex: 0 0 auto; display: flex; gap: 8px; }
.photo-viewer-actions button {
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, .24);
  background: transparent;
  color: #f8fafc;
  font-size: 9px;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
}
.photo-viewer-actions button:hover,
.photo-viewer-actions button:focus-visible { border-color: #f8fafc; outline: none; }
.photo-viewer-actions button:disabled { border-color: rgba(255, 255, 255, .12); color: #64748b; cursor: wait; }
.photo-viewer-stage {
  position: relative;
  min-width: 0;
  min-height: 0;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.photo-viewer-stage img {
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  display: block;
  object-fit: contain;
  cursor: zoom-in;
}
.photo-viewer-stage img[hidden] { display: none; }
.photo-viewer-status {
  position: absolute;
  top: 50%;
  left: 50%;
  margin: 0;
  padding: 7px 9px;
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(7, 11, 18, .82);
  color: #94a3b8;
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  transform: translate(-50%, -50%);
}
.photo-viewer-status[hidden] { display: none; }
.photo-viewer.is-zoomed .photo-viewer-stage { display: block; overflow: auto; text-align: center; }
.photo-viewer.is-zoomed .photo-viewer-stage img {
  width: auto;
  max-width: none;
  height: auto;
  max-height: none;
  margin: auto;
  cursor: zoom-out;
}
.photo-viewer-meta {
  min-height: 38px;
  margin: 0;
  padding: 10px 18px 12px;
  border-top: 1px solid rgba(255, 255, 255, .16);
  color: #94a3b8;
  font-size: 9px;
  line-height: 1.5;
  text-align: center;
}
@media (max-width: 560px) {
  .frames { --frame-gutter: 4px; }
  .photo-viewer-bar { align-items: flex-start; padding: 10px 12px; }
  .photo-viewer-heading { display: block; }
  .photo-viewer-heading span { display: block; margin-bottom: 2px; }
  .photo-viewer-heading strong { display: block; max-width: 42vw; }
  .photo-viewer-stage { padding: 10px; }
  .photo-viewer-meta { padding-right: 12px; padding-left: 12px; text-align: left; }
}

/* ---------- blog index: a compact editorial archive ---------- */
.article-page { background: #f7f8fa; }
.section-kicker { color: var(--accent); font-size: 11px; letter-spacing: .14em; }
.rss-link { color: var(--accent); text-decoration: none; }
.rss-link:hover, .rss-link:focus-visible { text-decoration: underline; outline: none; }
.blog-index-section { padding: 56px 0 88px; }
.blog-index-section .lab-note { margin-top: -18px; }
.tag-filters { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 24px; }
.tag-filters[hidden] { display: none; }
.tag-chip {
  padding: 7px 12px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: transparent;
  color: var(--grey);
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  cursor: pointer;
  transition: color .12s, border-color .12s, background .12s;
}
.tag-chip:hover, .tag-chip:focus-visible { border-color: var(--accent); color: var(--accent); outline: none; }
.tag-chip[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: #fff; }
.post-list { border-top: 1px solid var(--ink); }
.post-card {
  position: relative;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) minmax(170px, 260px);
  gap: 26px;
  align-items: stretch;
  min-height: 218px;
  padding: 26px 0;
  border-bottom: 1px solid var(--hairline);
  color: inherit;
  text-decoration: none;
}
.post-number { padding-top: 4px; color: #94a3b8; font-size: 11px; }
.post-card-content { display: flex; flex-direction: column; align-items: flex-start; }
.post-meta { color: var(--grey); font-family: "IBM Plex Mono", monospace; font-size: 11px; letter-spacing: .02em; }
.post-card h3 { max-width: 24ch; margin: 12px 0 10px; font-size: clamp(25px, 3.2vw, 38px); line-height: 1.07; letter-spacing: -.035em; transition: color .15s; }
.post-excerpt { max-width: 58ch; color: #475569; font-size: 15px; line-height: 1.6; }
.post-tags { display: flex; flex-wrap: wrap; gap: 5px 12px; margin-top: auto; padding-top: 18px; color: #64748b; font-size: 10px; }
.post-tags span::before { content: '#'; color: var(--accent); }
.post-card-visual { position: relative; align-self: center; width: 100%; min-height: 0; aspect-ratio: 16 / 9; overflow: hidden; border: 1px solid #d7dde6; background: #edf2f8; }
.post-card-visual img { width: 100%; height: 100%; display: block; object-fit: cover; filter: saturate(.82); transition: transform .35s ease, filter .2s ease; }
.post-card-visual.text-only { display: flex; align-items: end; justify-content: space-between; padding: 14px; background: linear-gradient(145deg, #e7edf7, #f8fafc 64%); color: var(--accent); }
.post-card-visual.text-only::before { content: ''; position: absolute; width: 86px; height: 86px; align-self: center; border: 1px solid #bfdbfe; border-radius: 50%; }
.post-card:hover h3, .post-card:focus-visible h3 { color: var(--accent); }
.post-card:hover .post-card-visual img, .post-card:focus-visible .post-card-visual img { transform: scale(1.025); filter: saturate(1); }
.post-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
.post-card-skeleton { height: 218px; border-bottom: 1px solid var(--hairline); background: linear-gradient(90deg, transparent 0, rgba(226, 232, 240, .7) 45%, transparent 90%); background-size: 240% 100%; animation: loading-shimmer 1.4s ease-in-out infinite; }
@keyframes loading-shimmer { to { background-position: -240% 0; } }
.blog-state { display: grid; grid-template-columns: auto 1fr; gap: 22px; padding: 30px; border: 1px solid var(--hairline); background: #fff; }
.blog-state[hidden] { display: none; }
.blog-state-mark { color: var(--accent); font-size: 24px; }
.blog-state h3 { margin-bottom: 5px; font-size: 20px; }
.blog-state p { max-width: 62ch; color: var(--grey); }
.back-to-top {
  position: fixed;
  right: clamp(14px, 2vw, 28px);
  bottom: clamp(14px, 2vw, 28px);
  z-index: 20;
  min-width: 68px;
  height: 38px;
  padding: 0 11px;
  border: 1px solid var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(248, 250, 252, .94);
  color: var(--ink);
  box-shadow: 4px 4px 0 rgba(15, 23, 42, .12);
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
  cursor: pointer;
}
.back-to-top > span:first-child { color: var(--accent); font-size: 14px; }
.back-to-top[data-visible="true"] {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
}
.back-to-top:hover,
.back-to-top:focus-visible { border-color: var(--accent); color: var(--accent); outline: none; }

/* ---------- article page: quiet, sustained reading ---------- */
.article-page { --reading-width: 68ch; }
.article-page #bgfx { display: none !important; }
.article-page ::selection { background: #dbeafe; }
.article-header { border-bottom: 1px solid var(--hairline); }
.article-hero-top { display: flex; align-items: baseline; justify-content: space-between; gap: 14px 26px; flex-wrap: wrap; margin-top: 38px; }
.article-back { display: inline-block; color: var(--accent); font-size: 12px; text-decoration: none; }
.article-back:hover, .article-back:focus-visible { text-decoration: underline; outline: none; }
.article-hero-meta { display: flex; align-items: baseline; gap: 12px; color: var(--grey); font-size: 11px; letter-spacing: .09em; text-transform: uppercase; }
.article-hero-meta > span:empty { display: none; }
.article-hero-meta > span + span::before { content: '·'; margin-right: 12px; color: var(--accent); }
.article-heading-grid { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(260px, .75fr); align-items: end; gap: clamp(30px, 6vw, 84px); padding: 24px 0 46px; }
.article-heading-grid h1.page-title { max-width: 100%; padding: 0; font-size: clamp(42px, 5vw, 66px); line-height: 1.01; letter-spacing: -.04em; text-transform: none; overflow-wrap: anywhere; }
.article-deck { padding-bottom: 4px; }
.article-deck > p:first-child { color: #334155; font-size: clamp(17px, 1.7vw, 20px); line-height: 1.58; }
#article-date, #article-reading-time { font: inherit; }
.post-article { padding-top: 32px; }
.article-cover-wrap { margin: 0 0 26px; }
.article-cover-wrap[hidden], #article-cover[hidden] { display: none; }
.post-cover { width: 100%; max-height: 620px; aspect-ratio: 16 / 9; display: block; object-fit: cover; border: 1px solid var(--ink); }
.article-taxonomy { min-height: 34px; margin-bottom: 28px; }
#article-tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; }
#article-tags[hidden] { display: none; }
#article-tags a { display: inline-block; padding: 4px 9px; border: 1px solid var(--hairline); border-radius: 999px; color: var(--grey); font-family: "IBM Plex Mono", monospace; font-size: 10px; text-decoration: none; }
#article-tags a:hover, #article-tags a:focus-visible { border-color: var(--accent); color: var(--accent); outline: none; }
.article-layout { display: grid; grid-template-columns: 198px minmax(0, var(--reading-width)); justify-content: center; gap: clamp(42px, 7vw, 92px); align-items: start; }
.article-rail { min-width: 0; position: sticky; top: 24px; }
#article-toc { padding-top: 16px; }
#article-toc::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--hairline); }
.toc-progress { position: absolute; top: 0; left: 0; width: 100%; height: 2px; background: var(--accent); transform: scaleX(var(--toc-progress, 0)); transform-origin: left; }
#article-toc[hidden] { display: none; }
.toc-label { margin-bottom: 14px; color: var(--grey); font-family: "IBM Plex Mono", monospace; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
#article-toc ul, #article-toc-mobile ul { list-style: none; }
#article-toc li + li, #article-toc-mobile li + li { margin-top: 9px; }
#article-toc .toc-level-3, #article-toc-mobile .toc-level-3 { padding-left: 13px; }
#article-toc a, #article-toc-mobile a { display: flex; align-items: baseline; gap: 9px; color: #64748b; font-family: "IBM Plex Mono", monospace; font-size: 11px; line-height: 1.45; text-decoration: none; }
#article-toc .toc-num, #article-toc-mobile .toc-num { flex: 0 0 auto; color: #94a3b8; font-size: 9.5px; letter-spacing: .08em; transition: color .15s; }
#article-toc .toc-text, #article-toc-mobile .toc-text { min-width: 0; }
#article-toc a:hover, #article-toc a:focus-visible, #article-toc-mobile a:hover, #article-toc-mobile a:focus-visible { color: var(--accent); outline: none; }
#article-toc a.active { color: var(--ink); font-weight: 500; }
#article-toc a.active .toc-num { color: var(--accent); }
.article-toc-mobile { display: none; }
.article-reading-column { min-width: 0; }
.post-body { width: 100%; padding: 0 0 36px; color: #1e293b; font-size: 18px; line-height: 1.78; overflow-wrap: break-word; counter-reset: section; }
.post-body > p:first-child { color: #0f172a; font-size: 1.14em; line-height: 1.68; letter-spacing: -.006em; }
.post-body p { margin: 0 0 1.45em; }
.post-body h2 { margin: 2.3em 0 .8em; padding-top: 26px; border-top: 1px solid var(--hairline); color: var(--ink); font-size: 31px; line-height: 1.18; letter-spacing: -.025em; scroll-margin-top: 28px; counter-increment: section; }
.post-body h2::before { content: counter(section, decimal-leading-zero); display: block; margin-bottom: 10px; color: var(--accent); font-family: "IBM Plex Mono", monospace; font-size: 12px; font-weight: 500; letter-spacing: .16em; }
.post-body h3 { margin: 1.8em 0 .68em; color: var(--ink); font-size: 23px; line-height: 1.25; letter-spacing: -.015em; scroll-margin-top: 28px; }
.post-body h4 { margin: 1.5em 0 .6em; color: var(--ink); font-size: 19px; line-height: 1.3; }
.post-body ul, .post-body ol { margin: 0 0 1.45em; padding-left: 1.35em; }
.post-body li + li { margin-top: .42em; }
.post-body blockquote { margin: 1.8em 0; padding: 3px 0 3px 20px; border-left: 3px solid var(--accent); color: #475569; font-size: 1.02em; }
.post-body a { color: #1d4ed8; text-underline-offset: 3px; }
.post-body .article-download { width: 100%; display: grid; grid-template-columns: 58px minmax(0, 1fr) auto; align-items: center; gap: 16px; overflow: hidden; margin: 1.8em 0; border: 1px solid #cbd5e1; border-left: 4px solid #2563eb; background: #fff; color: var(--ink); text-decoration: none; box-shadow: 0 6px 18px rgba(15, 23, 42, .055); transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease; }
.post-body .article-download:hover, .post-body .article-download:focus-visible { border-color: #2563eb; outline: 3px solid rgba(37, 99, 235, .16); outline-offset: 2px; box-shadow: 0 10px 24px rgba(15, 23, 42, .09); transform: translateY(-2px); }
.post-body .article-download-kind { align-self: stretch; display: grid; place-items: center; overflow: hidden; padding: 12px 7px; background: #eff6ff; color: #1d4ed8; font-family: "IBM Plex Mono", monospace; font-size: 10px; font-weight: 700; letter-spacing: .08em; text-overflow: ellipsis; white-space: nowrap; }
.post-body .article-download-copy { min-width: 0; padding: 14px 0; }
.post-body .article-download-copy strong, .post-body .article-download-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.post-body .article-download-copy strong { color: var(--ink); font-size: 15px; line-height: 1.35; }
.post-body .article-download-copy small { margin-top: 4px; color: #64748b; font-family: "IBM Plex Mono", monospace; font-size: 9.5px; letter-spacing: .08em; line-height: 1.3; text-transform: uppercase; }
.post-body .article-download-action { align-self: stretch; display: flex; align-items: center; padding: 0 18px; border-left: 1px dashed #cbd5e1; color: #1d4ed8; font-family: "IBM Plex Mono", monospace; font-size: 10px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; white-space: nowrap; }
.post-body hr { margin: 46px 0; border: 0; border-top: 1px solid var(--hairline); }
.post-body img, .post-body svg, .post-body canvas, .post-body video { max-width: 100%; height: auto; }
.post-body figure { max-width: 100%; margin: 2.2em 0; padding: 22px 22px 16px; border: 1px solid var(--hairline); background: #fff; }
.post-body figure:has(> img) { padding: 0; }
.post-body figure:has(> img) > img { display: block; width: 100%; }
.post-body figcaption { margin-top: 14px; padding-top: 11px; border-top: 1px solid var(--hairline); color: var(--grey); font-family: "IBM Plex Mono", monospace; font-size: 10.5px; letter-spacing: .05em; line-height: 1.55; }
.post-body figure:has(> img) figcaption { margin-top: 0; padding: 12px 16px; border-top: 1px solid var(--hairline); }
.post-body .stat-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 1.8em 0; border: 1px solid var(--hairline); border-top: 3px solid var(--ink); background: #fff; }
.post-body .stat { min-width: 0; padding: 16px 14px; color: #64748b; font-family: "IBM Plex Mono", monospace; font-size: 10.5px; letter-spacing: .025em; line-height: 1.4; }
.post-body .stat + .stat { border-left: 1px solid var(--hairline); }
.post-body .stat b { display: block; margin-bottom: 4px; color: var(--ink); font-family: "Archivo", sans-serif; font-size: 25px; font-weight: 800; letter-spacing: -.035em; line-height: 1; }
.post-body .arch-diagram { overflow: clip; background: linear-gradient(135deg, #fff 0%, #f8fafc 100%); }
.post-body .arch-row { display: flex; align-items: stretch; gap: 6px; width: 100%; min-width: 0; }
.post-body .arch-row + .arch-row { margin-top: 18px; padding-top: 18px; border-top: 1px dashed #cbd5e1; }
.post-body .arch-node { width: auto; min-width: 0; max-width: 132px; min-height: 66px; display: flex; flex: 1 1 96px; flex-direction: column; justify-content: center; padding: 9px 7px; border: 1px solid #cbd5e1; border-top: 3px solid #64748b; border-radius: 5px; background: #fff; color: var(--ink); box-shadow: 0 3px 10px rgba(15, 23, 42, .045); font-size: 11.5px; font-weight: 650; line-height: 1.3; text-align: center; }
.post-body .arch-node.arch-web { border-top-color: #2563eb; background: #eff6ff; }
.post-body .arch-node.arch-cms { border-top-color: #7c3aed; background: #f5f3ff; }
.post-body .arch-node.arch-data { border-top-color: #059669; background: #ecfdf5; }
.post-body .arch-link { width: 46px; min-width: 0; display: flex; flex: 0 1 46px; flex-direction: column; align-items: center; justify-content: center; padding: 0 1px; color: #64748b; font-family: "IBM Plex Mono", monospace; font-size: 7.75px; letter-spacing: .015em; line-height: 1.28; overflow-wrap: anywhere; text-align: center; }
.post-body .arch-link::after { content: '\2192'; margin-top: 4px; color: #2563eb; font-size: 18px; line-height: 1; }
.post-body .arch-note { display: block; margin-top: 5px; color: #64748b; font-family: "IBM Plex Mono", monospace; font-size: 9px; font-weight: 400; letter-spacing: .02em; line-height: 1.35; }
.post-body .flow-steps { overflow: hidden; background: linear-gradient(145deg, #fff 0%, #f8fbff 100%); }
.post-body .flow-steps ol { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 8px 0 4px; list-style: none; counter-reset: flow-step; }
.post-body .flow-steps ol::before { content: ''; position: absolute; z-index: 1; top: 28px; right: calc(16.6667% - 4.667px); left: calc(16.6667% - 4.667px); height: 2px; background: linear-gradient(90deg, #2563eb, #7c3aed, #059669); pointer-events: none; transform: scaleX(0); transform-origin: left; transition: transform .9s cubic-bezier(.2,.8,.2,1) .12s; }
.post-body .flow-step { position: relative; min-width: 0; margin: 0; padding: 45px 12px 13px; border: 1px solid #dbe4ef; border-radius: 8px; background: rgba(255,255,255,.92); color: #64748b; font-size: 12.5px; line-height: 1.45; text-align: center; counter-increment: flow-step; }
.post-body .flow-step::before { content: counter(flow-step); position: absolute; z-index: 2; top: 2px; left: 50%; width: 34px; height: 34px; display: grid; place-items: center; border: 2px solid #bfdbfe; border-radius: 50%; background: #fff; color: #2563eb; font-family: "IBM Plex Mono", monospace; font-size: 11px; font-weight: 600; transform: translateX(-50%); }
.post-body .flow-step b, .post-body .flow-step span { display: block; }
.post-body .flow-step b { margin-bottom: 5px; color: var(--ink); font-size: 14px; }
.post-body .pipeline { overflow: hidden; background: #f8fafc; }
.post-body .pipeline ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; counter-reset: pipeline-step; }
.post-body .pipeline-step { position: relative; min-width: 0; min-height: 104px; margin: 0; padding: 18px 16px 16px 55px; border: 1px solid #dbe4ef; border-radius: 7px; background: #fff; color: #475569; font-size: 13px; line-height: 1.55; counter-increment: pipeline-step; }
.post-body .pipeline-step::before { content: counter(pipeline-step, decimal-leading-zero); position: absolute; top: 18px; left: 16px; color: #2563eb; font-family: "IBM Plex Mono", monospace; font-size: 11px; font-weight: 600; letter-spacing: .05em; }
.post-body .pipeline-step::after { content: ''; position: absolute; right: -7px; bottom: -7px; width: 24px; height: 24px; border-right: 1px solid #bfdbfe; border-bottom: 1px solid #bfdbfe; opacity: .7; }
.post-body .pipeline-step b { display: block; margin-bottom: 5px; color: var(--ink); font-size: 14px; }
.post-body .check-list { display: grid; gap: 9px; margin: 1.8em 0; padding: 0; list-style: none; }
.post-body .check-list li { position: relative; margin: 0; padding: 14px 16px 14px 46px; border: 1px solid #dbe4ef; border-left: 3px solid #059669; background: linear-gradient(90deg, #ecfdf5 0, #fff 28%); color: #334155; font-size: 14.5px; line-height: 1.55; }
.post-body .check-list li::before { content: '\2713'; position: absolute; top: 14px; left: 17px; width: 19px; height: 19px; display: grid; place-items: center; border-radius: 50%; background: #059669; color: #fff; font-size: 11px; font-weight: 700; }
.post-body .routes-table tbody tr { transition: background .18s ease, color .18s ease; }
.post-body .routes-table tbody tr:hover { background: #eff6ff; color: #1d4ed8; }
.post-body .article-replay { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; padding: 7px 10px; border: 1px solid #cbd5e1; border-radius: 999px; background: #fff; color: #475569; font-family: "IBM Plex Mono", monospace; font-size: 9.5px; letter-spacing: .06em; cursor: pointer; transition: border-color .18s ease, color .18s ease, transform .18s ease; }
.post-body .article-replay:hover, .post-body .article-replay:focus-visible { border-color: #2563eb; color: #2563eb; outline: none; transform: translateY(-1px); }
.post-body .article-replay span { font-size: 13px; transition: transform .45s ease; }
.post-body .article-replay:hover span, .post-body .article-replay:focus-visible span { transform: rotate(-180deg); }
.post-body .article-motion { --article-delay: 0ms; }
.post-body .article-motion .stat,
.post-body .article-motion .arch-node,
.post-body .article-motion .arch-link,
.post-body .article-motion .flow-step,
.post-body .article-motion .pipeline-step,
.post-body .article-motion.check-list li { opacity: 0; transform: translateY(10px); transition: opacity .42s ease, transform .55s cubic-bezier(.2,.75,.2,1); }
.post-body .article-motion.is-visible .stat,
.post-body .article-motion.is-visible .arch-node,
.post-body .article-motion.is-visible .arch-link,
.post-body .article-motion.is-visible .flow-step,
.post-body .article-motion.is-visible .pipeline-step,
.post-body .article-motion.is-visible.check-list li { opacity: 1; transform: none; }
.post-body .flow-steps.article-motion.is-visible ol::before { transform: scaleX(1); }
.post-body .article-motion.is-visible .arch-link::after { animation: article-signal 1.4s ease-in-out 2; }
.post-body .article-motion.is-visible .stat:nth-child(2), .post-body .article-motion.is-visible .arch-row > :nth-child(2), .post-body .article-motion.is-visible li:nth-child(2) { transition-delay: 90ms; }
.post-body .article-motion.is-visible .stat:nth-child(3), .post-body .article-motion.is-visible .arch-row > :nth-child(3), .post-body .article-motion.is-visible li:nth-child(3) { transition-delay: 180ms; }
.post-body .article-motion.is-visible .stat:nth-child(4), .post-body .article-motion.is-visible .arch-row > :nth-child(4), .post-body .article-motion.is-visible li:nth-child(4) { transition-delay: 270ms; }
.post-body .article-motion.is-visible .arch-row > :nth-child(5), .post-body .article-motion.is-visible li:nth-child(5) { transition-delay: 360ms; }
.post-body .article-motion.is-visible .arch-row > :nth-child(6), .post-body .article-motion.is-visible li:nth-child(6) { transition-delay: 450ms; }
.post-body .article-motion.is-visible .arch-row > :nth-child(7), .post-body .article-motion.is-visible li:nth-child(7) { transition-delay: 540ms; }
@keyframes article-signal { 0%,100% { opacity: .55; transform: translateX(0); } 50% { opacity: 1; transform: translateX(4px); } }
.post-body table { width: max-content; min-width: 100%; border-collapse: collapse; border: 1px solid var(--hairline); background: #fff; font-size: 14.5px; }
.post-body table, .post-body pre { max-width: 100%; overflow-x: auto; }
.post-body table { display: block; margin: 1.8em 0; overflow-y: hidden; }
.post-body th, .post-body td { min-width: 110px; padding: 11px 13px; border: 1px solid var(--hairline); text-align: left; }
.post-body th { background: #f8fafc; color: #475569; font-family: "IBM Plex Mono", monospace; font-size: 10.5px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; }
.post-body code { padding: 2px 5px; border-radius: 3px; background: var(--accent-soft); font-family: "JetBrains Mono", monospace; font-size: .84em; }
.post-body pre { display: block; margin: 1.8em 0; padding: 18px 20px; border: 1px solid var(--t-border); border-radius: 8px; background: var(--t-bg); color: var(--t-text); }
.post-body pre code { display: block; min-width: max-content; padding: 0; border-radius: 0; background: none; font-size: 13.5px; line-height: 1.65; }
.post-body .hljs-keyword, .post-body .hljs-selector-tag { color: #bb9af7; }
.post-body .hljs-string, .post-body .hljs-doctag { color: #9ece6a; }
.post-body .hljs-title, .post-body .hljs-section { color: var(--t-green); }
.post-body .hljs-number, .post-body .hljs-literal { color: var(--t-amber); }
.post-body .hljs-attr, .post-body .hljs-attribute, .post-body .hljs-built_in, .post-body .hljs-variable, .post-body .hljs-template-variable { color: var(--t-cyan); }
.post-body .hljs-comment, .post-body .hljs-quote { color: var(--t-dim); font-style: italic; }
.post-body .hljs-deletion, .post-body .hljs-regexp, .post-body .hljs-name, .post-body .hljs-tag { color: var(--t-red); }
.post-body .hljs-addition { color: #9ece6a; }
.article-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 46px; padding-top: 26px; border-top: 1px solid var(--ink); }
.article-nav a { padding: 15px 17px; border: 1px solid var(--hairline); background: #fff; color: inherit; font-size: 15px; font-weight: 650; line-height: 1.35; text-decoration: none; transition: border-color .15s, transform .15s; }
.article-nav a:hover, .article-nav a:focus-visible { border-color: var(--accent); transform: translateY(-2px); }
.article-nav a span { display: block; margin-bottom: 5px; color: var(--grey); font-family: "IBM Plex Mono", monospace; font-size: 10px; font-weight: 400; letter-spacing: .1em; text-transform: uppercase; }
.article-nav a:hover span, .article-nav a:focus-visible span { color: var(--accent); }
.article-nav a:hover, .article-nav a:focus-visible { color: inherit; outline: none; }
.article-nav a[hidden] { display: none; }
#article-next { text-align: right; }
#article-related { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--hairline); }
#article-related[hidden] { display: none; }
#article-related h2 { margin-bottom: 13px; font-size: 24px; letter-spacing: -.02em; }
#article-related ul { list-style: none; }
#article-related li { border-bottom: 1px solid var(--hairline); }
#article-related a { display: flex; justify-content: space-between; gap: 18px; padding: 12px 0; color: inherit; text-decoration: none; }
#article-related a:hover, #article-related a:focus-visible { color: var(--accent); outline: none; }
.preview-ribbon { position: sticky; top: 0; z-index: 20; padding: 7px 16px; background: #fef3c7; color: #854d0e; font-family: "IBM Plex Mono", monospace; font-size: 11px; text-align: center; }

@media (max-width: 820px) {
  .post-card { grid-template-columns: 34px minmax(0, 1fr) 170px; gap: 18px; }
  .article-hero-top { margin-top: 28px; }
  .article-heading-grid { grid-template-columns: 1fr; gap: 22px; }
  .article-heading-grid h1.page-title { max-width: 18ch; }
  .article-deck { max-width: 62ch; }
  .article-layout { display: block; max-width: var(--reading-width); margin: 0 auto; }
  .article-rail { display: none; }
  .article-toc-mobile { display: block; max-width: var(--reading-width); margin: 0 auto 32px; border: 1px solid var(--hairline); background: #fff; }
  .article-toc-mobile[hidden] { display: none; }
  .article-toc-mobile summary { display: flex; justify-content: space-between; padding: 13px 15px; color: var(--ink); font-family: "IBM Plex Mono", monospace; font-size: 11px; cursor: pointer; }
  .article-toc-mobile summary span { color: var(--grey); }
  #article-toc-mobile { padding: 0 15px 15px; border-top: 1px solid var(--hairline); }
  #article-toc-mobile ul { padding-top: 13px; }
}
@media (max-width: 620px) {
  .blog-index-section { padding-top: 40px; }
  .post-card { grid-template-columns: 28px minmax(0, 1fr); min-height: 0; padding: 23px 0; }
  .post-card-visual { display: none; }
  .post-card h3 { font-size: 27px; }
  .post-excerpt { font-size: 14.5px; }
  .article-heading-grid { padding-bottom: 34px; }
  .article-heading-grid h1.page-title { font-size: clamp(35px, 9.5vw, 46px); }
  .post-article { padding-top: 22px; }
  .post-body { font-size: 17px; line-height: 1.74; }
  .post-body h2 { padding-top: 20px; font-size: 27px; }
  .post-body h3 { font-size: 21px; }
  .post-body .article-download { grid-template-columns: 50px minmax(0, 1fr); gap: 12px; }
  .post-body .article-download-kind { padding-inline: 5px; }
  .post-body .article-download-copy { padding: 12px 12px 12px 0; }
  .post-body .article-download-action { grid-column: 1 / -1; min-height: 38px; justify-content: center; border-top: 1px dashed #cbd5e1; border-left: 0; }
  .post-body figure { margin: 1.8em 0; padding: 16px 16px 12px; }
  .post-body figure:has(> img) { padding: 0; }
  .post-body .stat-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .post-body .stat { padding: 14px 12px; }
  .post-body .stat:nth-child(odd) { border-left: 0; }
  .post-body .stat:nth-child(n + 3) { border-top: 1px solid var(--hairline); }
  .post-body .arch-diagram { overflow: visible; padding: 14px 14px 11px; }
  .post-body .arch-row { width: 100%; min-width: 0; flex-direction: column; align-items: stretch; gap: 7px; }
  .post-body .arch-node { width: 100%; max-width: none; min-height: 54px; padding: 10px; font-size: 12px; }
  .post-body .arch-link { width: 100%; min-height: 36px; padding: 3px 8px; font-size: 9px; }
  .post-body .arch-link::after { content: '\2193'; margin-top: 2px; }
  .post-body .article-motion.is-visible .arch-link::after { animation-name: article-signal-vertical; }
  .post-body .flow-steps ol, .post-body .pipeline ol { grid-template-columns: 1fr; }
  .post-body .flow-steps ol::before { top: 30px; right: auto; bottom: 30px; left: 24px; width: 2px; height: auto; transform: scaleY(0); transform-origin: top; }
  .post-body .flow-steps.article-motion.is-visible ol::before { transform: scaleY(1); }
  .post-body .flow-step { min-height: 60px; padding: 12px 12px 12px 58px; text-align: left; }
  .post-body .flow-step::before { top: 50%; left: 7px; transform: translateY(-50%); }
  .post-body .pipeline-step { min-height: 0; }
  .article-nav { grid-template-columns: 1fr; }
  #article-next { text-align: left; }
}
@keyframes article-signal-vertical { 0%,100% { opacity: .55; transform: translateY(0); } 50% { opacity: 1; transform: translateY(4px); } }
@media (prefers-reduced-motion: reduce) {
  .post-card-skeleton { animation: none; background: var(--hairline); opacity: .4; }
  .post-card-visual img { transition: none; }
  .article-nav a { transition: none; }
  .article-nav a:hover, .article-nav a:focus-visible { transform: none; }
  .post-body .article-download, .post-body .article-download:hover, .post-body .article-download:focus-visible { transition: none; transform: none; }
  .post-body .article-motion,
  .post-body .article-motion:not(.is-visible),
  .post-body .article-motion .stat,
  .post-body .article-motion .arch-node,
  .post-body .article-motion .arch-link,
  .post-body .article-motion .flow-step,
  .post-body .article-motion .pipeline-step,
  .post-body .article-motion.check-list li { opacity: 1; transform: none; transition: none; animation: none; }
  .post-body .flow-steps ol::before { transform: none; transition: none; }
}

/* ---------- stamp ---------- */
.spec { position: relative; }
.stamp {
  position: absolute;
  top: 14px; right: 14px;
  font-family: "IBM Plex Mono", monospace;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
  border: 3px solid var(--accent);
  border-radius: 4px;
  padding: 4px 12px;
  transform: rotate(-12deg) scale(2.4);
  opacity: 0;
  pointer-events: none;
}
.stamp.on { animation: slam .28s cubic-bezier(.2,.9,.3,1.4) forwards; }
@keyframes slam { to { opacity: 1; transform: rotate(-12deg) scale(1); } }
@media (prefers-reduced-motion: reduce) {
  .stamp { transform: rotate(-12deg); }
  .stamp.on { animation: none; opacity: 1; }
}

/* ---------- clickable rows ---------- */
.works tbody tr { cursor: pointer; }
.works tbody tr:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }

/* ---------- sorting ---------- */
.works th.sortable { cursor: pointer; user-select: none; }
.works th.sortable:hover, .works th.sortable:focus-visible { color: var(--ink); outline: none; }
.sort-ind { font-size: 9px; color: var(--accent); }

/* ---------- redacted ---------- */
.redacted {
  font: inherit;
  border: none;
  padding: 0 3px;
  background: var(--ink);
  color: transparent;
  border-radius: 2px;
  cursor: help;
  user-select: none;
  transition: background .25s, color .25s;
}
.redacted:hover, .redacted:focus-visible, .redacted.revealed {
  background: var(--accent-soft);
  color: var(--ink);
  outline: none;
  user-select: text;
}

/* ---------- reveals ---------- */
[data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
[data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ---------- click ping ---------- */
.xh-ping {
  position: fixed;
  width: 26px; height: 26px;
  border: 2px solid #60a5fa;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  transform: translate(-50%, -50%) scale(1);
  opacity: .7;
  animation: ping .5s ease-out forwards;
}
@keyframes ping { to { transform: translate(-50%, -50%) scale(3.4); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .xh-ping { animation: none; opacity: 0; }
}

/* ---------- background effects (picked at random per load, no UI) ---------- */
#bgfx { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
header, .exhibit, main, footer { position: relative; z-index: 1; }

/* ---------- mobile ---------- */
@media (max-width: 760px) {
  .site-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    min-height: 0;
    white-space: normal;
  }
  .site-nav .spacer { flex: 1 0 100%; height: 0; }
}
@media (max-width: 480px) {
  .cf-meta { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .shell .inputline, .shell #shell-input, .query-row input { font-size: 16px; } /* no iOS focus-zoom */
}

/* ---------- print: the paper dossier ---------- */
.print-only { display: none; }
@media print {
  #bgfx, .exhibit, .overlay, .xh-ping, .query-row, .refresh-btn, .site-nav, .photo-year-nav, .back-to-top { display: none !important; }
  body { background: #fff; color: #000; font-size: 12px; }
  header, main, footer, section { position: static; z-index: auto; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  body, body * { color: #000 !important; }
  a { text-decoration: underline; }
  .status-dot { background: #000 !important; }
  h1 { font-size: 64px; }
  .bar i { background: #000; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .print-only { display: block; }
}

/* ---------- footer ---------- */
footer { padding: 48px 0 64px; }
.contact-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}
.contact-row .big { font-size: clamp(28px, 5vw, 52px); font-weight: 800; letter-spacing: -.02em; }
.contact-row .big a { color: inherit; text-decoration: none; }
.contact-row .big a:hover, .contact-row .big a:focus-visible { color: var(--accent); outline: none; }
.contact-details { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: baseline; margin-top: 12px; color: var(--grey); font-size: 12px; }
.contact-details a { color: inherit; text-decoration: none; border-bottom: 1px solid transparent; }
.contact-details a:hover, .contact-details a:focus-visible { color: var(--accent); border-color: currentColor; outline: none; }
.contact-label { color: var(--ink); font-weight: 500; text-transform: uppercase; letter-spacing: .08em; }
.contact-label:not(:first-child) { margin-left: 8px; }
.fine { font-family: "IBM Plex Mono", monospace; font-size: 12px; color: var(--grey); margin-top: 24px; }

@media (max-width: 640px) {
  .activity-featured { grid-template-columns: 1fr; }
  .gallery-skeleton { grid-template-columns: 1fr 1fr; grid-template-rows: 148px 116px 116px; }
  .gallery-skeleton > div:nth-child(1) { grid-row: span 2; }
  .gallery-skeleton > div:nth-child(4) { grid-column: auto; }
  .photo-year-nav {
    top: auto;
    right: auto;
    left: 50%;
    bottom: calc(10px + env(safe-area-inset-bottom));
    width: auto;
    padding: 6px 9px;
    transform: translateX(-50%);
  }
  .photo-year-nav ol { display: flex; gap: 1px; }
  .photo-year-nav button { width: 23px; height: 22px; place-items: end center; }
  .photo-year-nav .photo-year-tick { width: 2px; height: 8px; transition-property: height, color; }
  .photo-year-nav button:hover .photo-year-tick,
  .photo-year-nav button:focus-visible .photo-year-tick { width: 2px; height: 13px; }
  .photo-year-nav button[aria-current="true"] .photo-year-tick { width: 2px; height: 16px; }
  .photo-year-label {
    top: auto;
    right: auto;
    bottom: calc(100% + 9px);
    left: 50%;
    transform: translate(-50%, 4px);
  }
  .photo-year-nav button:hover .photo-year-label,
  .photo-year-nav button:focus-visible .photo-year-label,
  .photo-year-nav button[aria-current="true"] .photo-year-label { transform: translate(-50%, 0); }
  .back-to-top { right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); }
  .contact-details { display: grid; gap: 8px; }
  .contact-label:not(:first-child) { margin-left: 0; margin-top: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  .works-skeleton span,
  .lab-card-skeleton span,
  .log-line-skeleton span,
  .activity-pulse-skeleton .activity-pulse-bars span,
  .activity-pulse-skeleton .activity-pulse-scale span,
  .gallery-skeleton > div,
  .gallery-row-skeleton span,
  .post-card-skeleton { animation: none; }
  .activity-featured-item,
  .photo-year-nav,
  .photo-year-tick,
  .photo-year-label,
  .back-to-top { transition: none; }
}
