/* Noir Detective File — antjanus.com redesign 099 */

:root {
  --desk: #e4ddcc;
  --desk-2: #d8cfba;
  --folder: #dcc48e;
  --folder-edge: #c2a66a;
  --sheet: #f7f2e5;
  --sheet-2: #efe8d6;
  --ink: #1b1916;
  --ink-2: #3a352e;
  --muted: #564e42;
  --rule: #b9ad94;
  --stamp: #9e1f17;
  --stamp-soft: rgba(158, 31, 23, 0.1);
  --carbon: #364f6a;
  --redact: #121110;
  --evidence-bg: #151412;
  --evidence-ink: #e9e3d4;
  --evidence-dim: #a9a190;
  --evidence-rule: #34312b;
  --blind: rgba(0, 0, 0, 0.42);
  --shadow: 0 1px 0 rgba(0, 0, 0, 0.05), 0 10px 24px -12px rgba(40, 30, 10, 0.45);
  --focus: #9e1f17;
  --lamp: radial-gradient(ellipse 80% 55% at 50% -10%, rgba(255, 250, 235, 0.85), transparent 70%);

  --font-type: "Special Elite", "Courier New", monospace;
  --font-body: "Courier Prime", "Courier New", monospace;
  --font-title: "Big Shoulders Display", "Oswald", Impact, sans-serif;

  --measure: 68ch;
  --radius: 2px;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --desk: #0b0b0c;
  --desk-2: #121214;
  --folder: #24221d;
  --folder-edge: #3b3730;
  --sheet: #1a1917;
  --sheet-2: #211f1c;
  --ink: #ece6d8;
  --ink-2: #d6cfbf;
  --muted: #b3ab9b;
  --rule: #45403a;
  --stamp: #ff7a6b;
  --stamp-soft: rgba(255, 122, 107, 0.12);
  --carbon: #a4c0e2;
  --redact: #000;
  --evidence-bg: #0e0e0f;
  --blind: rgba(0, 0, 0, 0.55);
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.03), 0 18px 40px -18px rgba(0, 0, 0, 0.9);
  --focus: #ff7a6b;
  --lamp: radial-gradient(ellipse 70% 50% at 50% -8%, rgba(255, 226, 170, 0.13), transparent 70%);
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --desk: #0b0b0c;
    --desk-2: #121214;
    --folder: #24221d;
    --folder-edge: #3b3730;
    --sheet: #1a1917;
    --sheet-2: #211f1c;
    --ink: #ece6d8;
    --ink-2: #d6cfbf;
    --muted: #b3ab9b;
    --rule: #45403a;
    --stamp: #ff7a6b;
    --stamp-soft: rgba(255, 122, 107, 0.12);
    --carbon: #a4c0e2;
    --redact: #000;
    --evidence-bg: #0e0e0f;
    --blind: rgba(0, 0, 0, 0.55);
    --shadow: 0 1px 0 rgba(255, 255, 255, 0.03), 0 18px 40px -18px rgba(0, 0, 0, 0.9);
    --focus: #ff7a6b;
    --lamp: radial-gradient(ellipse 70% 50% at 50% -8%, rgba(255, 226, 170, 0.13), transparent 70%);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5rem; }

body {
  margin: 0;
  background: var(--lamp), var(--desk);
  background-attachment: fixed;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--carbon); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--stamp); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
button { font: inherit; color: inherit; }

.skip {
  position: absolute; left: -999px; top: 0.5rem; z-index: 100;
  background: var(--ink); color: var(--sheet); padding: 0.6rem 1rem;
}
.skip:focus { left: 0.5rem; }

.wrap { width: min(1240px, 100% - 2rem); margin-inline: auto; }

/* ---------- typographic atoms ---------- */
.label {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.type { font-family: var(--font-type); font-weight: 400; }
.title {
  font-family: var(--font-title);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 0.92;
}
h1, h2, h3 { margin: 0; color: var(--ink); }
h2.section-title {
  font-family: var(--font-title);
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
}
.muted { color: var(--muted); }

/* ---------- stamp ---------- */
.stamp {
  display: inline-block;
  font-family: var(--font-type);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.875rem;
  color: var(--stamp);
  border: 2px solid currentColor;
  padding: 0.15rem 0.55rem;
  border-radius: 3px;
  transform: rotate(-4deg);
  mix-blend-mode: multiply;
  line-height: 1.4;
  white-space: nowrap;
}
:root[data-theme="dark"] .stamp { mix-blend-mode: normal; }
.stamp.big { font-size: 1.25rem; border-width: 3px; padding: 0.2rem 0.8rem; }
.stamp.flat { transform: none; }
.stamp.ink { color: var(--ink-2); }

/* ---------- redaction ---------- */
.redact {
  background: var(--redact);
  color: transparent;
  border-radius: 1px;
  user-select: none;
  padding: 0 0.1em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
:root[data-theme="dark"] .redact { outline: 1px solid #3a3630; }
.bar {
  display: inline-block;
  height: 0.9em;
  background: var(--redact);
  vertical-align: -0.08em;
  border-radius: 1px;
}
:root[data-theme="dark"] .bar { background: #3a3630; }
.declassify { position: relative; white-space: nowrap; }
.declassify::after {
  content: "";
  position: absolute; inset: 0.08em -0.08em 0.02em;
  background: var(--redact);
  transform-origin: right center;
  animation: lift 900ms 700ms cubic-bezier(.7, 0, .3, 1) forwards;
}
:root[data-theme="dark"] .declassify::after { background: #e9e3d4; }
@keyframes lift { to { transform: scaleX(0); } }

/* ---------- header / nav ---------- */
.precinct {
  background: var(--ink);
  color: var(--sheet);
  font-size: 0.8125rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
}
:root[data-theme="dark"] .precinct { background: #000; color: #cfc7b6; }
.precinct .wrap { display: flex; justify-content: space-between; gap: 1rem; padding: 0.4rem 0; }
.precinct .hide-sm { opacity: 0.85; }

.masthead { padding: 1.25rem 0 0; }
.masthead .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 0.85rem; text-decoration: none; color: var(--ink); }
.brand svg { flex: none; }
.brand-words { display: flex; flex-direction: column; line-height: 1; }
.brand-words small { font-family: var(--font-body); font-weight: 700; font-size: 0.8125rem; letter-spacing: 0.22em; color: var(--muted); }
.brand-words strong { font-family: var(--font-title); font-weight: 800; font-size: 1.9rem; letter-spacing: 0.02em; text-transform: uppercase; }

.tools { display: flex; align-items: center; gap: 0.6rem; }
.search {
  display: flex; align-items: stretch;
  border: 1.5px solid var(--ink);
  background: var(--sheet);
}
.search input {
  font: inherit; font-size: 0.9375rem; border: 0; background: transparent; color: var(--ink);
  padding: 0.5rem 0.7rem; width: 12rem; min-height: 44px;
}
.search input::placeholder { color: var(--muted); opacity: 1; }
.search button {
  border: 0; border-left: 1.5px solid var(--ink); background: var(--ink); color: var(--sheet);
  font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.8125rem; padding: 0 0.9rem; cursor: pointer;
}
.lamp-toggle, .menu-toggle {
  min-height: 44px; min-width: 44px;
  border: 1.5px solid var(--ink); background: var(--sheet); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem;
  font-weight: 700; font-size: 0.8125rem; letter-spacing: 0.1em; text-transform: uppercase; padding: 0 0.75rem;
}
.lamp-toggle:hover, .menu-toggle:hover { background: var(--ink); color: var(--sheet); }
.menu-toggle { display: none; }

.tabs {
  display: flex; align-items: flex-end; gap: 0.35rem;
  margin-top: 1.4rem; padding-left: 0.5rem;
  list-style: none; margin-bottom: 0;
}
.tabs li { display: flex; }
.tabs a {
  display: block;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--font-type);
  font-size: 1.0625rem;
  padding: 0.55rem 1.2rem 0.45rem;
  background: var(--desk-2);
  border: 1px solid var(--folder-edge);
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  position: relative;
  top: 1px;
  transition: background 150ms, transform 150ms;
}
.tabs a:hover { background: var(--folder); transform: translateY(-3px); color: var(--ink); }
.tabs a[aria-current="page"] { background: var(--folder); font-weight: 700; padding-bottom: 0.7rem; }
.tabs a[aria-current="page"]::before {
  content: ""; position: absolute; left: 0.9rem; right: 0.9rem; top: 0.3rem; height: 2px; background: var(--stamp);
}
.tabs .tab-ai a { background: var(--ink); color: var(--sheet); border-color: var(--ink); }
.tabs .tab-ai a:hover, .tabs .tab-ai a[aria-current="page"] { background: var(--stamp); border-color: var(--stamp); color: #fff; }
:root[data-theme="dark"] .tabs .tab-ai a:hover, :root[data-theme="dark"] .tabs .tab-ai a[aria-current="page"] { color: #120a08; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tabs .tab-ai a:hover, :root:not([data-theme="light"]) .tabs .tab-ai a[aria-current="page"] { color: #120a08; } }

/* ---------- folder shell ---------- */
.folder {
  background: var(--folder);
  border-top: 1px solid var(--folder-edge);
  box-shadow: var(--shadow);
  padding: clamp(1rem, 3vw, 2.5rem) 0 clamp(2rem, 4vw, 4rem);
  position: relative;
}
.folder::before {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.8;
}
.folder > * { position: relative; }

.sheet {
  background: var(--sheet);
  color: var(--ink);
  box-shadow: var(--shadow);
  padding: clamp(1.25rem, 3vw, 2.75rem);
  position: relative;
}
.sheet + .sheet { margin-top: 2rem; }
.sheet.ruled { background-image: repeating-linear-gradient(to bottom, transparent 0 calc(1.65em - 1px), color-mix(in srgb, var(--carbon) 14%, transparent) calc(1.65em - 1px) 1.65em); }

.clip {
  position: absolute; top: -18px; width: 22px; height: 58px;
  border: 3px solid #8b8f93; border-radius: 12px; border-bottom-color: #6d7175;
  z-index: 3;
}
.clip::after { content: ""; position: absolute; inset: 6px 3px 10px; border: 3px solid #9fa3a7; border-radius: 8px; border-top: 0; }

.section { margin-top: clamp(2.5rem, 6vw, 4.5rem); }
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap;
  border-bottom: 3px double var(--ink);
  padding-bottom: 0.75rem; margin-bottom: 1.5rem;
}
.section-head p { margin: 0.35rem 0 0; color: var(--ink-2); }
.section-head .more { font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.9375rem; white-space: nowrap; }
.eyebrow { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 0.35rem; }
.eyebrow::before { content: ""; width: 2.2rem; height: 3px; background: var(--stamp); }

/* ---------- photos: B&W with venetian blinds ---------- */
.photo { position: relative; overflow: hidden; background: #2a2825; }
.photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.18) brightness(0.95); }
.photo.blinds::after {
  content: ""; position: absolute; inset: -20%;
  background: repeating-linear-gradient(172deg, transparent 0 26px, var(--blind) 26px 44px);
  pointer-events: none;
  mix-blend-mode: multiply;
}
.photo.polaroid { background: #fff; padding: 0.7rem 0.7rem 2.6rem; box-shadow: var(--shadow); }
:root[data-theme="dark"] .photo.polaroid { background: #d9d3c4; }
.photo.polaroid .cap {
  position: absolute; left: 0; right: 0; bottom: 0.55rem; text-align: center;
  font-family: var(--font-type); color: #1b1916; font-size: 0.9375rem;
}
.photo .placeholder-lines {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: repeating-linear-gradient(135deg, #2b2926 0 12px, #23211f 12px 24px);
  color: #cfc7b6; font-family: var(--font-type); font-size: 1rem; text-align: center; padding: 1rem;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 48px; padding: 0.6rem 1.3rem;
  font-family: var(--font-body); font-weight: 700; font-size: 0.9375rem;
  letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none;
  border: 2px solid var(--ink); background: var(--ink); color: var(--sheet); cursor: pointer;
  box-shadow: 4px 4px 0 var(--stamp);
  transition: transform 150ms, box-shadow 150ms;
}
.btn:hover { color: var(--sheet); transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--stamp); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--stamp); }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: none; }
.btn.ghost:hover { background: var(--ink); color: var(--sheet); }
.link-under { font-weight: 700; color: var(--ink); text-decoration: underline; text-decoration-color: var(--stamp); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.link-quiet { color: var(--muted); font-weight: 700; text-decoration: none; }
.link-quiet:hover { text-decoration: underline; }

/* ---------- dossier (subject profile) ---------- */
.dossier { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.dossier .mug { transform: rotate(-2deg); margin-top: 1rem; }
.dossier .mug .photo-frame { aspect-ratio: 4 / 5; }
.fields { display: grid; grid-template-columns: max-content 1fr; gap: 0.25rem 1.1rem; margin: 0 0 1.5rem; font-size: 1rem; }
.fields dt { font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.8125rem; color: var(--muted); padding-top: 0.2rem; }
.fields dd { margin: 0; border-bottom: 1px dotted var(--rule); padding-bottom: 0.15rem; }
.statement { font-family: var(--font-type); font-size: clamp(2rem, 5vw, 3.6rem); line-height: 1.08; margin: 0.3rem 0 1.1rem; }
.lede { font-size: 1.1875rem; line-height: 1.6; color: var(--ink-2); max-width: 58ch; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.6rem; margin-top: 1.6rem; }
.case-no { font-family: var(--font-title); font-weight: 800; font-size: clamp(3.5rem, 9vw, 7rem); line-height: 0.8; color: transparent; -webkit-text-stroke: 1.5px var(--ink); opacity: 0.35; }

.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--ink); border: 1px solid var(--ink); margin-top: 1.5rem; }
.facts div { background: var(--sheet); padding: 0.8rem 1rem; }
.facts strong { display: block; font-family: var(--font-title); font-weight: 800; font-size: 2.4rem; line-height: 1; }
.facts span { font-size: 0.875rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 700; color: var(--muted); }

/* ---------- case cards ---------- */
.cases { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr)); gap: 2rem 1.5rem; }
.case {
  background: var(--sheet); box-shadow: var(--shadow);
  display: flex; flex-direction: column; position: relative;
  transition: transform 150ms;
}
.case:nth-child(3n+1) { transform: rotate(-0.6deg); }
.case:nth-child(3n+2) { transform: rotate(0.5deg); }
.case:hover, .case:focus-within { transform: rotate(0) translateY(-4px); }
.case .photo { aspect-ratio: 16 / 9; border-bottom: 1px solid var(--rule); }
.case .body { padding: 1rem 1.2rem 1.25rem; display: flex; flex-direction: column; gap: 0.55rem; flex: 1; }
.case .meta { display: flex; justify-content: space-between; gap: 0.5rem; flex-wrap: wrap; font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.case h3 { font-family: var(--font-type); font-size: 1.3rem; line-height: 1.25; }
.case h3 a { color: var(--ink); text-decoration: none; }
.case h3 a::after { content: ""; position: absolute; inset: 0; }
.case h3 a:hover { text-decoration: underline; text-decoration-color: var(--stamp); }
.case p { margin: 0; color: var(--ink-2); font-size: 1rem; }
.case .stamp { position: absolute; top: 0.8rem; right: 0.8rem; background: var(--sheet); }
.case .tagline { margin-top: auto; padding-top: 0.4rem; font-size: 0.875rem; color: var(--muted); }
.case.no-photo .body { padding-top: 1.4rem; border-top: 8px solid var(--ink); }

.cases.four { grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr)); }

/* ---------- ledger (list rows) ---------- */
.ledger { width: 100%; border-collapse: collapse; font-size: 1rem; }
.ledger th { text-align: left; font-size: 0.8125rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); border-bottom: 2px solid var(--ink); padding: 0.5rem 0.6rem; }
.ledger td { border-bottom: 1px dashed var(--rule); padding: 0.85rem 0.6rem; vertical-align: top; }
.ledger td.no { font-weight: 700; white-space: nowrap; color: var(--stamp); }
.ledger td.date { white-space: nowrap; color: var(--muted); }
.ledger a.t { font-family: var(--font-type); font-size: 1.15rem; color: var(--ink); text-decoration: none; }
.ledger a.t:hover { text-decoration: underline; text-decoration-color: var(--stamp); }
.ledger .d { display: block; color: var(--ink-2); margin-top: 0.2rem; }
.ledger tr[hidden] { display: none; }

.chip {
  display: inline-block; font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.06em; text-transform: lowercase;
  border: 1px solid var(--rule); padding: 0.05rem 0.45rem; color: var(--ink-2); background: var(--sheet-2); text-decoration: none;
}
a.chip:hover { border-color: var(--stamp); color: var(--stamp); }
.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }

/* filter row as file tabs */
.filterbar { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 1.25rem; }
.filterbar button {
  min-height: 44px; padding: 0.35rem 0.95rem; cursor: pointer;
  border: 1.5px solid var(--ink); background: var(--sheet);
  font-weight: 700; font-size: 0.875rem; letter-spacing: 0.08em; text-transform: uppercase;
}
.filterbar button:hover { background: var(--sheet-2); }
.filterbar button[aria-pressed="true"] { background: var(--ink); color: var(--sheet); }
.filterbar button[aria-pressed="true"]::before { content: "✓ "; }

/* ---------- two-up discovery ---------- */
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.index-card {
  background: var(--sheet); box-shadow: var(--shadow); padding: 1.25rem 1.4rem;
  background-image: linear-gradient(to bottom, transparent 2.9rem, var(--stamp) 2.9rem, var(--stamp) calc(2.9rem + 1px), transparent calc(2.9rem + 1px)),
    repeating-linear-gradient(to bottom, transparent 0 calc(1.8rem - 1px), color-mix(in srgb, var(--carbon) 18%, transparent) calc(1.8rem - 1px) 1.8rem);
  background-position: 0 0, 0 3.1rem;
  background-repeat: no-repeat, repeat;
  background-size: 100% 100%, 100% calc(100% - 3.1rem);
}
.index-card h3 { font-family: var(--font-type); font-size: 1.3rem; line-height: 1.8rem; margin-bottom: 0.9rem; }
.index-card ul { list-style: none; padding: 0; margin: 0; }
.index-card li { line-height: 1.8rem; }
.index-card li + li { margin-top: 0; }

/* ---------- leads (icon cards) ---------- */
.leads { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }
.lead { background: var(--sheet); padding: 1.2rem; border-top: 6px solid var(--ink); box-shadow: var(--shadow); position: relative; display: flex; flex-direction: column; gap: 0.5rem; }
.lead h3 { font-family: var(--font-type); font-size: 1.2rem; }
.lead h3 a { color: var(--ink); text-decoration: none; }
.lead h3 a::after { content: ""; position: absolute; inset: 0; }
.lead h3 a:hover { text-decoration: underline; }
.lead p { margin: 0; color: var(--ink-2); font-size: 1rem; }
.lead .label { color: var(--stamp); }
.lead .tech { margin-top: auto; font-size: 0.875rem; color: var(--muted); }

/* ---------- classified ad / for hire ---------- */
.hire {
  background: var(--ink); color: var(--sheet); padding: clamp(1.5rem, 4vw, 2.5rem);
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1.5rem 2rem;
  box-shadow: var(--shadow);
}
:root[data-theme="dark"] .hire { background: #ece6d8; color: #16140f; }
.hire .title { font-size: clamp(2.2rem, 5vw, 3.5rem); }
.hire p { margin: 0; font-size: 1.125rem; max-width: 52ch; }
.hire .btn { background: var(--sheet); color: var(--ink); border-color: var(--sheet); }
.hire .btn:hover { color: var(--ink); }
:root[data-theme="dark"] .hire .btn { background: #16140f; color: #ece6d8; border-color: #16140f; }

/* ---------- footer ---------- */
.site-footer { padding: 3rem 0 2rem; color: var(--ink); }
.eof { display: flex; align-items: center; gap: 1rem; font-weight: 700; letter-spacing: 0.3em; text-transform: uppercase; font-size: 0.875rem; color: var(--muted); margin-bottom: 2.5rem; }
.eof::before, .eof::after { content: ""; flex: 1; height: 0; border-top: 3px double var(--rule); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.5fr; gap: 2rem; }
.foot-grid h2 { font-size: 0.8125rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.8rem; font-family: var(--font-body); }
.foot-grid ul { list-style: none; padding: 0; margin: 0; }
.foot-grid li { margin-bottom: 0.3rem; }
.foot-grid a { color: var(--ink); text-decoration: none; }
.foot-grid a:hover { text-decoration: underline; color: var(--stamp); }
.foot-grid p { margin: 0.6rem 0 0; color: var(--ink-2); }
.wire { display: flex; border: 1.5px solid var(--ink); background: var(--sheet); margin-top: 0.75rem; }
.wire input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; color: var(--ink); padding: 0.6rem 0.75rem; min-height: 46px; }
.wire input::placeholder { color: var(--muted); opacity: 1; }
.wire button { border: 0; background: var(--ink); color: var(--sheet); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; font-size: 0.8125rem; padding: 0 1rem; cursor: pointer; }
.wire button:hover { background: var(--stamp); }
.form-note { font-size: 0.9375rem; color: var(--muted); min-height: 1.5em; margin-top: 0.5rem; }
.copyright { margin-top: 2.5rem; padding-top: 1rem; border-top: 1px solid var(--rule); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: 0.875rem; color: var(--muted); }

/* ---------- page header (folder label) ---------- */
.file-label {
  display: grid; grid-template-columns: 1fr auto; gap: 1rem 2rem; align-items: end;
  margin-bottom: clamp(1.5rem, 4vw, 2.75rem);
}
.file-label .title { font-size: clamp(3rem, 10vw, 7.5rem); }
.file-label p { margin: 0.9rem 0 0; font-size: 1.1875rem; max-width: 60ch; color: var(--ink-2); }
.file-label .docket { text-align: right; font-size: 0.875rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); line-height: 1.8; }
.file-label .docket .stamp { margin-bottom: 0.6rem; }

.jump { position: sticky; top: 0; z-index: 20; background: var(--folder); border-bottom: 1px solid var(--folder-edge); padding: 0.6rem 0; margin-bottom: 1rem; }
.jump nav { display: flex; gap: 0.4rem 1.2rem; flex-wrap: wrap; align-items: center; }
.jump a { font-weight: 700; color: var(--ink); text-decoration: none; font-size: 0.9375rem; padding: 0.35rem 0; }
.jump a:hover { color: var(--stamp); text-decoration: underline; }

/* ---------- exhibits (projects) ---------- */
.exhibit { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.25rem, 3vw, 2.5rem); align-items: center; }
.exhibit + .exhibit { margin-top: 2.5rem; }
.exhibit:nth-child(even) .photo-wrap { order: 2; }
.exhibit .photo { aspect-ratio: 16 / 10; }
.exhibit h3 { font-family: var(--font-type); font-size: 1.7rem; line-height: 1.2; }
.exhibit p { color: var(--ink-2); }
.tag-label {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--folder); color: #1b1916; font-weight: 700; font-size: 0.8125rem; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 0.25rem 0.7rem 0.25rem 1.3rem; position: relative;
  clip-path: polygon(0.7rem 0, 100% 0, 100% 100%, 0.7rem 100%, 0 50%);
}
:root[data-theme="dark"] .tag-label { background: #cdb57f; }
.tag-label::before { content: ""; position: absolute; left: 0.55rem; width: 6px; height: 6px; border-radius: 50%; background: var(--sheet); }
.stats-mini { display: flex; gap: 1.5rem; flex-wrap: wrap; margin-top: 0.8rem; }
.stats-mini div strong { display: block; font-family: var(--font-title); font-weight: 800; font-size: 2rem; line-height: 1; }
.stats-mini div span { font-size: 0.8125rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 700; color: var(--muted); }

.featured-exhibit { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 0; background: var(--ink); color: var(--sheet); box-shadow: var(--shadow); }
:root[data-theme="dark"] .featured-exhibit { background: #000; border: 1px solid var(--rule); }
.featured-exhibit .photo { min-height: 320px; }
.featured-exhibit .txt { padding: clamp(1.5rem, 4vw, 2.75rem); }
.featured-exhibit h3 { color: var(--sheet); font-family: var(--font-title); font-weight: 800; text-transform: uppercase; font-size: clamp(2.2rem, 4.5vw, 3.5rem); line-height: 0.95; margin: 0.6rem 0 1rem; }
:root[data-theme="dark"] .featured-exhibit h3 { color: #ece6d8; }
.featured-exhibit p { color: #d8d1c1; }
.featured-exhibit .stats-mini span { color: #bdb4a2; }
.featured-exhibit .label { color: #ff8f82; }
.featured-exhibit .btn { background: var(--sheet); color: var(--ink); border-color: var(--sheet); }
:root[data-theme="dark"] .featured-exhibit .btn { background: #ece6d8; color: #0b0b0c; border-color: #ece6d8; }

/* ---------- AI: informant file ---------- */
.fiction {
  background: #0f0f10; color: #e9e3d4; padding: clamp(1.5rem, 4vw, 3rem); position: relative; overflow: hidden; box-shadow: var(--shadow);
}
.fiction::before { content: ""; position: absolute; inset: -30%; background: repeating-linear-gradient(168deg, transparent 0 40px, rgba(255, 255, 255, 0.035) 40px 70px); pointer-events: none; }
.fiction > * { position: relative; }
.fiction h2, .fiction h3 { color: #f3eee2; }
.fiction p { color: #d0c9ba; }
.fiction a { color: #f3eee2; }
.fiction .label { color: #b9b1a1; }
.fiction .stamp { color: #ff8577; }
.story-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; margin-top: 1.75rem; }
.story { border: 1px solid #3a3731; background: #171716; display: flex; flex-direction: column; position: relative; }
.story .photo { aspect-ratio: 3 / 2; }
.story .body { padding: 1rem 1.2rem 1.3rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.story h3 { font-family: var(--font-type); font-size: 1.25rem; line-height: 1.25; }
.story h3 a { text-decoration: none; }
.story h3 a::after { content: ""; position: absolute; inset: 0; }
.story h3 a:hover { text-decoration: underline; }
.story p { font-size: 1rem; margin: 0; }
.story .read { margin-top: auto; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; font-size: 0.875rem; color: #ff8577; }
.coming { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.5rem; }
.coming div { flex: 1 1 280px; border: 1px dashed #4a463f; padding: 0.9rem 1.1rem; }
.coming div p { font-size: 1rem; }
.notice { border: 2px solid currentColor; padding: 0.9rem 1.1rem; display: flex; gap: 1rem; align-items: flex-start; margin-top: 1.25rem; }

/* ---------- about ---------- */
.personnel { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); }
.personnel .photo-frame { aspect-ratio: 4 / 5; }
.record { border-left: 3px solid var(--ink); margin-left: 0.5rem; padding-left: 0; list-style: none; }
.record li { position: relative; padding: 0 0 1.75rem 1.75rem; }
.record li::before { content: ""; position: absolute; left: -9px; top: 0.35rem; width: 15px; height: 15px; background: var(--sheet); border: 3px solid var(--ink); }
.record h3 { font-family: var(--font-type); font-size: 1.35rem; }
.record .period { font-weight: 700; color: var(--stamp); letter-spacing: 0.08em; }
.record ul { margin: 0.5rem 0 0; padding-left: 1.2rem; color: var(--ink-2); }
.career-bar { display: flex; flex-wrap: wrap; gap: 1px; background: var(--ink); border: 1px solid var(--ink); margin: 1.25rem 0 2rem; }
.career-bar span { flex: 1 1 120px; background: var(--sheet-2); padding: 0.5rem 0.7rem; font-size: 0.875rem; line-height: 1.35; }
.career-bar span b { display: block; font-size: 0.9375rem; }
details.history > summary {
  cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 0.6rem;
  min-height: 48px; padding: 0.5rem 1.2rem; border: 2px solid var(--ink); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; font-size: 0.9375rem;
}
details.history > summary::-webkit-details-marker { display: none; }
details.history > summary::before { content: "+"; font-size: 1.3rem; line-height: 1; }
details.history[open] > summary::before { content: "−"; }
details.history > summary:hover { background: var(--ink); color: var(--sheet); }
.rules-list { counter-reset: rule; list-style: none; padding: 0; margin: 0; }
.rules-list li { counter-increment: rule; display: grid; grid-template-columns: 4rem 1fr; gap: 1rem; align-items: baseline; padding: 1rem 0; border-bottom: 1px solid #3a3731; font-family: var(--font-type); font-size: clamp(1.25rem, 2.4vw, 1.6rem); line-height: 1.3; }
.rules-list li::before { content: "No." counter(rule); font-family: var(--font-body); font-weight: 700; font-size: 0.875rem; letter-spacing: 0.1em; color: #ff8577; }
.skills { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.skills .sheet h3 { font-family: var(--font-type); font-size: 1.35rem; }
.skills .sheet p { color: var(--ink-2); margin: 0.4rem 0 0.9rem; }

/* ---------- article ---------- */
.progress { position: fixed; top: 0; left: 0; height: 4px; width: 100%; background: var(--stamp); transform-origin: 0 50%; transform: scaleX(0); z-index: 60; }
.report-head { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 2rem; align-items: stretch; }
.report-form { border: 2px solid var(--ink); margin-top: 1.5rem; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.report-form div { padding: 0.55rem 0.8rem; border-right: 1px solid var(--ink); }
.report-form div:last-child { border-right: 0; }
.report-form span { display: block; font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.report-form b { font-size: 1rem; }
.report-title { font-family: var(--font-type); font-size: clamp(2.2rem, 5.2vw, 4.2rem); line-height: 1.05; margin: 0.8rem 0 0.8rem; }
.report-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); margin-top: 2rem; }
.toc { position: sticky; top: 1.5rem; align-self: start; background: var(--sheet); box-shadow: var(--shadow); padding: 1.1rem 1.2rem; }
.toc ol { list-style: none; counter-reset: toc; margin: 0.75rem 0 0; padding: 0; }
.toc li { counter-increment: toc; }
.toc a { display: grid; grid-template-columns: 2.6rem 1fr; padding: 0.35rem 0; color: var(--ink-2); text-decoration: none; font-size: 0.9375rem; line-height: 1.35; border-left: 3px solid transparent; padding-left: 0.4rem; }
.toc ol a::before { content: counter(toc, upper-roman) "."; font-weight: 700; color: var(--muted); }
.toc a:hover { color: var(--stamp); }
.toc a[aria-current="true"] { border-left-color: var(--stamp); color: var(--ink); font-weight: 700; }
.toc .actions a { display: block; padding-left: 0; }
.toc .actions { margin-top: 1rem; padding-top: 0.8rem; border-top: 1px dashed var(--rule); display: flex; flex-direction: column; gap: 0.4rem; font-size: 0.9375rem; }
.toc-mobile { display: none; }

.prose { font-size: 1.125rem; line-height: 1.75; max-width: var(--measure); }
.prose > * { margin-bottom: 0; }
.prose > * + * { margin-top: 1.2em; }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-family: var(--font-title); text-transform: uppercase; font-weight: 800; font-size: clamp(2rem, 4vw, 2.75rem); line-height: 1; margin-top: 2.4em; padding-top: 0.6rem; border-top: 3px double var(--ink); display: flex; gap: 0.8rem; align-items: baseline; }
.prose h2 .n { font-family: var(--font-body); font-size: 0.9375rem; font-weight: 700; color: var(--stamp); letter-spacing: 0.1em; }
.prose ol, .prose ul { padding-left: 1.5rem; }
.prose li + li { margin-top: 0.3em; }
.prose code { font-family: var(--font-body); font-weight: 700; background: var(--sheet-2); padding: 0.05em 0.3em; border: 1px solid var(--rule); font-size: 0.95em; }
.prose em { font-style: italic; }
.prose pre code { background: none; border: 0; padding: 0; font-weight: 400; font-size: inherit; }
.prose a { color: var(--carbon); }

.note { border-left: 4px solid var(--ink); background: var(--sheet-2); padding: 0.9rem 1.1rem 0.9rem 1.2rem; position: relative; }
.note .note-k { display: block; font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.25rem; }
.note.why { border-left-color: var(--carbon); }
.note.why .note-k { color: var(--carbon); }
.note.question { border: 2px dashed var(--stamp); background: var(--stamp-soft); }
.note.question .note-k { color: var(--stamp); }
.note.question .note-k::before { content: "? "; }
.note.skill { border: 2px solid var(--ink); background: var(--sheet); }
.note.skill .stamp { float: right; margin: 0 0 0.5rem 1rem; }

.evidence { background: var(--evidence-bg); color: var(--evidence-ink); margin-inline: clamp(-2rem, -3vw, 0rem); box-shadow: var(--shadow); max-width: calc(var(--measure) + 6rem); }
.evidence-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 0.45rem 0.6rem 0.45rem 1rem; border-bottom: 1px solid var(--evidence-rule); font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--evidence-dim); }
.evidence-head .copy { min-height: 36px; border: 1px solid #5a554b; background: transparent; color: var(--evidence-ink); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; font-size: 0.8125rem; padding: 0.2rem 0.8rem; cursor: pointer; }
.evidence-head .copy:hover { background: var(--evidence-ink); color: var(--evidence-bg); }
.evidence pre { margin: 0; padding: 1rem 1.2rem 1.2rem; overflow-x: auto; font-family: var(--font-body); font-size: 0.9375rem; line-height: 1.6; tab-size: 2; }
.evidence code { font-family: inherit; }
.tok-k { color: #ff9a8c; font-weight: 700; }
.tok-s { color: #e7cf8f; }
.tok-c { color: #9d9687; font-style: italic; }
.tok-t { color: #a8c7ec; }

.filed { margin-top: 3rem; display: flex; gap: 0.75rem; align-items: center; flex-wrap: wrap; }
.share { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1rem; }
.share a, .share button { min-height: 44px; display: inline-flex; align-items: center; padding: 0.4rem 1rem; border: 1.5px solid var(--ink); background: var(--sheet); color: var(--ink); text-decoration: none; font-weight: 700; font-size: 0.875rem; letter-spacing: 0.08em; text-transform: uppercase; cursor: pointer; }
.share a:hover, .share button:hover { background: var(--ink); color: var(--sheet); }
.wire-card { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem 2.5rem; align-items: center; }

/* ---------- patterns ---------- */
.three-ways { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--ink); border: 2px solid var(--ink); }
.three-ways div { background: var(--sheet); padding: 1.1rem 1.25rem; }
.three-ways h3 { font-family: var(--font-type); font-size: 1.3rem; }
.three-ways p { margin: 0.4rem 0 0; color: var(--ink-2); font-size: 1rem; }
.p-controls { display: grid; grid-template-columns: 1fr auto; gap: 1rem; align-items: end; margin: 2rem 0 1rem; }
.p-search label, .p-sort label { display: block; margin-bottom: 0.35rem; }
.p-search input, .p-sort select { width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--sheet); border: 2px solid var(--ink); padding: 0.6rem 0.8rem; min-height: 48px; }
.p-count { display: flex; gap: 1rem; align-items: center; font-weight: 700; margin-bottom: 1rem; }
.p-count button { border: 0; background: none; color: var(--carbon); text-decoration: underline; cursor: pointer; font-weight: 700; min-height: 44px; }
.specimens { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }
.specimen { background: var(--sheet); box-shadow: var(--shadow); position: relative; display: flex; flex-direction: column; }
.specimen[hidden] { display: none; }
.specimen .thumb { height: 150px; background: var(--sheet-2); border-bottom: 1px solid var(--rule); position: relative; overflow: hidden; display: grid; place-items: center; }
.specimen .thumb .no { position: absolute; left: 0.7rem; top: 0.5rem; font-family: var(--font-title); font-weight: 800; font-size: 2.6rem; line-height: 1; color: transparent; -webkit-text-stroke: 1.2px var(--muted); }
.specimen .body { padding: 1rem 1.2rem 1.2rem; display: flex; flex-direction: column; gap: 0.45rem; flex: 1; }
.specimen .meta { display: flex; gap: 0.6rem; flex-wrap: wrap; align-items: center; font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.specimen h2 { font-family: var(--font-type); font-size: 1.3rem; line-height: 1.25; }
.specimen h2 a { color: var(--ink); text-decoration: none; }
.specimen h2 a::after { content: ""; position: absolute; inset: 0; }
.specimen h2 a:hover { text-decoration: underline; text-decoration-color: var(--stamp); }
.specimen p { margin: 0; font-size: 1rem; color: var(--ink-2); }
.specimen .chips { margin-top: auto; padding-top: 0.5rem; }
.badge { font-size: 0.8125rem; padding: 0 0.4rem; border: 2px solid var(--stamp); color: var(--stamp); letter-spacing: 0.1em; }
.badge.new { background: var(--stamp); color: var(--sheet); }
.empty { text-align: center; padding: 3rem 1rem; background: var(--sheet); border: 2px dashed var(--rule); }
.empty h2 { font-family: var(--font-type); font-size: 1.6rem; }

/* sketch thumbnails drawn in CSS */
.sk { width: 70%; height: 60%; display: grid; gap: 4px; }
.sk i { display: block; background: var(--ink); opacity: 0.8; }
.sk-bars { grid-template-columns: repeat(8, 1fr); align-items: end; }
.sk-bars i:nth-child(1) { height: 40%; } .sk-bars i:nth-child(2) { height: 70%; } .sk-bars i:nth-child(3) { height: 55%; } .sk-bars i:nth-child(4) { height: 90%; } .sk-bars i:nth-child(5) { height: 30%; } .sk-bars i:nth-child(6) { height: 65%; } .sk-bars i:nth-child(7) { height: 80%; } .sk-bars i:nth-child(8) { height: 45%; }
.sk-grid { grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; }
.sk-grid i:first-child { grid-row: span 2; }
.sk-rows { grid-template-rows: repeat(4, 1fr); }
.sk-rows i:nth-child(odd) { width: 85%; } .sk-rows i:nth-child(even) { width: 60%; opacity: 0.45; }
.sk-form { grid-template-rows: 1fr 1fr 1fr; }
.sk-form i { border: 2px solid var(--ink); background: transparent; }
.sk-form i:last-child { width: 40%; background: var(--stamp); border-color: var(--stamp); justify-self: end; }
.sk-color { grid-template-columns: repeat(5, 1fr); }
.sk-color i:nth-child(1) { opacity: 1; } .sk-color i:nth-child(2) { opacity: 0.75; } .sk-color i:nth-child(3) { opacity: 0.5; } .sk-color i:nth-child(4) { opacity: 0.3; } .sk-color i:nth-child(5) { background: var(--stamp); opacity: 1; }

/* pattern detail panes */
.back { font-weight: 700; text-decoration: none; color: var(--ink); }
.back:hover { color: var(--stamp); }
.usecases { columns: 2; column-gap: 2rem; padding-left: 1.2rem; margin: 0.6rem 0 0; }
.panes { background: var(--sheet); border: 2px solid var(--ink); margin-top: 2rem; }
.pane-bar { display: flex; justify-content: space-between; align-items: stretch; gap: 0.5rem; border-bottom: 2px solid var(--ink); flex-wrap: wrap; }
.pane-tabs { display: flex; flex-wrap: wrap; }
.pane-tabs button { min-height: 48px; padding: 0.4rem 1.1rem; border: 0; border-right: 1px solid var(--rule); background: transparent; cursor: pointer; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.875rem; }
.pane-tabs button:hover { background: var(--sheet-2); }
.pane-tabs button[aria-selected="true"] { background: var(--ink); color: var(--sheet); }
.pane-actions { display: flex; gap: 0.5rem; align-items: center; padding: 0.35rem; flex-wrap: wrap; }
.pane-actions button { min-height: 40px; padding: 0.3rem 0.8rem; border: 1.5px solid var(--ink); background: var(--sheet); cursor: pointer; font-weight: 700; font-size: 0.8125rem; letter-spacing: 0.08em; text-transform: uppercase; }
.pane-actions button:hover { background: var(--ink); color: var(--sheet); }
.pane { padding: clamp(1rem, 3vw, 2rem); }
.pane[hidden] { display: none; }
.pane pre { margin: 0; background: var(--evidence-bg); color: var(--evidence-ink); padding: 1rem 1.2rem; overflow-x: auto; font-family: var(--font-body); font-size: 0.9375rem; line-height: 1.6; }
.pane .note { margin-bottom: 1rem; }
.prompt-text { max-width: 70ch; font-size: 1.0625rem; }
.prompt-text p { margin: 0 0 1em; }

/* hairline stat strip (the demo pattern) */
.stage { background: var(--sheet-2); border: 1px dashed var(--rule); padding: clamp(1rem, 3vw, 1.75rem); }
.stage-cap { font-size: 0.9375rem; color: var(--muted); margin: 0 0 0.7rem; }
.hss-strip { display: grid; gap: 1px; background: var(--ink); border: 1px solid var(--ink); grid-template-columns: 1fr; }
@media (min-width: 21rem) { .hss-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 42rem) { .hss-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); } .hss-strip.five { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.hss-tile { background: var(--sheet); padding: 0.8rem 0.9rem; min-width: 0; text-align: left; border: 0; font: inherit; color: inherit; }
.hss-tile .k { display: block; font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); overflow-wrap: anywhere; }
.hss-tile .v { display: block; font-family: var(--font-title); font-weight: 800; font-size: 2rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.hss-tile .v.dim { color: var(--muted); }
.hss-tile .u { display: block; font-size: 0.875rem; color: var(--ink-2); }
button.hss-tile { cursor: pointer; min-height: 44px; }
button.hss-tile:hover { background: var(--sheet-2); }
button.hss-tile[aria-pressed="true"] { background: color-mix(in srgb, var(--stamp) 16%, var(--sheet)); box-shadow: inset 0 -4px 0 var(--stamp); }
.hss-list { list-style: none; padding: 0; margin: 1rem 0 0; border-top: 1px solid var(--rule); }
.hss-list li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.5rem 0; border-bottom: 1px solid var(--rule); font-size: 1rem; }
.hss-list li[hidden] { display: none; }
.hss-list b { font-size: 0.875rem; letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; }
.hss-status { margin: 0.8rem 0 0; font-weight: 700; }

/* ---------- motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .declassify::after { display: none; }
  .case, .case:nth-child(n) { transform: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .leads { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .report-head { grid-template-columns: 1fr; }
  .report-head .photo { max-height: 320px; }
}
@media (max-width: 900px) {
  .dossier, .personnel, .exhibit, .featured-exhibit, .two, .three, .skills, .wire-card, .story-grid, .three-ways { grid-template-columns: minmax(0, 1fr); }
  .exhibit:nth-child(even) .photo-wrap { order: 0; }
  .dossier .mug { max-width: 360px; }
  .personnel .mug { max-width: 360px; }
  .hire { grid-template-columns: 1fr; }
  .report-layout { grid-template-columns: minmax(0, 1fr); }
  .toc { display: none; }
  .toc-mobile { display: block; background: var(--sheet); box-shadow: var(--shadow); }
  .toc-mobile summary { cursor: pointer; padding: 0.8rem 1rem; min-height: 48px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.875rem; }
  .toc-mobile ol { margin: 0; padding: 0 1rem 1rem 2.4rem; }
  .toc-mobile li { padding: 0.25rem 0; }
  .file-label { grid-template-columns: 1fr; }
  .file-label .docket { text-align: left; }
}
@media (max-width: 767px) {
  body { font-size: 1rem; }
  .precinct .hide-sm { display: none; }
  .menu-toggle { display: inline-flex; }
  .search { display: none; }
  .tools .lamp-toggle .lbl { display: none; }
  .masthead .wrap { flex-wrap: nowrap; }
  .brand-words strong { font-size: 1.5rem; }
  .tabs { display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 0; margin-top: 1rem; }
  .tabs.open { display: flex; }
  .tabs a { border-radius: 0; border: 0; border-top: 1px solid var(--folder-edge); top: 0; padding: 0.85rem 1rem; font-size: 1.125rem; }
  .tabs a:hover { transform: none; }
  .tabs a[aria-current="page"]::before { left: 0; right: auto; top: 0; bottom: 0; width: 4px; height: auto; }
  .tabs .mobile-search { display: flex; padding: 0.75rem 0; }
  .tabs .mobile-search .search { display: flex; width: 100%; }
  .tabs .mobile-search input { width: 100%; flex: 1; }
  .masthead { padding-bottom: 1rem; }
  .leads { grid-template-columns: 1fr; }
  .facts strong { font-size: 1.8rem; }
  .facts span { font-size: 0.8125rem; letter-spacing: 0.04em; }
  .facts div { padding: 0.6rem 0.6rem; }
  .ledger thead { display: none; }
  .ledger tr { display: grid; grid-template-columns: auto 1fr; gap: 0 1rem; border-bottom: 1px dashed var(--rule); padding: 0.8rem 0; }
  .ledger td { border: 0; padding: 0.1rem 0; }
  .ledger td.main { grid-column: 1 / -1; }
  .ledger td.kw { grid-column: 1 / -1; }
  .report-form { grid-template-columns: 1fr 1fr; }
  .report-form div:nth-child(2) { border-right: 0; }
  .report-form div:nth-child(-n+2) { border-bottom: 1px solid var(--ink); }
  .foot-grid { grid-template-columns: 1fr; }
  .p-controls { grid-template-columns: 1fr; }
  .usecases { columns: 1; }
  .evidence { margin-inline: -0.25rem; }
  .cases { grid-template-columns: 1fr; }
  .case:nth-child(n) { transform: none; }
  .rules-list li { grid-template-columns: 1fr; gap: 0.2rem; }
}
@media (min-width: 768px) { .tabs .mobile-search { display: none; } }

/* gallery article */
.prose .prose-exhibit { margin: 1.75rem 0; overflow: visible; }
.prose .prose-exhibit .photo { background: transparent; }
.prose .prose-exhibit img { display: block; height: auto; object-fit: contain; }
.prose blockquote.note { margin-inline: 0; }
.prose .note p { margin: 0; }
.prose .note p + p { margin-top: .75rem; }
.prose code { overflow-wrap: anywhere; }
