@import url("/assets/styles.css");

/*
 * Garden spark direction.
 *
 * This sheet deliberately sits on top of the original prototype styles so the
 * visual experiment remains easy to compare, remove, or steer elsewhere.
 */

:root {
  --paper: #f5f3ed;
  --paper-strong: #fffef9;
  --ink: #18212d;
  --muted: #5d6671;
  --faint: #ece9df;
  --line: #c9c6bb;
  --line-strong: #7d8792;
  --accent: #1389a6;
  --accent-soft: #dff2f4;
  --spark-cyan: #0795b2;
  --spark-coral: #e45f66;
  --spark-yellow: #e6cf36;
  --graph-line: rgba(24, 33, 45, 0.075);
  --graph-accent: rgba(7, 149, 178, 0.075);
  --shadow: none;
}

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  background:
    linear-gradient(90deg, rgba(24, 33, 45, 0.018) 1px, transparent 1px) 0 0 / 79px 100%,
    var(--paper);
  color: var(--ink);
}

body::before {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--spark-yellow) 0 19%,
    var(--ink) 19% 57%,
    var(--spark-cyan) 57% 82%,
    var(--spark-coral) 82% 100%
  );
  content: "";
}

::selection {
  background: var(--spark-yellow);
  color: var(--ink);
}

:focus-visible {
  outline: 2px solid var(--spark-coral);
  outline-offset: 3px;
}

.graph-paper {
  background-color: rgba(255, 254, 249, 0.92);
  background-image:
    linear-gradient(var(--graph-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--graph-line) 1px, transparent 1px),
    linear-gradient(rgba(7, 149, 178, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(228, 95, 102, 0.035) 1px, transparent 1px);
  background-position: -3px 4px, 5px -2px, 11px 17px, 23px 9px;
  background-size: 18px 18px, 18px 18px, 47px 53px, 61px 43px;
}

.site-header {
  width: 100%;
  max-width: none;
  margin: 0;
  border-bottom: 1px solid var(--ink);
  background: rgba(255, 254, 249, 0.94);
  padding: 11px max(16px, calc((100vw - 1220px) / 2)) 8px;
}

.brand {
  gap: 9px;
  min-width: 0;
  color: var(--ink);
  letter-spacing: 0.04em;
}

.brand-mark {
  border: 1px solid var(--ink);
  background: var(--ink);
  box-shadow: 3px 3px 0 var(--spark-yellow);
  color: #fffef9;
  font-weight: 800;
}

.brand-word {
  font-weight: 820;
}

.brand-note {
  border-left: 1px solid var(--line);
  padding-left: 9px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 520;
  letter-spacing: 0;
  text-transform: lowercase;
}

.site-nav {
  gap: 16px;
  color: var(--muted);
  font-size: 0.79rem;
}

.site-nav a {
  position: relative;
  padding: 4px 1px 3px;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav a::after {
  position: absolute;
  right: -3px;
  bottom: -4px;
  left: -3px;
  height: 2px;
  background: var(--spark-cyan);
  content: "";
  opacity: 0;
  transform: rotate(-1.5deg) scaleX(0.5);
  transition: opacity 120ms ease, transform 120ms ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--ink);
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.site-nav a[aria-current="page"]::after {
  opacity: 1;
  transform: rotate(-1.5deg) scaleX(1);
}

.explorer-shell {
  grid-template-columns: minmax(260px, 286px) minmax(0, 1fr);
  gap: 18px;
  width: min(1220px, calc(100% - 32px));
  padding-top: 20px;
}

.explorer-sidebar {
  gap: 11px;
  max-height: calc(100vh - 78px);
  scrollbar-color: var(--line-strong) transparent;
}

.sidebar-panel {
  border: 0;
  border-top: 1px solid var(--line-strong);
  background: transparent;
  padding: 10px 4px 4px;
}

.explorer-identity {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--ink);
  padding: 14px;
}

.explorer-identity::after {
  position: absolute;
  top: -17px;
  right: 21px;
  width: 13px;
  height: 70px;
  border-right: 2px solid var(--spark-coral);
  border-left: 1px solid var(--spark-yellow);
  content: "";
  opacity: 0.9;
  transform: rotate(17deg);
}

.eyebrow-mark {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 5px;
  border: 1px solid var(--ink);
  background: var(--spark-yellow);
  vertical-align: 1px;
}

.identity-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 84px;
  align-items: start;
  gap: 0;
  margin-bottom: 10px;
}

.identity-avatar {
  display: block;
  width: 84px;
  height: 84px;
  border: 1px solid var(--ink);
  background: var(--paper);
  object-fit: cover;
}

.explorer-identity h1 {
  margin-bottom: 0;
  font-size: 1.78rem;
  letter-spacing: -0.035em;
}

.explorer-identity .identity-note {
  max-width: 32ch;
  margin-bottom: 14px;
  color: var(--ink);
  font-size: 0.9rem;
  line-height: 1.46;
}

.compact-facts {
  gap: 0;
  border: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: transparent;
}

.compact-facts div {
  grid-template-columns: 67px 1fr;
  gap: 8px;
  border-bottom: 1px dotted var(--line);
  background: rgba(255, 254, 249, 0.58);
  padding: 6px 2px;
}

.compact-facts div:last-child {
  border-bottom: 0;
}

.compact-facts dd {
  font-size: 0.79rem;
}

.explorer-identity .creature-mark {
  margin: 11px 0 0;
  color: var(--ink);
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-align: right;
  transform: rotate(-1deg);
}

.sidebar-heading {
  margin-bottom: 7px;
}

.sidebar-heading h2 {
  font-size: 0.94rem;
}

.sidebar-heading h2.sidebar-eyebrow {
  margin: 0;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 760;
  letter-spacing: 0.055em;
  line-height: 1;
  text-transform: uppercase;
}

.eyebrow {
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.055em;
}

.tag-controls,
.sidebar-tags {
  gap: 3px 8px;
}

.sidebar-tags {
  max-height: 185px;
  overflow-y: auto;
  border-bottom: 1px solid var(--line);
  padding: 0 4px 7px 0;
  scrollbar-color: var(--line-strong) transparent;
  scrollbar-width: thin;
}

.tag-chip,
.sidebar-tags .tag-chip {
  min-height: 26px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  padding: 4px 2px 3px;
  color: var(--muted);
  font-size: 0.74rem;
}

.tag-chip:hover {
  border-bottom-color: var(--spark-cyan);
  background: transparent;
  color: var(--ink);
}

.tag-chip.is-active {
  border: 1px solid var(--ink);
  background: var(--ink);
  box-shadow: 2px 2px 0 var(--spark-yellow);
  color: var(--paper-strong);
  padding-inline: 6px;
}

.lens-controls {
  display: grid;
  gap: 8px;
}

.lens-reset {
  justify-self: start;
}

.lens-group {
  border-top: 1px dotted var(--line);
  padding-top: 7px;
}

.lens-group-label {
  margin: 0 0 3px;
  color: var(--muted);
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 0.64rem;
  font-weight: 720;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.lens-chip-list {
  justify-content: flex-start;
  gap: 3px 8px;
}

.audience-chip {
  color: var(--ink);
  font-weight: 650;
}

.tech-chip {
  font-size: 0.7rem;
}

.project-nav {
  gap: 0;
  border: 0;
  border-top: 1px solid var(--line);
  background: transparent;
}

.project-nav-link {
  position: relative;
  border-right: 0;
  border-bottom: 1px solid var(--line);
  border-left: 0;
  background: transparent;
  padding: 7px 3px;
}

.project-nav-link:hover,
.project-nav-link.is-focused {
  border-left-color: transparent;
  background: linear-gradient(90deg, rgba(7, 149, 178, 0.09), transparent 84%);
}

.project-nav-title,
.map-node-title {
  position: relative;
  z-index: 0;
  width: fit-content;
}

.project-nav-title::after,
.map-node-title::after,
.post-card h2::after {
  position: absolute;
  inset: -3px -6px -2px -5px;
  z-index: -1;
  border: 1.5px solid var(--spark-coral);
  clip-path: polygon(1% 7%, 99% 0, 97% 94%, 3% 100%);
  content: "";
  opacity: 0;
  pointer-events: none;
  transform: rotate(-0.8deg) scaleX(0.94);
  transition: opacity 100ms ease, transform 130ms ease;
}

.project-nav-link:nth-child(3n + 2) .project-nav-title::after,
.map-node:nth-child(3n + 2) .map-node-title::after {
  border-color: var(--spark-cyan);
  transform: rotate(0.75deg) scaleX(0.94);
}

.project-nav-link:hover .project-nav-title::after,
.project-nav-link:focus-visible .project-nav-title::after,
.project-nav-link.is-focused .project-nav-title::after,
.map-node:hover .map-node-title::after,
.map-node:focus-visible .map-node-title::after,
.map-node.is-focused .map-node-title::after,
.post-card a:hover h2::after,
.post-card a:focus-visible h2::after {
  opacity: 1;
  transform: rotate(-0.8deg) scaleX(1);
}

.project-nav-link:nth-child(3n + 2):hover .project-nav-title::after,
.project-nav-link:nth-child(3n + 2):focus-visible .project-nav-title::after,
.project-nav-link:nth-child(3n + 2).is-focused .project-nav-title::after,
.map-node:nth-child(3n + 2):hover .map-node-title::after,
.map-node:nth-child(3n + 2):focus-visible .map-node-title::after,
.map-node:nth-child(3n + 2).is-focused .map-node-title::after {
  transform: rotate(0.75deg) scaleX(1);
}

.project-nav-meta,
.project-nav-link small {
  color: #707983;
  font-size: 0.69rem;
}

.field-note-title {
  font-size: 0.79rem;
  font-weight: 700;
  line-height: 1.15;
}

.project-nav-link .field-note-topics {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.field-note-date {
  align-self: start;
  font-size: 0.62rem;
  font-variant-numeric: tabular-nums;
}

.explorer-stage {
  gap: 14px;
}

.section-heading.graph-paper {
  align-items: center;
  min-height: 64px;
  margin-bottom: 0;
  border: 1px solid var(--ink);
  padding: 9px 12px;
}

.section-heading.graph-paper h2 {
  font-size: 1.18rem;
  letter-spacing: -0.015em;
}

.section-note strong {
  color: var(--spark-cyan);
  font-size: 1rem;
}

.project-map {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line-strong);
  border-left: 1px solid var(--line);
  background: rgba(255, 254, 249, 0.7);
  overflow: visible;
}

.project-map::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 100px;
  display: block;
  width: 1px;
  background: var(--spark-cyan);
  content: "";
  opacity: 0.66;
}

.map-node {
  position: relative;
  display: grid;
  grid-template-columns: 80px 40px minmax(0, 1fr);
  gap: 0 10px;
  min-height: 58px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 254, 249, 0.56);
  padding: 6px 12px 6px 8px;
  color: var(--ink);
  text-decoration: none;
  transition: background 120ms ease, transform 120ms ease;
}

.map-node:last-child {
  border-bottom: 0;
}

.map-node:nth-child(even) {
  background: rgba(241, 239, 232, 0.58);
}

.map-node::after {
  position: absolute;
  top: 7px;
  right: -1px;
  bottom: 7px;
  display: block;
  width: 3px;
  background: var(--accent);
  content: "";
  opacity: 0;
  transform: scaleY(0.4);
  transition: opacity 120ms ease, transform 120ms ease;
}

.map-node:hover,
.map-node.is-focused {
  background: linear-gradient(90deg, rgba(7, 149, 178, 0.1), rgba(255, 254, 249, 0.88) 65%);
  transform: translateX(2px);
}

.map-node:hover::after,
.map-node:focus-visible::after,
.map-node.is-focused::after {
  opacity: 1;
  transform: scaleY(1);
}

.map-node.is-focused {
  outline: 1px solid var(--accent);
  outline-offset: -1px;
}

.map-node.is-filtered-out {
  opacity: 0.16;
  pointer-events: none;
}

.map-node-years {
  grid-column: 1;
  align-self: center;
  padding-right: 7px;
  color: var(--muted);
  font-size: 0.7rem;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
  text-align: right;
}

.map-node-mark {
  position: relative;
  z-index: 1;
  grid-column: 2;
  align-self: center;
  width: 40px;
  height: 40px;
  background: var(--paper-strong);
}

.map-node-mark .project-mark {
  width: 40px;
  height: 40px;
}

.map-node-copy {
  display: grid;
  grid-column: 3;
  align-self: center;
  justify-self: stretch;
  gap: 3px;
  min-width: 0;
}

.map-node-title {
  max-width: 100%;
  font-size: 0.88rem;
  font-weight: 780;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.map-node-copy em {
  color: var(--muted);
  font-size: 0.69rem;
  font-style: normal;
  line-height: 1.2;
}

.dynamic-panel {
  scroll-margin-top: 12px;
}

.dynamic-panel.is-loading {
  opacity: 0.5;
}

.project-detail {
  position: relative;
  overflow: hidden;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  border-left: 4px solid var(--accent);
  background: var(--paper-strong);
  padding: 21px 23px 23px;
}

.project-detail::before {
  position: absolute;
  inset: 0 0 auto;
  height: 7px;
  background:
    linear-gradient(90deg, transparent 0 14%, var(--accent) 14% 16%, transparent 16% 49%, var(--spark-yellow) 49% 50%, transparent 50%),
    repeating-linear-gradient(90deg, var(--graph-line) 0 1px, transparent 1px 15px);
  content: "";
}

.explorer-detail {
  min-height: 390px;
}

.project-detail-header {
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 15px;
  margin-bottom: 15px;
}

.project-detail-header .project-mark,
.project-detail-header .large-mark {
  width: 52px;
  height: 52px;
}

.project-detail-header .large-mark {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper-strong);
}

.project-detail-header h1 {
  max-width: 23ch;
  margin-bottom: 7px;
  font-size: clamp(1.75rem, 3.6vw, 2.65rem);
  letter-spacing: -0.035em;
  line-height: 1.01;
  text-wrap: balance;
}

.lede {
  color: #343d48;
  font-size: 0.96rem;
  line-height: 1.5;
}

.project-meta {
  gap: 0;
  border: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(245, 243, 237, 0.55);
}

.project-meta div {
  border-right: 1px dotted var(--line);
  background: transparent;
  padding: 7px 9px;
}

.project-meta div:last-child {
  border-right: 0;
}

.project-meta-filter-links {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 8px;
}

.project-meta-filter-links a {
  border-bottom: 1px dotted color-mix(in srgb, var(--accent) 72%, var(--line));
  color: var(--ink);
  text-decoration: none;
}

.project-meta-filter-links a:hover,
.project-meta-filter-links a:focus-visible {
  border-bottom-style: solid;
  border-bottom-color: var(--ink);
  background: var(--spark-yellow);
}

.detail-taxonomy {
  display: grid;
  gap: 6px;
  margin-bottom: 16px;
}

.detail-taxonomy-row {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
}

.detail-taxonomy-row + .detail-taxonomy-row {
  border-top: 1px dotted var(--line);
  padding-top: 6px;
}

.detail-taxonomy-label {
  margin: 2px 0 0;
  color: var(--muted);
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 0.65rem;
  font-weight: 720;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.detail-taxonomy .detail-tags {
  align-items: baseline;
  gap: 2px 0;
  margin-bottom: 0;
}

.detail-taxonomy .detail-tags li {
  display: inline-flex;
  align-items: baseline;
  border: 0;
  background: transparent;
  padding: 0;
}

.detail-taxonomy .detail-tags li:not(:last-child)::after {
  margin: 0 6px;
  color: var(--line-strong);
  content: "·";
}

.detail-taxonomy .detail-tags a {
  border: 0;
  border-bottom: 1px dotted color-mix(in srgb, var(--accent) 72%, var(--line));
  background: transparent;
  color: var(--ink);
  padding: 1px 0;
  text-decoration: none;
}

.detail-tags a:hover,
.detail-tags a:focus-visible {
  border-bottom-style: solid;
  border-bottom-color: var(--ink);
  background: var(--spark-yellow);
}

.detail-taxonomy .detail-tech a {
  border-bottom-color: color-mix(in srgb, var(--spark-cyan) 70%, var(--line));
}

.prose {
  color: #252d36;
  font-size: 0.96rem;
  line-height: 1.62;
}

.wip-notice {
  border-block: 1px solid var(--line-strong);
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--accent) 10%, transparent) 0 5px, transparent 5px),
    var(--paper-strong);
  padding: 16px 18px 17px;
}

.wip-notice h2 {
  margin-top: 4px;
}

.wip-notice p:last-child {
  margin-bottom: 0;
}

.wip-footnote {
  border-top: 1px dotted var(--line);
  margin-top: 14px;
  padding-top: 10px;
  color: var(--muted);
  font-size: 0.82rem;
}

.error-page {
  max-width: 760px;
}

.prose h2 {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin-top: 25px;
  border-top: 0;
  padding-top: 0;
  font-size: 1.18rem;
  letter-spacing: -0.015em;
}

.prose h2::before {
  color: var(--spark-coral);
  content: "//";
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 0.84em;
  letter-spacing: -0.2em;
}

.prose a {
  border-bottom: 1px solid var(--spark-coral);
  background: linear-gradient(transparent 72%, rgba(230, 207, 54, 0.34) 72%);
  color: #047f9b;
  font-weight: 630;
  text-decoration: none;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.prose a:hover,
.prose a:focus-visible {
  border-bottom-color: var(--ink);
  background: var(--spark-yellow);
  color: var(--ink);
  outline-offset: 2px;
}

.prose blockquote {
  margin: 17px 0;
  border-left: 3px solid var(--spark-cyan);
  background: rgba(7, 149, 178, 0.055);
  padding: 9px 13px;
}

.prose table {
  display: block;
  max-width: 100%;
  border-collapse: collapse;
  overflow-x: auto;
  font-size: 0.86rem;
}

.prose th,
.prose td {
  border-bottom: 1px solid var(--line);
  padding: 5px 8px;
  text-align: left;
  white-space: nowrap;
}

.prose th {
  background: var(--faint);
}

.image-gallery a {
  border-bottom: 0;
  background: transparent;
}

.image-gallery figure {
  padding: 5px;
  box-shadow: 3px 3px 0 color-mix(in srgb, var(--accent) 20%, transparent);
}

.audio-preview {
  border-right: 0;
  border-left: 3px solid var(--accent);
}

.project-links {
  gap: 8px 14px;
  border-top-style: dotted;
}

.project-links a {
  position: relative;
  border: 0;
  border-bottom: 1px solid var(--spark-cyan);
  background: transparent;
  padding: 4px 1px;
  color: var(--ink);
  font-weight: 680;
}

.project-links a::before {
  color: var(--spark-coral);
  content: "↗ ";
}

.project-links a:hover,
.project-links a:focus-visible {
  background: var(--spark-yellow);
}

.related-grid {
  gap: 0;
  border-top: 1px solid var(--line);
}

.related-link {
  border: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: transparent;
  padding: 9px;
}

.related-link:last-child {
  border-right: 0;
}

.related-link:hover,
.related-link:focus-visible {
  background: rgba(7, 149, 178, 0.07);
}

.back-link {
  display: inline-block;
  border-bottom: 1px solid var(--spark-cyan);
  color: var(--ink);
  text-decoration: none;
}

.back-link::before {
  color: var(--spark-coral);
  content: "← ";
}

.project-page-actions {
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
  gap: 18px;
  flex-wrap: wrap;
}

.project-explorer-link::before {
  content: "↳ ";
}

.blog-intro,
.post-header {
  border: 1px solid var(--ink);
  background-color: rgba(255, 254, 249, 0.92);
  background-image:
    linear-gradient(var(--graph-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--graph-line) 1px, transparent 1px),
    linear-gradient(90deg, transparent 0 73%, rgba(228, 95, 102, 0.06) 73% 74%, transparent 74%);
  background-position: -3px 4px, 5px -2px, 0 0;
  background-size: 18px 18px, 18px 18px, 100% 100%;
  padding: 16px;
}

.blog-intro h1,
.post-header h1 {
  margin-bottom: 9px;
  font-size: clamp(2rem, 4vw, 3.2rem);
  letter-spacing: -0.04em;
}

.blog-filter-panel {
  margin-top: 22px;
}

.post-list {
  gap: 0;
  border-top: 1px solid var(--line-strong);
}

.post-card {
  border: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 254, 249, 0.48);
}

.post-card a {
  grid-template-columns: 116px minmax(0, 1fr);
  gap: 5px 14px;
  padding: 12px 8px;
}

.post-card a:hover {
  background: linear-gradient(90deg, rgba(230, 207, 54, 0.12), transparent 74%);
}

.post-card .eyebrow {
  grid-row: 1 / span 3;
  align-self: start;
  padding-top: 3px;
  font-variant-numeric: tabular-nums;
}

.post-card h2,
.post-card p,
.post-card .tag-list {
  grid-column: 2;
}

.post-card h2 {
  position: relative;
  z-index: 0;
  width: fit-content;
  max-width: 100%;
}

.post-prose {
  margin-top: 26px;
}

.post-prose img {
  box-shadow: 3px 3px 0 var(--faint);
}

@media (max-width: 840px) {
  .site-header {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    padding: 10px 14px 8px;
  }

  .site-nav {
    width: 100%;
    justify-content: flex-end;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 5px;
    scrollbar-width: thin;
  }

  .explorer-shell {
    grid-template-columns: 1fr;
    padding: 12px 12px 44px;
  }

  .explorer-sidebar {
    gap: 10px;
  }

  .explorer-identity .identity-note {
    max-width: 54ch;
  }

  .compact-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .compact-facts div:first-child {
    border-right: 1px dotted var(--line);
    border-bottom: 1px dotted var(--line);
  }

  .compact-facts div:last-child {
    grid-column: 1 / -1;
  }

  .project-nav-panel {
    display: none;
  }

  .tag-controls,
  .sidebar-tags {
    display: flex;
    width: auto;
    grid-template-columns: none;
    justify-content: flex-start;
  }

  .sidebar-tags {
    max-height: 132px;
  }

  .tag-chip {
    width: auto;
    min-height: 32px;
    padding-block: 6px 5px;
  }

  .section-heading.graph-paper {
    display: flex;
    width: 100%;
    padding: 9px 10px;
  }

  .project-map::before {
    left: 76px;
  }

  .map-node {
    grid-template-columns: 58px 32px minmax(0, 1fr);
    width: 100%;
    min-height: 55px;
    gap: 0 8px;
    padding: 6px 9px 6px 6px;
  }

  .map-node-years {
    padding-right: 5px;
    font-size: 0.66rem;
  }

  .map-node-mark,
  .map-node-mark .project-mark {
    width: 32px;
    height: 32px;
  }

  .map-node-title {
    font-size: 0.84rem;
  }

  .project-detail-header {
    grid-template-columns: 50px minmax(0, 1fr);
    gap: 11px;
  }

  .project-detail-header .project-mark,
  .project-detail-header .large-mark {
    width: 46px;
    height: 46px;
  }

  .project-meta {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .related-grid {
    grid-template-columns: 1fr;
  }

  .related-link {
    border-right: 0;
  }
}

@media (max-width: 620px) {
  .site-header {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .brand-note {
    display: none;
  }

  .explorer-identity {
    padding: 12px;
  }

  .section-heading.graph-paper {
    align-items: flex-start;
    min-height: 0;
  }

  .project-detail {
    padding: 19px 14px 20px;
  }

  .project-detail-header h1 {
    font-size: clamp(1.55rem, 8vw, 2.15rem);
  }

  .project-meta {
    grid-template-columns: 1fr;
  }

  .project-meta div {
    border-right: 0;
    border-bottom: 1px dotted var(--line);
  }

  .project-meta div:last-child {
    border-bottom: 0;
  }

  .detail-taxonomy-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .post-card a {
    grid-template-columns: 1fr;
  }

  .post-card .eyebrow,
  .post-card h2,
  .post-card p,
  .post-card .tag-list {
    grid-column: 1;
    grid-row: auto;
  }
}

@media (max-width: 420px) {
  .explorer-shell,
  .site-shell {
    padding-right: 9px;
    padding-left: 9px;
  }

  .compact-facts {
    grid-template-columns: 1fr;
  }

  .compact-facts div:first-child {
    border-right: 0;
    border-bottom: 1px dotted var(--line);
  }

  .site-nav {
    gap: 10px;
    font-size: 0.75rem;
  }

  .project-map::before {
    left: 67px;
  }

  .map-node {
    grid-template-columns: 50px 28px minmax(0, 1fr);
    gap: 0 7px;
  }

  .map-node-mark,
  .map-node-mark .project-mark {
    width: 28px;
    height: 28px;
  }

  .map-node-copy em {
    font-size: 0.64rem;
  }

  .project-detail-header {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .project-detail-header .project-mark,
  .project-detail-header .large-mark {
    width: 38px;
    height: 38px;
  }

  .image-gallery {
    grid-template-columns: 1fr;
  }
}

/* Duration-lane revision: selection is click-only and projects occupy packed rows. */

.project-map {
  height: 268px;
  overflow: hidden;
}

.project-map::before {
  top: auto;
  right: 4%;
  bottom: 33px;
  left: 4%;
  width: auto;
  height: 1px;
  background: var(--line-strong);
  opacity: 0.72;
}

.project-map::after {
  display: none;
}

.timeline-axis {
  position: absolute;
  inset: auto 0 8px;
  z-index: 1;
  display: block;
  height: 17px;
  color: var(--muted);
  font-size: 0.61rem;
}

.timeline-tick {
  position: absolute;
  left: var(--x);
  font-variant-numeric: tabular-nums;
  transform: translateX(-50%);
}

.timeline-tick::before {
  position: absolute;
  bottom: calc(100% + 5px);
  left: 50%;
  width: 1px;
  height: 6px;
  background: var(--line-strong);
  content: "";
}

.map-node {
  position: absolute;
  top: calc(12px + (var(--lane) * 34px));
  left: calc(var(--start-x) - 14px);
  z-index: 2;
  display: block;
  width: calc(var(--span-x) + 14px);
  min-width: 28px;
  height: 28px;
  min-height: 0;
  margin: 0;
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  text-align: left;
  transform: none;
}

.map-node[hidden] {
  display: none;
}

.map-node:hover,
.map-node:focus-visible,
.map-node.is-selected,
.map-node.is-open,
.map-node.is-focused {
  z-index: 6;
  background: transparent;
  outline: 0;
  transform: none;
}

.map-node::after {
  display: none;
}

.map-node-duration {
  position: absolute;
  top: 11px;
  right: 0;
  left: 14px;
  z-index: 0;
  height: 6px;
  border-top: 1px solid color-mix(in srgb, var(--accent) 72%, var(--line-strong));
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 28%, var(--line));
  background: repeating-linear-gradient(
    135deg,
    color-mix(in srgb, var(--accent) 18%, var(--paper-strong)) 0 3px,
    var(--paper-strong) 3px 6px
  );
  pointer-events: none;
}

.map-node:not(.is-ongoing) .map-node-duration::after {
  position: absolute;
  top: -3px;
  right: -1px;
  width: 1px;
  height: 10px;
  background: color-mix(in srgb, var(--accent) 72%, var(--line-strong));
  content: "";
}

.map-node.is-ongoing .map-node-duration {
  right: -1px;
  border-right: 0;
}

.map-node.is-ongoing .map-node-duration::after {
  position: absolute;
  top: -4px;
  right: -1px;
  border-width: 6px 0 6px 6px;
  border-style: solid;
  border-color: transparent transparent transparent color-mix(in srgb, var(--accent) 72%, var(--line-strong));
  content: "";
}

.map-node-mark {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  display: block;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line-strong);
  background: var(--paper-strong);
  box-shadow: 2px 2px 0 var(--faint);
  transition: border-color 100ms ease, box-shadow 100ms ease, transform 100ms ease;
}

.map-node-mark .project-mark {
  width: 26px;
  height: 26px;
  border: 0;
}

.map-node:hover .map-node-mark,
.map-node:focus-visible .map-node-mark {
  border-color: var(--ink);
  box-shadow: 2px 2px 0 color-mix(in srgb, var(--accent) 42%, var(--faint));
  transform: translate(-1px, -1px);
}

.map-node.is-selected .map-node-mark {
  border: 2px solid var(--ink);
  background: color-mix(in srgb, var(--accent) 10%, var(--paper-strong));
  box-shadow: 3px 3px 0 color-mix(in srgb, var(--accent) 55%, var(--faint));
}

.map-node.is-selected .map-node-mark::after {
  position: absolute;
  right: -5px;
  bottom: -5px;
  display: grid;
  place-items: center;
  width: 13px;
  height: 13px;
  border: 1px solid var(--paper-strong);
  background: var(--ink);
  color: var(--paper-strong);
  content: "✓";
  font-size: 0.57rem;
  font-weight: 800;
  line-height: 1;
}

.map-node.is-selected .map-node-duration {
  border-color: var(--accent);
  background: repeating-linear-gradient(
    135deg,
    color-mix(in srgb, var(--accent) 38%, var(--paper-strong)) 0 3px,
    var(--paper-strong) 3px 6px
  );
}

.map-node-label {
  top: calc(100% + 5px);
  left: 0;
  width: 176px;
  max-width: calc(100vw - 28px);
  transform: translateY(-2px);
}

.map-node.is-timeline-start .map-node-label,
.map-node.is-timeline-end .map-node-label {
  transform: translateY(-2px);
}

.map-node.is-timeline-end .map-node-label {
  right: 0;
  left: auto;
}

.map-node:hover .map-node-label,
.map-node:focus-visible .map-node-label,
.map-node.is-timeline-start:hover .map-node-label,
.map-node.is-timeline-start:focus-visible .map-node-label,
.map-node.is-timeline-end:hover .map-node-label,
.map-node.is-timeline-end:focus-visible .map-node-label {
  opacity: 1;
  transform: translateY(0);
}

.map-node.is-selected .map-node-label,
.map-node.is-open .map-node-label {
  opacity: 0;
}

.project-highlight-card.is-selected {
  border-color: var(--line-strong);
}

.project-highlight-card.is-open {
  border-color: var(--ink);
  box-shadow: 2px 2px 0 color-mix(in srgb, var(--accent) 30%, var(--faint));
}

@media (max-width: 840px) {
  .project-map {
    height: 268px;
  }

  .project-map::before {
    top: auto;
    right: 4%;
    bottom: 33px;
    left: 4%;
  }

  .timeline-axis {
    inset: auto 0 8px;
  }

  .map-node {
    top: calc(12px + (var(--lane) * 34px));
    left: calc(var(--start-x) - 14px);
    width: calc(var(--span-x) + 14px);
    min-width: 28px;
    height: 28px;
    transform: none;
  }

  .map-node:hover,
  .map-node:focus-visible,
  .map-node.is-selected,
  .map-node.is-open,
  .map-node.is-focused {
    transform: none;
  }

  .map-node-mark,
  .map-node-mark .project-mark {
    width: 28px;
    height: 28px;
  }

  .map-node-mark .project-mark {
    width: 26px;
    height: 26px;
  }
}

@media (max-width: 620px) {
  /* Legacy duration-map breakpoint retained beneath the current starmap layer. */
  .timeline-tick:nth-child(even):not(:last-child) {
    display: none;
  }
}

/* Generated corner texture: irregular cells, bounded decorative footprint. */

.noisy-grid {
  background: var(--paper-strong);
}

.section-heading.noisy-grid {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.section-heading.noisy-grid > :not(.header-noise-grid) {
  position: relative;
  z-index: 1;
}

.header-noise-grid {
  position: absolute;
  inset: 0 0 auto auto;
  z-index: 0;
  display: block;
  width: min(58%, 470px);
  height: 100%;
  opacity: 0.92;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse 96% 130% at 100% 0%, #000 0 38%, rgba(0, 0, 0, 0.82) 55%, transparent 86%);
  mask-image: radial-gradient(ellipse 96% 130% at 100% 0%, #000 0 38%, rgba(0, 0, 0, 0.82) 55%, transparent 86%);
}

@media (max-width: 620px) {
  .header-noise-grid {
    width: 72%;
    opacity: 0.78;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/*
 * Compact project-map revision.
 * The timeline is intentionally a field of small marks, with fuller project
 * cards promoted only by a filter, hover/focus preview, or explicit pin.
 */

body {
  background: var(--paper);
}

.sidebar-panel,
.explorer-identity,
.compact-facts div {
  background: var(--paper-strong);
}

.sidebar-panel {
  border: 1px solid var(--line);
  padding: 10px;
}

.explorer-identity {
  border-color: var(--ink);
  padding-bottom: 0;
}

.explorer-identity::after {
  display: none;
}

.noisy-grid {
  background-color: #efeee9;
  background-image:
    linear-gradient(rgba(24, 33, 45, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(24, 33, 45, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, transparent 0 7px, rgba(255, 254, 249, 0.58) 7px 14px, transparent 14px 35px),
    linear-gradient(transparent 0 14px, rgba(203, 201, 194, 0.32) 14px 21px, transparent 21px 42px),
    linear-gradient(90deg, transparent 0 28px, rgba(7, 149, 178, 0.045) 28px 35px, transparent 35px 56px);
  background-position: 0 0, 0 0, 7px 0, 0 7px, 0 14px;
  background-size: 7px 7px, 7px 7px, 35px 35px, 42px 42px, 56px 49px;
}

.section-heading.noisy-grid {
  display: flex;
  align-items: center;
  min-height: 58px;
  margin-bottom: 0;
  border: 1px solid var(--ink);
  padding: 8px 11px;
}

.section-heading.noisy-grid h2 {
  font-size: 1.16rem;
  letter-spacing: -0.015em;
}

.explorer-stage {
  gap: 12px;
}

.project-map {
  position: relative;
  display: block;
  height: 214px;
  border: 1px solid var(--line-strong);
  border-top: 0;
  background: var(--paper-strong);
  overflow: visible;
}

.project-map::before {
  position: absolute;
  top: 111px;
  right: 5%;
  bottom: auto;
  left: 5%;
  display: block;
  width: auto;
  height: 1px;
  background: var(--spark-cyan);
  content: "";
  opacity: 0.68;
}

.project-map::after {
  position: absolute;
  top: 107px;
  right: 5%;
  left: 5%;
  height: 9px;
  background: repeating-linear-gradient(90deg, var(--line-strong) 0 1px, transparent 1px 5%);
  content: "";
  opacity: 0.38;
  pointer-events: none;
}

.timeline-axis {
  position: absolute;
  top: 122px;
  right: 5%;
  left: 5%;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.65rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}

.map-node {
  position: absolute;
  top: calc(17px + (var(--lane) * 28px));
  left: var(--x);
  z-index: 2;
  display: block;
  width: 31px;
  min-height: 0;
  height: 31px;
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--ink);
  text-decoration: none;
  transform: translateX(-50%);
  transition: opacity 120ms ease;
}

.map-node:last-child,
.map-node:nth-child(even) {
  border: 0;
  background: transparent;
}

.map-node::after {
  position: absolute;
  top: auto;
  right: -2px;
  bottom: -3px;
  display: block;
  width: 8px;
  height: 3px;
  background: var(--accent);
  content: "";
  opacity: 0.65;
  transform: none;
  transition: width 120ms ease, height 120ms ease, opacity 120ms ease;
}

.map-node:hover,
.map-node:focus-visible,
.map-node.is-hovered,
.map-node.is-selected,
.map-node.is-open,
.map-node.is-focused {
  z-index: 5;
  background: transparent;
  outline: 0;
  transform: translateX(-50%);
}

.map-node:hover::after,
.map-node:focus-visible::after,
.map-node.is-hovered::after,
.map-node.is-selected::after,
.map-node.is-open::after,
.map-node.is-focused::after {
  width: 15px;
  height: 4px;
  opacity: 1;
  transform: none;
}

.map-node-mark {
  position: relative;
  z-index: 1;
  display: block;
  width: 31px;
  height: 31px;
  border: 1px solid var(--line-strong);
  background: var(--paper-strong);
  box-shadow: 2px 2px 0 color-mix(in srgb, var(--accent) 28%, var(--faint));
  transition: border-color 120ms ease, box-shadow 120ms ease, transform 120ms ease;
}

.map-node-mark .project-mark {
  width: 29px;
  height: 29px;
  border: 0;
}

.map-node:hover .map-node-mark,
.map-node:focus-visible .map-node-mark,
.map-node.is-hovered .map-node-mark,
.map-node.is-selected .map-node-mark,
.map-node.is-open .map-node-mark {
  border-color: var(--ink);
  box-shadow: 3px 3px 0 color-mix(in srgb, var(--accent) 62%, var(--paper-strong));
  transform: translate(-1px, -1px);
}

.map-node.is-tag-match .map-node-mark {
  outline: 2px solid color-mix(in srgb, var(--accent) 70%, var(--paper-strong));
  outline-offset: 2px;
}

.map-node.is-selected .map-node-mark {
  outline: 2px solid var(--spark-coral);
  outline-offset: 3px;
}

.map-node.is-open .map-node-mark {
  background: var(--accent-soft);
}

.map-node.is-filtered-out {
  opacity: 0.13;
  pointer-events: auto;
}

.map-node-label {
  position: absolute;
  top: calc(100% + 7px);
  left: 50%;
  z-index: 8;
  display: grid;
  width: 176px;
  max-width: calc(100vw - 28px);
  gap: 2px;
  border: 1px solid var(--ink);
  background: var(--paper-strong);
  box-shadow: 3px 3px 0 var(--faint);
  padding: 5px 7px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -3px);
  transition: opacity 100ms ease, transform 100ms ease;
}

.map-node.is-timeline-start .map-node-label {
  left: -2px;
  transform: translate(0, -3px);
}

.map-node.is-timeline-end .map-node-label {
  right: -2px;
  left: auto;
  transform: translate(0, -3px);
}

.map-node:hover .map-node-label,
.map-node:focus-visible .map-node-label,
.map-node.is-hovered .map-node-label,
.map-node.is-selected .map-node-label,
.map-node.is-open .map-node-label {
  opacity: 1;
  transform: translate(-50%, 0);
}

.map-node.is-timeline-start:hover .map-node-label,
.map-node.is-timeline-start:focus-visible .map-node-label,
.map-node.is-timeline-start.is-hovered .map-node-label,
.map-node.is-timeline-start.is-selected .map-node-label,
.map-node.is-timeline-start.is-open .map-node-label,
.map-node.is-timeline-end:hover .map-node-label,
.map-node.is-timeline-end:focus-visible .map-node-label,
.map-node.is-timeline-end.is-hovered .map-node-label,
.map-node.is-timeline-end.is-selected .map-node-label,
.map-node.is-timeline-end.is-open .map-node-label {
  transform: translate(0, 0);
}

.map-node-title {
  max-width: 100%;
  font-size: 0.76rem;
  font-weight: 780;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.map-node-title::after {
  display: none;
}

.map-node-label small {
  color: var(--muted);
  font-size: 0.62rem;
  font-variant-numeric: tabular-nums;
}

.project-highlight-tray {
  border: 1px solid var(--line-strong);
  border-top: 0;
  background: var(--paper-strong);
  padding: 9px;
}

.project-highlight-tray[hidden],
.project-highlight-card[hidden],
.dynamic-panel[hidden] {
  display: none;
}

.highlight-tray-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  border-bottom: 1px dotted var(--line);
  padding: 0 1px 6px;
}

.highlight-tray-heading h3,
.highlight-tray-heading p {
  margin: 0;
}

.highlight-tray-heading h3 {
  font-size: 0.78rem;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.highlight-tray-heading p {
  color: var(--muted);
  font-size: 0.69rem;
  text-align: right;
}

.project-highlight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(228px, 1fr));
  gap: 7px;
}

.project-highlight-card {
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  background: #fff;
}

.project-highlight-card.is-preview {
  background: color-mix(in srgb, var(--accent) 5%, #fff);
}

.project-highlight-card.is-pinned {
  border-color: var(--ink);
  box-shadow: 2px 2px 0 color-mix(in srgb, var(--accent) 30%, var(--faint));
}

.project-highlight-card > a {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 7px 9px;
  height: 100%;
  padding: 8px;
  color: var(--ink);
  text-decoration: none;
}

.highlight-card-mark,
.highlight-card-mark .project-mark {
  width: 38px;
  height: 38px;
}

.highlight-card-mark .project-mark {
  border: 1px solid var(--line);
}

.highlight-card-copy {
  display: grid;
  align-content: start;
  gap: 3px;
  min-width: 0;
}

.highlight-card-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.highlight-card-title strong {
  font-size: 0.81rem;
  overflow-wrap: anywhere;
}

.highlight-card-title small,
.highlight-card-meta {
  color: var(--muted);
  font-size: 0.64rem;
  line-height: 1.25;
}

.highlight-card-summary {
  display: -webkit-box;
  grid-column: 1 / -1;
  margin: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 0.73rem;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.project-highlight-card > a:hover .highlight-card-title strong,
.project-highlight-card > a:focus-visible .highlight-card-title strong {
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.explorer-detail {
  min-height: 0;
}

@media (max-width: 840px) {
  .section-heading.noisy-grid {
    width: 100%;
    padding: 8px 10px;
  }

  .project-map {
    height: 222px;
  }

  .project-map::before {
    top: 116px;
    right: 5%;
    bottom: auto;
    left: 5%;
  }

  .project-map::after {
    top: 112px;
  }

  .timeline-axis {
    top: 127px;
  }

  .map-node {
    position: absolute;
    top: calc(17px + (var(--lane) * 29px));
    left: var(--x);
    display: block;
    grid-template-columns: none;
    width: 31px;
    min-height: 0;
    height: 31px;
    gap: 0;
    padding: 0;
    transform: translateX(-50%);
  }

  .map-node:hover,
  .map-node:focus-visible,
  .map-node.is-hovered,
  .map-node.is-selected,
  .map-node.is-open,
  .map-node.is-focused {
    transform: translateX(-50%);
  }

  .map-node-mark,
  .map-node-mark .project-mark {
    width: 31px;
    height: 31px;
  }

  .map-node-mark .project-mark {
    width: 29px;
    height: 29px;
  }

  .project-highlight-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .section-heading.noisy-grid {
    align-items: flex-start;
    min-height: 0;
  }

  .project-map {
    height: 234px;
  }

  .project-map::before {
    top: 126px;
  }

  .project-map::after {
    top: 122px;
  }

  .timeline-axis {
    top: 137px;
  }

  .map-node {
    top: calc(16px + (var(--lane) * 31px));
  }

  .project-highlight-grid {
    grid-template-columns: 1fr;
  }

  .highlight-tray-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

  .highlight-tray-heading p {
    text-align: left;
  }
}

@media (max-width: 420px) {
  .project-map::before {
    right: 6%;
    left: 6%;
  }

  .project-map::after,
  .timeline-axis {
    right: 6%;
    left: 6%;
  }

  .map-node,
  .map-node-mark {
    width: 29px;
    height: 29px;
  }

  .map-node-mark .project-mark {
    width: 27px;
    height: 27px;
  }
}

/* Keep the duration-lane rules above the earlier experiment in the cascade. */

/* The heading base is plain; all texture comes from the generated corner canvas. */

.noisy-grid {
  background: var(--paper-strong);
}

.section-heading.noisy-grid {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.section-heading.noisy-grid > :not(.header-noise-grid) {
  position: relative;
  z-index: 1;
}

.header-noise-grid {
  position: absolute;
  inset: 0 0 auto auto;
  z-index: 0;
  display: block;
  width: min(58%, 470px);
  height: 100%;
  opacity: 0.92;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse 96% 130% at 100% 0%, #000 0 38%, rgba(0, 0, 0, 0.82) 55%, transparent 86%);
  mask-image: radial-gradient(ellipse 96% 130% at 100% 0%, #000 0 38%, rgba(0, 0, 0, 0.82) 55%, transparent 86%);
}

@media (max-width: 620px) {
  .header-noise-grid {
    width: 72%;
    opacity: 0.78;
  }
}

.project-map {
  height: 268px;
  overflow: hidden;
}

.project-map::before {
  top: auto;
  right: 4%;
  bottom: 33px;
  left: 4%;
  width: auto;
  height: 1px;
  background: var(--line-strong);
  opacity: 0.72;
}

.project-map::after {
  display: none;
}

.timeline-axis {
  position: absolute;
  inset: auto 0 8px;
  z-index: 1;
  display: block;
  height: 17px;
  color: var(--muted);
  font-size: 0.61rem;
}

.map-node {
  position: absolute;
  top: calc(12px + (var(--lane) * 34px));
  left: calc(var(--start-x) - 14px);
  display: block;
  width: calc(var(--span-x) + 14px);
  min-width: 28px;
  height: 28px;
  min-height: 0;
  margin: 0;
  border: 0;
  background: transparent;
  padding: 0;
  transform: none;
}

.map-node[hidden] {
  display: none;
}

.map-node:hover,
.map-node:focus-visible,
.map-node.is-selected,
.map-node.is-open,
.map-node.is-focused {
  z-index: 6;
  background: transparent;
  outline: 0;
  transform: none;
}

.map-node::after {
  display: none;
}

.map-node-mark {
  position: absolute;
  top: 0;
  left: 0;
  width: 28px;
  height: 28px;
}

.map-node-mark .project-mark {
  width: 26px;
  height: 26px;
}

.map-node.is-selected .map-node-mark {
  border: 2px solid var(--ink);
  outline: 0;
  background: color-mix(in srgb, var(--accent) 10%, var(--paper-strong));
  box-shadow: 3px 3px 0 color-mix(in srgb, var(--accent) 55%, var(--faint));
}

.map-node-label {
  top: calc(100% + 5px);
  left: 0;
  width: 176px;
  max-width: calc(100vw - 28px);
  transform: translateY(-2px);
}

.map-node.is-timeline-start .map-node-label,
.map-node.is-timeline-end .map-node-label {
  transform: translateY(-2px);
}

.map-node.is-timeline-end .map-node-label {
  right: 0;
  left: auto;
}

.map-node:hover .map-node-label,
.map-node:focus-visible .map-node-label,
.map-node.is-timeline-start:hover .map-node-label,
.map-node.is-timeline-start:focus-visible .map-node-label,
.map-node.is-timeline-end:hover .map-node-label,
.map-node.is-timeline-end:focus-visible .map-node-label {
  opacity: 1;
  transform: translateY(0);
}

.map-node.is-selected .map-node-label,
.map-node.is-open .map-node-label {
  opacity: 0;
}

@media (max-width: 840px) {
  .project-map {
    height: 268px;
  }

  .project-map::before {
    top: auto;
    right: 4%;
    bottom: 33px;
    left: 4%;
  }

  .timeline-axis {
    inset: auto 0 8px;
  }

  .map-node {
    top: calc(12px + (var(--lane) * 34px));
    left: calc(var(--start-x) - 14px);
    width: calc(var(--span-x) + 14px);
    min-width: 28px;
    height: 28px;
    transform: none;
  }

  .map-node:hover,
  .map-node:focus-visible,
  .map-node.is-selected,
  .map-node.is-open,
  .map-node.is-focused {
    transform: none;
  }

  .map-node-mark,
  .map-node-mark .project-mark {
    width: 28px;
    height: 28px;
  }

  .map-node-mark .project-mark {
    width: 26px;
    height: 26px;
  }
}

@media (max-width: 620px) {
  .timeline-tick:nth-child(even):not(:last-child) {
    display: none;
  }
}

/* Shallow starmap revision. */

.explorer-map-panel .map-heading {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: baseline;
  justify-content: flex-start;
  gap: 8px;
  min-height: 26px;
  overflow: visible;
  border-bottom: 0;
  padding: 6px 9px 5px;
}

.map-heading .eyebrow {
  margin: 0;
  line-height: 1;
}

.map-heading .header-noise-grid {
  width: min(58%, 470px);
  height: 56px;
  opacity: 0.76;
}

.star-map-legend {
  position: relative !important;
  inset: auto;
  z-index: 1 !important;
  max-width: none;
  margin: 0;
  background: transparent;
  padding: 0;
  color: var(--muted);
  font-size: 0.56rem;
  line-height: 1;
  text-align: left;
  white-space: nowrap;
}

.star-map.project-map {
  height: 100px;
  overflow: hidden;
  background: var(--paper-strong);
}

.star-map.project-map::before {
  top: auto;
  right: 4%;
  bottom: 16px;
  left: 4%;
  display: block;
  height: 1px;
  background: var(--line);
  opacity: 0.48;
}

.star-map .timeline-axis {
  position: absolute;
  inset: auto 0 1px;
  display: block;
  height: 12px;
  font-size: 0.55rem;
  line-height: 1;
}

.star-map .timeline-tick {
  display: block;
}

.star-map .timeline-tick::before {
  bottom: calc(100% + 3px);
  height: 4px;
  opacity: 0.6;
}

.star-map .map-node {
  --open-shift-x: 0px;
  --open-shift-y: 0px;
  position: absolute;
  top: var(--y);
  left: var(--x);
  z-index: 2;
  display: block;
  width: 28px;
  min-width: 28px;
  height: 28px;
  min-height: 28px;
  overflow: visible;
  border: 0;
  background: transparent;
  padding: 0;
  opacity: 0.88;
  transform: translate(-50%, -50%);
  transition: opacity 100ms ease;
}

.star-map .map-node.is-open {
  --open-shift-x: -1px;
  --open-shift-y: -1px;
}

.star-map .map-node:hover,
.star-map .map-node:focus-visible,
.star-map .map-node.is-selected,
.star-map .map-node.is-open,
.star-map .map-node.is-focused {
  z-index: 8;
  transform: translate(-50%, -50%);
}

.star-map .map-node.is-filtered-out {
  opacity: 0.13;
  pointer-events: auto;
}

.star-map .map-node.is-tag-match {
  z-index: 7;
  opacity: 1;
}

.map-filter-overlay {
  position: absolute;
  inset: 0;
  z-index: 12;
  overflow: hidden;
  pointer-events: none;
}

.map-filter-leaders {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.map-filter-leader {
  stroke: color-mix(in srgb, var(--accent) 70%, var(--line-strong));
  stroke-dasharray: 2 2;
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.map-filter-label {
  position: absolute;
  display: block;
  width: max-content;
  max-width: 124px;
  overflow: hidden;
  border-bottom: 1px solid var(--accent);
  background: rgba(255, 254, 249, 0.97);
  padding: 2px 4px;
  color: var(--ink);
  font-size: 0.64rem;
  font-weight: 760;
  line-height: 1.08;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: background-color 90ms ease, box-shadow 90ms ease, transform 90ms ease;
}

.map-filter-label.is-project-hovered {
  border-bottom-color: var(--ink);
  background: var(--spark-yellow);
  box-shadow: 1px 1px 0 color-mix(in srgb, var(--accent) 42%, var(--line));
  transform: translate(-1px, -1px);
}

.map-filter-label.is-project-open {
  border-bottom-color: var(--ink);
  background: color-mix(in srgb, var(--accent) 12%, var(--paper-strong));
  box-shadow: 1px 1px 0 color-mix(in srgb, var(--accent) 48%, var(--line));
}

.map-filter-label.is-project-open.is-project-hovered {
  background: var(--spark-yellow);
}

.map-filter-leader.is-project-hovered,
.map-filter-leader.is-project-open {
  stroke: color-mix(in srgb, var(--accent) 76%, var(--ink));
  stroke-dasharray: none;
  stroke-width: 1.5;
}

.map-filter-label[hidden],
.map-filter-leader[hidden] {
  display: none;
}

.star-map .map-node::before {
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  width: calc(var(--star-size) + 8px);
  height: calc(var(--star-size) + 8px);
  border: 1px solid var(--accent);
  content: "";
  opacity: 0;
  pointer-events: none;
  transform: translate(
    calc(-50% + var(--open-shift-x)),
    calc(-50% + var(--open-shift-y))
  ) rotate(-1deg);
}

.star-map .map-node:nth-of-type(even)::before {
  transform: translate(
    calc(-50% + var(--open-shift-x)),
    calc(-50% + var(--open-shift-y))
  ) rotate(1.25deg);
}

.star-map .map-node.is-tag-match::before {
  opacity: 0.92;
}

.star-map .map-node::after {
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  width: calc(var(--star-size) + 14px);
  height: 1px;
  background: linear-gradient(90deg, var(--accent) 0 3px, transparent 3px calc(100% - 3px), var(--accent) calc(100% - 3px));
  content: "";
  opacity: 0;
  pointer-events: none;
  transform: translate(
    calc(-50% + var(--open-shift-x)),
    calc(-50% + var(--open-shift-y))
  );
}

.star-map .map-node.is-tag-match::after {
  opacity: 0.7;
}

.star-map .map-node-mark,
.star-map .map-node.is-open .map-node-mark {
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  width: var(--star-size);
  height: var(--star-size);
  border: 1px solid color-mix(in srgb, var(--accent) 48%, var(--line));
  background: var(--paper-strong);
  box-shadow: 1px 1px 0 var(--faint);
  transform: translate(
    calc(-50% + var(--open-shift-x)),
    calc(-50% + var(--open-shift-y))
  );
}

.star-map .map-node-mark .project-mark {
  width: calc(var(--star-size) - 2px);
  height: calc(var(--star-size) - 2px);
}

.star-map .map-node:hover .map-node-mark,
.star-map .map-node:focus-visible .map-node-mark {
  border-color: var(--ink);
  box-shadow: 2px 2px 0 color-mix(in srgb, var(--accent) 38%, var(--faint));
  transform: translate(
    calc(-50% + var(--open-shift-x)),
    calc(-50% + var(--open-shift-y))
  ) scale(1.06);
}

.star-map .map-node.is-selected .map-node-mark {
  border: 2px solid var(--ink);
  outline: 0;
  box-shadow: 2px 2px 0 color-mix(in srgb, var(--accent) 48%, var(--faint));
}

.star-map .map-node.is-open .map-node-mark {
  border: 2px solid var(--ink);
  background: color-mix(in srgb, var(--accent) 10%, var(--paper-strong));
  box-shadow: 2px 2px 0 color-mix(in srgb, var(--accent) 48%, var(--faint));
}

.star-map .map-node-label {
  top: 50%;
  left: calc(50% + 24px);
  display: grid;
  width: max-content;
  max-width: 128px;
  gap: 0;
  border: 0;
  border-bottom: 1px solid var(--accent);
  background: rgba(255, 254, 249, 0.93);
  box-shadow: none;
  padding: 2px 4px;
  opacity: 0;
  transform: translateY(-50%);
}

.star-map .map-node.is-timeline-end .map-node-label,
.star-map .map-node.label-left .map-node-label {
  right: calc(50% + 24px);
  left: auto;
}

.star-map .map-node:hover .map-node-label,
.star-map .map-node:focus-visible .map-node-label {
  opacity: 1;
  transform: translateY(-50%);
}

.star-map .map-node.has-filter-label:hover .map-node-label,
.star-map .map-node.has-filter-label:focus-visible .map-node-label {
  opacity: 0;
}

.star-map .map-node.is-filtered-out .map-node-label {
  opacity: 0;
}

.star-map .map-node-title {
  max-width: 124px;
  overflow: hidden;
  font-size: 0.66rem;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.star-map .map-node-label small {
  display: none;
}

.project-selection-tray {
  padding: 5px;
}

.project-selection-tray .project-highlight-grid {
  grid-template-columns: repeat(auto-fit, minmax(205px, 1fr));
  gap: 5px;
}

.project-selection-tray .project-highlight-card > a {
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  align-items: end;
  gap: 2px 8px;
  padding: 7px;
}

.project-selection-tray .project-highlight-card {
  position: relative;
}

.project-selection-tray .project-highlight-card::after {
  position: absolute;
  right: 7px;
  bottom: 2px;
  left: 7px;
  height: 1px;
  background: color-mix(in srgb, var(--accent) 14%, var(--line));
  content: "";
  opacity: 0.62;
  pointer-events: none;
}

.highlight-card-years {
  display: grid;
  grid-column: 2;
  grid-row: 2;
  align-self: end;
  justify-items: end;
  gap: 1px;
  padding-left: 7px;
  border-left: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.6rem;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  white-space: nowrap;
}

.highlight-card-name {
  grid-column: 1 / -1;
  grid-row: 1;
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 12%, var(--line));
  padding-bottom: 2px;
  font-size: 0.76rem;
  line-height: 1.08;
}

.project-selection-tray .highlight-card-summary {
  grid-column: 1;
  grid-row: 2;
  font-size: 0.68rem;
  line-height: 1.28;
  -webkit-line-clamp: 3;
}

.project-selection-tray .project-highlight-card.has-multiline-title .highlight-card-summary {
  -webkit-line-clamp: 2;
}

@media (max-width: 840px) {
  .explorer-map-panel .map-heading {
    min-height: 26px;
    padding: 6px 8px 5px;
  }

  .map-heading .header-noise-grid {
    width: 72%;
    height: 52px;
  }

  .star-map-legend {
    inset: auto;
    max-width: none;
    font-size: 0.54rem;
  }

  .star-map.project-map {
    height: 100px;
  }

  .star-map.project-map::before {
    top: auto;
    right: 4%;
    bottom: 16px;
    left: 4%;
  }

  .star-map .timeline-axis {
    inset: auto 0 1px;
  }

  .star-map .map-node,
  .star-map .map-node:hover,
  .star-map .map-node:focus-visible,
  .star-map .map-node.is-selected,
  .star-map .map-node.is-open,
  .star-map .map-node.is-focused {
    top: var(--y);
    left: var(--x);
    width: 28px;
    min-width: 28px;
    height: 28px;
    transform: translate(-50%, -50%);
  }

  .star-map .map-node-mark,
  .star-map .map-node-mark .project-mark {
    width: var(--star-size);
    height: var(--star-size);
  }

  .star-map .map-node-mark .project-mark {
    width: calc(var(--star-size) - 2px);
    height: calc(var(--star-size) - 2px);
  }
}

@media (max-width: 620px) {
  .star-map .timeline-tick {
    display: block;
  }

  .star-map .map-node-label {
    max-width: 96px;
  }

  .star-map .map-node-title {
    max-width: 92px;
  }

  .star-map .map-node-mark,
  .star-map .map-node.is-open .map-node-mark {
    transform: translate(
      calc(-50% + var(--open-shift-x)),
      calc(-50% + var(--open-shift-y))
    ) scale(0.86);
  }

  .star-map .map-node:hover .map-node-mark,
  .star-map .map-node:focus-visible .map-node-mark {
    transform: translate(
      calc(-50% + var(--open-shift-x)),
      calc(-50% + var(--open-shift-y))
    ) scale(0.94);
  }
}

/* Mobile project browsing and article navigation. */

.post-jump-nav {
  display: none;
}

.post-prose h2 {
  scroll-margin-top: 12px;
}

@media (max-width: 620px) {
  .explorer-shell {
    padding-right: 6px;
    padding-left: 6px;
  }

  .project-detail {
    padding-right: 10px;
    padding-left: 10px;
    scroll-margin-top: 7px;
  }

  .star-map .map-node-label,
  .map-filter-overlay {
    display: none;
  }

  .project-selection-tray .project-highlight-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 72px;
    max-height: 226px;
    padding-right: 3px;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-color: var(--line-strong) var(--faint);
    scrollbar-gutter: stable;
    scrollbar-width: thin;
  }

  .project-selection-tray .project-highlight-card {
    height: 72px;
    min-height: 72px;
  }

  .post-jump-nav:not([hidden]) {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 14px 0 4px;
  }

  .post-jump-nav::before,
  .post-jump-nav::after {
    width: 18px;
    height: 1px;
    flex: 0 0 18px;
    background: var(--line-strong);
    content: "";
  }

  .post-jump-links {
    display: flex;
    min-width: 0;
    padding-bottom: 4px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x proximity;
    scrollbar-color: var(--line-strong) transparent;
    scrollbar-width: thin;
  }

  .post-jump-links a {
    flex: 0 0 auto;
    margin-left: -1px;
    border: 1px solid var(--line-strong);
    background: var(--paper-strong);
    padding: 5px 8px 4px;
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.15;
    scroll-snap-align: start;
    text-decoration: none;
    white-space: nowrap;
  }

  .post-jump-links a:first-child {
    margin-left: 0;
  }

  .post-jump-links a:hover,
  .post-jump-links a:focus-visible {
    position: relative;
    border-color: var(--ink);
    background: var(--spark-yellow);
    color: var(--ink);
  }

  .post-jump-nav:not([hidden]) + .post-prose {
    margin-top: 16px;
  }
}
