/* "Uncanny" Theme — 1990s mutant-comic newsprint.
 *
 * A trademark-safe homage built entirely from the generic visual language of
 * comics (halftone, panels, caption boxes, a blue-and-gold palette). No Marvel
 * marks, character names, or "X-Men" strings anywhere (see REDESIGN-PLAN.md
 * Phase 3). Every rule is scoped under `body.theme-uncanny`.
 *
 * Uncanny is the served default, so its display faces (Bangers, Archivo Black) ship
 * in the base Google Fonts <link> alongside Inter + JetBrains Mono.
 */

body.theme-uncanny {
  --paper:   #F7F1E1; /* aged newsprint page                              */
  --ink:     #14142B; /* panel borders & body text                        */
  --navy:    #1B2A5B; /* uniform blue — masthead band, panel fills        */
  --gold:    #FFD91A; /* caption boxes, highlights — fills only           */
  --danger:  #C21E1E; /* alert badges, active states — AA on paper (5.3:1) */
  --cerebro: #6E2E9E; /* visited links, secondary accents                 */
  --panel:   #FFFFFF; /* white panel fills over the halftone page         */
  --ink-70:  #4A4A63; /* muted ink for secondary text (AA on white/paper) */

  color: var(--ink);
  background-color: var(--paper);
  /* Pure-CSS Ben-Day dots — no image asset. */
  background-image: radial-gradient(rgba(27, 42, 91, 0.13) 1.1px, transparent 1.3px);
  background-size: 7px 7px;
  font-family: 'Inter', system-ui, sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

body:not(.theme-uncanny) .uncanny-only { display: none !important; }

/* --- Comic cover chrome (homepage): the masthead band --- */
body.theme-uncanny .comic-masthead {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--navy);
  border: 3px solid var(--ink);
  box-shadow: 6px 6px 0 var(--ink);
  padding: 12px 18px;
  margin: 4px 0 26px;
}
body.theme-uncanny .cm-title {
  flex: 1 1 auto;
  text-align: center;
  font-family: 'Bangers', 'Archivo Black', sans-serif;
  font-size: clamp(1.6rem, 4.5vw, 2.7rem);
  letter-spacing: 2px;
  line-height: 1;
  color: var(--gold);
  -webkit-text-stroke: 1px var(--ink);
}
body.theme-uncanny .cm-price {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Archivo Black', 'Arial Black', sans-serif;
  font-size: 0.78rem;
  color: var(--navy);
  background: var(--gold);
  border: 2px solid var(--ink);
  border-radius: 50%;
}
body.theme-uncanny .cm-issue {
  flex: 0 0 auto;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
}
body.theme-uncanny .cm-stamp {
  position: absolute;
  right: 14px;
  bottom: -13px;
  font-family: 'Archivo Black', 'Arial Black', sans-serif;
  font-size: 0.58rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--danger);
  background: var(--paper);
  border: 2px solid var(--danger);
  padding: 2px 7px;
  transform: rotate(-4deg);
}
@media screen and (max-width: 600px) {
  body.theme-uncanny .cm-price,
  body.theme-uncanny .cm-issue { display: none; }
  body.theme-uncanny .cm-stamp { font-size: 0.5rem; right: 8px; }
  /* Drop the ink outline at the title's smallest size (clamp bottoms out at
     1.6rem here). A 1px stroke is proportionally heaviest on the smallest
     letterforms, where it thickens the gold rather than defining it — the gold
     fill on navy is 9.94:1 on its own and needs no help. */
  body.theme-uncanny .cm-title { -webkit-text-stroke: 0; }
}

/* --- Narration caption: the yellow box a comic uses to set the scene. Occupies
   the slot the retro <marquee> holds in that theme (Phase-3 spec, unshipped). --- */
body.theme-uncanny .comic-caption {
  position: relative;
  display: inline-block;
  max-width: 100%;
  margin: -14px 0 22px;
  padding: 8px 14px;
  background: var(--gold);
  border: 3px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  font-family: 'Archivo Black', 'Arial Black', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  line-height: 1.3;
}
/* Dog-eared corner: a paper fold cut out of the bottom-right. */
body.theme-uncanny .comic-caption::after {
  content: "";
  position: absolute;
  right: -3px;
  bottom: -3px;
  border-width: 0 0 16px 16px;
  border-style: solid;
  border-color: transparent transparent var(--paper) transparent;
  filter: drop-shadow(-2px -2px 0 var(--ink));
}

body.theme-uncanny .container {
  width: 90%;
  max-width: 1120px;
  margin: 32px auto;
  padding: 0 0 40px;
  background: transparent;
  border: none;
}

/* Hide the retro marquee/hr in the comic world (the masthead band leads instead) */
body.theme-uncanny .ticker,
body.theme-uncanny .retro-img,
body.theme-uncanny .hit-counter,
body.theme-uncanny hr {
  display: none;
}

/* ---------------------------------------------------------------- typography */
body.theme-uncanny h1,
body.theme-uncanny h2,
body.theme-uncanny h3 {
  font-family: 'Archivo Black', 'Arial Black', sans-serif;
  color: var(--ink);
  text-align: left;
  line-height: 1.05;
  margin: 34px 0 16px;
  text-transform: uppercase;
}

body.theme-uncanny h1 {
  font-family: 'Bangers', 'Archivo Black', sans-serif;
  font-weight: 400;
  font-size: clamp(3rem, 8vw, 5rem);
  letter-spacing: 2px;
  color: var(--navy);
  -webkit-text-stroke: 1px var(--ink);
  margin: 10px 0 12px;
}

body.theme-uncanny h2 { font-size: 1.7rem; letter-spacing: 0.5px; }
body.theme-uncanny h3 { font-size: 1.15rem; letter-spacing: 0.5px; }

body.theme-uncanny .center { text-align: left; }

body.theme-uncanny .center p {
  max-width: 68ch;
  margin-bottom: 1.2rem;
  font-size: 1.02rem;
}

body.theme-uncanny .disclaimer,
body.theme-uncanny .table-note,
body.theme-uncanny .proj-desc,
body.theme-uncanny .cs-meta {
  font-size: 0.82rem;
  color: var(--ink-70);
}

/* ---------------------------------------------------------------------- links */
body.theme-uncanny a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  background-image: linear-gradient(var(--gold), var(--gold));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 100% 2px; /* ink underline that grows into a highlighter sweep */
  transition: background-size 0.18s ease, color 0.18s ease;
}
body.theme-uncanny a:hover {
  color: var(--ink);
  background-size: 100% 100%;
}
body.theme-uncanny a:visited { color: var(--cerebro); }

/* --------------------------------------------------------------- comic panels */
body.theme-uncanny .projects-section {
  border: 3px solid var(--ink) !important;
  background: var(--panel);
  padding: 18px 20px;
  margin-bottom: 26px;
  box-shadow: 6px 6px 0 var(--ink);
}

/* status "chip" / blink -> ACTIVE stamp */
body.theme-uncanny .blink {
  animation: none;
  display: inline-block;
  font-family: 'Archivo Black', 'Arial Black', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--paper);
  background: var(--danger);
  border: 2px solid var(--ink);
  padding: 1px 7px;
  transform: rotate(-3deg);
}

/* ---------------------------------------------------------------------- table */
body.theme-uncanny table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-top: 16px;
}
body.theme-uncanny th {
  text-align: left;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--paper);
  background: var(--navy);
  border: 2px solid var(--ink);
  padding: 8px 10px;
}
body.theme-uncanny td {
  border-left: 2px solid var(--ink);
  border-right: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  padding: 12px 10px;
  vertical-align: top;
  background: var(--panel);
}
body.theme-uncanny .proj-name {
  display: inline-block;
  font-family: 'Archivo Black', 'Arial Black', sans-serif;
  font-size: 0.98rem;
  background: var(--gold);
  border: 2px solid var(--ink);
  padding: 1px 7px;
  margin-bottom: 4px;
}
/* The name chip is itself the case-study link where one exists. Suppress the
   global highlighter sweep inside the chip (it already has a gold fill) and give
   the hover feedback with the chip's own shadow instead. */
body.theme-uncanny .proj-name a {
  color: var(--ink);
  background-image: none;
  display: block;
  margin: -1px -7px;
  padding: 1px 7px;
  transition: box-shadow 0.12s ease, transform 0.12s ease;
}
body.theme-uncanny .proj-name a:visited { color: var(--ink); }
body.theme-uncanny .proj-name a:hover { box-shadow: 3px 3px 0 var(--danger); transform: translate(-1px, -1px); }
body.theme-uncanny .proj-desc { display: block; margin-top: 4px; line-height: 1.4; }
body.theme-uncanny td.links a { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 0.85rem; }

/* --------------------------------------------------------------------- lists */
body.theme-uncanny ul { list-style: none; padding: 0; }
body.theme-uncanny ul li {
  padding: 9px 0;
  border-bottom: 2px dashed rgba(20, 20, 43, 0.35);
  line-height: 1.5;
}
body.theme-uncanny ul li i { color: var(--ink-70); font-style: normal; font-size: 0.9em; }

/* ------------------------------------------------------------------ accordions */
body.theme-uncanny details.accordion-section summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 30px 0 16px;
}
body.theme-uncanny details.accordion-section summary::-webkit-details-marker { display: none; }
body.theme-uncanny details.accordion-section summary::before { content: none !important; }
body.theme-uncanny details.accordion-section summary h2 { margin: 0; flex-grow: 1; }
body.theme-uncanny details.accordion-section summary::after {
  content: "▼";
  font-size: 1rem;
  color: var(--navy);
  transition: transform 0.3s ease;
}
body.theme-uncanny details[open].accordion-section summary::after { transform: rotate(180deg); }

/* ------------------------------------------------------------------- headshot */
body.theme-uncanny .headshot {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border: 3px solid var(--ink);
  box-shadow: 5px 5px 0 var(--navy);
  margin: 8px 0 16px;
  /* newsprint halftone treatment */
  filter: grayscale(0.4) contrast(1.15);
}

body.theme-uncanny .social-links { display: flex; gap: 14px; margin: 14px 0 30px; }
body.theme-uncanny .social-links a {
  color: var(--paper);
  background: var(--navy);
  border: 2px solid var(--ink);
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
body.theme-uncanny .social-links a:hover { background: var(--danger); }

/* --------------------------------------------------------------- filter chips */
body.theme-uncanny .filter-bar {
  background: transparent;
  border: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}
body.theme-uncanny .filter-btn {
  font-family: 'Archivo Black', 'Arial Black', sans-serif;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--ink);
  background: var(--paper);
  border: 2px solid var(--ink);
  padding: 9px 14px;
  cursor: pointer;
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform 0.1s ease, box-shadow 0.1s ease, background-color 0.15s ease;
}
body.theme-uncanny .filter-btn:hover { background: var(--gold); }
body.theme-uncanny .filter-btn.active {
  background: var(--navy);
  color: var(--paper);
  box-shadow: 3px 3px 0 var(--danger);
}
body.theme-uncanny .filter-btn:active { transform: translate(3px, 3px); box-shadow: none; }

/* --------------------------------------------------------------- theme switcher */
body.theme-uncanny #theme-toggle {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 1000;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Archivo Black', 'Arial Black', sans-serif;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--paper);
  background: var(--danger);
  border: 3px solid var(--ink);
  padding: 9px 14px;
  cursor: pointer;
  box-shadow: 4px 4px 0 var(--ink);
}
body.theme-uncanny #theme-toggle:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
body.theme-uncanny #theme-toggle .tt-caret { font-size: 0.7em; }

body.theme-uncanny .theme-menu {
  position: fixed;
  top: 60px;
  right: 16px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 220px;
  padding: 8px;
  background: var(--paper);
  border: 3px solid var(--ink);
  box-shadow: 6px 6px 0 var(--ink);
}
body.theme-uncanny .theme-menu[hidden] { display: none; }
body.theme-uncanny .theme-menu-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  padding: 8px 10px;
  background: var(--panel);
  border: 2px solid var(--ink);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}
body.theme-uncanny .theme-menu-item .tm-name {
  font-family: 'Archivo Black', 'Arial Black', sans-serif;
  font-size: 0.9rem;
  text-transform: uppercase;
}
body.theme-uncanny .theme-menu-item .tm-hint {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--ink-70);
}
body.theme-uncanny .theme-menu-item:hover { background: var(--gold); }
body.theme-uncanny .theme-menu-item[aria-checked="true"] { background: var(--navy); color: var(--paper); }
body.theme-uncanny .theme-menu-item[aria-checked="true"] .tm-hint { color: var(--gold); }

/* focus visibility */
body.theme-uncanny a:focus-visible,
body.theme-uncanny .filter-btn:focus-visible,
body.theme-uncanny #theme-toggle:focus-visible,
body.theme-uncanny .theme-menu-item:focus-visible,
body.theme-uncanny details.accordion-section summary:focus-visible {
  outline: 3px solid var(--cerebro);
  outline-offset: 2px;
}

/* --------------------------------------------------- case-study screenshots */
body.theme-uncanny .cs-shots-note { font-size: 0.82rem; color: var(--ink-70); margin: 0 0 20px; }
body.theme-uncanny .cs-shots { display: flex; flex-direction: column; gap: 36px; }
body.theme-uncanny .cs-shot { margin: 0; }
body.theme-uncanny .cs-shot-row { display: flex; gap: 18px; align-items: flex-end; flex-wrap: wrap; }
body.theme-uncanny .shot-frame {
  display: block;
  border: 3px solid var(--ink);
  background: var(--panel);
  box-shadow: 5px 5px 0 var(--ink);
}
body.theme-uncanny .shot-frame img { display: block; width: 100%; height: auto; }
body.theme-uncanny .shot-frame.desktop { flex: 1 1 420px; min-width: 0; }
body.theme-uncanny .shot-frame.mobile { flex: 0 0 auto; width: 170px; }
body.theme-uncanny .cs-shot figcaption { margin-top: 12px; font-size: 0.85rem; color: var(--ink-70); }

/* ---------------------------------------------------------------------- mobile */
@media screen and (max-width: 768px) {
  /* Bottom padding clears the fixed toggle and the iPhone home indicator
     (env() needs viewport-fit=cover, which the meta tag now sets). */
  body.theme-uncanny .container { width: 100%; padding: 0 16px calc(96px + env(safe-area-inset-bottom)); box-sizing: border-box; }

  body.theme-uncanny table,
  body.theme-uncanny tbody,
  body.theme-uncanny tr,
  body.theme-uncanny td {
    display: block;
    width: 100%;
    box-sizing: border-box;
  }
  body.theme-uncanny th,
  body.theme-uncanny tr:not(.project-item) { display: none; }
  body.theme-uncanny tr.project-item {
    margin-bottom: 16px;
    border: 3px solid var(--ink);
    background: var(--panel);
    box-shadow: 5px 5px 0 var(--ink);
    padding: 12px;
  }
  body.theme-uncanny td { border: none; padding: 4px 0; overflow-wrap: anywhere; }
  body.theme-uncanny td.links { display: block; }
  body.theme-uncanny td:nth-child(3) { display: inline; padding: 0; font-size: 0.85rem; color: var(--ink-70); }

  /* Dive in | Website | Code sat at default inline sizing here — under 44px on
     touch. Pad them out (Clean already did this). */
  body.theme-uncanny td.links a { display: inline-block; padding: 8px 8px; }
  body.theme-uncanny td.links a:first-child { padding-left: 0; }
  /* Grow the name chip itself to a 44px tap target; the link fills it exactly. */
  body.theme-uncanny .proj-name { padding: 10px 12px; }
  body.theme-uncanny .proj-name a { margin: -10px -12px; padding: 10px 12px; }

  body.theme-uncanny #theme-toggle { top: auto; bottom: calc(16px + env(safe-area-inset-bottom)); right: 16px; padding: 12px 18px; }
  body.theme-uncanny .theme-menu { top: auto; bottom: calc(66px + env(safe-area-inset-bottom)); right: 16px; left: 16px; min-width: 0; }

  body.theme-uncanny .cs-shot-row { gap: 14px; }
  body.theme-uncanny .shot-frame.desktop { flex-basis: 100%; }
  body.theme-uncanny .shot-frame.mobile { width: 160px; }
}

@media (prefers-reduced-motion: reduce) {
  body.theme-uncanny * { transition: none !important; }
  /* No tilted panels and no popping speech bubble when motion is unwelcome. */
  body.theme-uncanny .feat-item { transform: none !important; }
  body.theme-uncanny .identity::after { display: none; }
}

/* ==========================================================================
   Clean-v2 structural elements, rendered in comic flavor (uncanny).
   ========================================================================== */
body.theme-uncanny .hero { margin-top: 4px; }
body.theme-uncanny .identity { position: relative; display: flex; align-items: center; gap: 16px; margin-bottom: 12px; }
/* Speech bubble on headshot hover. :has() scopes the trigger to the photo
   itself rather than the whole identity block. */
body.theme-uncanny .identity::after {
  content: "POW!";
  position: absolute;
  left: 74px;
  top: -6px;
  z-index: 2;
  padding: 5px 10px;
  background: var(--panel);
  border: 3px solid var(--ink);
  border-radius: 14px;
  box-shadow: 3px 3px 0 var(--ink);
  font-family: 'Bangers', 'Archivo Black', sans-serif;
  font-size: 0.95rem;
  letter-spacing: 1px;
  color: var(--danger);
  opacity: 0;
  transform: scale(0.7) translateY(6px);
  transform-origin: bottom left;
  transition: opacity 0.14s ease, transform 0.14s ease;
  pointer-events: none;
}
body.theme-uncanny .identity:has(.headshot:hover)::after {
  opacity: 1;
  transform: scale(1) translateY(0);
}
body.theme-uncanny .identity .headshot { margin: 0; width: 92px; height: 92px; }
body.theme-uncanny .identity-text h1 { margin: 0; }
body.theme-uncanny .kicker {
  display: inline-block;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
  background: var(--gold);
  border: 2px solid var(--ink);
  padding: 1px 6px;
  margin: 0 0 8px;
}
body.theme-uncanny .hero-main > p { max-width: 88ch; }

/* Featured work — comic-panel accordion */
body.theme-uncanny .featured { margin: 12px 0 8px; }
body.theme-uncanny .feat-accordion { display: flex; flex-direction: column; gap: 12px; }
body.theme-uncanny .feat-item {
  border: 3px solid var(--ink);
  background: var(--panel);
  box-shadow: 5px 5px 0 var(--ink);
}
body.theme-uncanny .feat-item[open] { box-shadow: 6px 6px 0 var(--danger); }
/* Alternating panel rotation (Phase-3 spec, unshipped): the flat grid was the
   one place this still read "website" rather than "comic page". Sub-degree, so
   nothing overflows; straightened on hover/open and under reduced motion. */
body.theme-uncanny .feat-item:nth-child(odd)  { transform: rotate(-0.4deg); }
body.theme-uncanny .feat-item:nth-child(even) { transform: rotate(0.4deg); }
body.theme-uncanny .feat-item:hover,
body.theme-uncanny .feat-item[open] { transform: rotate(0deg); }
body.theme-uncanny .feat-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
}
body.theme-uncanny .feat-item summary::-webkit-details-marker { display: none; }
body.theme-uncanny .feat-heading { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
body.theme-uncanny .feat-name {
  font-family: 'Archivo Black', 'Arial Black', sans-serif;
  text-transform: uppercase;
  font-size: 0.98rem;
  color: var(--navy);
  line-height: 1.1;
}
body.theme-uncanny .feat-q { font-size: 0.82rem; color: var(--ink-70); line-height: 1.35; }
body.theme-uncanny .feat-item summary::after {
  content: "▼";
  flex: 0 0 auto;
  color: var(--navy);
  transition: transform 0.3s ease;
}
body.theme-uncanny .feat-item[open] summary::after { transform: rotate(180deg); }
body.theme-uncanny .feat-panel { padding: 0 14px 14px; }
body.theme-uncanny .feat-shot { display: block; border: 3px solid var(--ink); }
body.theme-uncanny .feat-shot img { display: block; width: 100%; height: auto; }
body.theme-uncanny .feat-links {
  margin: 14px 0 0;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.8rem;
  color: var(--ink-70);
}

body.theme-uncanny .proj-thumb {
  float: left;
  width: 72px;
  height: 54px;
  margin: 2px 12px 2px 0;
  overflow: hidden;
  border: 2px solid var(--ink);
  background: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
}
body.theme-uncanny .proj-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
body.theme-uncanny .proj-thumb[data-initial]::after {
  content: attr(data-initial);
  font-family: 'Archivo Black', 'Arial Black', sans-serif;
  color: var(--navy);
}
body.theme-uncanny .proj-text { display: block; overflow: hidden; }

body.theme-uncanny .site-footer {
  margin-top: 32px;
  padding-top: 18px;
  border-top: 3px solid var(--ink);
  color: var(--ink-70);
}
body.theme-uncanny .colophon {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.72rem;
  margin: 0 0 10px;
  color: var(--ink-70);
}
body.theme-uncanny .footer-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; font-size: 0.82rem; }
body.theme-uncanny .footer-links { display: flex; gap: 16px; flex-wrap: wrap; }
body.theme-uncanny .site-footer a, body.theme-uncanny .footer-links a { color: var(--navy); }
body.theme-uncanny .footer-thanks {
  font-family: 'Bangers', 'Archivo Black', sans-serif;
  font-size: 1.15rem;
  letter-spacing: 1px;
  color: var(--navy);
  margin: 8px 0 0;
}

@media screen and (max-width: 768px) {
  body.theme-uncanny .identity .headshot { width: 72px; height: 72px; }
  body.theme-uncanny .footer-meta { flex-direction: column; }
}

/* --- Case-study prose measure + prev/next ring (uncanny) --- */
body.theme-uncanny .projects-section p { max-width: 72ch; }
body.theme-uncanny .cs-kicker { margin: 8px 0 6px; }

/* --- Case-study v3: at-a-glance strip, question lead, related links --- */
body.theme-uncanny .cs-tagline {
  font-family: 'Archivo Black', 'Arial Black', sans-serif;
  font-size: 1.05rem;
  line-height: 1.3;
  color: var(--navy);
  margin: 4px 0 18px;
  max-width: 56ch;
}
/* The glance strip is a comic panel: white fill, ink border, hard offset shadow. */
body.theme-uncanny .cs-glance {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 8px 18px;
  max-width: 780px;
  margin: 0;
  padding: 16px 18px;
  background: var(--panel);
  border: 3px solid var(--ink);
  box-shadow: 6px 6px 0 var(--ink);
  font-size: 0.9rem;
  line-height: 1.5;
}
body.theme-uncanny .cs-glance > div { display: contents; }
body.theme-uncanny .cs-glance dt {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy);
  background: var(--gold);
  border: 2px solid var(--ink);
  padding: 1px 6px;
  align-self: start;
  justify-self: start;
}
body.theme-uncanny .cs-glance dd { margin: 0; color: var(--ink); }

body.theme-uncanny .cs-question {
  font-family: 'Archivo Black', 'Arial Black', sans-serif;
  font-size: 1rem;
  line-height: 1.35;
  color: var(--ink);
  background: var(--gold);
  border: 3px solid var(--ink);
  padding: 10px 14px;
  margin: 0 0 18px;
  max-width: 68ch;
}

body.theme-uncanny .cs-related {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.78rem;
  color: var(--ink-70);
  margin: 26px 0 0;
}

body.theme-uncanny .cs-shots-title {
  font-family: 'Archivo Black', 'Arial Black', sans-serif;
  font-size: 1.7rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  line-height: 1.05;
  color: var(--ink);
  flex-grow: 1;
}
@media screen and (max-width: 768px) {
  body.theme-uncanny .cs-glance { grid-template-columns: 1fr; gap: 2px 0; }
  body.theme-uncanny .cs-glance dd { margin-bottom: 10px; }
  body.theme-uncanny .cs-shots-title { font-size: 1.35rem; }
}
body.theme-uncanny .cs-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 24px 0; }
body.theme-uncanny .cs-nav-link {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  background: var(--panel);
  background-image: none;
  border: 3px solid var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
  color: var(--ink);
  text-decoration: none;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
body.theme-uncanny .cs-nav-link:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--danger); }
body.theme-uncanny .cs-nav-next { text-align: right; align-items: flex-end; }
body.theme-uncanny .cs-nav-dir {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--danger);
}
body.theme-uncanny .cs-nav-title { font-family: 'Archivo Black', 'Arial Black', sans-serif; text-transform: uppercase; font-size: 0.9rem; color: var(--navy); }
@media screen and (max-width: 560px) {
  body.theme-uncanny .cs-nav { grid-template-columns: 1fr; }
  body.theme-uncanny .cs-nav-next { text-align: left; align-items: flex-start; }
}

/* --- Section tabs (uncanny) --- */
body.theme-uncanny .tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 20px; }
body.theme-uncanny .tab {
  font-family: 'Archivo Black', 'Arial Black', sans-serif;
  text-transform: uppercase;
  font-size: 0.82rem;
  letter-spacing: 0.5px;
  color: var(--ink);
  background: var(--paper);
  border: 3px solid var(--ink);
  padding: 9px 15px;
  cursor: pointer;
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform 0.1s ease, box-shadow 0.1s ease, background-color 0.15s ease;
}
body.theme-uncanny .tab:hover { background: var(--gold); }
body.theme-uncanny .tab[aria-selected="true"] { background: var(--navy); color: var(--paper); box-shadow: 3px 3px 0 var(--danger); }
body.theme-uncanny .tab:active { transform: translate(3px, 3px); box-shadow: none; }
body.theme-uncanny .tab:focus-visible { outline: 3px solid var(--cerebro); outline-offset: 2px; }
