@font-face {
  font-family: "Instrument Serif";
  src: url("fonts/instrument-serif.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("fonts/instrument-serif-italic.woff2") format("woff2");
  font-style: italic;
  font-display: swap;
}

* { box-sizing: border-box; }
:root {
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Segoe UI", Arial, sans-serif;
}
html { min-width: 0; }
body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font: 1rem/1.55 var(--sans);
}
.catalog {
  --surface: #151e19;
  --ink: #ebddbc;
  --muted: #cabea7;
  --rule: #605846;
  --focus: #efc784;
  --brass: #d8ab6f;
  color-scheme: dark;
}
.occult {
  --surface: #171318;
  --ink: #f5e9d6;
  --muted: #d0c0b7;
  --rule: #574542;
  --focus: #ffd58a;
  --gold: #e3bf78;
  color-scheme: dark;
}
a { color: inherit; text-underline-offset: .21em; }
a:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
img { display: block; width: 100%; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1;
}
.wrap {
  width: min(100% - clamp(2rem, 8vw, 8rem), 77rem);
  margin-inline: auto;
}
.skip {
  position: fixed;
  z-index: 5;
  left: 1rem;
  top: .75rem;
  padding: .6rem 1rem;
  background: var(--surface);
  clip-path: inset(50%);
}
.skip:focus { clip-path: none; }
.site-header { border-bottom: 1px solid var(--rule); }
.header-inner {
  min-height: 4.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand, .footer-brand { text-decoration: none; font-family: var(--serif); }
.brand {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  font-size: 1.8rem;
  line-height: 1;
}
.brand-mark {
  position: relative;
  display: inline-block;
  flex: 0 0 1.25rem;
  height: 1.06rem;
  color: var(--focus);
  border: 1px solid currentColor;
  border-radius: 45% 45% 25% 25%;
  transform: rotate(-11deg);
}
.brand-mark::before, .brand-mark::after {
  content: "";
  position: absolute;
  inset: -1px 4px;
  border-inline: 1px solid currentColor;
  border-radius: 50%;
}
.brand-mark::after { inset: 4px -1px; border: 0; border-top: 1px solid currentColor; }
.header-inner nav, .site-footer {
  display: flex;
  align-items: center;
  gap: clamp(.7rem, 3vw, 2rem);
  font-size: .875rem;
}
.header-inner nav a {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  text-decoration: none;
}
.header-inner nav a:hover, .header-inner nav a[aria-current] { text-decoration: underline; }
.site-footer {
  justify-content: space-between;
  margin-top: clamp(3rem, 7vw, 6.5rem);
  min-height: 5rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
}
.footer-brand { font-size: 1.4rem; color: var(--ink); }
.label {
  color: var(--muted);
  font-size: .875rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: .095em;
  text-transform: uppercase;
}

/* Creator catalog */
.catalog .site-header { background: #141b16; }
.catalog-hero {
  position: relative;
  isolation: isolate;
  background: #151a14;
}
.catalog-panorama {
  position: absolute;
  z-index: -1;
  inset: 0;
  overflow: hidden;
}
.catalog-panorama img {
  height: 100%;
  object-fit: cover;
  object-position: 54% center;
}
.catalog-panorama::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, var(--surface), #151e1900 23%),
    linear-gradient(90deg, #131a14 1%, #131a14ee 18%, #131a14ad 34%, #131a1433 53%, #131a1400 73%);
}
.catalog-hero-inner {
  display: flex;
  align-items: center;
  min-height: clamp(30rem, 38vw, 36rem);
  padding-block: 2.8rem 3.4rem;
}
.catalog-intro {
  max-width: 30rem;
}
.catalog-hero h1 {
  font-size: clamp(5.1rem, 9.2vw, 9.6rem);
  letter-spacing: -.033em;
  line-height: .79;
  text-shadow: 0 2px 30px #131a147a;
}
.catalog-hero h1 em {
  color: var(--brass);
  font-size: .67em;
  font-weight: 400;
}
.catalog-intro p {
  max-width: 34ch;
  margin-top: 1.45rem;
  color: var(--muted);
  font: 1.65rem/1.16 var(--serif);
}
.catalog-intro p + p { margin-top: .65rem; }
.home-entrances { margin-top: 1.25rem; }
.catalog-button {
  background: var(--brass);
  color: #242017;
}
.catalog-button:hover { background: #edc581; }
.other-entrances {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem 1.2rem;
  margin-top: .65rem;
  color: var(--ink);
}
.other-entrances a { display: inline-flex; align-items: center; min-height: 2rem; }
.other-entrances a:hover { color: var(--brass); }
.home-feature {
  display: grid;
  grid-template-columns: minmax(0, .87fr) minmax(0, 1.63fr);
  align-items: center;
  gap: clamp(1.1rem, 3vw, 2.45rem);
  padding: clamp(1.2rem, 3vw, 2.65rem);
  border: 1px solid #6b5456;
  border-top: 2px solid #c3a16f;
  background: linear-gradient(116deg, #2e232c, #251d26 62%);
}
.feature-intro h2 { font-size: clamp(2.7rem, 4.4vw, 4rem); }
.feature-intro p {
  max-width: 39ch;
  margin-top: .8rem;
  color: #d9c9bd;
}
.feature-intro p + p { margin-top: .55rem; }
.feature-archive {
  display: inline-block;
  margin-top: .85rem;
  color: #f1cc89;
  font-weight: 600;
}
.feature-archive:hover { color: #ffe4b3; }
.feature-dossiers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(.45rem, 1vw, .8rem);
}
.feature-dossier {
  --file-color: #a7d4f0;
  display: block;
  min-width: 0;
  background: #332837;
  border: 1px solid #705d6c;
  border-top: 2px solid var(--file-color);
  text-decoration: none;
}
.feature-dossier.odella { --file-color: #e9b9df; }
.feature-dossier:hover { border-color: var(--file-color); }
.feature-art {
  height: clamp(8rem, 14vw, 13rem);
  overflow: hidden;
}
.feature-art img { height: 100%; object-fit: cover; object-position: 50% 12%; }
.feature-name { padding: .65rem .78rem .8rem; }
.feature-name .label { color: var(--file-color); }
.feature-name h3 {
  margin-top: .12rem;
  font-size: clamp(1.65rem, 2.7vw, 2.5rem);
  text-decoration: underline;
  text-underline-offset: .2em;
  text-decoration-thickness: 1px;
}
.shelf-section {
  margin-top: clamp(2.2rem, 5vw, 4.75rem);
  scroll-margin-top: 1rem;
}
.section-heading {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-bottom: 1rem;
}
.section-heading::after { content: ""; flex: 1; border-top: 1px solid var(--rule); }
.section-heading h2 { font-size: clamp(2.15rem, 3.5vw, 3.05rem); }
.world-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(.75rem, 1.6vw, 1.3rem);
}
.world-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  text-decoration: none;
  background: #202a22;
  border: 1px solid var(--rule);
  transition: border-color .18s, box-shadow .18s;
}
.world-card:hover { border-color: var(--brass); box-shadow: 0 9px 28px #0004; }
.card-cover {
  height: clamp(9rem, 14vw, 13.5rem);
  overflow: hidden;
  background: #292522;
  border-bottom: 1px solid var(--rule);
}
.card-cover > img { height: 100%; object-fit: cover; object-position: center 43%; }
.world-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: start;
  padding: clamp(.9rem, 1.4vw, 1.3rem);
}
.world-copy h3 { font-size: clamp(2rem, 2.8vw, 2.85rem); margin: .34rem 0 .5rem; }
.world-copy p:not(.label) { color: var(--muted); margin-bottom: 1.12rem; max-width: 34ch; }
.card-action {
  margin-top: auto;
  padding-top: .68rem;
  border-top: 1px solid var(--rule);
  font-size: .875rem;
  font-weight: 650;
  text-decoration: underline;
}
.catalog .card-action { color: #f0c589; }
.visitor-preview {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: .28rem .75rem;
  padding: .35rem .75rem;
  border: 1px solid var(--rule);
  border-radius: 3px;
  background: #202921;
}
.visitor-total {
  color: var(--brass);
  font: 1.42rem/1 var(--serif);
  font-variant-numeric: lining-nums tabular-nums;
}

/* Occult Occasions */
.occult-hero {
  display: grid;
  grid-template-columns: minmax(0, .97fr) minmax(0, 1.03fr);
  align-items: stretch;
  border: 1px solid var(--rule);
  background: #251c24;
}
.occult-intro {
  padding: clamp(1.6rem, 4.3vw, 3.9rem);
  align-self: center;
}
.occult-intro h1 {
  font-size: clamp(4.1rem, 7.8vw, 8.05rem);
  letter-spacing: -.03em;
  line-height: .82;
}
.occult-intro h1 em { color: var(--gold); }
.occult-intro p { margin-top: .65rem; color: var(--muted); max-width: 44ch; }
.occult-intro .world-tone { margin-top: 1.25rem; color: var(--gold); font-weight: 650; }
.world-entrances { margin-top: 1.28rem; scroll-margin-top: 1rem; }
.world-entrances h2 { font-family: var(--sans); }
.hero-dossier-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .45rem;
  list-style: none;
  padding: 0;
  margin: .55rem 0 0;
}
.hero-dossier-links li { display: flex; }
.hero-dossier-links a {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  padding: .65rem .53rem;
  border: 1px solid #8b705f;
  border-top: 2px solid var(--gold);
  background: #382934;
  text-decoration: none;
}
.hero-dossier-links a:hover { background: #4a343d; border-color: var(--gold); }
.hero-dossier-links strong {
  font: clamp(1.2rem, 2.15vw, 1.75rem)/1.05 var(--serif);
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
}
.hero-dossier-links span {
  margin-top: .35rem;
  color: var(--muted);
  font-size: .875rem;
  line-height: 1.28;
}
.world-jumps {
  display: flex;
  flex-wrap: wrap;
  gap: .38rem 1rem;
  margin-top: .52rem;
  font-size: .9rem;
}
.world-jumps a {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  color: var(--muted);
}
.world-jumps a:hover { color: var(--gold); }
.world-jumps .world-archive-link {
  padding: .18rem .55rem;
  color: #f5d9ba;
  border: 1px solid #ac5e51;
  background: #49272b;
  font-weight: 650;
  text-decoration: none;
}
.world-jumps .world-archive-link:hover { background: #61343a; color: #ffe7cc; }
.occult-hero-art {
  position: relative;
  min-height: 21rem;
  overflow: hidden;
  margin: 0;
  border-left: 1px solid var(--rule);
  background: #141218;
}
.occult-hero-art img {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: cover;
  object-position: 42% center;
}
.splashlight-hero img { object-position: center; }
.occult-hero-art figcaption {
  position: absolute;
  inset: auto 0 0;
  padding: 1.65rem 1rem .75rem;
  color: #f2ddc4;
  font-size: .875rem;
  text-align: right;
  background: linear-gradient(0deg, #130f17e8, #130f1700);
}
.world-section {
  margin-top: clamp(1.9rem, 4.4vw, 3.75rem);
  scroll-margin-top: 1rem;
}
.world-section h2 { font-size: clamp(2.45rem, 4.4vw, 3.65rem); }
.world-section p { color: var(--muted); }
.world-setting, .casework-preview {
  display: grid;
  grid-template-columns: minmax(0, .94fr) minmax(0, 1.06fr);
  gap: clamp(1.4rem, 4.8vw, 4.2rem);
  padding: clamp(1.3rem, 3.8vw, 3.3rem);
  border: 1px solid var(--rule);
}
.world-setting { border-top: 2px solid #c5a16a; background: #282027; }
.setting-lead p, .setting-perspectives p, .casework-intro p, .case-preview-files p { margin-top: .62rem; }
.setting-lead > p:first-of-type { margin-top: .94rem; }
.setting-still {
  margin: 1rem 0 0;
  border: 1px solid #644e57;
  background: #1d1720;
}
.setting-still img { aspect-ratio: 2.25; object-fit: cover; object-position: 50% 46%; }
.setting-still figcaption { padding: .45rem .65rem; font-size: .875rem; color: var(--muted); }
.setting-still a { color: var(--gold); }
.setting-perspectives {
  display: grid;
  align-content: start;
  gap: 1.1rem;
}
.setting-perspectives article {
  padding-left: 1rem;
  border-left: 1px solid #9c7957;
}
.setting-perspectives h3, .case-preview-files h3 { font-size: 2rem; }
.casework-preview { background: #211922; }
.casework-intro .label { color: var(--gold); margin: 0 0 .5rem; }
.casework-intro p:last-child { margin-top: .94rem; }
.case-preview-files { display: grid; align-content: start; gap: .85rem; }
.case-preview-files article {
  padding: .8rem 1rem 1rem;
  border: 1px solid #70564f;
  background: #30242d;
}
.case-preview-files article .label { color: var(--gold); margin: 0 0 .28rem; }
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 2.85rem;
  padding: .55rem 1rem;
  border: 1px solid transparent;
  text-align: center;
  text-decoration: none;
  font-weight: 650;
}
.gold-button { background: var(--gold); color: #271a12; }
.gold-button:hover { background: #f4d598; }

.board {
  --wire: #a3824c;
  scroll-margin-top: 1rem;
  border: 1px solid var(--rule);
  background: radial-gradient(circle at 1px 1px, #a3824c24 1px, transparent 1.2px) 0 0 / 18px 18px, #201921;
}
.board-title {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: .55rem 1.45rem;
  padding: clamp(1rem, 2.7vw, 1.75rem) clamp(1rem, 3.3vw, 2.35rem);
  border-bottom: 1px solid var(--rule);
}
.board-title h2 { font-size: clamp(2.45rem, 4vw, 3.5rem); }
.board-title p { color: var(--muted); }
.agency-tree {
  --gap: 1.25rem;
  padding: clamp(1rem, 3.3vw, 2.5rem);
}
.agency-tree ul { list-style: none; padding: 0; }
.agency-offices, .cult-files { display: grid; gap: var(--gap); }
.agency-top { display: flex; justify-content: center; }
.tree-node {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 4.25rem;
  padding: .9rem 1rem .7rem;
  border: 1px solid #80674c;
  background: #2b202a;
}
.tree-node strong { font: 1.64rem/1 var(--serif); margin-top: .15rem; }
.tree-node .label { color: var(--gold); font-size: .78rem; }
.agency-root {
  width: min(100%, 23rem);
  min-height: 5rem;
  background: #eddbb7;
  border-color: var(--gold);
  color: #2e211a;
}
.agency-root strong { font-size: 2rem; }
.agency-root .label { color: #5f4631; }
.casework-card-title { margin-top: .35rem; font-size: .9rem; }
.casework-status {
  align-self: start;
  margin-top: .3rem;
  color: #f1a5ab;
  font-size: .875rem;
}
.board-pin {
  position: absolute;
  z-index: 2;
  top: -.345rem;
  left: 50%;
  width: .74rem;
  height: .74rem;
  border: 1px solid #682319;
  border-radius: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle at 31% 24%, #f9a087, #c64c38 42%, #792418 75%);
  box-shadow: 1px 2px 2px #25120e99;
  pointer-events: none;
}
.agency-offices {
  position: relative;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 2.25rem 0 0;
}
.agency-offices > li { min-width: 0; }
.agency-offices .tree-node { width: min(100%, 15rem); margin-inline: auto; }
.agency-root::after, .agency-offices::before, .agency-offices .tree-node::before,
.archive-office > .tree-node::after, .cult-files::before, .cult-file::before {
  content: "";
  position: absolute;
  background: var(--wire);
  pointer-events: none;
}
.agency-root::after { width: 1px; height: 1.125rem; top: 100%; left: 50%; }
.agency-offices::before {
  top: -1.125rem;
  left: calc(25% - var(--gap) / 4);
  right: calc(25% - var(--gap) / 4);
  height: 1px;
}
.agency-offices .tree-node::before, .cult-file::before {
  width: 1px;
  height: 1.125rem;
  bottom: 100%;
  left: 50%;
}
.archive-office > .tree-node::after { width: 1px; height: 1.4rem; top: 100%; left: 50%; }
.cult-files {
  position: relative;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  align-items: start;
  width: calc(200% + var(--gap));
  margin: 2.5rem 0 0 calc(-100% - var(--gap));
  gap: .6rem;
}
.cult-files::before {
  height: 1px;
  top: -1.125rem;
  left: calc((100% - 3rem) / 12);
  right: calc((100% - 3rem) / 12);
}
.cult-file {
  --branch: #e1c582;
  --folder: #3f3420;
  position: relative;
  min-width: 0;
  min-height: 4.25rem;
  border: 1px solid #66524b;
  border-radius: 7px 7px 0 0;
  background: #241d24;
}
.blue { --branch: #96ccee; --folder: #1f3b53; }
.red { --branch: #f1a5ab; --folder: #4a252f; }
.white { --branch: #f1e4d0; --folder: #4a4037; }
.violet { --branch: #dcbafc; --folder: #3d2c50; }
.black { --branch: #e9b9df; --folder: #342636; }
.file-tab {
  position: relative;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  column-gap: .5rem;
  padding: .7rem .6rem .67rem;
  color: var(--branch);
  border-top: 2px solid var(--branch);
  border-radius: 6px 6px 0 0;
  background: var(--folder);
  font: 1.58rem/1 var(--serif);
}
.file-state { font: .875rem/1.3 var(--sans); color: var(--branch); }
.cult-file:has(.file-state):not(:has(.records)) { min-height: 0; }
.records { display: grid; gap: .38rem; margin: .38rem; }
.record {
  display: flex;
  flex-direction: column;
  align-items: start;
  justify-content: center;
  min-height: 3.65rem;
  padding: .5rem;
  border: 1px solid #665660;
  background: #332833;
  text-decoration: none;
}
.record-name { font: 1.3rem/1.15 var(--serif); }
.record small { color: var(--branch); font-size: .875rem; }
a.record {
  display: grid;
  grid-template-columns: 2.2rem minmax(0, 1fr);
  align-items: center;
  gap: .45rem;
}
.record-photo {
  height: 2.58rem;
  padding: 2px 2px 4px;
  background: #f9e6c2;
  box-shadow: 0 1px 2px #4b342966;
}
.record-photo img { height: 100%; object-fit: cover; object-position: 50% 18%; }
.record-copy { display: flex; flex-direction: column; gap: .05rem; }
a.record small { text-decoration: underline; font-weight: 650; }
a.record:hover { background: var(--folder); border-color: var(--branch); }
.quiet-record { background: #261f26; border-color: #4c3f48; color: #dfd1c8; }
.quiet-record small { color: var(--muted); }
.active-file { border-color: var(--branch); box-shadow: 0 0 0 1px var(--branch); }
.active-file::before { background: #d64e42; }
.active-file .file-tab { color: #241823; background: var(--branch); }
.active-file .file-state { color: inherit; }
.record[aria-current] {
  border-color: var(--branch);
  background: var(--folder);
}

@media (min-width: 61.01rem) {
  .agency-offices .tree-node { min-height: 8rem; }
}

/* Released dossiers */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem .7rem;
  padding-block: 1.1rem;
  font-size: .875rem;
  color: var(--muted);
}
.breadcrumbs a:hover { color: var(--gold); }
.breadcrumbs [aria-current] { color: var(--ink); }
.dossier-tab {
  display: table;
  padding: .55rem 1rem;
  color: var(--gold);
  background: #251c24;
  border: 1px solid var(--rule);
  border-bottom: 0;
  border-radius: .6rem .6rem 0 0;
}
.dossier {
  --dossier-accent: #afd8ef;
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  min-height: 28rem;
  border: 1px solid var(--rule);
  border-top: 3px solid var(--dossier-accent);
  background: #251c24;
}
.dossier.odella { --dossier-accent: #e9b9df; }
.dossier-art {
  position: relative;
  min-height: 24rem;
  overflow: hidden;
  border-right: 1px solid var(--rule);
  background: #2c2126;
}
.dossier-art img { position: absolute; inset: 0; height: 100%; object-fit: cover; object-position: 50% 18%; }
.dossier.goomers .dossier-art img { object-position: 48% 50%; }
.dossier-copy {
  --muted: #61534c;
  --focus: #714726;
  align-content: center;
  padding: clamp(1.6rem, 5vw, 4rem);
  color: #261d22;
  background: #f2e7d2;
}
.dossier-branch { color: #234f6c; }
.dossier.odella .dossier-branch { color: #6a3460; }
.dossier h1 { margin: .38rem 0 .7rem; font-size: clamp(3.7rem, 7.5vw, 7rem); letter-spacing: -.035em; line-height: .9; }
.dossier-pitch { max-width: 35ch; font-size: 1.125rem; }
.opening-count { margin-top: .55rem; color: var(--muted); }
.dossier-access {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .95rem 1.5rem;
  margin-top: 1.2rem;
  padding-top: .95rem;
  border-top: 1px solid #c8b99f;
}
.platforms h2 { font-family: var(--sans); }
.platform-links {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin: .4rem 0 0;
  padding: 0;
  list-style: none;
}
.platform-button { color: #3b2936; border-color: #8b6c59; }
.platform-button:hover { background: #e8d7ba; }
.dossier-download { min-width: 0; }
.download-button { color: #fff3da; background: #3b2936; }
.download-button:hover { background: #53394c; }
.download-info { color: var(--muted); font-size: .875rem; margin-top: .55rem; overflow-wrap: anywhere; }
.text-link { display: inline-block; color: #64375b; margin-top: 1.2rem; font-size: .9rem; }
.dossier-board { margin-top: clamp(1.4rem, 4vw, 3rem); }

@media (max-width: 61rem) {
  .world-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .agency-root { width: 100%; }
  .agency-offices, .cult-files {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    width: auto;
    margin: 0 0 0 .55rem;
    padding: .8rem 0 0 1rem !important;
    gap: .65rem;
  }
  .agency-offices::before { display: none; }
  .cult-files::before {
    top: 0;
    left: 0;
    bottom: 1.6rem;
    right: auto;
    width: 2px;
    height: auto;
  }
  .agency-offices > li { position: relative; }
  .agency-offices > li::before {
    content: "";
    position: absolute;
    top: -.65rem;
    left: -1rem;
    width: 2px;
    height: calc(1.6rem + .65rem);
    background: var(--wire);
  }
  .agency-offices > .field-office::before { top: -.8rem; bottom: 0; height: auto; }
  .agency-offices .tree-node { width: auto; margin: 0; }
  .agency-offices .tree-node::before, .cult-file::before {
    height: 2px;
    width: calc(1rem + 1px);
    bottom: auto;
    top: 1.6rem;
    left: calc(-1rem - 1px);
  }
  .agency-root::after, .archive-office > .tree-node::after { display: none; }
  .agency-offices .board-pin { top: 1.29rem; left: 0; }
  .file-tab .board-pin { top: 1.19rem; }
  .agency-offices .file-tab { padding-left: .78rem; }
  .records { grid-template-columns: repeat(auto-fit, minmax(min(100%, 9rem), 1fr)); }
}

@media (max-width: 43rem) {
  .header-inner { min-height: 3.75rem; gap: .6rem; }
  .brand { font-size: 1.4rem; gap: .35rem; }
  .brand-mark { flex-basis: .95rem; height: .8rem; }
  .header-inner nav { gap: .65rem; }
  .catalog-hero { display: flex; flex-direction: column; }
  .catalog-hero-inner {
    order: -1;
    min-height: 0;
    padding-block: 2.7rem 1rem;
  }
  .catalog-panorama {
    position: relative;
    height: clamp(10rem, 49vw, 17rem);
    margin-top: -.25rem;
  }
  .catalog-panorama img { object-position: 61% center; }
  .catalog-panorama::after {
    background: linear-gradient(0deg, var(--surface), #151e1900 23% 80%, #151a14);
  }
  .catalog-hero h1 { font-size: clamp(4.35rem, 15vw, 7rem); }
  .catalog-intro p { font-size: 1.45rem; margin-top: 1.15rem; }
  .home-entrances { margin-top: .95rem; }
  .home-feature { grid-template-columns: 1fr; }
  .feature-dossiers { grid-template-columns: 1fr; }
  .feature-dossier { display: grid; grid-template-columns: 4.3rem minmax(0, 1fr); }
  .feature-art { height: 100%; min-height: 3.4rem; }
  .feature-art img { max-height: 4.3rem; }
  .feature-name { padding: .35rem .65rem .5rem; }
  .feature-name h3 { margin-top: 0; }
  .world-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-cover { height: clamp(8rem, 25vw, 13.5rem); }
  .occult-hero, .dossier { grid-template-columns: 1fr; }
  .occult-intro { padding: 1.65rem; }
  .occult-intro h1 { font-size: clamp(4.1rem, 14vw, 6.4rem); }
  .occult-hero-art {
    min-height: clamp(10rem, 57vw, 20rem);
    border: 0;
    border-top: 1px solid var(--rule);
  }
  .world-setting, .casework-preview { grid-template-columns: 1fr; }
  .dossier-art { min-height: clamp(12rem, 56vw, 19rem); border: 0; border-bottom: 1px solid var(--rule); }
  .dossier-copy { padding: 1.4rem; }
  .dossier h1 { font-size: clamp(3.6rem, 12vw, 5.5rem); }
  .agency-root strong { font-size: 1.65rem; }
  .site-footer { align-items: baseline; gap: .45rem 1rem; flex-wrap: wrap; padding-block: 1rem; }
}

@media (max-width: 31rem) {
  .world-grid { grid-template-columns: 1fr; }
  .card-cover { height: clamp(12rem, 53vw, 16rem); }
  .world-copy h3 { font-size: 2.6rem; }
}

@media (max-width: 24rem) {
  .header-inner { flex-wrap: wrap; gap: 0 .8rem; padding-top: .55rem; }
  .tree-node { padding-inline: .55rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
