:root {
  --not-bg: #050505;
  --not-bg-2: #0b0a09;
  --not-fg: #ede8df;
  --not-fg-dim: #8a847c;
  --not-fg-fainter: #4a4640;
  --not-accent: oklch(0.82 0.11 78);
  --not-accent-dim: oklch(0.60 0.08 78);
  --not-rule: rgba(237, 232, 223, 0.12);
  --serif: 'EB Garamond', 'Times New Roman', Georgia, serif;
  --serif-display: 'Playfair Display', 'Didot', 'Bodoni 72', serif;
  --mono: 'JetBrains Mono', 'IBM Plex Mono', ui-monospace, Menlo, monospace;
}

* { box-sizing: border-box; }

html, body, #root {
  margin: 0; padding: 0; height: 100%;
  background: var(--not-bg);
  color: var(--not-fg);
  font-family: var(--serif);
  overflow: hidden;
}

body { -webkit-font-smoothing: antialiased; }

.mono { font-family: var(--mono); font-feature-settings: 'ss01'; }
.serif-num { font-family: var(--serif-display); font-weight: 400; font-variant-numeric: lining-nums; }

/* ---- Subtle background texture shared by both directions ---- */
.app-bg {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% 50%, rgba(237,232,223,0.025), transparent 70%),
    linear-gradient(180deg, #050505 0%, #020202 100%);
}
.app-bg::after {
  content: ''; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.04 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: 0.6;
}

/* ---- Header ---- */
.not-header {
  position: absolute; left: 0; right: 0; top: 0;
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: 28px 40px 0;
  z-index: 20;
  pointer-events: none;
}
.not-header > * { pointer-events: auto; }
.not-header-left { display: flex; align-items: center; gap: 18px; }
.not-logo-img {
  height: 56px; width: 56px;
  object-fit: contain;
  opacity: 0.88;
  flex-shrink: 0;
}
.not-wordmark {
  font-family: var(--serif-display);
  font-size: 22px; letter-spacing: 0.14em;
  display: flex; gap: 10px; align-items: baseline;
  line-height: 1;
}
.not-word { font-weight: 500; }
.not-word-of {
  font-style: italic; text-transform: lowercase;
  font-size: 16px; letter-spacing: 0.05em;
  color: var(--not-fg-dim); font-weight: 400;
}
.not-subword {
  font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--not-fg-fainter); margin-top: 6px;
}
.not-nav { display: flex; gap: 22px; align-items: center; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; }
.not-nav a { color: var(--not-fg-dim); text-decoration: none; transition: color 0.15s; }
.not-nav a:hover { color: var(--not-fg); }
.not-nav-divider { width: 1px; height: 12px; background: var(--not-rule); }
.not-nav-cta { color: var(--not-fg) !important; }
.not-menu-button {
  display: none;
  background: transparent;
  border: 1px solid var(--not-rule);
  color: var(--not-fg);
  cursor: pointer;
  padding: 9px 10px;
  flex-direction: column;
  gap: 4px;
  align-items: center;
  justify-content: center;
}
.not-menu-line {
  display: block;
  width: 18px;
  height: 1px;
  background: currentColor;
  transition: transform 0.18s ease, opacity 0.18s ease;
}
.not-menu-button--open .not-menu-line:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}
.not-menu-button--open .not-menu-line:nth-child(2) {
  opacity: 0;
}
.not-menu-button--open .not-menu-line:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}

/* =============================================================
   DIRECTION A — PROJECTION
   ============================================================= */
/* Streaming filmstrip — photos flow right → left continuously */
.projection--stream { --stream-h: 520px; }
.proj-stream {
  position: absolute;
  left: 0; right: 0;
  top: 50%;
  transform: translateY(-58%);
  overflow: hidden;
}
.proj-stream-mask {
  position: absolute; top: 0; bottom: 0; width: 12vw;
  pointer-events: none; z-index: 5;
}
.proj-stream-mask--left {
  left: 0;
  background: linear-gradient(90deg, var(--not-bg) 0%, rgba(5,5,5,0.8) 40%, transparent 100%);
}
.proj-stream-mask--right {
  right: 0;
  background: linear-gradient(270deg, var(--not-bg) 0%, rgba(5,5,5,0.8) 40%, transparent 100%);
}
.proj-stream-rail {
  position: absolute; top: 0; left: 0;
  pointer-events: none;
  z-index: 3;
}
.proj-card {
  position: absolute;
  box-shadow:
    0 1px 0 rgba(237,232,223,0.04) inset,
    0 20px 60px rgba(0,0,0,0.55);
  outline: 1px solid rgba(237,232,223,0.06);
  will-change: left;
  z-index: 2;
}
.proj-card-meta {
  position: absolute; top: calc(100% + 10px); left: 0; right: 0;
  display: flex; justify-content: space-between;
  font-size: 9px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--not-fg-fainter);
}
.proj-card-loc {
  max-width: 60%;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  text-align: right;
}

/* Caption — slim strip above console, hidden in query mode */
.proj-caption {
  position: absolute;
  left: 0; right: 0;
  bottom: 248px;
  padding: 0 8%;
  text-align: center;
  animation: caption-in 0.6s ease both;
  pointer-events: none;
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.query-open .proj-caption { opacity: 0.15; animation: none; }
.projection.query-open .proj-stream { opacity: 0.15; transition: opacity 0.5s ease; }
@keyframes caption-in {
  0% { opacity: 0; transform: translateY(6px); }
  100% { opacity: 1; transform: translateY(0); }
}
.proj-caption-names {
  font-family: var(--serif-display);
  font-size: clamp(16px, 1.5vw, 22px);
  letter-spacing: 0.01em;
  margin-bottom: 6px;
  line-height: 1.45;
  text-align: center;
}
.caption-name { color: var(--not-fg); }
.caption-name--primary {
  color: white;
  font-style: italic;
  font-size: 1.18em;
  text-shadow: 0 0 16px rgba(200, 160, 90, 0.22);
}
.caption-name--secondary {
  color: var(--not-fg-dim);
  font-size: 0.86em;
}
.caption-name.linked { color: var(--not-accent); font-style: italic; }
.caption-sep { color: var(--not-fg-fainter); font-weight: 400; }
.caption-sep--primary {
  color: var(--not-accent-dim);
}
.caption-sep--bridge {
  margin: 0 0.18em;
  color: rgba(237, 232, 223, 0.28);
}
.proj-caption-meta {
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--not-fg-dim);
}

/* Unified bottom console — holds tagline + two canonical CTAs, or morphs into query panel */
.proj-console {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 0 40px 28px;
  z-index: 15;
  display: flex; justify-content: center;
  pointer-events: none;
}
.proj-console-frame {
  pointer-events: auto;
  width: min(1100px, calc(100% - 80px));
  position: relative;
}
/* Ambient mode */
.proj-ambient {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  gap: 48px;
  padding: 20px 0 8px;
  border-top: 1px solid var(--not-rule);
  animation: ambient-in 0.5s ease both;
}
@keyframes ambient-in {
  0% { opacity: 0; transform: translateY(6px); }
  100% { opacity: 1; transform: translateY(0); }
}
.proj-ambient-tag { max-width: 340px; padding-top: 18px; }
.tag-serif {
  font-family: var(--serif-display);
  font-size: clamp(15px, 1.2vw, 20px);
  font-style: italic; line-height: 1.3; color: var(--not-fg);
  margin-bottom: 8px;
}
.tag-sub { font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--not-fg-dim); }
.proj-ambient-actions {
  display: flex; align-items: stretch; gap: 0;
  padding-top: 18px;
}
.proj-cta {
  background: transparent; border: none;
  padding: 12px 24px;
  color: var(--not-fg); cursor: pointer;
  display: flex; flex-direction: column; gap: 6px;
  text-align: left; min-width: 200px;
  font-family: var(--serif-display);
  transition: color 0.2s;
}
.proj-cta-kicker { font-size: 9px; letter-spacing: 0.22em; color: var(--not-fg-fainter); text-transform: uppercase; }
.proj-cta-label {
  font-size: clamp(18px, 1.6vw, 24px); letter-spacing: 0.01em;
  display: inline-flex; align-items: center; gap: 12px;
}
.proj-cta svg { transition: transform 0.2s; }
.proj-cta:hover { color: var(--not-accent); }
.proj-cta:hover .proj-cta-kicker { color: var(--not-accent-dim); }
.proj-cta:hover svg { transform: translateX(4px); }
.proj-cta--primary { border-left: 1px solid var(--not-rule); }
.proj-cta-divider { width: 0; }
.proj-ambient-meta {
  display: flex; align-items: center; gap: 8px; justify-content: flex-end;
  font-size: 9px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--not-fg-fainter);
  padding: 0 0 4px;
}
.proj-counter-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--not-accent); box-shadow: 0 0 8px var(--not-accent);
  animation: dotPulse 2s ease-in-out infinite;
}
.proj-archive-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
  align-items: center;
  text-align: left;
}
.proj-archive-stats .proj-counter-dot {
  grid-row: 1 / span 2;
}

/* Short-viewport layout (e.g. 1440×725 laptops):
   Use a named-area grid so tag + stats share the left column and CTAs anchor to the right.
   This lets the tagline stretch to ~600px so both sentences fit on one line,
   while the stats row sits cleanly below the tagline with no overlaps. */
@media (max-height: 800px) {
  .proj-console { padding-bottom: 16px; }
  .proj-console-frame { width: min(1400px, calc(100% - 40px)); }
  .proj-ambient {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    grid-template-areas:
      "tag  actions"
      "meta actions";
    gap: 6px 48px;
    padding: 14px 0 6px;
    align-items: start;
  }
  .proj-ambient-tag {
    grid-area: tag;
    max-width: none;
    padding-top: 0;
  }
  .proj-ambient-actions {
    grid-area: actions;
    align-self: end;
    padding-top: 0;
  }
  .proj-ambient-meta {
    grid-area: meta;
    position: static;
    justify-content: flex-start;
    padding: 0;
  }
}

/* Query console — the instrument panel */
.qc {
  padding: 18px 4px 12px;
  border-top: 1px solid var(--not-rule);
  animation: qc-in 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
@keyframes qc-in {
  0% { opacity: 0; transform: translateY(16px); }
  100% { opacity: 1; transform: translateY(0); }
}
.qc-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 18px;
}
.qc-head-left { display: flex; align-items: center; gap: 10px; font-size: 11px; letter-spacing: 0.18em; color: var(--not-accent); text-transform: uppercase; }
.qc-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--not-accent); box-shadow: 0 0 8px var(--not-accent); animation: dotPulse 1.8s ease-in-out infinite; }
.qc-close {
  display: flex; align-items: center; gap: 8px;
  background: transparent; border: 1px solid var(--not-rule);
  padding: 5px 10px; cursor: pointer;
  font-size: 10px; letter-spacing: 0.18em; color: var(--not-fg);
  transition: all 0.15s;
}
.qc-close:hover { border-color: var(--not-fg); color: var(--not-fg); }
.qc-prompt {
  text-align: center;
  font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--not-fg); margin-bottom: 18px;
}
.qc-row {
  display: grid;
  grid-template-columns: 1fr 80px 1fr auto;
  gap: 20px;
  align-items: end;
}
.qc-field {
  display: flex; flex-direction: column; gap: 6px;
  border-bottom: 1px solid var(--not-rule);
  padding-bottom: 8px;
  position: relative;
  transition: border-color 0.2s;
}
.qc-field:focus-within { border-color: var(--not-accent); }
.qc-field-label { font-size: 11px; letter-spacing: 0.18em; color: var(--not-fg); text-transform: uppercase; }
.qc-field-input {
  background: transparent; border: none; outline: none;
  color: var(--not-fg);
  font-family: var(--serif-display);
  font-size: clamp(18px, 1.8vw, 26px);
  font-style: italic;
  padding: 2px 0;
}
.qc-field-input::placeholder { color: rgba(237,232,223,0.35); font-style: italic; }
@keyframes qc-random-fade {
  from { opacity: 0; transform: translateY(5px); }
  to   { opacity: 1; transform: translateY(0); }
}
.qc-field-input--flash { animation: qc-random-fade 0.45s ease; }
.qc-random-btn {
  align-self: flex-start;
  background: none; border: none; outline: none; cursor: pointer;
  color: var(--not-fg);
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: lowercase;
  padding: 4px 0 0; margin-top: 2px;
  transition: color 0.15s;
}
.qc-random-btn:hover { color: var(--not-accent); }
.qc-suggest {
  position: absolute; left: 0; right: 0; bottom: calc(100% + 6px);
  background: rgba(10,9,8,0.95); backdrop-filter: blur(10px);
  border: 1px solid var(--not-rule);
  z-index: 20;
  display: flex; flex-direction: column;
  max-height: 410px;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.qc-suggest::-webkit-scrollbar { width: 5px; }
.qc-suggest::-webkit-scrollbar-track { background: transparent; }
.qc-suggest::-webkit-scrollbar-thumb { background: var(--not-fg-fainter); }
.qc-suggest-loading {
  padding: 12px;
  color: var(--not-fg-fainter);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-top: 1px dashed var(--not-rule);
}
.qc-suggest-row {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 12px;
  background: transparent; border: none; cursor: pointer;
  padding: 12px;
  color: var(--not-fg); text-align: left;
  font-family: var(--serif); font-size: 14px;
  border-bottom: 1px solid rgba(237,232,223,0.04);
}
.qc-suggest-row:hover { background: rgba(237,232,223,0.05); color: var(--not-accent); }
.qc-suggest-thumb {
  width: 46px; height: 46px; flex: 0 0 46px;
  border: 1px solid var(--not-rule);
  background: rgba(237,232,223,0.04);
  color: var(--not-fg-fainter);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 13px; text-transform: uppercase;
  overflow: hidden;
}
.qc-suggest-thumb img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.qc-suggest-copy {
  display: flex; flex-direction: column; gap: 3px;
  min-width: 0; flex: 1;
}
.qc-suggest-name {
  font-family: var(--serif-display);
  color: var(--not-fg);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.qc-suggest-bio {
  color: var(--not-fg-dim);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.qc-suggest-hint { font-size: 10px; color: var(--not-fg); }
.qc-via {
  display: flex; align-items: center; justify-content: center;
  padding-bottom: 12px;
}
.qc-via-line { flex: 1; height: 1px; background: var(--not-rule); }
.qc-via-label {
  padding: 0 10px;
  font-size: 11px; letter-spacing: 0.18em; color: var(--not-fg); text-transform: uppercase;
}
.qc-engage {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 18px;
  background: transparent;
  border: 1px solid var(--not-rule);
  color: var(--not-fg);
  font-family: var(--serif-display);
  font-size: 15px; letter-spacing: 0.02em;
  cursor: not-allowed;
  transition: all 0.2s;
}
.qc-engage--ready { color: var(--not-bg); background: var(--not-fg); border-color: var(--not-fg); cursor: pointer; }
.qc-engage--ready:hover { background: var(--not-accent); border-color: var(--not-accent); }
.qc-foot {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-top: 16px; padding-top: 12px;
  border-top: 1px dashed var(--not-rule);
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--not-fg);
}
.qc-foot-label { color: var(--not-fg); }
.qc-chip {
  background: transparent; border: 1px solid var(--not-rule);
  color: var(--not-fg);
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em;
  padding: 5px 12px; cursor: pointer;
  transition: all 0.15s;
}
.qc-chip:hover { border-color: var(--not-accent); color: var(--not-accent); }
.qc-foot-right { margin-left: auto; }
.qc-foot-right a { color: var(--not-fg); }
.qc-foot-right a:hover { color: var(--not-accent); }

/* Browse button — full-width prominent CTA below the example chips */
.qc-browse-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; margin-top: 12px;
  background: transparent;
  border: 1px solid var(--not-rule);
  color: var(--not-fg);
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  padding: 13px 20px; cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.qc-browse-btn:hover {
  border-color: var(--not-accent); color: var(--not-accent);
  background: rgba(var(--not-accent-rgb, 200,160,90), 0.05);
}

/* ─── Names browser overlay ──────────────────────────────────── */
.nb-backdrop {
  position: absolute; inset: 0; z-index: 80;
  background: rgba(5,5,5,0.86);
  backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.nb-panel {
  width: 100%; max-width: 860px; max-height: 88vh;
  background: var(--not-bg-2);
  border: 1px solid rgba(237,232,223,0.1);
  display: flex; flex-direction: column;
  box-shadow: 0 32px 80px rgba(0,0,0,0.7);
}

/* Header */
.nb-header {
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--not-rule);
  flex-shrink: 0;
}
.nb-title {
  font-size: 9px; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--not-accent); margin-bottom: 6px;
}
.nb-subtitle {
  font-family: var(--serif); font-size: 13px; color: var(--not-fg-dim);
  line-height: 1.5; max-width: 480px;
}
.nb-header-right {
  display: flex; align-items: center; gap: 16px; flex-shrink: 0; margin-left: 24px;
}
.nb-count {
  font-size: 9px; letter-spacing: 0.18em; color: var(--not-fg-fainter);
}

/* Controls row */
.nb-controls {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 24px;
  border-bottom: 1px solid var(--not-rule);
  flex-shrink: 0;
}
.nb-search-wrap { flex: 1; border-bottom: 1px solid var(--not-rule); }
.nb-search-wrap:focus-within { border-color: var(--not-accent); }
.nb-search {
  width: 100%; background: none; border: none; outline: none;
  font-family: var(--serif-display); font-size: 15px; font-style: italic;
  color: var(--not-fg); padding: 6px 0;
}
.nb-search::placeholder { color: var(--not-fg-fainter); }
.nb-select-wrap {
  border: 1px solid var(--not-rule); transition: border-color 0.15s;
}
.nb-select-wrap:focus-within { border-color: var(--not-accent); }
.nb-select {
  background: transparent; border: none; outline: none; cursor: pointer;
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--not-fg-dim); padding: 7px 10px;
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%234a4640'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 8px center;
  padding-right: 24px;
}
.nb-select option { background: #0b0a09; color: var(--not-fg); }
.nb-clear {
  background: none; border: 1px solid var(--not-rule); outline: none; cursor: pointer;
  font-size: 9px; letter-spacing: 0.14em; color: var(--not-fg-fainter);
  padding: 6px 10px; flex-shrink: 0; transition: all 0.15s;
}
.nb-clear:hover { border-color: var(--not-accent); color: var(--not-accent); }

/* Alphabet jump bar */
.nb-alpha {
  display: flex; flex-wrap: wrap; gap: 2px;
  padding: 8px 24px;
  border-bottom: 1px solid var(--not-rule);
  flex-shrink: 0;
}
.nb-alpha-btn {
  background: transparent; border: none; outline: none;
  color: var(--not-fg-fainter);
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.06em;
  padding: 4px 6px; cursor: pointer; line-height: 1;
  border-radius: 0;
  transition: color 0.12s, background 0.12s;
  min-width: 22px; text-align: center;
}
.nb-alpha-btn:hover { color: var(--not-fg); background: rgba(255,255,255,0.04); }
.nb-alpha-btn--active {
  color: var(--not-accent); background: rgba(200,160,90,0.1);
  font-weight: bold;
}

/* Scrollable list */
.nb-list {
  flex: 1; overflow-y: auto; padding: 0;
  overscroll-behavior: contain;
}
.nb-list::-webkit-scrollbar { width: 4px; }
.nb-list::-webkit-scrollbar-track { background: transparent; }
.nb-list::-webkit-scrollbar-thumb { background: var(--not-fg-fainter); }
.nb-status {
  padding: 24px; text-align: center;
  font-size: 10px; letter-spacing: 0.18em; color: var(--not-fg-fainter);
}
.nb-row {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 12px 24px;
  border-bottom: 1px solid rgba(237,232,223,0.05);
  transition: background 0.12s;
}
.nb-row:hover { background: rgba(237,232,223,0.03); }
.nb-row--a { border-left: 2px solid var(--not-accent); background: rgba(230,180,80,0.04); }
.nb-row--b { border-left: 2px solid oklch(0.65 0.08 220); background: rgba(80,140,220,0.04); }
.nb-row-thumb {
  width: 52px; height: 52px; object-fit: cover;
  border-radius: 2px; flex-shrink: 0;
  opacity: 0.88; margin-top: 1px;
}
.nb-row-info { flex: 1; min-width: 0; }
.nb-row-name {
  font-family: var(--serif-display); font-size: 14px; color: var(--not-fg);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.nb-row--a .nb-row-name,
.nb-row--b .nb-row-name { color: var(--not-accent); }
.nb-row-meta {
  font-size: 9px; letter-spacing: 0.12em; color: var(--not-fg-fainter);
  margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  text-transform: uppercase;
}
.nb-row-desc {
  font-size: 11px; color: var(--not-fg-dim); line-height: 1.55;
  margin-top: 5px; white-space: normal;
}
.nb-row-actions { display: flex; gap: 6px; flex-shrink: 0; padding-top: 2px; }
.nb-assign {
  background: none; outline: none; cursor: pointer;
  border: 1px solid var(--not-rule);
  font-family: var(--mono); font-size: 8px; letter-spacing: 0.16em;
  color: var(--not-fg-fainter); padding: 4px 7px;
  transition: all 0.12s;
}
.nb-assign:hover { border-color: var(--not-accent); color: var(--not-accent); }
.nb-assign--active {
  background: var(--not-accent); border-color: var(--not-accent);
  color: var(--not-bg); font-weight: 500;
}
.nb-load-more {
  display: block; width: 100%; background: none; border: none; border-top: 1px dashed var(--not-rule);
  outline: none; cursor: pointer; padding: 14px;
  font-size: 9px; letter-spacing: 0.2em; color: var(--not-fg-fainter);
  transition: color 0.15s;
}
.nb-load-more:hover { color: var(--not-accent); }

/* Selection rail */
.nb-rail {
  display: flex; align-items: center; gap: 20px;
  padding: 14px 24px;
  border-top: 1px solid var(--not-rule);
  background: rgba(5,5,5,0.6);
  flex-shrink: 0;
}
.nb-rail-slot { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.nb-rail-label {
  font-size: 8px; letter-spacing: 0.24em; color: var(--not-fg-fainter); text-transform: uppercase;
}
.nb-rail-name {
  font-family: var(--serif-display); font-size: 13px; font-style: italic;
  color: var(--not-fg-dim);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.nb-rail-name--set { color: var(--not-accent); }
.nb-rail-empty { color: var(--not-fg-fainter); font-style: normal; font-size: 11px; }
.nb-rail-sep { color: var(--not-fg-fainter); font-size: 11px; flex-shrink: 0; }
.nb-trace {
  display: flex; align-items: center;
  background: none; border: 1px solid var(--not-rule);
  font-family: var(--serif-display); font-size: 13px;
  color: var(--not-fg-fainter); padding: 9px 16px;
  cursor: not-allowed; transition: all 0.2s; flex-shrink: 0; white-space: nowrap;
}
.nb-trace--ready {
  color: var(--not-bg); background: var(--not-fg); border-color: var(--not-fg); cursor: pointer;
}
.nb-trace--ready:hover { background: var(--not-accent); border-color: var(--not-accent); }

/* Mobile adjustments */
@media (max-width: 640px) {
  .nb-backdrop { padding: 0; align-items: flex-end; }
  .nb-panel { max-width: 100%; max-height: 92vh; border-left: none; border-right: none; border-bottom: none; }
  .nb-controls { flex-wrap: wrap; }
  .nb-select-wrap { width: 100%; }
  .nb-rail { flex-wrap: wrap; gap: 10px; }
  .nb-rail-slot { flex-basis: 40%; }
  .nb-trace { width: 100%; justify-content: center; }
}

.proj-scroll-hint {
  position: absolute; left: 50%; bottom: 6px; transform: translateX(-50%);
  font-size: 9px; letter-spacing: 0.28em;
  color: var(--not-fg-fainter);
  animation: scrollhint 2.4s ease-in-out infinite;
  pointer-events: none;
}
.proj-idle-resume {
  position: absolute;
  left: 50%;
  bottom: 150px;
  transform: translateX(-50%);
  z-index: 18;
  background: rgba(10, 9, 8, 0.86);
  border: 1px solid var(--not-rule);
  color: var(--not-fg);
  cursor: pointer;
  padding: 9px 14px;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.proj-idle-resume:hover {
  border-color: var(--not-accent);
  color: var(--not-accent);
  background: rgba(10, 9, 8, 0.96);
}
@keyframes scrollhint { 0%, 100% { opacity: 0.4; transform: translate(-50%, 0); } 50% { opacity: 0.9; transform: translate(-50%, 3px); } }

@keyframes notPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.9; }
  50% { transform: translate(-50%, -50%) scale(1.06); opacity: 1; }
}
.proj-counter-dot { animation-name: dotPulse; }
@keyframes dotPulse {
  0%, 100% { opacity: 0.9; }
  50% { opacity: 0.4; }
}

/* =============================================================
   DIRECTION B — TERMINAL
   ============================================================= */
.terminal {
  display: grid;
  grid-template-columns: 240px 1fr 260px;
  grid-template-rows: 90px 1fr auto;
  grid-template-areas:
    "header header header"
    "lrail stage rrail"
    "search search search";
  gap: 0;
}
.terminal .not-header { grid-area: header; position: relative; padding: 20px 32px 0; }

.term-rail {
  padding: 24px 24px 28px;
  border-top: 1px solid var(--not-rule);
  display: flex; flex-direction: column; gap: 22px;
  font-size: 12px;
  overflow: hidden;
}
.term-rail--left { grid-area: lrail; border-right: 1px solid var(--not-rule); }
.term-rail--right { grid-area: rrail; border-left: 1px solid var(--not-rule); }
.term-rail-block { display: flex; flex-direction: column; gap: 6px; }
.term-rail-label {
  font-size: 9px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--not-fg-fainter);
}
.term-rail-val {
  font-size: 44px; line-height: 1; letter-spacing: -0.01em;
  color: var(--not-fg);
}
.term-rail-sub {
  font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--not-fg-dim);
}
.term-rail-val-sm {
  font-family: var(--serif);
  font-size: 15px; line-height: 1.3;
  color: var(--not-fg);
}
.term-rail-block--people { gap: 4px; }
.term-person {
  display: flex; gap: 10px; align-items: baseline;
  font-family: var(--serif);
  font-size: 14px; line-height: 1.4;
  padding: 4px 0;
  color: var(--not-fg);
  border-bottom: 1px solid rgba(237,232,223,0.04);
}
.term-person-mark { color: var(--not-fg-fainter); font-family: var(--mono); font-size: 10px; width: 10px; }
.term-person--linked-out .term-person-mark,
.term-person--linked-in .term-person-mark { color: var(--not-accent); }
.term-person--linked-out, .term-person--linked-in { color: var(--not-accent); font-style: italic; }

/* Stage — the chain strip */
.term-stage {
  grid-area: stage;
  position: relative;
  border-top: 1px solid var(--not-rule);
  overflow: hidden;
  display: flex; flex-direction: column; justify-content: center;
  padding: 24px 0 40px;
}
.term-strip {
  display: flex; align-items: center;
  padding: 0 24px;
  gap: 0;
  margin-top: auto; margin-bottom: 32px;
  overflow: hidden;
}
.term-card {
  flex-shrink: 0;
  display: flex; flex-direction: column;
  position: relative;
  transition: all 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.term-card-img {
  width: calc(200px - var(--dist, 0) * 22px);
  opacity: calc(1 - var(--dist, 0) * 0.22);
  filter: blur(calc(var(--dist, 0) * 0.3px));
  transition: all 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.term-card--cur .term-card-img {
  width: 320px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.55);
  outline: 1px solid rgba(237,232,223,0.1);
}
.term-card-meta {
  display: flex; justify-content: space-between;
  font-size: 9px; letter-spacing: 0.18em;
  color: var(--not-fg-fainter);
  padding: 6px 0 0;
  width: calc(200px - var(--dist, 0) * 22px);
  transition: all 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.term-card--cur .term-card-meta { width: 320px; color: var(--not-fg-dim); }
.term-card-id { opacity: 0.7; }

.term-link {
  position: absolute;
  left: calc(100% - 4px);
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  z-index: 2;
}
.term-card--cur .term-link { width: 64px; }
.term-link svg { display: block; width: 100%; }
.term-link-label {
  position: absolute; left: 50%; top: -14px; transform: translateX(-50%);
  font-size: 8px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--not-accent);
  white-space: nowrap;
}

/* Center large caption */
.term-center-caption { text-align: center; padding: 0 40px; }
.term-center-names {
  font-family: var(--serif-display);
  font-size: clamp(22px, 2.6vw, 40px);
  display: flex; gap: 16px; flex-wrap: wrap; justify-content: center;
}

/* Right rail readouts */
.term-ticker { display: flex; flex-direction: column; gap: 4px; }
.term-ticker-row {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 11px;
  padding: 4px 0;
  border-bottom: 1px solid rgba(237,232,223,0.04);
  color: var(--not-fg-dim);
}
.term-ticker-row > :first-child { font-family: var(--mono); font-size: 9px; letter-spacing: 0.12em; text-transform: uppercase; }
.term-ticker-row > :last-child { color: var(--not-fg); font-size: 13px; }

.term-link-box {
  border: 1px solid var(--not-rule);
  padding: 12px 14px;
  display: flex; flex-direction: column; gap: 8px;
}
.term-link-row {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  font-family: var(--serif);
  font-size: 13px;
}
.term-link-row > :first-child {
  font-family: var(--mono); font-size: 9px; color: var(--not-fg-fainter); letter-spacing: 0.14em;
}
.term-link-arrow {
  text-align: center;
  font-size: 9px; letter-spacing: 0.14em; color: var(--not-fg-dim);
  border-top: 1px dashed var(--not-rule);
  border-bottom: 1px dashed var(--not-rule);
  padding: 6px 0;
}
.link-shared { color: var(--not-accent); font-style: normal; }
.term-status { display: flex; align-items: center; gap: 8px; color: var(--not-fg-dim); font-size: 11px; }
.term-status-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--not-accent);
  box-shadow: 0 0 8px var(--not-accent);
  animation: dotPulse 2s ease-in-out infinite;
}

/* Bottom search strip */
.term-search {
  grid-area: search;
  border-top: 1px solid var(--not-rule);
  padding: 18px 40px 20px;
  background: linear-gradient(180deg, rgba(237,232,223,0.015), transparent);
}
.term-search-head { text-align: center; margin-bottom: 14px; }
.term-search-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto;
  gap: 16px;
  align-items: end;
  max-width: 1100px; margin: 0 auto;
}
.term-search-field {
  display: flex; flex-direction: column; gap: 6px;
  border-bottom: 1px solid var(--not-rule);
  padding-bottom: 6px;
}
.term-search-label { font-size: 9px; letter-spacing: 0.22em; color: var(--not-fg-fainter); text-transform: uppercase; }
.term-search-input {
  background: transparent; border: none; outline: none;
  color: var(--not-fg);
  font-family: var(--serif);
  font-size: 18px; font-style: italic;
}
.term-search-input::placeholder { color: var(--not-fg-fainter); font-style: italic; }
.term-search-bridge { color: var(--not-fg-fainter); padding-bottom: 12px; font-size: 14px; }
.term-search-btn {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 18px;
  background: var(--not-fg);
  color: var(--not-bg);
  border: none; cursor: pointer;
  font-family: var(--serif-display);
  font-size: 14px; letter-spacing: 0.02em;
  transition: all 0.15s;
}
.term-search-btn:hover { background: var(--not-accent); }
.term-search-foot {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-top: 12px;
  max-width: 1100px; margin-left: auto; margin-right: auto;
  font-size: 9px; letter-spacing: 0.18em; color: var(--not-fg-fainter); text-transform: uppercase;
}
.term-chip {
  background: transparent; border: 1px solid var(--not-rule);
  color: var(--not-fg-dim);
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.12em;
  padding: 4px 10px; cursor: pointer;
  transition: all 0.15s;
}
.term-chip:hover { border-color: var(--not-accent); color: var(--not-accent); }
.term-foot-right { margin-left: auto; }
.term-foot-right a { color: var(--not-fg-dim); }
.term-foot-right a:hover { color: var(--not-accent); }

/* =============================================================
   Tweaks panel (in-design)
   ============================================================= */
.tw-panel {
  position: fixed; right: 24px; bottom: 24px; z-index: 100;
  width: 240px;
  background: rgba(10, 9, 8, 0.88);
  backdrop-filter: blur(12px);
  border: 1px solid var(--not-rule);
  padding: 14px 16px 16px;
  display: flex; flex-direction: column; gap: 12px;
}
.tw-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 8px; border-bottom: 1px solid var(--not-rule); }
.tw-title { font-size: 10px; letter-spacing: 0.22em; color: var(--not-fg); }
.tw-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--not-accent); box-shadow: 0 0 8px var(--not-accent); }
.tw-field { display: flex; flex-direction: column; gap: 6px; }
.tw-label { font-size: 9px; letter-spacing: 0.18em; color: var(--not-fg-fainter); }
.tw-opts { display: flex; flex-wrap: wrap; gap: 4px; }
.tw-chip {
  background: transparent; border: 1px solid var(--not-rule);
  color: var(--not-fg-dim);
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.04em;
  padding: 5px 9px; cursor: pointer;
}
.tw-chip--on { background: var(--not-fg); color: var(--not-bg); border-color: var(--not-fg); }

/* ─── Path View ─── */
@keyframes pv-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes pv-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}

.pv-backdrop {
  position: absolute; inset: 0; z-index: 50;
  background: var(--not-bg);
  display: flex; flex-direction: column;
  animation: pv-in 0.5s ease forwards;
}

.pv-header {
  display: flex; align-items: center; gap: 16px;
  padding: 20px 40px 16px;
  border-bottom: 1px solid var(--not-rule);
  flex-shrink: 0;
}

.pv-status {
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.18em;
  color: var(--not-accent); text-transform: uppercase;
  display: flex; align-items: center; gap: 8px; flex-shrink: 0;
}
.pv-status-dot {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--not-accent);
  animation: pv-pulse 2s ease-in-out infinite;
}

.pv-names {
  flex: 1; display: flex; align-items: center; justify-content: center;
  gap: 8px; font-family: var(--serif-display); font-style: italic;
  font-size: clamp(13px, 1.2vw, 17px);
}
.pv-name-a { color: var(--not-accent); }
.pv-name-b { color: var(--not-fg); }
.pv-dash   { color: var(--not-fg-fainter); font-style: normal; font-family: var(--mono); }

.pv-hdr-right { display: flex; gap: 8px; align-items: center; flex-shrink: 0; }

.pv-btn {
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--not-fg-dim);
  background: transparent; border: 1px solid var(--not-rule);
  padding: 5px 10px; cursor: pointer;
  transition: all 0.15s; display: flex; align-items: center; gap: 6px;
}
.pv-btn:hover { color: var(--not-fg); border-color: var(--not-fg-dim); }

.pv-stage {
  flex: 1; display: grid; grid-template-columns: 1fr 340px;
  overflow: hidden; min-height: 0;
}

.pv-image-col {
  background: #000; position: relative; overflow: hidden;
}

/* Fills the column minus padding, acts as flex-center for the img */
.pv-img-wrap {
  position: absolute; inset: 40px;
  display: flex; align-items: center; justify-content: center;
  cursor: crosshair;
}

.pv-img {
  max-width: 100%; max-height: 100%;
  width: auto; height: auto; display: block;
  opacity: 0; transition: opacity 0.5s ease;
}
.pv-img--loaded { opacity: 1; }

.pv-img-placeholder {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 9px; letter-spacing: 0.2em; color: var(--not-fg-fainter);
}

.pv-meta-col {
  border-left: 1px solid var(--not-rule); overflow-y: auto;
  padding: 32px 28px;
  display: flex; flex-direction: column; gap: 20px;
}

.pv-step-label {
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.2em;
  color: var(--not-accent); text-transform: uppercase;
}

.pv-caption {
  font-family: var(--serif-display); font-size: clamp(15px, 1.2vw, 18px);
  color: var(--not-fg); line-height: 1.4;
}

.pv-details {
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.12em;
  color: var(--not-fg-dim); display: flex; flex-direction: column; gap: 4px;
}

.pv-source-link {
  color: var(--not-fg-fainter); text-decoration: none; transition: color 0.15s;
}
.pv-source-link:hover { color: var(--not-accent); }

.pv-people-label {
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.18em;
  color: var(--not-fg-fainter); text-transform: uppercase; margin-bottom: 8px;
}

.pv-person {
  font-family: var(--serif-display); font-size: 13px; color: var(--not-fg-dim);
  padding: 5px 0; border-bottom: 1px solid var(--not-rule);
}
.pv-person--bridge { color: var(--not-accent); font-style: italic; }

.pv-bridge {
  margin-top: auto; border-top: 1px solid var(--not-rule); padding-top: 16px;
}
.pv-bridge-label {
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.18em;
  color: var(--not-fg-fainter); text-transform: uppercase; margin-bottom: 6px;
}
.pv-bridge-name {
  font-family: var(--serif-display); font-size: 16px; font-style: italic;
  color: var(--not-accent);
}

.pv-nav {
  border-top: 1px solid var(--not-rule); padding: 16px 40px;
  display: flex; align-items: center; justify-content: center; gap: 24px;
  flex-shrink: 0;
}
.pv-nav-btn {
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.16em;
  color: var(--not-fg-dim); background: transparent; border: none;
  cursor: pointer; text-transform: uppercase; transition: color 0.15s;
  min-width: 80px;
}
.pv-nav-btn:hover:not(:disabled) { color: var(--not-fg); }
.pv-nav-btn:disabled { opacity: 0.3; cursor: default; }

.pv-dots { display: flex; gap: 8px; align-items: center; }
.pv-dot-btn {
  width: 6px; height: 6px; border-radius: 50%;
  border: 1px solid var(--not-fg-fainter); background: transparent;
  cursor: pointer; padding: 0; transition: all 0.15s;
}
.pv-dot-btn--active {
  width: 8px; height: 8px;
  background: var(--not-accent); border-color: var(--not-accent);
}

/* Overview */
.pv-overview {
  flex: 1; overflow-y: auto; padding: 24px 40px; min-height: 0;
}
.pv-ov-row {
  display: flex; align-items: center; gap: 20px;
  padding: 14px 0 14px 0; border-bottom: 1px solid var(--not-rule);
  cursor: pointer; transition: background 0.1s;
}
.pv-ov-row:hover { background: rgba(237,232,223,0.03); }
.pv-ov-row--active {
  border-left: 2px solid var(--not-accent); padding-left: 12px;
}
.pv-ov-step-num {
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.14em;
  color: var(--not-fg-fainter); width: 40px; flex-shrink: 0; text-transform: uppercase;
}
.pv-ov-thumb {
  width: 64px; height: 48px; object-fit: cover; opacity: 0.8; flex-shrink: 0;
}
.pv-ov-info {
  flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px;
}
.pv-ov-caption {
  font-family: var(--serif-display); font-size: 13px; color: var(--not-fg-dim);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pv-ov-meta {
  font-family: var(--mono); font-size: 9px; color: var(--not-fg-fainter); letter-spacing: 0.1em;
}
.pv-ov-bridge {
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.12em;
  color: var(--not-accent); text-transform: uppercase;
}

/* Path View — responsive */
@media (max-width: 768px) {
  .pv-stage { grid-template-columns: 1fr; grid-template-rows: 40vh 1fr; }
  .pv-image-col { min-height: 0; }
  .pv-img-wrap { inset: 20px; }
  .pv-meta-col { border-left: none; border-top: 1px solid var(--not-rule); padding: 20px; }
  .pv-header { flex-wrap: wrap; padding: 14px 20px 12px; }
  .pv-names { width: 100%; justify-content: flex-start; flex: none; }
  .pv-dots { gap: 4px; }
  .pv-dot-btn { width: 5px; height: 5px; }
  .pv-dot-btn--active { width: 6px; height: 6px; }
  .pv-nav { padding: 12px 20px; gap: 16px; }
  .pv-overview { padding: 16px 20px; }
}

/* ─── Filmstrip Photo Detail Overlay ─── */
.pdo-backdrop {
  position: absolute; inset: 0; z-index: 45;
  background: rgba(5,5,5,0.72);
  display: flex; align-items: center; justify-content: center;
  animation: pv-in 0.25s ease;
}
.pdo-panel {
  background: var(--not-bg);
  border: 1px solid var(--not-rule);
  display: flex; flex-direction: column;
  width: min(900px, 92vw);
  max-height: 80vh;
  overflow: hidden;
}
.pdo-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px 12px;
  border-bottom: 1px solid var(--not-rule);
  flex-shrink: 0;
}
.pdo-year-loc {
  font-size: 9px; letter-spacing: 0.14em; color: var(--not-fg-dim);
  text-transform: uppercase;
}
.pdo-body {
  display: grid; grid-template-columns: 1fr 280px;
  flex: 1; overflow: hidden; min-height: 0;
}
.pdo-image-col {
  background: #000; position: relative; overflow: hidden;
  min-height: 320px;
}
.pdo-image-col .pv-img-wrap {
  position: absolute; inset: 24px;
  display: flex; align-items: center; justify-content: center;
}
@media (max-width: 640px) {
  .pdo-body { grid-template-columns: 1fr; }
  .pdo-image-col { min-height: 200px; max-height: 240px; }
}

/* ─── Person Modal ─── */
.pm-backdrop {
  position: absolute; inset: 0; z-index: 60;
  background: rgba(5,5,5,0.72);
  display: flex; align-items: center; justify-content: center;
  padding: 40px;
  animation: pv-in 0.2s ease forwards;
}

.pm-panel {
  background: var(--not-bg-2);
  border: 1px solid var(--not-rule);
  width: 100%; max-width: 840px;
  max-height: 80vh;
  display: flex; flex-direction: column;
  overflow: hidden;
}

.pm-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  padding: 24px 28px 16px; gap: 16px;
  border-bottom: 1px solid var(--not-rule); flex-shrink: 0;
}
.pm-header-left { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.pm-name {
  font-family: var(--serif-display); font-size: clamp(24px, 2.4vw, 34px);
  font-style: italic; color: var(--not-fg); line-height: 1.2;
}
.pm-wiki {
  font-size: 13px; letter-spacing: 0.12em; color: var(--not-accent);
  text-decoration: none; text-transform: uppercase;
}
.pm-wiki:hover { text-decoration: underline; }

.pm-desc {
  padding: 18px 28px; font-size: 17px; line-height: 1.65;
  color: var(--not-fg-dim); font-family: var(--serif);
  border-bottom: 1px solid var(--not-rule); flex-shrink: 0;
  max-height: 180px; overflow-y: auto;
}

.pm-status {
  padding: 20px 28px; font-size: 13px; letter-spacing: 0.14em;
  color: var(--not-fg-fainter); text-transform: uppercase;
}
.pm-status--err { color: oklch(0.65 0.15 25); }

.pm-body {
  flex: 1; display: grid; grid-template-columns: 1fr 1fr;
  overflow: hidden; min-height: 0;
}

.pm-col {
  display: flex; flex-direction: column; min-height: 0;
  padding: 20px 0 0;
}
.pm-col + .pm-col { border-left: 1px solid var(--not-rule); }

.pm-col-label {
  font-size: 13px; letter-spacing: 0.14em; color: var(--not-fg-fainter);
  text-transform: uppercase; padding: 0 22px 12px; flex-shrink: 0;
}

.pm-scroll {
  flex: 1; overflow-y: auto; padding: 0 22px 20px;
  display: flex; flex-direction: column; gap: 0;
}

/* Photos list */
.pm-photo-row {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 13px 0; border-bottom: 1px solid var(--not-rule);
}
.pm-photo-row--clickable {
  width: 100%;
  background: transparent;
  border-left: none;
  border-right: none;
  border-top: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.pm-photo-row--clickable:hover .pm-photo-caption {
  color: var(--not-fg);
}
.pm-photo-row--clickable:hover .pm-photo-thumb {
  opacity: 1;
}
.pm-photo-thumb {
  width: 78px; height: 58px; object-fit: cover;
  flex-shrink: 0; opacity: 0.85;
  transition: opacity 0.15s;
}
.pm-photo-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.pm-photo-caption {
  font-family: var(--serif-display); font-size: 16px; color: var(--not-fg-dim);
  line-height: 1.45; transition: color 0.15s;
}
.pm-photo-date {
  font-size: 13px; letter-spacing: 0.08em; color: var(--not-fg-fainter);
}

.pm-load-more {
  margin-top: 12px; background: transparent;
  border: 1px solid var(--not-rule); color: var(--not-fg-dim);
  font-size: 13px; letter-spacing: 0.12em; padding: 10px 16px;
  cursor: pointer; text-transform: uppercase; transition: all 0.15s; align-self: flex-start;
}
.pm-load-more:hover:not(:disabled) { color: var(--not-fg); border-color: var(--not-fg-dim); }
.pm-load-more:disabled { opacity: 0.4; cursor: default; }

/* Co-appearing people list */
.pm-coname {
  font-family: var(--serif-display); font-size: 17px;
  color: var(--not-fg-dim); padding: 10px 0;
  border-bottom: 1px solid var(--not-rule); line-height: 1.35;
}
.pm-coname--link { cursor: pointer; }
.pm-coname--link:hover { color: var(--not-accent); }

/* Clickable people names in path view meta panel */
.pv-person--clickable { cursor: pointer; }
.pv-person--clickable:hover { color: var(--not-fg); }
.pv-person--bridge.pv-person--clickable:hover { color: oklch(0.92 0.13 210); }

/* ─── Network Graph ─────────────────────────────────────────── */

/* Slideshow dim when network open */
.projection.network-open .proj-stream  { opacity: 0.15; transition: opacity 0.5s ease; }
.projection.network-open .proj-caption { opacity: 0.15; animation: none; }

/* Entry button — tertiary variant */
.proj-cta--network { opacity: 0.8; background: none; border: none; color: inherit; text-align: left; }

/* ── Network Mode — Core overlay ─────────────────────────────── */
.ng-backdrop {
  position: absolute; inset: 0; z-index: 55;
  background: var(--not-bg); color: var(--not-fg);
  display: flex; flex-direction: column;
  animation: pv-in 0.4s ease;
}

/* Header */
.ng-header {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 24px 10px; border-bottom: 1px solid var(--not-rule);
  flex-shrink: 0; flex-wrap: wrap;
}
.ng-status  { font-family: var(--mono); font-size: 10px; letter-spacing: 0.18em; color: var(--not-accent); white-space: nowrap; }
.ng-subline { font-family: var(--mono); font-size: 9px; color: var(--not-fg-dim); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ng-hdr-center { display: flex; align-items: center; gap: 4px; flex: 1; justify-content: center; }
.ng-hdr-right  { display: flex; gap: 8px; }

.ng-density-btn {
  font-family: var(--mono); font-size: 8px; letter-spacing: 0.12em; text-transform: uppercase;
  background: transparent; border: 1px solid rgba(237,232,223,0.10); color: var(--not-fg-dim);
  padding: 4px 9px; cursor: pointer; transition: border-color 0.15s, color 0.15s; white-space: nowrap;
}
.ng-density-btn:hover { border-color: rgba(237,232,223,0.35); color: var(--not-fg); }
.ng-density-btn--active { border-color: var(--not-accent); color: var(--not-accent); }

.ng-btn {
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase;
  background: transparent; border: 1px solid var(--not-rule); color: var(--not-fg);
  padding: 5px 10px; cursor: pointer; transition: border-color 0.15s, color 0.15s;
}
.ng-btn:hover { border-color: var(--not-fg); }

/* Stage */
.ng-stage       { flex: 1; position: relative; overflow: hidden; }
.ng-svg-edges   { position: absolute; inset: 0; pointer-events: none; width: 100%; height: 100%; }
.ng-nodes-layer { position: absolute; inset: 0; pointer-events: none; }

.ng-state-overlay {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.18em; color: var(--not-fg-fainter);
}
.ng-loading-pulse {
  position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
  font-family: var(--mono); font-size: 8px; letter-spacing: 0.18em; color: var(--not-accent);
  animation: ng-blink 1.4s ease-in-out infinite; z-index: 20; pointer-events: none; white-space: nowrap;
}
@keyframes ng-blink { 0%,100%{ opacity: 0.25; } 50%{ opacity: 1; } }

/* ── Nodes ─────────────────────────────────────────────────── */
.ng-node {
  position: absolute; overflow: hidden;
  border: 1px solid rgba(237,232,223,0.18);
  transition: left 0.45s cubic-bezier(0.25,0.46,0.45,0.94),
              top  0.45s cubic-bezier(0.25,0.46,0.45,0.94),
              border-color 0.2s ease,
              transform 0.2s ease,
              box-shadow 0.2s ease;
}
/* Central (seed) node — hero */
.ng-node--seed {
  border: 2px solid var(--not-accent);
  box-shadow: 0 0 0 1px rgba(200,160,90,0.25), 0 0 55px rgba(200,160,90,0.14), 0 12px 50px rgba(0,0,0,0.7);
  z-index: 5;
}
/* Hover / keyboard-highlighted */
.ng-node--hovered {
  border-color: rgba(200,160,90,0.7); z-index: 6;
  transform: scale(1.06);
  box-shadow: 0 6px 28px rgba(0,0,0,0.65), 0 0 0 1px rgba(200,160,90,0.3);
}
/* Selected (inspector open) */
.ng-node--selected {
  border-color: var(--not-accent); z-index: 7;
  transform: scale(1.09);
  box-shadow: 0 8px 36px rgba(0,0,0,0.75), 0 0 0 2px var(--not-accent);
}
/* "Entering" — animation when user navigates into this photo */
.ng-node--entering {
  animation: ng-enter-flash 0.38s ease forwards;
  z-index: 10;
}
@keyframes ng-enter-flash {
  0%   { transform: scale(1);    box-shadow: 0 0 0 2px var(--not-accent); }
  45%  { transform: scale(1.18); box-shadow: 0 0 0 4px var(--not-accent), 0 0 50px rgba(200,160,90,0.55); }
  100% { transform: scale(1);    opacity: 0; }
}

.ng-node-img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  opacity: 0.82; transition: opacity 0.2s ease; filter: brightness(0.92);
}
.ng-node--seed     .ng-node-img { opacity: 1; filter: none; }
.ng-node--hovered  .ng-node-img,
.ng-node--selected .ng-node-img { opacity: 1; filter: brightness(1.08); }

/* Seed photo caption — gradient overlay at bottom */
.ng-seed-label {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 6px 10px 7px;
  background: linear-gradient(to top, rgba(0,0,0,0.78) 0%, transparent 100%);
  font-family: var(--mono); font-size: 8px; letter-spacing: 0.1em;
  color: rgba(237,232,223,0.82); white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; pointer-events: none;
}

/* Per-person via label — always-visible strip at bottom of connected nodes */
.ng-node-via {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 2px 5px 3px;
  background: rgba(0,0,0,0.65);
  font-family: var(--mono); font-size: 7px; letter-spacing: 0.09em;
  text-transform: uppercase; text-align: center;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  pointer-events: none;
}

/* Hover overlay — "enter →" button + via-tip */
.ng-node-enter-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.52);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 5px; padding: 4px;
}
.ng-node-enter-btn {
  background: var(--not-accent); color: #0a0a0a;
  border: none; padding: 4px 11px;
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.12em;
  text-transform: uppercase; cursor: pointer;
  transition: opacity 0.1s; white-space: nowrap;
}
.ng-node-enter-btn:hover { opacity: 0.82; }
.ng-node-via-tip {
  font-family: var(--mono); font-size: 7px; letter-spacing: 0.09em;
  color: rgba(237,232,223,0.65); text-align: center;
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* ── Inspector panel ──────────────────────────────────────── */
.ng-inspector {
  position: absolute; right: 0; top: 0; bottom: 0; width: 360px;
  background: var(--not-bg); border-left: 1px solid var(--not-rule);
  display: flex; flex-direction: column; overflow-y: auto;
  animation: ng-slide-in 0.22s ease;
}
@keyframes ng-slide-in {
  from { transform: translateX(24px); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}

/* Connected-via banner — pinned at top, most important context */
.ng-insp-via-banner {
  padding: 13px 20px 12px; border-bottom: 1px solid var(--not-rule);
  flex-shrink: 0; background: rgba(200,160,90,0.05);
}
.ng-insp-via-kicker {
  display: block; font-family: var(--mono); font-size: 8px; letter-spacing: 0.2em;
  color: var(--not-fg-fainter); text-transform: uppercase; margin-bottom: 4px;
}
.ng-insp-via-names {
  font-family: var(--serif-display); font-size: 15px; font-style: italic;
  color: var(--not-accent); line-height: 1.4;
}

.ng-insp-img-wrap { width: 100%; aspect-ratio: 4/3; overflow: hidden; background: #000; flex-shrink: 0; }
.ng-insp-img      { width: 100%; height: 100%; object-fit: cover; }

.ng-insp-body {
  padding: 18px 20px 12px; display: flex; flex-direction: column; gap: 14px; flex: 1;
}
.ng-insp-caption {
  font-family: var(--serif-display); font-size: 13px; line-height: 1.55; color: var(--not-fg);
}

/* People tags */
.ng-insp-people-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.ng-person-tag {
  font-family: var(--mono); font-size: 8px; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 3px 8px; border: 1px solid rgba(237,232,223,0.14); color: var(--not-fg-dim);
  cursor: pointer; transition: border-color 0.15s, color 0.15s;
}
.ng-person-tag:hover { border-color: rgba(237,232,223,0.45); color: var(--not-fg); }
.ng-person-tag--shared { border-color: rgba(200,160,90,0.5); color: var(--not-accent); }
.ng-person-tag--shared:hover { border-color: var(--not-accent); }

.ng-insp-actions {
  padding: 12px 20px 22px; display: flex; flex-direction: column; gap: 8px;
  border-top: 1px solid var(--not-rule); flex-shrink: 0;
}
.ng-insp-primary {
  width: 100%; padding: 11px; background: var(--not-fg); color: var(--not-bg);
  border: none; font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em;
  text-transform: uppercase; cursor: pointer; transition: background 0.15s;
}
.ng-insp-primary:hover { background: var(--not-accent); color: #0a0a0a; }
.ng-insp-secondary {
  width: 100%; padding: 9px; background: transparent; color: var(--not-fg);
  border: 1px solid var(--not-rule); font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.14em; text-transform: uppercase; cursor: pointer; transition: all 0.15s;
}
.ng-insp-secondary:hover { border-color: var(--not-fg); }

/* ── Footer: breadcrumb + description ─────────────────────── */
.ng-footer {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  padding: 8px 24px; border-top: 1px solid var(--not-rule); flex-shrink: 0; min-height: 44px;
}
.ng-footer-desc { font-family: var(--mono); font-size: 9px; color: var(--not-fg-fainter); letter-spacing: 0.12em; flex: 1; }

/* Breadcrumb rail */
.ng-breadcrumb { display: flex; align-items: center; gap: 10px; }
.ng-breadcrumb-label {
  font-family: var(--mono); font-size: 8px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--not-fg-fainter); white-space: nowrap;
}
.ng-breadcrumb-rail { display: flex; gap: 4px; align-items: center; }
.ng-breadcrumb-thumb {
  width: 38px; height: 28px; overflow: hidden; cursor: pointer;
  border: 1px solid transparent; opacity: 0.45;
  transition: opacity 0.15s, border-color 0.15s;
  flex-shrink: 0;
}
.ng-breadcrumb-thumb:hover { opacity: 0.8; }
.ng-breadcrumb-thumb--active { border-color: var(--not-accent); opacity: 1; cursor: default; }
.ng-breadcrumb-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Person modal — responsive */
@media (max-width: 768px) {
  .pm-backdrop { padding: 0; align-items: flex-end; }
  .pm-panel { max-width: 100%; max-height: 90vh; border-bottom: none; }
  .pm-body { grid-template-columns: 1fr; grid-template-rows: 1fr 1fr; }
  .pm-col + .pm-col { border-left: none; border-top: 1px solid var(--not-rule); }
}

/* Small viewport compactions */
@media (max-width: 960px) {
  .terminal {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto 1fr auto auto;
    grid-template-areas:
      "header"
      "lrail"
      "stage"
      "rrail"
      "search";
  }
  .term-rail--left, .term-rail--right { border: none; border-top: 1px solid var(--not-rule); flex-direction: row; flex-wrap: wrap; gap: 16px; }
  .term-rail-block { min-width: 140px; }
  .term-search-row { grid-template-columns: 1fr; }
  .proj-stream-mask { width: 8vw; }
  .proj-ambient { grid-template-columns: 1fr; gap: 18px; }
  .proj-ambient-tag { max-width: none; padding-top: 4px; }
  .proj-ambient-actions { justify-content: flex-start; flex-wrap: wrap; }
  .proj-cta { min-width: 0; padding: 10px 16px 10px 0; }
  .proj-cta--primary { border-left: none; padding-left: 0; padding-top: 10px; }
  .proj-ambient-meta { justify-content: flex-start; }
  .qc-row { grid-template-columns: 1fr; gap: 12px; }
  .qc-via { padding: 4px 0; }
  .qc-engage { width: 100%; justify-content: center; }
  .not-header { padding: 18px 20px 0; }
  .not-nav { display: none; }
}

/* ── About Modal ─────────────────────────────────────────────── */
.abt-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 5, 5, 0.82);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.abt-panel {
  background: var(--not-bg-2);
  border: 1px solid var(--not-rule);
  max-width: 640px;
  width: 100%;
  max-height: 82vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.abt-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 28px;
  border-bottom: 1px solid var(--not-rule);
  flex-shrink: 0;
}

.abt-label {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--not-accent);
}

.abt-close {
  background: none;
  border: none;
  color: var(--not-fg-dim);
  cursor: pointer;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 0;
  line-height: 1;
  transition: color 0.15s;
}
.abt-close:hover { color: var(--not-fg); }

.abt-body {
  overflow-y: auto;
  padding: 32px 28px 44px;
  flex: 1;
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.78;
  color: var(--not-fg);
}

.abt-body p { margin: 0 0 1em; }

.abt-section-head {
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 19px;
  font-weight: 400;
  color: var(--not-fg);
  margin: 2.4em 0 0.5em;
  line-height: 1.3;
}
.abt-body .abt-section-head:first-child { margin-top: 0; }

.abt-body ul {
  padding-left: 1.5em;
  margin: 0 0 1em;
}
.abt-body li { margin-bottom: 0.4em; }

.abt-body a {
  color: var(--not-accent);
  text-decoration: none;
}
.abt-body a:hover { text-decoration: underline; }

@media (max-width: 600px) {
  .abt-panel { max-height: 90vh; }
  .abt-body { padding: 24px 20px 36px; }
  .abt-head { padding: 16px 20px; }
}

/* ── Login Modal (extends .abt-* overlay + panel) ────────────── */
.lgn-panel { max-width: 400px; }
.lgn-body {
  padding: 44px 36px 48px;
  display: flex; flex-direction: column; align-items: center; gap: 28px;
}
.lgn-lead {
  font-family: var(--serif); font-size: 15px; line-height: 1.65;
  color: var(--not-fg-dim); text-align: center; margin: 0;
}
.lgn-google-btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 13px 32px;
  background: rgba(255,255,255,0.96); color: #222;
  border: 1px solid rgba(255,255,255,0.12);
  text-decoration: none;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.10em; text-transform: uppercase;
  transition: background 0.15s, box-shadow 0.15s;
  white-space: nowrap;
}
.lgn-google-btn:hover {
  background: #fff; color: #111;
  box-shadow: 0 3px 16px rgba(0,0,0,0.35);
  text-decoration: none;
}
.lgn-terms {
  font-size: 9px; letter-spacing: 0.10em;
  color: var(--not-fg-fainter); text-align: center; margin: 0; line-height: 1.7;
}
.lgn-terms a { color: var(--not-fg-dim); text-decoration: none; }
.lgn-terms a:hover { color: var(--not-fg); }

/* ── Profile Modal (extends .abt-* overlay + panel) ─────────── */
.prf-panel { max-width: 560px; }
.prf-body { padding-top: 20px; }
.prf-user {
  padding: 4px 0 20px;
  border-bottom: 1px solid var(--not-rule);
  margin-bottom: 4px;
}
.prf-email {
  font-size: 13px; letter-spacing: 0.06em; color: var(--not-fg);
}
.prf-submission {
  padding: 14px 0; border-bottom: 1px solid var(--not-rule);
}
.prf-sub-header {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px;
}
.prf-sub-type {
  font-size: 9px; letter-spacing: 0.20em; text-transform: uppercase; color: var(--not-fg-fainter);
}
.prf-sub-status {
  font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 3px 8px; border: 1px solid;
}
.prf-sub-status--approved { color: oklch(0.72 0.12 145); border-color: oklch(0.72 0.12 145 / 0.35); }
.prf-sub-status--rejected { color: oklch(0.62 0.15 20);  border-color: oklch(0.62 0.15 20  / 0.35); }
.prf-sub-status--pending  { color: oklch(0.78 0.12 78);  border-color: oklch(0.78 0.12 78  / 0.35); }
.prf-sub-people {
  font-size: 10px; letter-spacing: 0.10em; text-transform: uppercase;
  color: var(--not-fg-dim); margin-bottom: 5px;
}
.prf-sub-desc {
  font-size: 14px; line-height: 1.55; color: var(--not-fg); margin-bottom: 5px;
}
.prf-sub-date { font-size: 9px; letter-spacing: 0.10em; color: var(--not-fg-fainter); }
.prf-hint {
  font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--not-fg-fainter);
}
.prf-hint--error { color: oklch(0.62 0.15 20); }
.prf-footer { padding-top: 28px; display: flex; justify-content: flex-end; }
.prf-signout {
  background: none; border: 1px solid var(--not-rule);
  color: var(--not-fg-dim); cursor: pointer;
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 8px 18px; transition: color 0.15s, border-color 0.15s;
}
.prf-signout:hover { color: var(--not-fg); border-color: rgba(237,232,223,0.28); }

/* ── Submit Modal (extends .abt-* overlay + panel) ───────────── */
.sbt-panel { max-width: 700px; }

.sbt-intro {
  font-size: 14px;
  color: var(--not-fg-dim);
  margin: 0 0 1.6em;
  line-height: 1.65;
}
.sbt-intro a { color: var(--not-accent); text-decoration: none; }

.sbt-field { margin-bottom: 1.1em; }

.sbt-label-field {
  display: block;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--not-fg-dim);
  margin-bottom: 6px;
}

.sbt-input {
  width: 100%;
  background: rgba(237, 232, 223, 0.04);
  border: 1px solid var(--not-rule);
  color: var(--not-fg);
  font-family: var(--serif);
  font-size: 14px;
  padding: 8px 10px;
  outline: none;
  resize: vertical;
  transition: border-color 0.15s;
}
.sbt-input:focus { border-color: rgba(237, 232, 223, 0.35); }
.sbt-input::placeholder { color: var(--not-fg-fainter); }

.sbt-file-input {
  display: block;
  width: 100%;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--not-fg-dim);
  background: none;
  border: none;
  padding: 0;
}
.sbt-file-input::file-selector-button {
  background: transparent;
  border: 1px solid var(--not-rule);
  color: var(--not-fg);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 6px 12px;
  cursor: pointer;
  margin-right: 10px;
  transition: border-color 0.15s;
}
.sbt-file-input::file-selector-button:hover { border-color: rgba(237, 232, 223, 0.35); }

.sbt-hint  { font-family: var(--mono); font-size: 9px; color: var(--not-fg-fainter); margin: 4px 0 0; }
.sbt-error { font-family: var(--mono); font-size: 9px; color: #e06060; margin: 4px 0 0; }
.sbt-muted { font-size: 12px; color: var(--not-fg-dim); margin: 0.5em 0 1em; }
.sbt-muted a { color: var(--not-accent); text-decoration: none; }
.sbt-muted a:hover { text-decoration: underline; }

.sbt-search-row { display: flex; gap: 8px; }
.sbt-search-row .sbt-input { flex: 1; }

.sbt-dropdown {
  position: absolute;
  z-index: 10;
  left: 0; right: 0;
  background: var(--not-bg-2);
  border: 1px solid var(--not-rule);
  border-top: none;
  max-height: 180px;
  overflow-y: auto;
}

.sbt-dropdown-item {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: var(--not-fg);
  font-family: var(--serif);
  font-size: 14px;
  padding: 8px 12px;
  cursor: pointer;
}
.sbt-dropdown-item:hover { background: rgba(237, 232, 223, 0.07); }

.sbt-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.sbt-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(237, 232, 223, 0.07);
  border: 1px solid var(--not-rule);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--not-accent);
  padding: 4px 8px;
}
.sbt-chip-remove {
  background: none;
  border: none;
  color: var(--not-fg-dim);
  cursor: pointer;
  font-size: 13px;
  line-height: 1;
  padding: 0;
  transition: color 0.12s;
}
.sbt-chip-remove:hover { color: var(--not-fg); }

.sbt-new-person {
  background: rgba(237, 232, 223, 0.03);
  border: 1px solid var(--not-rule);
  padding: 16px;
  margin-bottom: 1.2em;
}
.sbt-new-person-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 4px; }

.sbt-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.sbt-btn {
  display: inline-block;
  background: transparent;
  border: 1px solid var(--not-rule);
  color: var(--not-fg);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 10px 18px;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.sbt-btn:hover { border-color: rgba(237, 232, 223, 0.35); }
.sbt-btn--primary {
  background: var(--not-fg);
  color: var(--not-bg);
  border-color: var(--not-fg);
}
.sbt-btn--primary:hover {
  background: var(--not-accent);
  border-color: var(--not-accent);
  color: #0a0a0a;
}
.sbt-btn:disabled { opacity: 0.45; cursor: not-allowed; }

.sbt-auth-btns { display: flex; gap: 12px; margin: 1.5em 0; }

.sbt-submit-row { margin-top: 1.6em; display: flex; justify-content: flex-end; }

.sbt-success { padding: 2em 0; }

@media (max-width: 640px) {
  .sbt-row { grid-template-columns: 1fr; }
  .sbt-search-row { flex-direction: column; }
  .sbt-auth-btns { flex-direction: column; }
}

/* ── Press Modal ─────────────────────────────────────────────── */
.prs-panel { max-width: 860px; }

.prs-hero { margin-bottom: 2.2em; }
.prs-title {
  font-family: var(--serif-display);
  font-size: clamp(22px, 3vw, 34px);
  font-style: italic;
  font-weight: 400;
  margin: 0 0 0.3em;
  color: var(--not-fg);
}
.prs-sub     { font-size: 15px; color: var(--not-fg-dim); margin: 0 0 0.4em; }
.prs-updated { font-size: 9px; color: var(--not-fg-fainter); letter-spacing: 0.14em; text-transform: uppercase; }
.prs-loading { font-size: 10px; color: var(--not-fg-fainter); letter-spacing: 0.14em; text-transform: uppercase; }

.prs-section-head {
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 18px;
  font-weight: 400;
  color: var(--not-fg);
  margin: 0 0 1em;
  line-height: 1.3;
}

/* Featured logos */
.prs-featured {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 2.5em;
}
.prs-logo-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 20px;
  border: 1px solid var(--not-rule);
  text-decoration: none;
  min-width: 110px;
  transition: border-color 0.15s;
}
.prs-logo-item:hover { border-color: rgba(237, 232, 223, 0.3); }
.prs-logo-img {
  max-width: 100px;
  max-height: 36px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.65;
}
.prs-logo-placeholder {
  font-family: var(--serif-display);
  font-size: 15px;
  font-style: italic;
  color: var(--not-fg-dim);
}
.prs-logo-outlet {
  font-size: 8px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--not-fg-dim);
}
.prs-logo-date { font-size: 8px; color: var(--not-fg-fainter); }

/* Selected coverage cards */
.prs-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
  margin-bottom: 2.5em;
}
.prs-card {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 14px 16px;
  border: 1px solid var(--not-rule);
  text-decoration: none;
  transition: border-color 0.15s;
}
.prs-card:hover { border-color: rgba(237, 232, 223, 0.3); }
.prs-card-outlet {
  font-size: 8px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--not-accent);
}
.prs-card-title {
  font-family: var(--serif-display);
  font-size: 14px;
  font-style: italic;
  color: var(--not-fg);
  line-height: 1.35;
}
.prs-card-date { font-size: 8px; color: var(--not-fg-fainter); letter-spacing: 0.1em; }
.prs-card-quote {
  font-size: 12px;
  color: var(--not-fg-dim);
  font-style: italic;
  line-height: 1.55;
  border-left: 2px solid var(--not-rule);
  padding-left: 10px;
  margin-top: 4px;
}

/* Community mentions */
.prs-community { margin-bottom: 2.5em; }
.prs-toggle {
  background: none;
  border: 1px solid var(--not-rule);
  color: var(--not-fg-dim);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 8px 14px;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}
.prs-toggle:hover { color: var(--not-fg); border-color: rgba(237, 232, 223, 0.3); }
.prs-community-content { margin-top: 14px; }
.prs-controls { display: flex; gap: 10px; margin-bottom: 12px; }
.prs-search { flex: 1; }
.prs-filter { width: 150px; background: rgba(237,232,223,0.04); }

.prs-table-wrap { overflow-x: auto; }
.prs-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.prs-table th {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--not-fg-dim);
  padding: 8px 10px;
  border-bottom: 1px solid var(--not-rule);
  text-align: left;
  white-space: nowrap;
}
.prs-table td {
  padding: 7px 10px;
  border-bottom: 1px solid rgba(237, 232, 223, 0.04);
  color: var(--not-fg);
  vertical-align: top;
}
.prs-table td.mono { font-size: 10px; color: var(--not-fg-dim); }
.prs-table tr:hover td { background: rgba(237, 232, 223, 0.03); }
.prs-link {
  color: var(--not-accent);
  text-decoration: none;
  font-family: var(--mono);
  font-size: 12px;
}

/* Press Kit */
.prs-kit { margin-bottom: 2em; }
.prs-kit-grid {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 12px;
  margin-top: 1em;
}
.prs-kit-item {
  padding: 16px;
  border: 1px solid var(--not-rule);
}
.prs-kit-label {
  font-size: 8px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--not-accent);
  margin-bottom: 10px;
}
.prs-kit-item p {
  font-size: 13px;
  color: var(--not-fg-dim);
  margin: 0 0 12px;
  line-height: 1.65;
}
.prs-email-row { display: flex; align-items: center; gap: 8px; }
.prs-email {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--not-accent);
  text-decoration: none;
}
.prs-email:hover { text-decoration: underline; }
.prs-copy {
  background: none;
  border: 1px solid var(--not-rule);
  color: var(--not-fg-dim);
  cursor: pointer;
  font-size: 11px;
  padding: 2px 6px;
  line-height: 1;
  transition: color 0.12s;
}
.prs-copy:hover { color: var(--not-fg); }

.prs-footnote {
  font-size: 9px;
  color: var(--not-fg-fainter);
  letter-spacing: 0.1em;
  padding-top: 1.2em;
  border-top: 1px solid var(--not-rule);
}

@media (max-width: 700px) {
  .prs-kit-grid { grid-template-columns: 1fr; }
  .prs-controls { flex-direction: column; }
  .prs-filter { width: 100%; }
  .prs-cards { grid-template-columns: 1fr; }
}

/* ── Contact Modal ───────────────────────────────────────────── */
.cnt-panel { max-width: 560px; }

.cnt-email-card {
  border: 1px solid var(--not-rule);
  background: rgba(237, 232, 223, 0.04);
  padding: 18px 20px;
  margin: 0 0 2em;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cnt-email-label {
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--not-fg-fainter);
}
.cnt-email-link {
  color: var(--not-accent);
  font-family: var(--serif-display);
  font-size: clamp(19px, 2.4vw, 26px);
  font-style: italic;
  line-height: 1.25;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.cnt-email-link:hover { color: var(--not-fg); }

.cnt-categories { border-top: 1px solid var(--not-rule); padding-top: 1.6em; }

.cnt-cat-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.cnt-cat-list li {
  padding: 9px 0;
  border-bottom: 1px solid rgba(237, 232, 223, 0.06);
  font-size: 14px;
  color: var(--not-fg-dim);
}
.cnt-cat-list li:last-child { border-bottom: none; }

/* ── Footer Bar ─────────────────────────────────────────────── */
.not-footer {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 40px;
  z-index: 20;
  pointer-events: none;
}
.not-footer > * { pointer-events: auto; }
.not-footer-link {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--not-fg-fainter);
  text-decoration: none;
  transition: color 0.15s;
}
.not-footer-link:hover { color: var(--not-fg-dim); }
.not-footer-sep {
  font-size: 10px;
  color: var(--not-fg-fainter);
  opacity: 0.5;
}
.not-footer-copy {
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--not-fg-fainter);
}

/* ── Legal Modals (Terms / Privacy) ─────────────────────────── */
.lgl-panel { max-width: 680px; }

.lgl-body {
  font-size: 14px;
  line-height: 1.75;
  color: var(--not-fg-dim);
}

.lgl-effective {
  font-style: italic;
  color: var(--not-fg-fainter);
  font-size: 13px;
  margin-bottom: 1.5em;
}

.lgl-h3 {
  font-family: var(--serif-display);
  font-size: 14px;
  font-weight: 500;
  color: var(--not-fg);
  margin: 1.8em 0 0.5em;
  letter-spacing: 0.02em;
}

.lgl-list {
  padding-left: 1.4em;
  margin: 0.5em 0 1em;
}
.lgl-list li { margin-bottom: 0.4em; }

.lgl-link {
  color: var(--not-accent);
  text-decoration: none;
}
.lgl-link:hover { text-decoration: underline; }

.lgl-contact-box {
  background: rgba(237, 232, 223, 0.04);
  border: 1px solid var(--not-rule);
  border-radius: 4px;
  padding: 1.2em 1.4em;
  margin-top: 0.5em;
}

/* ================================================================
   READABILITY — v2
   Typography scale corrections, contrast improvements, focus rings,
   and text-shadow protection for photo overlays.
   Visual identity unchanged: same black, amber, serif, thin lines.
   "Same luxury archive interface, but readable."
   ================================================================ */

/* ── Semantic text-colour tokens + fluid type scale ───────────── */
:root {
  --text-primary:   rgba(245, 238, 222, 0.92);
  --text-secondary: rgba(245, 238, 222, 0.72);
  --text-muted:     rgba(245, 238, 222, 0.48);
  --text-faint:     rgba(245, 238, 222, 0.32);

  --font-xs: clamp(12px, 0.70vw, 13px);
  --font-sm: clamp(13px, 0.80vw, 15px);
  --font-md: clamp(15px, 0.95vw, 17px);
  --font-lg: clamp(18px, 1.40vw, 24px);
  --font-xl: clamp(28px, 2.20vw, 40px);
}

/* ── Keyboard focus ring ───────────────────────────────────────── */
:focus-visible {
  outline: 1px solid var(--not-accent);
  outline-offset: 2px;
  box-shadow: 0 0 0 3px rgba(200, 160, 90, 0.14);
}

/* ── Text-shadow protection: floating labels over photos ───────── */
.proj-caption-names,
.proj-caption-meta,
.ng-seed-label,
.ng-node-via,
.ng-node-via-tip,
.term-link-label {
  text-shadow: 0 1px 8px rgba(0,0,0,0.90), 0 0 20px rgba(0,0,0,0.55);
}

/* Seed-node caption: deepen gradient for legibility */
.ng-seed-label {
  font-size: 11px;
  padding: 10px 10px 9px;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.35) 70%, transparent 100%);
}

/* Per-node via labels: stronger backing */
.ng-node-via {
  background: rgba(0, 0, 0, 0.76);
  font-size: 11px;
  letter-spacing: 0.08em;
}

/* ── Navigation ────────────────────────────────────────────────── */
/* Nav links: functional — 12px, reduced tracking */
.not-nav {
  font-size: clamp(11px, 0.75vw, 12px);
  letter-spacing: 0.13em;
}

/* ── Homepage: ambient console ─────────────────────────────────── */
/* Numeric kicker ("01") — decorative, floor to 12px */
.proj-cta-kicker {
  font-size: clamp(12px, 0.75vw, 13px);
  letter-spacing: 0.18em;
}

/* Action text: push toward 28–32px per spec */
.proj-cta-label {
  font-size: clamp(24px, 2vw, 32px);
}

/* Archive stats (bottom right): 12px minimum */
.proj-ambient-meta {
  font-size: clamp(12px, 0.75vw, 13px);
}

/* Filmstrip card metadata: 9px → 12px floor */
.proj-card-meta {
  font-size: clamp(11px, 0.70vw, 12px);
}

/* Caption meta line: 11px → 13px */
.proj-caption-meta {
  font-size: clamp(12px, 0.80vw, 13px);
  letter-spacing: 0.12em;
}

/* "live archive…" tagline sub-label */
.tag-sub {
  font-size: clamp(11px, 0.72vw, 12px);
}

/* ── Query console ─────────────────────────────────────────────── */
/* Person inputs: the main interaction — push to 28–34px range */
.qc-field-input {
  font-size: clamp(38px, 3vw, 52px);
}
.qc-field-input::placeholder {
  color: rgba(237, 232, 223, 0.40);
}

/* "Choose two people…" instruction: functional, not decorative */
.qc-prompt {
  font-size: clamp(20px, 1.35vw, 24px);
  letter-spacing: 0.04em;
  text-transform: none;
  font-family: var(--serif);
  font-style: italic;
  color: var(--text-secondary);
}

/* "query mode" indicator: decorative, floor to 12px */
.qc-head-left {
  font-size: clamp(15px, 0.95vw, 17px);
}

.qc-close {
  font-size: clamp(15px, 0.95vw, 17px);
}

.qc-field-label {
  font-size: clamp(15px, 0.95vw, 17px);
}

.qc-suggest-row {
  font-size: clamp(20px, 1.35vw, 24px);
}

.qc-suggest-thumb {
  width: 58px;
  height: 58px;
  flex-basis: 58px;
}

.qc-suggest-name {
  font-size: clamp(22px, 1.45vw, 28px);
}

.qc-suggest-bio {
  font-size: clamp(15px, 0.95vw, 17px);
}

.qc-suggest-hint {
  font-size: clamp(14px, 0.9vw, 16px);
}

/* Random button: 10px → 13px */
.qc-random-btn {
  font-size: clamp(16px, 1vw, 18px);
  letter-spacing: 0.10em;
  color: var(--not-fg-dim);
}
.qc-random-btn:hover { color: var(--not-accent); }

/* Via separator: decorative, floor to 12px */
.qc-via-label {
  font-size: clamp(15px, 0.95vw, 17px);
}

.qc-engage {
  font-size: clamp(22px, 1.5vw, 28px);
  padding: 16px 24px;
}

/* Foot row: "3 queries remaining" + label — functional text */
.qc-foot {
  font-size: clamp(16px, 1vw, 18px);
  letter-spacing: 0.05em;
  text-transform: none;
  color: var(--not-fg-dim);
}
/* Restore "TRY:" label as styled-but-readable uppercase */
.qc-foot-label {
  font-size: clamp(15px, 0.95vw, 17px);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--not-fg);
}

/* "Browse full index" link in foot-right: 15px, stronger contrast */
.qc-foot-right {
  font-size: clamp(16px, 1vw, 18px);
  letter-spacing: 0.04em;
}
.qc-foot-right a { color: var(--not-fg-dim); }
.qc-foot-right a:hover { color: var(--not-accent); }

/* Suggested name chips: 10px → 13px */
.qc-chip {
  font-size: clamp(16px, 1vw, 18px);
  letter-spacing: 0.04em;
  padding: 9px 16px;
}

/* Browse index full-width CTA: 11px → 15px */
.qc-browse-btn {
  font-size: clamp(22px, 1.45vw, 28px);
  letter-spacing: 0.10em;
  padding: 19px 26px;
}

/* ── Names index browser ───────────────────────────────────────── */
/* Modal subtitle */
.nb-subtitle {
  font-size: clamp(19px, 1.25vw, 23px);
  color: var(--not-fg-dim);
}

/* Search input: 15px → 18px serif italic */
.nb-search {
  font-size: clamp(26px, 2vw, 34px);
}
.nb-search::placeholder { color: rgba(237, 232, 223, 0.45); }

/* Country dropdown: 9px → 13px */
.nb-select {
  font-size: clamp(16px, 1vw, 18px);
  letter-spacing: 0.05em;
  color: var(--not-fg-dim);
  padding: 8px 28px 8px 10px;
}

.nb-title,
.nb-count,
.nb-clear,
.nb-status,
.nb-load-more {
  font-size: clamp(15px, 0.95vw, 17px);
}

/* Alphabet jump bar: 10px → 13px, more tap padding */
.nb-alpha-btn {
  font-size: clamp(16px, 1vw, 18px);
  padding: 8px 10px;
  min-width: 34px;
}

/* Person name: 14px → 18–20px */
.nb-row-name {
  font-size: clamp(28px, 2.1vw, 36px);
}

/* Person country: 9px uppercase → 13px readable */
.nb-row-meta {
  font-size: clamp(16px, 1vw, 18px);
  letter-spacing: 0.04em;
  line-height: 1.45;
  text-transform: none;
  color: rgba(237, 232, 223, 0.55);
  margin-top: 3px;
}

/* Full bio description */
.nb-row-desc {
  font-size: clamp(18px, 1.2vw, 22px);
  color: rgba(237, 232, 223, 0.60);
  line-height: 1.55;
  margin-top: 5px;
}

/* Thumbnail */
.nb-row-thumb {
  width: clamp(52px, 4.5vw, 68px);
  height: clamp(52px, 4.5vw, 68px);
}

/* p01 / p02 assign buttons: 8px → 13px, larger click target */
.nb-assign {
  font-size: clamp(16px, 1vw, 18px);
  letter-spacing: 0.10em;
  min-width: 58px;
  min-height: 42px;
  padding: 8px 12px;
}

/* Row hover: higher contrast */
.nb-row:hover { background: rgba(237, 232, 223, 0.05); }
.nb-row:hover .nb-row-name { color: var(--not-fg); }

/* Selected-person footer: names 13px → 15px */
.nb-rail-name {
  font-size: clamp(22px, 1.5vw, 28px);
  font-style: italic;
}
.nb-rail-label {
  font-size: clamp(14px, 0.9vw, 16px);
}
.nb-rail-empty { font-size: 18px; }

/* "Trace connection" button: 13px → 17px */
.nb-trace {
  font-size: clamp(24px, 1.65vw, 32px);
  padding: 15px 28px;
}

/* ── Path view ─────────────────────────────────────────────────── */
.pv-names   { font-size: clamp(15px, 1.3vw, 19px); }
.pv-caption { font-size: clamp(15px, 1.2vw, 18px); }

.pv-person      { font-size: clamp(13px, 0.90vw, 15px); }
.pv-bridge-name { font-size: clamp(15px, 1.1vw, 17px); }
.pv-ov-caption  { font-size: clamp(13px, 0.90vw, 14px); }

.pv-details      { font-size: clamp(11px, 0.72vw, 12px); line-height: 1.5; }
.pv-step-label   { font-size: clamp(11px, 0.72vw, 12px); }
.pv-people-label { font-size: clamp(11px, 0.72vw, 12px); }
.pv-bridge-label { font-size: clamp(11px, 0.72vw, 12px); }

.pv-btn     { font-size: clamp(11px, 0.75vw, 12px); }
.pv-nav-btn { font-size: clamp(11px, 0.75vw, 12px); min-width: 90px; }

/* ── Terminal / chain result view ──────────────────────────────── */
.term-link-label  { font-size: clamp(11px, 0.72vw, 12px); }
.term-search-label { font-size: clamp(11px, 0.72vw, 12px); }
.term-search-foot {
  font-size: clamp(12px, 0.78vw, 13px);
  letter-spacing: 0.08em;
  text-transform: none;
}
.term-chip {
  font-size: clamp(12px, 0.80vw, 13px);
  letter-spacing: 0.06em;
  padding: 5px 11px;
}
.term-foot-right { font-size: clamp(12px, 0.80vw, 13px); }

/* ── Network graph ─────────────────────────────────────────────── */
.ng-insp-caption   { font-size: clamp(13px, 0.90vw, 15px); }
.ng-insp-via-names { font-size: clamp(14px, 1.05vw, 16px); }

.ng-person-tag {
  font-size: clamp(11px, 0.72vw, 12px);
  letter-spacing: 0.08em;
  padding: 4px 9px;
}

.ng-insp-primary,
.ng-insp-secondary { font-size: clamp(11px, 0.75vw, 12px); padding: 12px; }

.ng-node-enter-btn {
  font-size: clamp(11px, 0.72vw, 12px);
  padding: 5px 13px;
}
.ng-node-via-tip { font-size: clamp(11px, 0.72vw, 12px); }

/* ── Photo detail overlay ──────────────────────────────────────── */
.pdo-year-loc {
  font-size: clamp(11px, 0.72vw, 12px);
  letter-spacing: 0.12em;
}

/* ── Person modal ──────────────────────────────────────────────── */
.pm-name          { font-size: clamp(24px, 2.4vw, 34px); }
.pm-desc          { font-size: clamp(16px, 1.1vw, 18px); }
.pm-col-label     { font-size: clamp(12px, 0.85vw, 14px); }
.pm-photo-caption { font-size: clamp(15px, 1vw, 17px); }
.pm-photo-date    { font-size: clamp(12px, 0.85vw, 14px); }
.pm-coname        { font-size: clamp(16px, 1.05vw, 18px); }
.pm-wiki          { font-size: clamp(12px, 0.85vw, 14px); }
.pm-load-more     { font-size: clamp(12px, 0.85vw, 14px); }

/* ── Footer bar ────────────────────────────────────────────────── */
.not-footer-link,
.not-footer-copy,
.not-footer-sep { font-size: clamp(11px, 0.72vw, 12px); }

/* ── Mobile / tablet: hard floor for functional text ──────────── */
@media (max-width: 768px) {
  .qc-prompt      { font-size: 15px; letter-spacing: 0.03em; }
  .qc-foot        { font-size: 13px; }
  .qc-chip        { font-size: 13px; padding: 7px 14px; }
  .qc-browse-btn  { font-size: 15px; }
  .qc-random-btn  { font-size: 13px; }
  .qc-field-input { font-size: 22px; }
  .nb-row-name    { font-size: 17px; }
  .nb-row-meta    { font-size: 13px; }
  .nb-row-desc    { font-size: 12px; }
  .nb-row-thumb   { width: 44px; height: 44px; }
  .nb-assign      { font-size: 13px; min-height: 36px; }
  .nb-trace       { font-size: 15px; padding: 13px 18px; }
  .nb-search      { font-size: 16px; }
  .nb-select      { font-size: 14px; }
  .nb-alpha-btn   { font-size: 13px; padding: 6px 7px; }
  .pv-person      { font-size: 14px; }
  .ng-insp-caption { font-size: 14px; }
  .proj-cta-label  { font-size: 22px; }
}

/* ── Filmstrip speed slider ─────────────────────────────────────── */
.proj-speed-wrap {
  display: flex;
  align-items: center;
  gap: 7px;
  border-left: 1px solid var(--not-rule);
  padding-left: 12px;
  margin-left: 6px;
}

.proj-speed-label {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--not-fg-fainter);
  min-width: 26px;
  text-align: right;
  transition: color 0.2s;
}

.proj-speed-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 72px;
  height: 2px;
  background: linear-gradient(
    to right,
    var(--not-accent) calc((var(--pct, 33.3%) )),
    var(--not-rule)   calc((var(--pct, 33.3%) ))
  );
  border: none;
  outline: none;
  cursor: pointer;
  border-radius: 0;
}

.proj-speed-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--not-accent);
  box-shadow: 0 0 6px rgba(200, 160, 90, 0.45);
  cursor: pointer;
  transition: transform 0.12s, box-shadow 0.12s;
}
.proj-speed-slider::-webkit-slider-thumb:hover {
  transform: scale(1.3);
  box-shadow: 0 0 10px rgba(200, 160, 90, 0.65);
}

.proj-speed-slider::-moz-range-thumb {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--not-accent);
  border: none;
  box-shadow: 0 0 6px rgba(200, 160, 90, 0.45);
  cursor: pointer;
}
.proj-speed-slider::-moz-range-track {
  height: 2px;
  background: var(--not-rule);
}
.proj-speed-slider::-moz-range-progress {
  height: 2px;
  background: var(--not-accent);
}

/* Focus ring matches site aesthetic */
.proj-speed-slider:focus-visible {
  outline: none;
}
.proj-speed-slider:focus-visible::-webkit-slider-thumb {
  box-shadow: 0 0 0 2px var(--not-accent), 0 0 10px rgba(200, 160, 90, 0.5);
}

/* Highlight label when not at default speed */
.proj-speed-label--active { color: var(--not-accent); }

/* ================================================================
   Homepage Mobile Viewport
   Keep the cinematic landing page, but make the fixed chrome and
   bottom console fit within narrow/tall and narrow/short screens.
   ================================================================ */
@media (max-width: 640px) {
  html, body, #root {
    min-height: 100dvh;
    height: 100dvh;
  }

  .not-header {
    padding: 14px 16px 0;
    align-items: flex-start;
  }
  .not-header-left { gap: 8px; min-width: 0; }
  .not-menu-button {
    display: flex;
    position: relative;
    z-index: 32;
    min-width: 42px;
    min-height: 38px;
  }
  .not-nav {
    position: absolute;
    top: 60px;
    right: 14px;
    display: none;
    width: min(260px, calc(100vw - 28px));
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px;
    background: rgba(10, 9, 8, 0.96);
    border: 1px solid rgba(237, 232, 223, 0.14);
    box-shadow: 0 20px 50px rgba(0,0,0,0.55);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    font-size: 13px;
    letter-spacing: 0.12em;
    z-index: 31;
  }
  .not-nav.not-nav--open {
    display: flex;
  }
  .not-nav a {
    color: var(--not-fg);
    padding: 13px 12px;
    border-bottom: 1px solid rgba(237, 232, 223, 0.07);
  }
  .not-nav a:last-child {
    border-bottom: none;
  }
  .not-nav-divider {
    width: auto;
    height: 1px;
    margin: 5px 0;
    background: var(--not-rule);
  }
  .not-logo-img {
    width: 40px;
    height: 40px;
  }
  .not-wordmark {
    gap: 6px;
    font-size: clamp(17px, 5.1vw, 20px);
    letter-spacing: 0.08em;
    flex-wrap: nowrap;
  }
  .not-word-of {
    font-size: 0.75em;
    letter-spacing: 0.03em;
  }
  .not-subword {
    max-width: 220px;
    font-size: 9px;
    letter-spacing: 0.14em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .projection--stream { --stream-h: 360px; }
  .proj-stream {
    top: 41%;
    left: -38%;
    right: -38%;
    transform: translateY(-50%) scale(0.7);
    transform-origin: center center;
  }
  .proj-stream-mask { width: 18vw; }
  .proj-card-meta {
    font-size: 11px;
    letter-spacing: 0.12em;
  }

  .proj-caption {
    bottom: 292px;
    padding: 0 18px;
  }
  .proj-caption-names {
    font-size: 17px;
    line-height: 1.28;
    margin-bottom: 4px;
  }
  .caption-name--primary { font-size: 1.08em; }
  .caption-name--secondary { font-size: 0.84em; }
  .proj-caption-meta {
    font-size: 11px;
    line-height: 1.35;
    letter-spacing: 0.08em;
  }

  .proj-console {
    bottom: 34px;
    padding: 0 14px 8px;
  }
  .proj-console-frame {
    width: 100%;
  }
  .proj-ambient {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    grid-template-areas: none;
    gap: 10px;
    padding: 12px 0 4px;
  }
  .proj-ambient-tag {
    grid-area: auto;
    max-width: none;
    padding-top: 0;
  }
  .tag-serif {
    font-size: 17px;
    line-height: 1.22;
    margin-bottom: 5px;
  }
  .proj-ambient-tag .tag-serif {
    display: none;
  }
  .tag-sub {
    font-size: 11px;
    line-height: 1.35;
    letter-spacing: 0.12em;
  }
  .proj-ambient-actions {
    grid-area: auto;
    flex-direction: column;
    width: 100%;
    gap: 4px;
    padding-top: 0;
  }
  .proj-cta,
  .proj-cta--primary,
  .proj-cta--network {
    width: 100%;
    min-width: 0;
    padding: 8px 0;
    border-left: none;
    border-top: 1px solid rgba(237, 232, 223, 0.08);
  }
  .proj-cta-kicker {
    font-size: 12px;
    letter-spacing: 0.14em;
  }
  .proj-cta-label {
    width: 100%;
    justify-content: space-between;
    gap: 8px;
    font-size: 24px;
    line-height: 1.05;
  }
  .proj-cta--primary,
  .proj-cta--network,
  .proj-ambient-actions .proj-cta-divider {
    display: none;
  }
  .proj-ambient-meta {
    grid-area: auto;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    width: 100%;
    font-size: 11px;
    letter-spacing: 0.12em;
    padding: 0;
  }
  .proj-archive-stats {
    gap: 1px 7px;
  }
  .proj-speed-wrap {
    margin-left: 0;
    padding-left: 10px;
  }
  .proj-speed-slider { width: 64px; }
  .proj-scroll-hint { display: none; }
  .proj-idle-resume {
    bottom: 238px;
    max-width: calc(100vw - 28px);
    white-space: nowrap;
    font-size: 11px;
    padding: 10px 14px;
  }

  .query-open .proj-console {
    top: 76px;
    bottom: 34px;
    align-items: flex-end;
  }
  .query-open .proj-console-frame {
    max-height: 100%;
  }
  .qc {
    max-height: calc(100dvh - 112px);
    overflow-y: auto;
    padding: 12px 0 8px;
    -webkit-overflow-scrolling: touch;
  }
  .qc-head {
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
  }
  .qc-head-left,
  .qc-close,
  .qc-field-label,
  .qc-via-label {
    font-size: 12px;
    letter-spacing: 0.12em;
  }
  .qc-close {
    padding: 4px 8px;
    flex-shrink: 0;
  }
  .qc-prompt {
    margin-bottom: 14px;
    font-size: 16px;
    line-height: 1.35;
  }
  .qc-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .qc-field {
    padding-bottom: 7px;
  }
  .qc-field-input {
    width: 100%;
    min-width: 0;
    font-size: 26px;
    line-height: 1.15;
  }
  .qc-random-btn {
    font-size: 13px;
    padding-top: 2px;
  }
  .qc-via {
    padding: 0;
  }
  .qc-engage {
    width: 100%;
    justify-content: center;
    padding: 11px 14px;
    font-size: 21px;
  }
  .qc-foot {
    gap: 7px;
    margin-top: 12px;
    padding-top: 10px;
    font-size: 13px;
    line-height: 1.35;
  }
  .qc-foot-label {
    width: 100%;
    font-size: 12px;
  }
  .qc-chip {
    max-width: 100%;
    white-space: normal;
    text-align: left;
    font-size: 13px;
    padding: 7px 10px;
    line-height: 1.25;
  }
  .qc-browse-btn {
    margin-top: 10px;
    padding: 12px 14px;
    font-size: 15px;
    line-height: 1.25;
    letter-spacing: 0.08em;
  }
  .qc-suggest {
    position: fixed;
    left: 14px;
    right: 14px;
    bottom: 36px;
    max-height: min(48dvh, 330px);
  }
  .qc-suggest-row {
    gap: 10px;
    padding: 10px;
    font-size: 15px;
  }
  .qc-suggest-thumb {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
  }
  .qc-suggest-name { font-size: 18px; }
  .qc-suggest-bio { font-size: 13px; }
  .qc-suggest-hint { display: none; }

  .not-footer {
    padding: 8px 12px 10px;
    gap: 7px;
    z-index: 16;
  }
  .not-footer-link,
  .not-footer-copy,
  .not-footer-sep {
    font-size: 10px;
    letter-spacing: 0.08em;
  }
}

@media (max-width: 420px) {
  .not-logo-img { display: none; }
  .not-subword { max-width: 260px; }
  .proj-caption {
    bottom: 278px;
  }
  .proj-caption-names {
    font-size: 16px;
  }
  .proj-console {
    padding-left: 12px;
    padding-right: 12px;
  }
  .proj-cta-label {
    font-size: 23px;
  }
}

@media (max-width: 640px) and (max-height: 720px) {
  .proj-stream {
    top: 38%;
    transform: translateY(-50%) scale(0.62);
  }
  .proj-caption {
    bottom: 236px;
  }
  .proj-caption-meta,
  .tag-sub {
    display: none;
  }
  .proj-ambient {
    gap: 7px;
    padding-top: 9px;
  }
  .tag-serif {
    font-size: 15px;
    margin-bottom: 0;
  }
  .proj-ambient-actions {
    gap: 2px;
  }
  .proj-cta,
  .proj-cta--primary,
  .proj-cta--network {
    padding: 6px 0;
  }
  .proj-cta-kicker {
    font-size: 10px;
  }
  .proj-cta-label {
    font-size: 20px;
  }
  .proj-ambient-meta {
    font-size: 10px;
  }
}
