:root {
  --ink: #edf0e8;
  --muted: #91a7a6;
  --faint: #647b7b;
  --night: #061115;
  --panel: #0a1b20;
  --panel-2: #0d2429;
  --line: rgba(174, 205, 199, 0.14);
  --teal: #66b4ad;
  --teal-bright: #9eddd2;
  --gold: #e9c46b;
  --rust: #b14d3f;
  --serif: Iowan Old Style, Baskerville, Georgia, 'Times New Roman', serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 12% 8%, rgba(51, 108, 105, .16), transparent 25rem),
    var(--night);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.55;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .13;
  z-index: 10;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.22'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

a { color: inherit; }
button, input { font: inherit; }
button { color: inherit; }

.skip-link {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 100;
  padding: .8rem 1rem;
  color: var(--night);
  background: var(--gold);
  font-weight: 800;
}
.skip-link:focus { top: 1rem; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
  min-height: 84px;
  padding: .65rem clamp(1.25rem, 4vw, 4.5rem);
  border-bottom: 1px solid var(--line);
  background: rgba(5, 16, 20, .83);
  backdrop-filter: blur(18px);
}
.brand, .footer-brand {
  display: inline-flex;
  align-items: center;
  gap: .8rem;
  width: fit-content;
  color: var(--ink);
  text-decoration: none;
}
.brand span:last-child, .footer-brand span:last-child { display: grid; }
.brand strong, .footer-brand strong { font-family: var(--serif); font-size: 1rem; letter-spacing: .02em; }
.brand small, .footer-brand small { color: var(--muted); font-size: .65rem; letter-spacing: .16em; text-transform: uppercase; }
.brand-logo {
  width: 66px;
  height: 66px;
  flex: 0 0 auto;
  border: 1px solid rgba(233,196,107,.42);
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 3px rgba(6,17,21,.9), 0 0 24px rgba(233,196,107,.14);
}
.footer-logo { width: 64px; height: 64px; }
.site-header nav { display: flex; gap: 2rem; }
.site-header nav a {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color .2s ease;
}
.site-header nav a:hover, .site-header nav a:focus-visible { color: var(--ink); }
.private-badge {
  justify-self: end;
  padding: .42rem .72rem;
  border: 1px solid rgba(102,180,173,.2);
  border-radius: 99px;
  color: var(--teal-bright);
  background: rgba(102,180,173,.08);
  font-size: .7rem;
  font-weight: 750;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.private-badge span { margin-right: .3rem; color: #78d6a3; }

.hero {
  position: relative;
  min-height: min(835px, calc(100vh - 84px));
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(380px, .98fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 6rem);
  padding: clamp(4.5rem, 8vw, 8rem) clamp(1.25rem, 7vw, 8rem) 8.5rem;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero::after {
  content: '';
  position: absolute;
  top: 15%;
  right: -14rem;
  width: 40rem;
  height: 40rem;
  border: 1px solid rgba(102,180,173,.1);
  border-radius: 50%;
  box-shadow: 0 0 0 7rem rgba(102,180,173,.018), 0 0 0 14rem rgba(102,180,173,.012);
  pointer-events: none;
}
.hero-copy { position: relative; z-index: 2; max-width: 680px; }
.eyebrow {
  margin: 0 0 1rem;
  color: var(--gold);
  font-size: .72rem;
  font-weight: 850;
  letter-spacing: .24em;
}
h1, h2, h3 { margin-top: 0; }
h1 {
  margin-bottom: 1.3rem;
  font-family: var(--serif);
  font-size: clamp(3.6rem, 7.2vw, 7rem);
  font-weight: 500;
  line-height: .92;
  letter-spacing: -.055em;
}
.hero-lede { max-width: 610px; margin: 0; color: #b6c5c1; font-size: clamp(1.05rem, 1.6vw, 1.3rem); }
.hero-lede em { color: var(--ink); font-family: var(--serif); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem; margin-top: 2rem; }
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: .65rem;
  min-height: 46px;
  padding: .75rem 1.15rem;
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.button:hover { transform: translateY(-2px); }
.button:focus-visible, .filter-chip:focus-visible, .map-marker:focus-visible, .save-case:focus-visible, .dialog-close:focus-visible, .text-link:focus-visible, .search-box:focus-within { outline: 2px solid var(--gold); outline-offset: 3px; }
.button-primary { background: var(--gold); color: #122124; }
.button-primary:hover { background: #f2d587; }
.button-quiet { border-color: var(--line); background: rgba(255,255,255,.035); }
.listen-menu { position: relative; }
.listen-popover {
  position: absolute;
  top: calc(100% + .6rem);
  left: 0;
  min-width: 210px;
  padding: .45rem;
  z-index: 20;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #102429;
  box-shadow: 0 18px 45px rgba(0,0,0,.4);
}
.listen-popover a { display: flex; justify-content: space-between; padding: .65rem .75rem; border-radius: 3px; color: #c7d6d1; font-size: .85rem; text-decoration: none; }
.listen-popover a:hover { background: rgba(255,255,255,.05); color: var(--gold); }

.hero-art { position: relative; z-index: 2; min-width: 0; }
.hero-art svg { width: 100%; max-height: 560px; filter: drop-shadow(0 30px 50px rgba(0,0,0,.35)); }
.hero-logo-medallion {
  position: absolute;
  z-index: 4;
  width: clamp(158px, 20vw, 228px);
  aspect-ratio: 1;
  top: 1%;
  right: 2%;
  padding: 5px;
  border: 1px solid rgba(233,196,107,.58);
  border-radius: 50%;
  background: rgba(5,15,19,.82);
  box-shadow: 0 0 0 6px rgba(6,17,21,.72), 0 18px 50px rgba(0,0,0,.48), 0 0 42px rgba(233,196,107,.18);
  transform: rotate(1.5deg);
}
.hero-logo-medallion::after {
  content: '';
  position: absolute;
  inset: -12px;
  z-index: -1;
  border: 1px solid rgba(102,180,173,.16);
  border-radius: 50%;
}
.hero-logo-medallion img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}
.coordinate { position: absolute; z-index: 2; color: rgba(158,221,210,.6); font-family: ui-monospace, monospace; font-size: .65rem; letter-spacing: .15em; }
.coordinate-one { left: 6%; top: 12%; }
.coordinate-two { right: 0; bottom: 22%; }
.hero-art-caption { position: absolute; right: 1%; bottom: 4%; display: grid; padding-left: 1rem; border-left: 2px solid var(--gold); }
.hero-art-caption span { color: var(--gold); font-size: .62rem; font-weight: 800; letter-spacing: .18em; }
.hero-art-caption strong { margin-top: .1rem; font-family: var(--serif); font-size: 1.1rem; font-weight: 500; }
.hero-stats {
  position: absolute;
  left: clamp(1.25rem, 7vw, 8rem);
  right: clamp(1.25rem, 7vw, 8rem);
  bottom: 0;
  display: flex;
  gap: 0;
  margin: 0;
  border-top: 1px solid var(--line);
}
.hero-stats div { display: flex; align-items: baseline; gap: .65rem; padding: 1.25rem clamp(1rem, 3vw, 3rem); border-right: 1px solid var(--line); }
.hero-stats div:first-child { padding-left: 0; }
.hero-stats dt { color: var(--gold); font-family: var(--serif); font-size: 1.75rem; }
.hero-stats dd { margin: 0; color: var(--muted); font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }

.section-shell { padding: clamp(5rem, 9vw, 9rem) clamp(1.25rem, 7vw, 8rem); }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 2rem; margin-bottom: 2.5rem; }
.section-heading h2 { margin-bottom: 0; font-family: var(--serif); font-size: clamp(2.7rem, 5vw, 4.6rem); font-weight: 500; letter-spacing: -.04em; line-height: .98; }
.section-heading > p { max-width: 440px; margin: 0; color: var(--muted); }
.explorer { background: linear-gradient(180deg, #07161a, #091b1f); }
.explorer-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.15rem; }
.filters { display: flex; flex-wrap: wrap; gap: .5rem; }
.filter-chip {
  padding: .58rem .8rem;
  border: 1px solid var(--line);
  border-radius: 99px;
  color: var(--muted);
  background: transparent;
  font-size: .76rem;
  font-weight: 750;
  cursor: pointer;
  transition: color .18s ease, background .18s ease, border-color .18s ease;
}
.filter-chip span { display: inline-grid; place-items: center; min-width: 1.35rem; margin-left: .35rem; padding: .05rem .3rem; border-radius: 99px; background: rgba(255,255,255,.06); font-size: .65rem; }
.filter-chip:hover, .filter-chip.active { color: #122124; border-color: var(--gold); background: var(--gold); }
.filter-chip.active span { background: rgba(5,17,21,.13); }
.search-box {
  min-width: 240px;
  display: flex;
  align-items: center;
  gap: .55rem;
  padding: .56rem .72rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--muted);
  background: rgba(0,0,0,.15);
}
.search-box input { min-width: 0; width: 100%; border: 0; outline: 0; color: var(--ink); background: transparent; }
.search-box input::placeholder { color: #718787; }
.search-box kbd { padding: .08rem .34rem; border: 1px solid var(--line); border-radius: 3px; color: var(--faint); background: rgba(255,255,255,.03); font-size: .7rem; }
.atlas-layout { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(300px, .72fr); border: 1px solid var(--line); background: #07161a; }
.map-panel { min-width: 0; border-right: 1px solid var(--line); }
.map-key { display: flex; gap: 1.2rem; padding: .8rem 1rem; border-bottom: 1px solid var(--line); color: var(--faint); font-size: .65rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.map-key span { display: inline-flex; align-items: center; gap: .35rem; }
.key-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(233,196,107,.15); }
.key-line { width: 17px; border-top: 1px dashed var(--teal); }
.case-map { position: relative; aspect-ratio: 16 / 9; min-height: 385px; overflow: hidden; }
.case-map svg { display: block; width: 100%; height: 100%; }
.land { fill: #173338; stroke: rgba(138,194,185,.25); stroke-width: 2; }
.route-line { fill: none; stroke: rgba(233,196,107,.28); stroke-width: 2; stroke-dasharray: 4 11; }
.route-lower { stroke: rgba(102,180,173,.22); }
.map-label { fill: rgba(158,221,210,.33); font-family: var(--sans); font-size: 20px; font-weight: 800; letter-spacing: 9px; }
.map-center-label { fill: rgba(158,221,210,.18); font-family: var(--sans); font-size: 10px; font-weight: 800; letter-spacing: 4px; text-anchor: middle; }
.map-marker {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transform: translate(-50%,-50%);
  transition: opacity .2s ease, transform .2s ease;
}
.map-marker:hover { transform: translate(-50%,-50%) scale(1.15); }
.marker-dot { position: absolute; inset: 6px; border-radius: 50%; background: var(--teal-bright); box-shadow: 0 0 12px var(--teal); }
.marker-pulse { position: absolute; inset: 0; border: 1px solid rgba(158,221,210,.6); border-radius: 50%; animation: pulse 2.6s ease-out infinite; }
.map-marker.selected .marker-dot { background: var(--gold); box-shadow: 0 0 14px var(--gold); }
.map-marker.selected .marker-pulse { border-color: var(--gold); }
.marker-label { position: absolute; left: 50%; top: calc(100% + .4rem); width: max-content; max-width: 120px; padding: .25rem .4rem; border: 1px solid rgba(158,221,210,.14); border-radius: 2px; color: #bdd0cb; background: rgba(4,15,18,.87); font-size: .62rem; font-weight: 700; line-height: 1.2; transform: translateX(-50%); }
.map-marker.selected .marker-label { color: var(--gold); border-color: rgba(233,196,107,.28); }
.map-marker.filtered-out { display: none; }
@keyframes pulse { 0% { transform: scale(.4); opacity: .9; } 78%,100% { transform: scale(1.7); opacity: 0; } }
.map-empty { position: absolute; left: 50%; top: 50%; padding: .7rem 1rem; border: 1px solid var(--line); color: var(--muted); background: rgba(4,15,18,.92); transform: translate(-50%,-50%); }
.case-file { position: relative; padding: clamp(1.5rem, 3vw, 3rem); background: linear-gradient(145deg, rgba(16,50,53,.43), rgba(7,22,26,.85)); }
.case-file::after { content: ''; position: absolute; right: 1rem; bottom: 1rem; width: 70px; height: 70px; border-right: 1px solid rgba(233,196,107,.2); border-bottom: 1px solid rgba(233,196,107,.2); pointer-events: none; }
.case-file-topline { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 2rem; color: var(--gold); font-size: .65rem; font-weight: 800; letter-spacing: .18em; }
.save-case { border: 0; color: var(--muted); background: transparent; font-size: .7rem; letter-spacing: .04em; cursor: pointer; }
.save-case[aria-pressed="true"] { color: var(--gold); }
.case-location { margin: 0 0 .5rem; color: var(--teal-bright); font-size: .72rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.case-file h3 { margin-bottom: 1rem; font-family: var(--serif); font-size: clamp(2rem, 3vw, 3.1rem); font-weight: 500; line-height: 1.02; }
.case-summary { margin: 0; color: #b8c8c4; }
.case-tags, .episode-tags { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: 1.25rem; }
.case-tags span, .episode-tags span { padding: .28rem .48rem; border: 1px solid var(--line); border-radius: 2px; color: var(--muted); font-size: .62rem; font-weight: 750; letter-spacing: .09em; text-transform: uppercase; }
.case-meta { margin: 2rem 0; }
.case-meta div { padding: 1rem 0; border-top: 1px solid var(--line); }
.case-meta dt { margin-bottom: .35rem; color: var(--faint); font-size: .62rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.case-meta dd { margin: 0; color: #b3c5c1; font-size: .82rem; }
.text-link { padding: 0 0 .3rem; border: 0; border-bottom: 1px solid rgba(233,196,107,.35); color: var(--gold); background: transparent; font-size: .74rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; cursor: pointer; }
.results-status { margin: .75rem 0 0; color: var(--faint); font-size: .72rem; }

.episodes { border-top: 1px solid var(--line); }
.episodes-heading { margin-bottom: 3rem; }
.episode-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; }
.episode-card { min-width: 0; border: 1px solid var(--line); background: rgba(10,27,32,.72); transition: border-color .2s ease, transform .2s ease; }
.episode-card:hover { transform: translateY(-5px); border-color: rgba(233,196,107,.35); }
.episode-card.highlighted { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold), 0 0 36px rgba(233,196,107,.11); }
.episode-card.filtered-out { display: none; }
.episode-art { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-bottom: 1px solid var(--line); background: #10272c; }
.poster-number { position: absolute; right: .8rem; top: .45rem; z-index: 3; color: rgba(255,255,255,.2); font-family: var(--serif); font-size: 3.2rem; line-height: 1; }
.poster-copy { position: absolute; left: 1.2rem; bottom: 1rem; z-index: 5; display: grid; filter: drop-shadow(0 2px 8px rgba(0,0,0,.8)); }
.poster-copy small { margin-bottom: .35rem; color: var(--gold); font-size: .56rem; font-weight: 800; letter-spacing: .16em; }
.poster-copy strong { font-family: var(--serif); font-size: clamp(1.8rem, 3vw, 2.8rem); font-weight: 500; line-height: .82; letter-spacing: -.04em; }
.art-kushtaka-dover {
  background:
    radial-gradient(circle at 76% 18%, rgba(222,207,155,.55) 0 7%, transparent 8%),
    linear-gradient(105deg, #0b3435 0 49.5%, #162833 50% 100%);
}
.art-kushtaka-dover::before {
  content: '';
  position: absolute;
  inset: 0 50% 0 0;
  background:
    linear-gradient(78deg, transparent 0 13%, rgba(3,15,16,.76) 14% 20%, transparent 21% 100%),
    linear-gradient(101deg, transparent 0 52%, rgba(3,15,16,.82) 53% 61%, transparent 62% 100%),
    linear-gradient(83deg, transparent 0 77%, rgba(3,15,16,.74) 78% 85%, transparent 86% 100%),
    linear-gradient(180deg, transparent 0 53%, rgba(4,18,20,.88) 54% 100%);
}
.art-kushtaka-dover::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: -15%;
  width: 56%;
  height: 69%;
  background: #071014;
  clip-path: polygon(0 47%, 37% 0, 47% 0, 100% 56%, 100% 100%, 0 100%);
}
.alaska-ripples {
  position: absolute;
  left: -5%;
  bottom: 17%;
  z-index: 2;
  width: 58%;
  height: 24%;
  border-top: 1px solid rgba(158,221,210,.48);
  border-radius: 50%;
  box-shadow: 0 -12px 25px rgba(45,129,126,.28);
  transform: rotate(-3deg);
}
.alaska-ripples::before,
.alaska-ripples::after {
  content: '';
  position: absolute;
  left: 5%;
  width: 92%;
  height: 100%;
  border-top: 1px solid rgba(158,221,210,.22);
  border-radius: 50%;
}
.alaska-ripples::before { top: 12px; }
.alaska-ripples::after { top: 25px; left: 13%; width: 76%; }
.kushtaka-shape {
  position: absolute;
  left: 21%;
  top: 37%;
  z-index: 3;
  width: 18%;
  height: 37%;
  background: rgba(3,12,14,.9);
  clip-path: polygon(39% 0, 62% 0, 73% 18%, 68% 36%, 83% 61%, 100% 92%, 82% 100%, 54% 73%, 42% 100%, 16% 100%, 30% 61%, 26% 34%);
  filter: drop-shadow(0 0 13px rgba(102,180,173,.2));
}
.kushtaka-shape i {
  position: absolute;
  top: 14%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal-bright);
  box-shadow: 0 0 10px var(--teal-bright);
}
.kushtaka-shape i:first-child { left: 42%; }
.kushtaka-shape i:last-child { right: 36%; }
.episode-divide {
  position: absolute;
  left: 50%;
  top: -8%;
  z-index: 4;
  width: 1px;
  height: 116%;
  background: linear-gradient(transparent, rgba(233,196,107,.62) 20% 80%, transparent);
  box-shadow: 0 0 16px rgba(233,196,107,.18);
  transform: rotate(5deg);
}
.demon-eyes { position: absolute; z-index: 3; right: 22%; top: 48%; display: flex; gap: 12px; }
.demon-eyes i { width: 7px; height: 7px; border-radius: 50%; background: #e5735c; box-shadow: 0 0 10px #e35d45; }
.paired-copy strong { font-size: clamp(1.55rem, 2.7vw, 2.55rem); line-height: .88; }
.paired-copy strong em { color: var(--gold); font-family: var(--sans); font-size: .43em; font-style: normal; letter-spacing: .16em; }
.art-triangles { background: linear-gradient(112deg, #102c34 0 49%, #221c2b 50% 100%); }
.art-triangles::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 22% 8%, rgba(86,219,170,.33), transparent 35%), radial-gradient(ellipse at 80% 25%, rgba(177,77,63,.25), transparent 30%); }
.triangle { position: absolute; bottom: 7%; width: 70%; height: 72%; border: 1px solid rgba(233,196,107,.32); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.triangle-left { left: -17%; background: linear-gradient(145deg, transparent 45%, rgba(4,13,17,.9) 46%); }
.triangle-right { right: -18%; background: linear-gradient(215deg, transparent 45%, rgba(7,9,16,.85) 46%); }
.ufo-light { position: absolute; left: 50%; top: 14%; width: 70px; height: 16px; border-radius: 50%; background: rgba(209,236,222,.75); filter: blur(1px); transform: translateX(-50%); box-shadow: 0 0 24px #b9eadb; }
.ufo-light::after { content: ''; position: absolute; left: -25px; top: 8px; width: 120px; height: 160px; background: linear-gradient(180deg, rgba(167,227,208,.24), transparent); clip-path: polygon(35% 0, 65% 0, 100% 100%, 0 100%); }
.art-ships { background: radial-gradient(ellipse at 32% 20%, rgba(145,184,178,.2), transparent 42%), linear-gradient(#14282d, #071319 72%); }
.art-little-people {
  background:
    radial-gradient(circle at 68% 37%, rgba(233,196,107,.28) 0 1%, transparent 2%),
    radial-gradient(circle at 77% 53%, rgba(158,221,210,.24) 0 1%, transparent 2%),
    linear-gradient(150deg, #18362f 0%, #0b1f20 45%, #071216 100%);
}
.art-little-people::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(79deg, transparent 0 13%, rgba(3,12,12,.82) 14% 18%, transparent 19% 100%),
    linear-gradient(102deg, transparent 0 46%, rgba(3,12,12,.72) 47% 52%, transparent 53% 100%),
    linear-gradient(86deg, transparent 0 76%, rgba(3,12,12,.76) 77% 81%, transparent 82% 100%);
}
.art-little-people::after {
  content: '';
  position: absolute;
  inset: 42% 0 0;
  background: linear-gradient(180deg, transparent, rgba(2,10,11,.92));
  clip-path: polygon(0 35%, 8% 15%, 16% 38%, 24% 9%, 33% 42%, 43% 18%, 52% 39%, 61% 6%, 70% 37%, 80% 12%, 89% 41%, 100% 17%, 100% 100%, 0 100%);
}
.forest-lights i {
  position: absolute;
  z-index: 4;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 9px var(--gold), 0 0 22px rgba(233,196,107,.6);
}
.forest-lights i:nth-child(1) { left: 62%; top: 36%; }
.forest-lights i:nth-child(2) { left: 69%; top: 47%; transform: scale(.7); }
.forest-lights i:nth-child(3) { left: 78%; top: 30%; transform: scale(.45); }
.upcoming-ribbon {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 6;
  padding: .38rem .58rem;
  border: 1px solid rgba(233,196,107,.45);
  color: var(--gold);
  background: rgba(6,17,21,.78);
  font-size: .62rem;
  font-weight: 850;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.episode-upcoming { border-color: rgba(233,196,107,.25); }
.teaser-note { color: var(--gold); font-family: var(--serif); font-size: .95rem; font-style: italic; }
.ghost-ship { position: absolute; right: 12%; top: 34%; width: 52%; height: 35%; opacity: .66; filter: drop-shadow(0 0 12px rgba(170,226,215,.3)); }
.ghost-ship::before { content: ''; position: absolute; left: 10%; right: 0; bottom: 3%; height: 30%; background: #9bc5be; clip-path: polygon(0 0, 100% 0, 82% 100%, 17% 100%); }
.ghost-ship::after { content: ''; position: absolute; left: 48%; bottom: 23%; width: 3px; height: 78%; background: #b5d0ca; }
.ghost-ship i { position: absolute; left: 49%; bottom: 40%; width: 39%; height: 51%; border-left: 1px solid #c0d8d3; border-bottom: 1px solid #c0d8d3; clip-path: polygon(0 0, 100% 100%, 0 100%); background: rgba(181,208,202,.2); }
.ghost-ship span { position: absolute; left: 17%; bottom: 42%; width: 31%; height: 36%; border-right: 1px solid #c0d8d3; border-bottom: 1px solid #c0d8d3; background: rgba(181,208,202,.14); clip-path: polygon(100% 0, 100% 100%, 0 100%); }
.storm-wave { position: absolute; left: -15%; width: 130%; height: 28%; border-top: 2px solid rgba(102,180,173,.6); border-radius: 50%; }
.wave-one { bottom: -3%; transform: rotate(-4deg); box-shadow: 0 -10px 35px rgba(18,88,93,.7); }
.wave-two { bottom: -14%; transform: rotate(5deg); }
.episode-content { padding: 1.3rem; }
.episode-kicker { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: .75rem; color: var(--gold); font-size: .58rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.episode-kicker span:last-child { color: var(--faint); text-align: right; }
.episode-content h3 { min-height: 2.2em; margin-bottom: .65rem; font-family: var(--serif); font-size: 1.55rem; font-weight: 500; line-height: 1.08; }
.episode-content > p { min-height: 5.5em; margin: 0; color: var(--muted); font-size: .86rem; }
.episode-tags { min-height: 2.1rem; align-content: start; margin-top: .9rem; }
.episode-actions { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 1.3rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.button-small { min-height: 38px; padding: .55rem .75rem; border-color: rgba(233,196,107,.3); color: var(--gold); background: transparent; font-size: .67rem; }
.icon-link { color: var(--muted); font-size: .72rem; font-weight: 750; letter-spacing: .06em; text-decoration: none; text-transform: uppercase; }
.icon-link:hover { color: var(--gold); }
.episodes-empty { padding: 3rem; border: 1px solid var(--line); text-align: center; color: var(--muted); }
.episodes-empty strong { display: block; margin-bottom: .8rem; color: var(--ink); font-family: var(--serif); font-size: 1.5rem; }
.episodes-empty button { border: 0; border-bottom: 1px solid var(--gold); color: var(--gold); background: transparent; cursor: pointer; }
footer { display: grid; grid-template-columns: 1fr 1.4fr auto; align-items: center; gap: 2rem; margin-top: 6rem; padding-top: 2rem; border-top: 1px solid var(--line); }
footer p { margin: 0; color: var(--faint); font-size: .76rem; }
footer > a { color: var(--muted); font-size: .72rem; font-weight: 750; text-decoration: none; text-transform: uppercase; }

.episode-dialog {
  width: min(720px, calc(100vw - 2rem));
  padding: clamp(1.5rem, 4vw, 3.2rem);
  border: 1px solid rgba(233,196,107,.28);
  color: var(--ink);
  background: #0b2025;
  box-shadow: 0 30px 100px rgba(0,0,0,.65);
}
.episode-dialog::backdrop { background: rgba(1,8,10,.78); backdrop-filter: blur(8px); }
.dialog-close { position: absolute; right: 1rem; top: .8rem; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%; color: var(--muted); background: transparent; font-size: 1.5rem; cursor: pointer; }
.episode-dialog h2 { margin: 0 2rem 1rem 0; font-family: var(--serif); font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 500; line-height: .98; }
.dialog-description { color: var(--muted); }
.dialog-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2rem; margin: 2rem 0; padding: 1.4rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.dialog-grid h3 { color: var(--gold); font-size: .68rem; letter-spacing: .15em; text-transform: uppercase; }
.dialog-grid ul { margin: 0; padding-left: 1.1rem; color: #b8c8c4; }
.dialog-listen { display: grid; gap: .45rem; }
.dialog-listen a { display: flex; justify-content: space-between; padding-bottom: .4rem; border-bottom: 1px solid var(--line); color: #b8c8c4; font-size: .8rem; text-decoration: none; }
.dialog-listen a:hover { color: var(--gold); }
.dialog-map { width: 100%; }

@media (max-width: 1050px) {
  .hero { grid-template-columns: 1fr .8fr; padding-left: 3rem; padding-right: 3rem; }
  .hero-stats { left: 3rem; right: 3rem; }
  .section-shell { padding-left: 3rem; padding-right: 3rem; }
  .atlas-layout { grid-template-columns: 1fr; }
  .map-panel { border-right: 0; border-bottom: 1px solid var(--line); }
  .case-file { min-height: 430px; }
  .episode-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .episode-card:last-child { grid-column: span 2; display: grid; grid-template-columns: 1fr 1fr; }
  .episode-card:last-child .episode-art { aspect-ratio: auto; border-right: 1px solid var(--line); border-bottom: 0; }
}

@media (max-width: 740px) {
  .site-header { grid-template-columns: 1fr auto; padding-inline: 1rem; }
  .brand-logo { width: 60px; height: 60px; }
  .footer-logo { width: 60px; height: 60px; }
  .site-header nav { display: none; }
  .private-badge { font-size: 0; }
  .private-badge::after { content: 'Private'; font-size: .65rem; }
  .private-badge span { font-size: .65rem; }
  .hero { grid-template-columns: 1fr; min-height: auto; padding: 4.5rem 1.25rem 9rem; }
  .hero-art { max-width: 560px; margin: 0 auto; }
  .hero-logo-medallion { width: clamp(138px, 38vw, 190px); top: 0; right: 1%; }
  .hero-stats { left: 1.25rem; right: 1.25rem; overflow-x: auto; }
  .hero-stats div { flex: 0 0 auto; }
  .hero-stats dt { font-size: 1.3rem; }
  .section-shell { padding: 5rem 1rem; }
  .section-heading { display: grid; }
  .explorer-toolbar { align-items: stretch; flex-direction: column; }
  .search-box { min-width: 0; }
  .atlas-layout, .map-panel, .case-file { width: 100%; min-width: 0; }
  .atlas-layout { overflow: hidden; }
  .map-key { flex-wrap: wrap; gap: .45rem 1rem; }
  .case-map { width: 100%; min-height: 0; aspect-ratio: 16 / 10; }
  .case-map svg { object-fit: fill; }
  .case-file { min-height: 0; padding: 1.35rem 1.15rem 1.75rem; overflow-wrap: anywhere; }
  .case-file-topline { flex-wrap: wrap; margin-bottom: 1.4rem; }
  .marker-label { display: none; }
  .episode-grid { grid-template-columns: 1fr; }
  .episode-card:last-child { grid-column: auto; display: block; }
  .episode-card:last-child .episode-art { aspect-ratio: 4/3; border-right: 0; border-bottom: 1px solid var(--line); }
  .episode-content h3, .episode-content > p { min-height: 0; }
  footer { grid-template-columns: 1fr; }
  .dialog-grid { grid-template-columns: 1fr; }
}

@media (max-width: 390px) {
  .site-header { padding-inline: .75rem; }
  .brand { gap: .6rem; }
  .brand strong { font-size: .92rem; }
  .brand small { font-size: .58rem; }
  .section-shell { padding-inline: .75rem; }
  .map-key { padding-inline: .75rem; font-size: .6rem; }
  .case-file { padding-inline: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
