:root {
  --black: #020609;
  --black-soft: #071016;
  --panel: rgba(6, 15, 20, .9);
  --panel-solid: #09141a;
  --white: #d8d3cc;
  --muted: #8497a0;
  --acid: #c7c0b7;
  --acid-soft: #e5dfd7;
  --cyan: #648493;
  --cyan-soft: #a7bbc3;
  --pink: #7b4658;
  --red: #8b403a;
  --line: rgba(100, 132, 147, .25);
  --line-hot: rgba(199, 192, 183, .5);
  --shadow-cyan: 0 0 30px rgba(100, 132, 147, .2);
  --shadow-acid: 0 0 34px rgba(199, 192, 183, .16);
  --display: "DejaVu Sans Condensed", "Arial Narrow", Impact, sans-serif;
  --sans: "Arial Narrow", "Roboto Condensed", Arial, sans-serif;
  --mono: "Courier New", Courier, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 86px; background: var(--black); }
body { margin: 0; min-width: 320px; overflow-x: hidden; color: var(--white); background: var(--black); font-family: var(--sans); }
body.modal-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
img { display: block; max-width: 100%; }
::selection { color: #000; background: var(--acid); }
:focus-visible { outline: 2px solid var(--acid); outline-offset: 4px; }

.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; }

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  opacity: .16;
  background: repeating-linear-gradient(0deg, rgba(255,255,255,.035) 0 1px, transparent 1px 4px);
  mix-blend-mode: screen;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 199;
  pointer-events: none;
  box-shadow: inset 0 0 140px rgba(0,0,0,.58);
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 80;
  min-height: 78px;
  padding: 0 clamp(22px, 4.6vw, 76px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  background: linear-gradient(180deg, rgba(2,4,7,.97), rgba(2,4,7,.72));
  border-bottom: 1px solid rgba(100,132,147,.28);
  backdrop-filter: blur(16px);
}

.site-header::after { content: ""; position: absolute; left: 0; bottom: -3px; width: 34%; height: 3px; background: var(--acid); box-shadow: 0 0 14px rgba(199,192,183,.8); }
.site-header.scrolled { background: rgba(2,4,7,.94); }
.brand { display: inline-flex; align-items: center; gap: 13px; min-width: max-content; }
.brand-seal { position: relative; width: 39px; height: 39px; display: flex; align-items: center; justify-content: center; gap: 4px; color: var(--acid); background: rgba(199,192,183,.08); border: 1px solid var(--acid); transform: skew(-9deg); box-shadow: 0 0 18px rgba(199,192,183,.22); }
.brand-seal::after { content: ""; position: absolute; right: -6px; bottom: -5px; width: 13px; height: 8px; border-right: 2px solid var(--pink); border-bottom: 2px solid var(--pink); }
.brand-seal i { width: 2px; height: 20px; display: block; background: currentColor; }
.brand-seal i:nth-child(2) { height: 29px; }
.brand-copy { display: flex; flex-direction: column; line-height: 1; }
.brand-copy small { margin-bottom: 4px; color: var(--cyan); font: 700 7px var(--mono); letter-spacing: .17em; text-transform: uppercase; }
.brand-copy strong { font: 400 20px var(--display); letter-spacing: .08em; text-transform: uppercase; }
.main-nav { display: flex; align-items: center; gap: clamp(18px,2.2vw,36px); }
.main-nav a { position: relative; color: #b5c9d2; font: 700 9px var(--mono); letter-spacing: .12em; text-transform: uppercase; transition: color .2s, text-shadow .2s; }
.main-nav a:hover { color: var(--cyan); text-shadow: 0 0 12px rgba(100,132,147,.7); }
.main-nav .nav-button { padding: 13px 21px; color: #050607; background: var(--acid); border: 1px solid var(--acid); box-shadow: var(--shadow-acid); }
.main-nav .nav-button:hover { color: #050607; filter: brightness(1.12); text-shadow: none; }
.menu-toggle { display: none; border: 0; padding: 8px; background: transparent; cursor: pointer; }
.menu-toggle > span { width: 27px; height: 2px; margin: 5px 0; display: block; background: var(--acid); box-shadow: 0 0 8px rgba(199,192,183,.5); transition: transform .2s, opacity .2s; }

.hero {
  position: relative;
  min-height: 780px;
  height: auto;
  padding: 126px clamp(24px,6.6vw,108px) 66px;
  display: grid;
  grid-template-columns: minmax(0,1.3fr) minmax(330px,.7fr);
  align-items: center;
  gap: clamp(28px,5vw,80px);
  overflow: hidden;
  isolation: isolate;
  background: #020609;
}

.hero-city { position: absolute; inset: 0; z-index: -4; background: url("/assets/ledger-city-hero.webp") center/cover no-repeat; filter: grayscale(.78) sepia(.12) hue-rotate(145deg) saturate(.52) contrast(1.16) brightness(.52); transform: scale(1.015); }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -3; background: linear-gradient(90deg, rgba(2,4,7,.94) 0%, rgba(2,4,7,.74) 31%, rgba(2,4,7,.16) 64%, rgba(2,4,7,.08)), linear-gradient(180deg, rgba(2,4,7,.22), transparent 56%, #020609 98%); }
.hero::after { content: "LEDGER CITY // LIVE GRID // 2098"; position: absolute; left: 0; bottom: 0; width: min(760px,70%); padding: 12px 5vw; color: #020609; background: var(--acid); font: 700 8px var(--mono); letter-spacing: .19em; }
.hero-neon { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-neon i { position: absolute; display: block; }
.hero-neon i:nth-child(1) { right: 2.4%; top: 21%; width: 6px; height: 38%; background: var(--pink); box-shadow: 0 0 35px var(--pink); opacity: .58; }
.hero-neon i:nth-child(2) { left: 48%; top: 20%; width: 120px; height: 2px; background: var(--cyan); box-shadow: 0 0 20px var(--cyan); transform: rotate(-18deg); }
.hero-neon i:nth-child(3) { right: 30%; bottom: 16%; width: 82px; height: 5px; background: var(--acid); box-shadow: 0 0 24px var(--acid); }
.map-grid { position: absolute; inset: 78px 0 0; z-index: -2; opacity: .3; pointer-events: none; background-image: linear-gradient(rgba(100,132,147,.13) 1px, transparent 1px), linear-gradient(90deg, rgba(100,132,147,.13) 1px, transparent 1px); background-size: 78px 78px; mask-image: linear-gradient(90deg, black, transparent 66%); }
.map-grid::before { content: ""; position: absolute; inset: 8% auto auto 4%; width: 37vw; height: 37vw; border: 1px solid rgba(100,132,147,.24); border-radius: 50%; box-shadow: 0 0 0 45px rgba(100,132,147,.02), 0 0 0 90px rgba(100,132,147,.015); }
.route-line, .map-node { display: none; }
.hero-copy { position: relative; z-index: 4; max-width: 780px; }
.authority-line { display: inline-flex; align-items: center; gap: 11px; margin: 0 0 21px; padding: 8px 13px; color: var(--cyan); background: rgba(100,132,147,.08); border-left: 2px solid var(--cyan); font: 700 8px var(--mono); letter-spacing: .15em; text-transform: uppercase; }
.authority-line span { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); animation: signal 1.6s infinite; }
.series-label { margin: 0 0 14px; color: var(--acid); font: 700 10px var(--mono); letter-spacing: .2em; text-transform: uppercase; }
h1,h2,h3 { margin: 0; font-family: var(--display); font-weight: 400; text-transform: uppercase; }
h1 { display: flex; flex-direction: column; align-items: flex-start; font-size: clamp(62px,7.9vw,128px); line-height: .78; letter-spacing: .005em; text-shadow: 6px 6px 0 rgba(0,0,0,.68); }
h1 > span:first-child { font-size: .58em; color: var(--white); letter-spacing: .035em; }
h1 > span:nth-child(2) { color: var(--white); }
h1 em { position: relative; margin-top: .11em; padding: .06em .16em .1em; color: #050607; background: var(--acid); font-style: normal; font-size: .6em; letter-spacing: .03em; text-shadow: none; box-shadow: var(--shadow-acid); }
.hero-deck { max-width: 580px; margin: 27px 0 29px; color: #d5e4ea; font-size: 17px; line-height: 1.62; text-shadow: 0 2px 12px #000; }
.hero-actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.button { min-height: 55px; padding: 0 25px; display: inline-flex; align-items: center; justify-content: center; gap: 28px; border: 1px solid transparent; text-transform: uppercase; letter-spacing: .12em; font: 700 9px var(--mono); cursor: pointer; transition: transform .2s, filter .2s, box-shadow .2s; }
.button:hover { transform: translateY(-3px); filter: brightness(1.12); }
.button-brass { color: #050607; background: var(--acid); border-color: var(--acid); box-shadow: 0 0 26px rgba(199,192,183,.23); }
.text-link { padding: 9px 0; color: var(--cyan-soft); border-bottom: 1px solid var(--cyan); font: 700 9px var(--mono); letter-spacing: .12em; text-transform: uppercase; text-shadow: 0 0 9px rgba(100,132,147,.55); }
.text-link:hover { color: #fff; }
.hero-copy blockquote { margin: 28px 0 0; color: #9eb9c4; font: 700 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.hero-metrics { margin-top: 31px; display: flex; gap: 8px; flex-wrap: wrap; }
.hero-metrics span { min-width: 125px; padding: 10px 13px; display: inline-flex; flex-direction: column; color: #8ba4af; background: rgba(4,11,17,.68); border: 1px solid rgba(100,132,147,.18); font: 700 7px var(--mono); letter-spacing: .11em; }
.hero-metrics b { margin-bottom: 4px; color: var(--cyan); font-size: 14px; }
.hero-portrait { position: relative; z-index: 3; height: clamp(420px,calc(100svh - 170px),650px); width: auto; max-width: 420px; aspect-ratio: 2/3; justify-self: end; align-self: center; overflow: visible; background: #020609; border: 1px solid rgba(100,132,147,.55); box-shadow: -20px 0 70px rgba(0,0,0,.35); }
.hero-portrait::before,.hero-portrait::after { display: none; }
.hero-portrait img { width: 100%; height: 100%; object-fit: contain; object-position: center; filter: contrast(1.03) brightness(.94); }
.portrait-code { position: absolute; z-index: 5; top: 17px; left: 22px; padding: 7px 9px; color: #040506; background: var(--cyan); font: 700 7px var(--mono); letter-spacing: .15em; }
.portrait-scan { position: absolute; z-index: 5; left: 6%; right: 6%; top: 36%; height: 2px; background: var(--pink); box-shadow: 0 0 15px var(--pink); animation: scan 5s ease-in-out infinite; }
.portrait-caption { position: absolute; z-index: 5; left: 23px; right: 23px; bottom: 24px; padding: 14px 0 0; display: flex; justify-content: space-between; gap: 18px; border-top: 1px solid var(--cyan); }
.portrait-caption span { color: #fff; font: 400 25px var(--display); letter-spacing: .07em; text-transform: uppercase; }
.portrait-caption b { color: var(--acid); font: 700 7px var(--mono); letter-spacing: .12em; text-align: right; }
.hero-index { position: absolute; z-index: 5; right: 24px; bottom: 35px; display: none; }

.section { position: relative; padding: 116px clamp(24px,6.6vw,108px); border-top: 1px solid rgba(100,132,147,.14); overflow: hidden; }
.section[id],.shop-section[id] { scroll-margin-top: 86px; }
.section-marker { color: #6e8995; font: 700 8px var(--mono); letter-spacing: .16em; text-transform: uppercase; }
.section-marker span { margin-right: 12px; color: var(--pink); }
.section-marker.light { color: #6e8995; }
.section-marker.light span { color: var(--pink); }
.eyebrow { margin: 25px 0 14px; color: var(--cyan); font: 700 9px var(--mono); letter-spacing: .17em; text-transform: uppercase; }
.section h2, .books-page h1 { font-size: clamp(48px,5.4vw,86px); line-height: .88; letter-spacing: .015em; }
.section h2 span { color: var(--acid); }
.section-heading { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(260px,.65fr); gap: 80px; align-items: end; margin-bottom: 64px; }
.section-heading > p { margin: 0; color: #91a8b2; font-size: 14px; line-height: 1.75; }

.record-intro { display: grid; grid-template-columns: .28fr 1.25fr .67fr; gap: clamp(30px,5vw,80px); align-items: start; background: linear-gradient(125deg, #06151d, #03070b 58%, #0b0610); }
.record-intro::before { content: ""; position: absolute; inset: 0; opacity: .23; background-image: linear-gradient(rgba(100,132,147,.14) 1px,transparent 1px),linear-gradient(90deg,rgba(100,132,147,.14) 1px,transparent 1px); background-size: 44px 44px; transform: perspective(700px) rotateX(62deg) scale(1.8); transform-origin: center bottom; }
.record-intro > * { position: relative; z-index: 2; }
.intro-copy > p:last-child { max-width: 690px; color: #a7bbc4; font-size: 16px; line-height: 1.78; }
.brass-notice { position: relative; min-height: 305px; padding: 43px 32px 31px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; color: #050607; background: var(--acid); text-align: left; border: 1px solid rgba(255,255,255,.28); box-shadow: var(--shadow-acid); }
.brass-notice::before { content: "WARNING / WARNING / WARNING"; position: absolute; left: 0; right: 0; top: 0; padding: 8px 13px; color: var(--acid); background: #050607; font: 700 7px var(--mono); letter-spacing: .18em; }
.brass-notice small { font: 700 8px var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.brass-notice strong { margin-top: 8px; font: 400 33px var(--display); letter-spacing: .04em; text-transform: uppercase; }
.brass-notice > i { width: 75%; height: 4px; margin: 15px 0; background: #050607; }
.brass-notice p { margin: 0; font: 700 17px/1.28 var(--mono); letter-spacing: .08em; }
.brass-notice b { margin-top: 22px; font: 700 7px var(--mono); letter-spacing: .13em; }
.screw { display: none; }

.case-archive { color: var(--white); background: #04080c; }
.case-archive::before { content: "CASE ARCHIVE"; position: absolute; right: -2vw; top: 2vw; color: rgba(100,132,147,.035); font: 400 clamp(90px,16vw,260px) var(--display); white-space: nowrap; }
.case-archive::after { content: ""; position: absolute; inset: 0; opacity: .12; background: repeating-linear-gradient(135deg,transparent 0 26px,rgba(100,132,147,.19) 27px 28px); mask-image: linear-gradient(90deg,transparent,black); }
.case-archive > * { position: relative; z-index: 2; }
.case-archive .eyebrow { color: var(--acid); }
.case-archive h2 { color: #fff; }
.case-grid { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 13px; }
.case-card { --case-accent: #648493; position: relative; width: 100%; padding: 0; display: flex; flex-direction: column; overflow: hidden; color: #d8d3cc; background: #071016; border: 1px solid var(--case-accent); text-align: left; cursor: pointer; box-shadow: 0 18px 45px rgba(0,0,0,.28); transition: transform .24s,box-shadow .24s,filter .24s; }
.case-card:nth-child(1) { --case-accent: #648493; }.case-card:nth-child(2) { --case-accent: #6d587e; }.case-card:nth-child(3) { --case-accent: #9a7950; }.case-card:nth-child(4) { --case-accent: #8b403a; }.case-card:nth-child(5) { --case-accent: #4e7658; }.case-card:nth-child(6) { --case-accent: #52779a; }.case-card:nth-child(7) { --case-accent: #844b67; }.case-card:nth-child(8) { --case-accent: #a17b47; }.case-card:nth-child(9) { --case-accent: #8b653e; }.case-card:nth-child(10) { --case-accent: #a48b6b; }
.case-card::before { content: ""; position: absolute; z-index: 3; left: 0; top: 0; width: 48%; height: 4px; background: var(--case-accent); box-shadow: 0 0 13px var(--case-accent); }
.case-card::after { content: ""; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 45px rgba(0,0,0,.2); }
.case-card:hover,.case-card:focus-visible { transform: translateY(-8px); box-shadow: 0 24px 58px rgba(0,0,0,.5),0 0 22px color-mix(in srgb,var(--case-accent) 32%,transparent); filter: brightness(1.05); }
.case-cover { position: relative; z-index: 1; display: block; aspect-ratio: 2/3; overflow: hidden; background: #020609; }
.case-cover img { width: 100%; height: 100%; object-fit: contain; }
.case-open { position: relative; z-index: 2; min-height: 52px; padding: 0 15px; display: flex; align-items: center; justify-content: space-between; color: #9eaaa9; border-top: 1px solid var(--case-accent); background: #071016; font: 700 7px var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.case-open i { color: var(--case-accent); font-style: normal; font-size: 14px; }

.characters { background: linear-gradient(135deg,#05070a,#08131b 55%,#100513); }
.characters::after { content: ""; position: absolute; inset: 0; opacity: .12; background-image: linear-gradient(rgba(100,132,147,.18) 1px,transparent 1px),linear-gradient(90deg,rgba(100,132,147,.18) 1px,transparent 1px); background-size: 75px 75px; }
.characters > * { position: relative; z-index: 2; }
.characters-heading > p { color: #8ca3ad; }
.character-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.character-card { position: relative; min-height: 690px; overflow: hidden; background: #061019; border: 1px solid rgba(100,132,147,.3); }
.character-card:nth-child(2) { border-color: rgba(123,70,88,.4); }
.character-card:nth-child(3) { border-color: rgba(199,192,183,.4); }
.character-card::before { content: ""; position: absolute; z-index: 3; left: 0; top: 0; width: 42%; height: 6px; background: var(--cyan); box-shadow: 0 0 18px var(--cyan); }
.character-card:nth-child(2)::before { background: var(--pink); box-shadow: 0 0 18px var(--pink); }
.character-card:nth-child(3)::before { background: var(--acid); box-shadow: 0 0 18px var(--acid); }
.character-image { position: absolute; inset: 0; }
.character-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg,rgba(100,132,147,.11),transparent 38%),linear-gradient(transparent 38%,rgba(2,5,8,.98) 88%); }
.character-image img { width: 100%; height: 100%; object-fit: cover; object-position: center 13%; filter: saturate(.9) contrast(1.12); transition: transform .5s,filter .5s; }
.character-card:hover img { transform: scale(1.035); filter: saturate(1.12) contrast(1.1); }
.character-file { position: absolute; z-index: 4; left: 26px; right: 26px; bottom: 27px; }
.character-file > span { color: var(--cyan); font: 700 7px var(--mono); letter-spacing: .13em; }
.character-card:nth-child(2) .character-file > span { color: var(--pink); }
.character-card:nth-child(3) .character-file > span { color: var(--acid); }
.character-file h3 { margin: 9px 0 3px; color: #fff; font-size: 41px; line-height: .95; }
.character-file > b { color: var(--acid); font: 700 8px var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.character-file p { margin: 15px 0 0; padding-top: 14px; color: #a4bac3; border-top: 1px solid rgba(100,132,147,.18); font-size: 12px; line-height: 1.62; }

.city { min-height: 900px; display: grid; grid-template-columns: 1.2fr .8fr; gap: 6vw; align-items: center; isolation: isolate; background: #020609; }
.city::before { content: ""; position: absolute; inset: 0; z-index: -3; background: url("/assets/ledger-city-street.webp") center/cover no-repeat; filter: grayscale(.72) sepia(.1) hue-rotate(145deg) saturate(.48) contrast(1.14) brightness(.5); }
.city::after { content: ""; position: absolute; inset: 0; z-index: -2; background: linear-gradient(90deg,rgba(2,4,7,.16),rgba(2,4,7,.38) 42%,rgba(2,4,7,.94) 71%),linear-gradient(180deg,rgba(2,4,7,.2),rgba(2,4,7,.78)); }
.city-map { position: relative; display: block; aspect-ratio: 4/3; overflow: hidden; background: #020609; border: 1px solid rgba(100,132,147,.4); box-shadow: inset 0 0 80px rgba(0,0,0,.25),var(--shadow-cyan); }
.city-map img { display: block; width: 100%; height: 100%; object-fit: contain; transition: filter .25s ease,transform .35s ease; }
.city-map:hover img { filter: brightness(1.08); transform: scale(1.008); }
.map-open { position: absolute; right: 16px; bottom: 16px; padding: 13px 15px; color: #020609; background: var(--acid); border: 1px solid rgba(255,255,255,.42); font: 700 7px var(--mono); letter-spacing: .11em; text-transform: uppercase; box-shadow: 0 0 22px rgba(199,192,183,.3); }
.map-open b { margin-left: 16px; }
.city-copy { position: relative; padding: 38px; background: rgba(2,7,11,.84); border: 1px solid rgba(100,132,147,.24); border-left: 3px solid var(--acid); backdrop-filter: blur(10px); }
.city-copy > p:not(.eyebrow):not(.map-note) { color: #b5cad3; line-height: 1.75; }
.city-facts { margin: 31px 0 0; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid rgba(100,132,147,.23); }
.city-facts > div { padding: 15px 0; border-bottom: 1px solid rgba(100,132,147,.2); }
.city-facts > div:nth-child(odd) { padding-right: 18px; border-right: 1px solid rgba(100,132,147,.2); }
.city-facts > div:nth-child(even) { padding-left: 18px; }
.city-facts dt { color: #6f8e9b; font: 700 7px var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.city-facts dd { margin: 6px 0 0; color: var(--acid); font: 700 12px var(--mono); text-transform: uppercase; }
.city-link { margin-top: 25px; }
.map-note { margin-top: 18px; color: #5c7c88; font: 700 7px var(--mono); letter-spacing: .1em; text-transform: uppercase; }

.buy-strip { min-height: 410px; display: flex; align-items: center; justify-content: space-between; gap: 60px; background: linear-gradient(105deg,var(--acid) 0 58%,#09020a 58%); color: #020609; }
.buy-strip::before { content: "BUY // READ // SOLVE"; position: absolute; left: 4vw; bottom: -30px; color: rgba(0,0,0,.08); font: 400 clamp(70px,12vw,190px) var(--display); white-space: nowrap; }
.buy-strip > * { position: relative; z-index: 2; }
.buy-strip .eyebrow { color: #071116; }
.buy-strip h2 span { color: #071116; }
.buy-strip .button { color: var(--white); background: var(--pink); box-shadow: 0 0 34px rgba(123,70,88,.36); }

.begin { min-height: 650px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; isolation: isolate; background: #020609; }
.begin::before { content: ""; position: absolute; inset: 0; z-index: -3; background: url("/assets/ledger-city-hero.webp") center/cover no-repeat; filter: grayscale(.78) sepia(.12) hue-rotate(145deg) saturate(.5) contrast(1.16) brightness(.48); }
.begin::after { content: ""; position: absolute; inset: 0; z-index: -2; background: linear-gradient(90deg,rgba(2,4,7,.93),rgba(2,4,7,.56),rgba(2,4,7,.18)); }
.begin-lines { position: absolute; inset: 0; z-index: -1; opacity: .24; background-image: linear-gradient(rgba(100,132,147,.16) 1px,transparent 1px),linear-gradient(90deg,rgba(100,132,147,.16) 1px,transparent 1px); background-size: 64px 64px; mask-image: linear-gradient(90deg,black,transparent 70%); }
.begin > *:not(.begin-lines) { position: relative; z-index: 2; max-width: 730px; }.begin h2 { margin: 8px 0 20px; }.begin > p:not(.eyebrow) { margin: 0 0 28px; color: #b8ccd4; font-size: 16px; line-height: 1.72; }

footer { min-height: 145px; padding: 28px clamp(24px,5vw,80px); display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: center; gap: 24px; color: #65808b; background: #020609; border-top: 1px solid rgba(100,132,147,.22); }
.footer-brand { color: #d8edf4; }.footer-brand .brand-copy strong { font-size: 16px; }
footer > p { margin: 0; text-align: center; font: 700 7px var(--mono); letter-spacing: .1em; }
footer nav { display: flex; justify-content: flex-end; gap: 19px; flex-wrap: wrap; }
footer nav a { font: 700 7px var(--mono); letter-spacing: .1em; text-transform: uppercase; }
footer nav a:hover { color: var(--acid); }

.modal[hidden] { display: none; }
.modal { position: fixed; inset: 0; z-index: 120; padding: 24px; display: grid; place-items: center; }
.modal-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: rgba(0,2,4,.88); backdrop-filter: blur(9px); cursor: default; }
.modal-card { position: relative; z-index: 2; width: min(650px,100%); max-height: min(730px,90vh); overflow: auto; padding: 50px; color: #e8f9ff; background: linear-gradient(145deg,#081923,#05080d); border: 1px solid var(--cyan); box-shadow: 0 35px 100px rgba(0,0,0,.7),var(--shadow-cyan); }
.modal-card::before { content: ""; position: absolute; left: 0; top: 0; width: 44%; height: 6px; background: var(--acid); box-shadow: 0 0 18px var(--acid); }
.modal-close { position: absolute; z-index: 3; top: 18px; right: 20px; width: 38px; height: 38px; color: #041014; background: var(--pink); border: 0; font-size: 25px; line-height: 1; cursor: pointer; }
.modal-number { color: var(--pink); font: 700 8px var(--mono); letter-spacing: .15em; }.modal-card .eyebrow { margin-top: 33px; }.modal-card h2 { font-size: clamp(48px,7vw,72px); }
.modal-summary { margin: 24px 0; color: #b1c6cf; font-size: 15px; line-height: 1.76; }.modal-card blockquote { margin: 0 0 29px; padding: 9px 0 9px 19px; color: #f1fbff; border-left: 3px solid var(--pink); font: 700 13px/1.6 var(--mono); }.modal-done { position: relative; }

/* Dedicated books route */
.books-page { min-height: 100vh; background: #020609; }
.books-hero { position: relative; min-height: 620px; padding: 145px clamp(24px,6.6vw,108px) 80px; display: flex; align-items: center; overflow: hidden; background: #020609; }
.books-hero::after { content: ""; position: absolute; inset: 0; z-index: 0; background: linear-gradient(90deg,rgba(2,6,9,.94),rgba(2,6,9,.58) 55%,rgba(2,6,9,.2)),linear-gradient(180deg,transparent,#020609),url("/assets/ledger-city-hero.webp") center/cover no-repeat; filter: grayscale(.78) sepia(.12) hue-rotate(145deg) saturate(.5) contrast(1.16) brightness(.54); transform: scale(1.012); }
.books-hero::before { content: ""; position: absolute; inset: 0; z-index: 1; opacity: .26; background-image: linear-gradient(rgba(100,132,147,.14) 1px,transparent 1px),linear-gradient(90deg,rgba(100,132,147,.14) 1px,transparent 1px); background-size: 78px 78px; mask-image: linear-gradient(90deg,black,transparent 75%); }
.books-hero-copy { position: relative; z-index: 2; max-width: 790px; }
.books-hero h1 { font-size: clamp(68px,9vw,142px); line-height: .78; }
.books-hero h1 span { display: block; color: var(--acid); }
.books-hero p:last-child { max-width: 620px; color: #d2e3e9; font-size: 17px; line-height: 1.7; }
.shop-section { background: radial-gradient(circle at 70% 10%,rgba(123,70,88,.09),transparent 30%),#04090e; }
.shop-note { max-width: 720px; margin-bottom: 45px; padding: 18px 21px; color: #a5bdc7; background: rgba(100,132,147,.06); border-left: 3px solid var(--cyan); font: 700 9px/1.65 var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.shop-grid { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 14px; }
.shop-card { --case-accent: #648493; position: relative; min-height: 650px; padding: 18px 16px 17px; display: flex; flex-direction: column; color: #d8d3cc; background: linear-gradient(160deg,#0b171d,#050a0d 74%); border: 1px solid var(--case-accent); box-shadow: 0 18px 45px rgba(0,0,0,.3); }
.shop-card:nth-child(1) { --case-accent: #648493; }.shop-card:nth-child(2) { --case-accent: #6d587e; }.shop-card:nth-child(3) { --case-accent: #9a7950; }.shop-card:nth-child(4) { --case-accent: #8b403a; }.shop-card:nth-child(5) { --case-accent: #4e7658; }.shop-card:nth-child(6) { --case-accent: #52779a; }.shop-card:nth-child(7) { --case-accent: #844b67; }.shop-card:nth-child(8) { --case-accent: #a17b47; }.shop-card:nth-child(9) { --case-accent: #8b653e; }.shop-card:nth-child(10) { --case-accent: #a48b6b; }
.shop-card::before { content: ""; position: absolute; z-index: 3; top: 0; left: 0; width: 52%; height: 4px; background: var(--case-accent); box-shadow: 0 0 13px var(--case-accent); }
.shop-number { color: var(--case-accent); font: 700 7px var(--mono); letter-spacing: .12em; }
.shop-cover { width: 100%; max-width: 360px; aspect-ratio: 2/3; margin: 17px auto 20px; overflow: hidden; background: #020609; border: 1px solid rgba(199,192,183,.12); box-shadow: 0 16px 34px rgba(0,0,0,.38); }
.shop-cover img { width: 100%; height: 100%; object-fit: contain; }
.shop-card h2 { min-height: 64px; font-size: 22px; line-height: 1; }.shop-card p { color: #7f9299; font: 700 7px/1.55 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.amazon-button { margin-top: auto; min-height: 48px; padding: 0 14px; display: flex; align-items: center; justify-content: space-between; color: #030506; background: var(--acid); font: 700 8px var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.amazon-button[aria-disabled="true"] { color: #60737b; background: #111c22; border: 1px solid #263d46; cursor: not-allowed; }
.back-home { position: relative; z-index: 2; }

/* Dedicated Ledger City route */
.city-page { min-height: 100vh; background: #020609; }
.city-hero { position: relative; min-height: 720px; padding: 150px clamp(24px,6.6vw,108px) 92px; display: flex; align-items: center; overflow: hidden; isolation: isolate; background: #020609; }
.city-hero::before { content: ""; position: absolute; inset: 0; z-index: -3; background: url("/assets/ledger-city-street.webp") center/cover no-repeat; filter: grayscale(.7) sepia(.12) hue-rotate(145deg) saturate(.52) contrast(1.18) brightness(.57); transform: scale(1.012); }
.city-hero::after { content: ""; position: absolute; inset: 0; z-index: -2; background: linear-gradient(90deg,rgba(2,6,9,.95),rgba(2,6,9,.62) 52%,rgba(2,6,9,.22)),linear-gradient(180deg,rgba(2,6,9,.1),#020609); }
.city-hero-copy { position: relative; z-index: 2; max-width: 850px; }
.city-hero h1 { margin: 14px 0 24px; font-size: clamp(82px,11vw,170px); line-height: .78; }
.city-hero h1 span { display: block; color: var(--acid); }
.city-hero-lead { max-width: 660px; margin: 0; color: #d2e3e9; font-size: 19px; line-height: 1.72; }
.city-page-metrics { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 10px; }
.city-page-metrics span { min-width: 170px; padding: 13px 16px; color: #86a7b5; border: 1px solid rgba(100,132,147,.27); font: 700 7px/1.25 var(--mono); letter-spacing: .1em; }
.city-page-metrics b { display: block; margin-bottom: 7px; color: var(--acid); font-size: 15px; }
.atlas-section { background: radial-gradient(circle at 80% 12%,rgba(88,117,130,.13),transparent 32%),#04090e; }
.atlas-heading { margin-bottom: 46px; }
.atlas-figure { margin: 0; }
.atlas-figure > a { position: relative; display: block; overflow: hidden; background: #020609; border: 1px solid rgba(199,192,183,.42); box-shadow: 0 30px 80px rgba(0,0,0,.5),0 0 40px rgba(100,132,147,.12); }
.atlas-figure img { display: block; width: 100%; height: auto; transition: filter .25s ease,transform .35s ease; }
.atlas-figure a:hover img { filter: brightness(1.08); transform: scale(1.004); }
.atlas-figure a > span { position: absolute; right: 22px; bottom: 22px; padding: 15px 18px; color: #020609; background: var(--acid); font: 700 8px var(--mono); letter-spacing: .12em; text-transform: uppercase; box-shadow: 0 0 24px rgba(199,192,183,.34); }
.atlas-figure a > span b { margin-left: 24px; }
.atlas-figure figcaption { margin-top: 13px; color: #66838f; font: 700 7px var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.world-section { background: linear-gradient(155deg,#070d12,#020609 58%); }
.world-section h2 span { color: var(--acid); }
.world-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 15px; }
.world-card { position: relative; min-height: 300px; padding: 30px 27px; background: linear-gradient(150deg,rgba(14,29,37,.95),rgba(4,9,13,.98)); border: 1px solid rgba(100,132,147,.28); box-shadow: 0 18px 45px rgba(0,0,0,.28); }
.world-card::before { content: ""; position: absolute; left: 0; top: 0; width: 42%; height: 3px; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); }
.world-card:nth-child(2)::before,.world-card:nth-child(5)::before { background: var(--acid); box-shadow: 0 0 12px var(--acid); }
.world-card:nth-child(3)::before,.world-card:nth-child(6)::before { background: var(--pink); box-shadow: 0 0 12px var(--pink); }
.world-card > span { color: #7293a0; font: 700 7px var(--mono); letter-spacing: .13em; }
.world-card h3 { margin: 46px 0 15px; color: #eefaff; font-size: clamp(31px,3vw,48px); line-height: .9; }
.world-card p { margin: 0; color: #9db3bc; font-size: 13px; line-height: 1.72; }
.district-section { background: radial-gradient(circle at 20% 0,rgba(123,70,88,.11),transparent 31%),#03070b; }
.district-grid { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 12px; }
.district-card { min-height: 390px; padding: 25px 21px; display: flex; flex-direction: column; background: rgba(7,16,22,.92); border: 1px solid rgba(100,132,147,.24); }
.district-card > span { color: var(--pink); font: 700 20px var(--mono); }
.district-card > p { min-height: 40px; margin: 18px 0 26px; color: #698793; font: 700 7px/1.5 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.district-card h3 { margin: 0; color: var(--acid); font-size: 30px; line-height: .94; }
.district-card > div { margin-top: auto; padding-top: 24px; color: #9eb3bc; border-top: 1px solid rgba(100,132,147,.18); font-size: 12px; line-height: 1.68; }
.city-quote { min-height: 620px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; isolation: isolate; background: #020609; }
.city-quote::before { content: ""; position: absolute; inset: 0; z-index: -3; background: url("/assets/ledger-city-hero.webp") center/cover no-repeat; filter: grayscale(.78) sepia(.12) hue-rotate(145deg) saturate(.5) contrast(1.17) brightness(.45); }
.city-quote::after { content: ""; position: absolute; inset: 0; z-index: -2; background: linear-gradient(90deg,rgba(2,6,9,.95),rgba(2,6,9,.58),rgba(2,6,9,.3)); }
.city-quote h2 { margin: 7px 0 20px; }.city-quote h2 span { color: var(--acid); }
.city-quote > p:not(.eyebrow) { max-width: 670px; margin: 0 0 29px; color: #b7cbd4; font-size: 16px; line-height: 1.72; }

@keyframes signal { 0%,100%{opacity:.42} 50%{opacity:1} }
@media (max-width: 1160px) {
  .main-nav { gap: 17px; }.main-nav a:not(.nav-button) { display: none; }
  .hero { grid-template-columns: 1.18fr .82fr; padding-left: 5vw; padding-right: 5vw; }
  .hero-portrait { height: clamp(400px,calc(100svh - 170px),600px); }
  .record-intro { grid-template-columns: .22fr 1.18fr .72fr; gap: 34px; }
  .case-grid,.shop-grid { grid-template-columns: repeat(3,1fr); }
  .character-card { min-height: 610px; }
  .district-grid { grid-template-columns: repeat(3,1fr); }
}

@media (max-width: 820px) {
  .site-header { min-height: 72px; padding: 0 20px; }
  .menu-toggle { display: block; position: relative; z-index: 3; }
  .menu-toggle[aria-expanded="true"] > span:nth-child(1) { transform: translateY(7px) rotate(45deg); }.menu-toggle[aria-expanded="true"] > span:nth-child(2) { opacity: 0; }.menu-toggle[aria-expanded="true"] > span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .main-nav { position: absolute; inset: 72px 0 auto; padding: 24px 21px 29px; display: none; flex-direction: column; align-items: stretch; gap: 0; background: rgba(2,4,7,.98); border-bottom: 1px solid var(--cyan); box-shadow: 0 20px 50px rgba(0,0,0,.6); }
  .main-nav.open { display: flex; }.main-nav a:not(.nav-button) { display: block; }.main-nav a { padding: 14px 0; border-bottom: 1px solid rgba(100,132,147,.14); }.main-nav .nav-button { margin-top: 14px; text-align: center; }
  .hero { min-height: 0; height: auto; grid-template-columns: 1fr; gap: 48px; padding: 122px 23px 72px; align-items: center; }
  .hero-city { background-position: 59% center; }.hero::before { background: linear-gradient(90deg,rgba(2,4,7,.92),rgba(2,4,7,.58)),linear-gradient(180deg,rgba(2,4,7,.08),rgba(2,4,7,.78)); }
  h1 { font-size: clamp(62px,16vw,100px); }.hero-copy { max-width: 690px; }.hero-deck { max-width: 560px; }
  .hero-portrait { position: relative; z-index: 3; right: auto; bottom: auto; width: min(72vw,360px); height: auto; aspect-ratio: 2/3; opacity: 1; border: 1px solid rgba(100,132,147,.55); justify-self: center; }
  .hero-metrics { max-width: 520px; }.hero-index { display: none; }
  .section { padding: 84px 23px; }.section-heading,.record-intro,.city { grid-template-columns: 1fr; gap: 45px; }.section-heading { margin-bottom: 45px; }.section-heading > p { max-width: 620px; }
  .record-intro .section-marker { margin-bottom: -12px; }.brass-notice { max-width: 540px; }
  .case-grid,.shop-grid { grid-template-columns: repeat(2,1fr); }
  .character-grid { grid-template-columns: 1fr; }.character-card { min-height: 760px; }.character-image img { object-position: center 9%; }
  .city { min-height: 1050px; padding-top: 75px; }.city::after { background: linear-gradient(180deg,rgba(2,4,7,.28),rgba(2,4,7,.86) 66%); }.city-map { min-height: 540px; order: 2; }.city-copy { order: 1; max-width: 650px; }
  .city-map { min-height: 0; }
  .buy-strip { min-height: 470px; flex-direction: column; align-items: flex-start; justify-content: center; background: linear-gradient(165deg,var(--acid) 0 72%,#09020a 72%); }
  .books-hero { min-height: 650px; padding: 130px 23px 70px; }.books-hero::before { background-position: 62% center; }
  .city-hero { min-height: 650px; padding: 130px 23px 72px; }.city-hero h1 { font-size: clamp(78px,18vw,125px); }.city-hero-lead { font-size: 16px; }
  .world-grid,.district-grid { grid-template-columns: repeat(2,1fr); }
  footer { grid-template-columns: 1fr; padding: 43px 23px; text-align: center; }.footer-brand { justify-self: center; }footer nav { justify-content: center; }
}

@media (max-width: 540px) {
  .brand-copy strong { font-size: 16px; }.brand-copy small { font-size: 6px; }.brand-seal { width: 34px; height: 34px; }
  .hero { min-height: 0; padding-top: 112px; }.authority-line { line-height: 1.45; }.hero-deck { font-size: 15px; }.hero-actions { align-items: stretch; flex-direction: column; }.button,.text-link { width: 100%; text-align: center; }.hero-copy blockquote { margin-top: 25px; }.hero-metrics span { min-width: calc(50% - 5px); }.hero-portrait { display: block; width: min(82vw,320px); }
  .section h2 { font-size: clamp(45px,14vw,64px); }.case-grid,.shop-grid { grid-template-columns: 1fr; }.case-card { min-height: 390px; }.case-title { font-size: 29px; }.shop-card { min-height: 420px; }.character-card { min-height: 630px; }.character-file h3 { font-size: 37px; }
  .city-map { min-height: 0; }.map-open { right: 9px; bottom: 9px; padding: 10px; }.city-copy { padding: 28px 22px; }.city-facts { grid-template-columns: 1fr; }.city-facts > div:nth-child(odd) { padding-right: 0; border-right: 0; }.city-facts > div:nth-child(even) { padding-left: 0; }
  .buy-strip { background: linear-gradient(170deg,var(--acid) 0 78%,#09020a 78%); }
  .books-hero h1 { font-size: clamp(66px,20vw,96px); }.books-hero p:last-child { font-size: 15px; }
  .city-hero { min-height: 610px; }.city-hero h1 { font-size: clamp(70px,22vw,104px); }.city-page-metrics span { min-width: calc(50% - 5px); }
  .atlas-figure a > span { right: 9px; bottom: 9px; padding: 10px 12px; }.atlas-figure figcaption { line-height: 1.6; }
  .world-grid,.district-grid { grid-template-columns: 1fr; }.world-card { min-height: 260px; }.district-card { min-height: 320px; }
  .modal { padding: 12px; }.modal-card { padding: 44px 27px 31px; }.modal-done { width: 100%; }
}

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

/* 2098 neon interface refresh */
:root {
  --black: #01030a; --black-soft: #050b18; --panel: rgba(5,12,27,.78); --panel-solid: #071124;
  --white: #eef7ff; --muted: #8da7b8; --acid: #ffd52a; --acid-soft: #fff29a;
  --cyan: #00e7ff; --cyan-soft: #8af6ff; --pink: #ff2aa3; --red: #ff405d;
  --violet: #885cff; --line: rgba(0,231,255,.26); --line-hot: rgba(255,213,42,.72);
  --shadow-cyan: 0 0 18px rgba(0,231,255,.35),0 0 60px rgba(0,134,255,.16);
  --shadow-acid: 0 0 18px rgba(255,213,42,.35),0 0 60px rgba(255,124,0,.12);
}
body { background: radial-gradient(circle at 15% 8%,#071a32 0,transparent 26%),radial-gradient(circle at 88% 24%,rgba(255,42,163,.12),transparent 22%),#01030a; }
body::before { opacity:.28; background:repeating-linear-gradient(0deg,rgba(0,231,255,.035) 0 1px,transparent 1px 4px); }
.site-header { min-height:82px; background:linear-gradient(90deg,rgba(1,4,12,.92),rgba(5,12,28,.72)); border-bottom-color:rgba(0,231,255,.42); box-shadow:0 10px 50px rgba(0,0,0,.38),0 1px 25px rgba(0,231,255,.08); }
.site-header::after { width:38%; background:linear-gradient(90deg,var(--cyan),var(--violet),var(--pink)); box-shadow:0 0 18px var(--cyan); }
.brand-seal { color:var(--cyan); border-color:var(--cyan); background:rgba(0,231,255,.08); box-shadow:var(--shadow-cyan); }
.brand-seal::after { border-color:var(--pink); }
.brand-copy small { color:var(--cyan); }.main-nav a { color:#c7eaff; }.main-nav a:hover { color:var(--acid); text-shadow:0 0 14px var(--acid); }
.main-nav .nav-button,.button-brass,.amazon-button,.map-open,.atlas-figure a>span { clip-path:polygon(10px 0,100% 0,100% calc(100% - 10px),calc(100% - 10px) 100%,0 100%,0 10px); background:linear-gradient(135deg,var(--acid),#ff8a1f); color:#02040b; }
.hero { min-height:100svh; padding-top:132px; background:#01030a; }
.hero-city { filter:saturate(1.4) contrast(1.16) brightness(.62) hue-rotate(4deg); transform:scale(1.04); animation:city-breathe 12s ease-in-out infinite alternate; }
.hero::before { background:linear-gradient(90deg,rgba(1,3,10,.98) 0%,rgba(2,8,20,.84) 37%,rgba(1,4,12,.18) 72%),linear-gradient(180deg,rgba(0,0,0,.12),transparent 58%,#01030a 99%); }
.hero::after { color:#02040b; background:linear-gradient(90deg,var(--acid),#ff8a1f,var(--pink)); }
.map-grid { opacity:.55; background-image:linear-gradient(rgba(0,231,255,.14) 1px,transparent 1px),linear-gradient(90deg,rgba(0,231,255,.14) 1px,transparent 1px); background-size:64px 64px; }
.hero-neon i:nth-child(1){background:var(--pink);box-shadow:0 0 45px var(--pink),0 0 100px var(--pink)}
.hero-neon i:nth-child(2){background:var(--cyan);box-shadow:0 0 30px var(--cyan)}
.hero-neon i:nth-child(3){background:var(--acid);box-shadow:0 0 34px var(--acid)}
.authority-line { color:var(--cyan-soft); background:rgba(0,231,255,.09); border:1px solid rgba(0,231,255,.25); border-left:3px solid var(--cyan); box-shadow:inset 0 0 28px rgba(0,231,255,.06),var(--shadow-cyan); clip-path:polygon(0 0,calc(100% - 12px) 0,100% 50%,calc(100% - 12px) 100%,0 100%); }
h1 { text-shadow:0 0 38px rgba(0,231,255,.14),7px 7px 0 rgba(0,0,0,.72); }
h1 em { background:linear-gradient(90deg,var(--acid),#ff8a1f); box-shadow:0 0 35px rgba(255,213,42,.45); clip-path:polygon(0 0,calc(100% - 22px) 0,100% 50%,calc(100% - 22px) 100%,0 100%); }
.hero-portrait { transform:perspective(1200px) rotateY(-7deg) rotateZ(1deg); border:1px solid rgba(0,231,255,.7); box-shadow:-18px 24px 80px rgba(0,0,0,.65),0 0 40px rgba(0,231,255,.24),18px -10px 55px rgba(255,42,163,.16); }
.hero-portrait::before { content:"CASE // 01"; position:absolute; z-index:2; top:18px; left:-18px; padding:8px 13px; color:#001018; background:var(--cyan); font:700 8px var(--mono); letter-spacing:.14em; box-shadow:0 0 20px var(--cyan); }
.hero-metrics span,.city-page-metrics span { background:linear-gradient(135deg,rgba(5,22,43,.84),rgba(8,10,29,.62)); border-color:rgba(0,231,255,.34); box-shadow:inset 0 0 25px rgba(0,231,255,.04); }
.hero-metrics b,.city-page-metrics b { color:var(--cyan); text-shadow:0 0 12px var(--cyan); }
.section { border-top:1px solid rgba(0,231,255,.1); }
.record-intro,.world-section,.shop-section { background:radial-gradient(circle at 82% 8%,rgba(136,92,255,.15),transparent 30%),linear-gradient(145deg,#071225,#02050d 62%); }
.brass-notice { background:linear-gradient(145deg,#ffd72e,#e78924); box-shadow:0 25px 70px rgba(0,0,0,.42),0 0 45px rgba(255,213,42,.2); clip-path:polygon(0 0,calc(100% - 28px) 0,100% 28px,100% 100%,28px 100%,0 calc(100% - 28px)); }
.case-archive,.district-section { background:radial-gradient(circle at 12% 8%,rgba(0,231,255,.11),transparent 28%),radial-gradient(circle at 88% 20%,rgba(255,42,163,.1),transparent 26%),#020611; }
.case-card,.shop-card,.world-card,.district-card,.city-copy { background:linear-gradient(145deg,rgba(8,23,43,.92),rgba(3,7,18,.96)); border-color:rgba(0,231,255,.28); box-shadow:0 24px 65px rgba(0,0,0,.38),inset 0 0 35px rgba(0,231,255,.025); clip-path:polygon(0 0,calc(100% - 18px) 0,100% 18px,100% 100%,18px 100%,0 calc(100% - 18px)); }
.case-card:hover,.shop-card:hover,.world-card:hover,.district-card:hover { border-color:var(--cyan); box-shadow:0 24px 80px rgba(0,0,0,.5),0 0 28px rgba(0,231,255,.16); transform:translateY(-7px); }
.case-cover,.shop-cover { border-color:rgba(0,231,255,.35); box-shadow:0 18px 50px rgba(0,0,0,.6),0 0 25px rgba(0,231,255,.1); }
.characters { background:linear-gradient(180deg,#030713,#071021); }.character-card { border:1px solid rgba(0,231,255,.26); box-shadow:0 25px 75px rgba(0,0,0,.45); }.character-card:nth-child(2){border-color:rgba(255,42,163,.34)}.character-card:nth-child(3){border-color:rgba(255,213,42,.32)}
.character-file { background:linear-gradient(180deg,transparent,rgba(1,4,13,.96) 50%); }
.city { background:radial-gradient(circle at 75% 40%,rgba(0,231,255,.12),transparent 24%),#020611; }.city-map,.atlas-figure>a { border-color:rgba(0,231,255,.5); box-shadow:0 30px 90px rgba(0,0,0,.55),0 0 42px rgba(0,231,255,.14); }
.buy-strip { background:linear-gradient(105deg,#00e7ff 0 53%,#885cff 53% 66%,#ff2aa3 66%); }
.begin::before,.city-quote::before,.city-hero::before,.books-hero::after { filter:saturate(1.3) contrast(1.18) brightness(.55) hue-rotate(4deg); }
.begin-lines { opacity:.45; background-image:linear-gradient(rgba(0,231,255,.16) 1px,transparent 1px),linear-gradient(90deg,rgba(0,231,255,.16) 1px,transparent 1px); }
.modal-card { background:linear-gradient(145deg,#081b34,#070718); border-color:var(--cyan); box-shadow:0 35px 100px rgba(0,0,0,.72),0 0 55px rgba(0,231,255,.23); }
@keyframes city-breathe { from{transform:scale(1.04) translate3d(0,0,0)} to{transform:scale(1.08) translate3d(-.5%,.3%,0)} }
@media(max-width:820px){.hero-portrait{transform:none}.buy-strip{background:linear-gradient(165deg,#00e7ff 0 62%,#885cff 62% 74%,#ff2aa3 74%)}}

/* Ledger Hunt and policy pages */
.hunt-teaser { min-height: 520px; display: flex; align-items: center; justify-content: space-between; gap: 60px; background: radial-gradient(circle at 20% 20%,rgba(0,231,255,.14),transparent 32%),radial-gradient(circle at 84% 70%,rgba(255,42,163,.12),transparent 28%),#030713; }
.hunt-teaser-copy { max-width: 790px; }
.hunt-teaser h2 span,.key-section h2 span,.claim-flow h2 span,.rules-strip h2 span { color: var(--acid); }
.hunt-teaser-copy > p:not(.eyebrow) { max-width: 740px; color: #b6ccd6; font-size: 16px; line-height: 1.75; }
.status-chip { width: fit-content; margin-top: 28px; padding: 12px 16px; color: #8af6ff; background: rgba(0,231,255,.07); border: 1px solid rgba(0,231,255,.34); font: 700 8px var(--mono); letter-spacing: .12em; }
.status-chip i { width: 8px; height: 8px; margin-right: 10px; display: inline-block; border-radius: 50%; background: var(--pink); box-shadow: 0 0 13px var(--pink); }

.hunt-page { min-height: 100vh; background: #01030a; }
.terminal-hero { position: relative; min-height: 900px; padding: 145px clamp(24px,6.6vw,108px) 85px; display: grid; grid-template-columns: minmax(0,1.05fr) minmax(390px,.75fr); align-items: center; gap: clamp(40px,7vw,110px); overflow: hidden; isolation: isolate; background: radial-gradient(circle at 76% 45%,rgba(255,42,163,.14),transparent 29%),radial-gradient(circle at 18% 18%,rgba(0,231,255,.16),transparent 28%),#01030a; }
.terminal-hero::before { content: ""; position: absolute; inset: 0; z-index: -2; opacity: .38; background: linear-gradient(rgba(0,231,255,.1) 1px,transparent 1px),linear-gradient(90deg,rgba(0,231,255,.1) 1px,transparent 1px); background-size: 62px 62px; mask-image: radial-gradient(circle at 52% 48%,black,transparent 82%); }
.terminal-hero::after { content: "CLAIM NODE // PUBLIC ACCESS // SCHEDULED 18:00 UTC"; position: absolute; left: 0; bottom: 0; width: min(760px,82%); padding: 12px 5vw; color: #02040b; background: linear-gradient(90deg,var(--cyan),var(--violet),var(--pink)); font: 700 8px var(--mono); letter-spacing: .17em; }
.hunt-is-open .terminal-hero::after { content: "CLAIM NODE // PUBLIC ACCESS // ACTIVE"; }
[hidden] { display: none !important; }
.terminal-grid { position: absolute; inset: 0; z-index: -1; pointer-events: none; background: repeating-linear-gradient(114deg,transparent 0 110px,rgba(255,213,42,.035) 111px 112px); }
.terminal-copy { max-width: 800px; }
.terminal-copy h1 { font-size: clamp(60px,7.3vw,118px); }
.terminal-copy h1 > span:first-child { font-size: .53em; }
.terminal-copy h1 em { font-size: .61em; }
.terminal-lead { max-width: 670px; margin: 30px 0; color: #cae3ec; font-size: 17px; line-height: 1.72; }
.status-panel { max-width: 630px; padding: 20px 22px; background: linear-gradient(135deg,rgba(8,24,45,.9),rgba(12,8,32,.86)); border: 1px solid rgba(255,42,163,.4); box-shadow: inset 0 0 30px rgba(255,42,163,.04),0 0 35px rgba(255,42,163,.09); }
.status-panel > span { color: #ff9ed8; font: 700 7px var(--mono); letter-spacing: .16em; }
.status-panel strong { margin: 8px 0 6px; display: block; color: var(--pink); font: 400 31px var(--display); letter-spacing: .06em; }
.status-panel p { margin: 0; color: #97b4c0; font-size: 12px; line-height: 1.65; }
.key-preview { position: relative; max-width: 620px; justify-self: end; background: rgba(2,7,16,.86); border: 1px solid rgba(0,231,255,.48); box-shadow: 0 35px 100px rgba(0,0,0,.58),0 0 48px rgba(0,231,255,.18),22px 12px 60px rgba(255,42,163,.1); clip-path: polygon(0 0,calc(100% - 28px) 0,100% 28px,100% 100%,28px 100%,0 calc(100% - 28px)); }
.key-preview::before { content: "DIGITAL COLLECTIBLE // PREVIEW"; position: absolute; z-index: 2; top: 18px; left: 8px; padding: 9px 13px; color: #001018; background: var(--cyan); font: 700 7px var(--mono); letter-spacing: .12em; white-space: nowrap; box-shadow: 0 0 18px var(--cyan); }
.key-preview img { width: 100%; height: auto; }
.key-preview > div { padding: 18px 21px 21px; display: grid; grid-template-columns: 1fr auto; gap: 5px 18px; border-top: 1px solid rgba(0,231,255,.24); }
.key-preview span,.key-preview small { color: #6e98a9; font: 700 7px var(--mono); letter-spacing: .12em; }
.key-preview strong { grid-row: span 2; color: var(--acid); font: 400 28px var(--display); letter-spacing: .04em; }

.key-section { background: radial-gradient(circle at 88% 10%,rgba(136,92,255,.14),transparent 30%),#040817; }
.feature-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; }
.feature-grid article { min-height: 320px; padding: 28px 25px; background: linear-gradient(145deg,rgba(8,23,43,.94),rgba(3,7,18,.98)); border: 1px solid rgba(0,231,255,.25); clip-path: polygon(0 0,calc(100% - 18px) 0,100% 18px,100% 100%,18px 100%,0 calc(100% - 18px)); }
.feature-grid article:nth-child(2) { border-color: rgba(255,213,42,.32); }.feature-grid article:nth-child(3) { border-color: rgba(255,42,163,.34); }.feature-grid article:nth-child(4) { border-color: rgba(136,92,255,.4); }
.feature-grid article > span { color: var(--cyan); font: 700 22px var(--mono); }
.feature-grid h3 { margin: 58px 0 16px; color: #eefaff; font-size: 31px; line-height: .95; }
.feature-grid p { margin: 0; color: #9db5c0; font-size: 13px; line-height: 1.7; }.feature-grid p b { color: var(--acid); }

.claim-flow { background: radial-gradient(circle at 14% 8%,rgba(0,231,255,.11),transparent 28%),#020611; }
.flow-grid { margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 12px; list-style: none; counter-reset: flow; }
.flow-grid li { min-height: 370px; padding: 27px 23px; display: flex; flex-direction: column; background: rgba(5,16,31,.9); border: 1px solid rgba(0,231,255,.24); }
.flow-grid li > b { color: var(--pink); font: 700 18px var(--mono); }
.flow-grid h3 { margin: 62px 0 18px; color: var(--acid); font-size: 29px; line-height: .96; }
.flow-grid p { margin: auto 0 0; padding-top: 22px; color: #9eb6c1; border-top: 1px solid rgba(0,231,255,.14); font-size: 12px; line-height: 1.7; }

.claim-terminal { background: linear-gradient(150deg,#040918,#09051a); }
.terminal-window { max-width: 1040px; margin: 0 auto; overflow: hidden; background: rgba(2,8,18,.95); border: 1px solid var(--cyan); box-shadow: 0 35px 100px rgba(0,0,0,.5),0 0 48px rgba(0,231,255,.15); clip-path: polygon(0 0,calc(100% - 24px) 0,100% 24px,100% 100%,24px 100%,0 calc(100% - 24px)); }
.terminal-window-bar { min-height: 48px; padding: 0 20px; display: flex; align-items: center; gap: 12px; background: rgba(0,231,255,.08); border-bottom: 1px solid rgba(0,231,255,.28); }
.terminal-window-bar > span { width: 10px; height: 10px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 12px var(--pink); }
.terminal-window-bar b,.terminal-window-bar i { font: 700 7px var(--mono); letter-spacing: .12em; }.terminal-window-bar b { color: #9dd7e4; }.terminal-window-bar i { margin-left: auto; color: var(--pink); font-style: normal; }
.terminal-window-body { min-height: 430px; padding: clamp(40px,7vw,82px); display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.terminal-window-body h2 { margin-bottom: 18px; }.terminal-window-body > p:not(.eyebrow) { max-width: 760px; color: #a9c2cc; font-size: 15px; line-height: 1.75; }
.button-disabled { margin-top: 24px; color: #6a8490; background: #101b27; border-color: #28424e; cursor: not-allowed; }
.button-disabled:hover { transform: none; filter: none; }.terminal-window-body small { margin-top: 24px; color: #7494a1; font: 700 8px var(--mono); letter-spacing: .07em; }.terminal-window-body small a { color: var(--cyan); }

.rules-strip { display: flex; align-items: center; justify-content: space-between; gap: 50px; background: linear-gradient(115deg,#00e7ff 0 48%,#885cff 48% 65%,#ff2aa3 65%); color: #02040b; }
.rules-strip .eyebrow,.rules-strip h2 span { color: #02040b; }.rules-strip nav { min-width: min(100%,430px); display: grid; gap: 10px; }
.rules-strip nav a { padding: 17px 18px; display: flex; justify-content: space-between; color: #eefaff; background: rgba(1,3,10,.88); font: 700 8px var(--mono); letter-spacing: .11em; text-transform: uppercase; }
.rules-strip nav a:hover { background: #02040b; box-shadow: 0 0 26px rgba(2,4,11,.35); }

.legal-page { min-height: 100vh; background: radial-gradient(circle at 85% 8%,rgba(136,92,255,.12),transparent 25%),#01030a; }
.legal-hero { min-height: 610px; padding: 150px clamp(24px,9vw,160px) 90px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; background: linear-gradient(90deg,rgba(1,3,10,.96),rgba(3,10,25,.82)),linear-gradient(rgba(0,231,255,.08) 1px,transparent 1px),linear-gradient(90deg,rgba(0,231,255,.08) 1px,transparent 1px); background-size: auto,68px 68px,68px 68px; border-bottom: 1px solid rgba(0,231,255,.2); }
.legal-hero h1 { margin: 8px 0 28px; font-size: clamp(72px,10vw,150px); }
.legal-hero h1 > span:first-child { font-size: .72em; }.legal-hero h1 > span:nth-child(2) { color: var(--acid); }
.legal-hero > p:last-child { max-width: 780px; margin: 0; color: #a9c9d5; font-size: 16px; line-height: 1.7; }
.legal-article { width: min(100% - 46px,980px); margin: 0 auto; padding: 80px 0 110px; }
.legal-article > section { padding: 44px 0; border-bottom: 1px solid rgba(0,231,255,.16); }
.legal-article h2 { margin-bottom: 20px; color: #eefaff; font-size: clamp(34px,4vw,52px); line-height: 1; }
.legal-article h3 { margin: 32px 0 13px; color: var(--acid); font-size: 22px; line-height: 1.1; }
.legal-article p,.legal-article li,.legal-article dd { color: #abc0c9; font-size: 15px; line-height: 1.78; }
.legal-article p { margin: 0 0 16px; }.legal-article strong { color: #f0f8ff; }.legal-article a { color: var(--cyan-soft); border-bottom: 1px solid rgba(0,231,255,.42); }
.legal-article ul,.legal-article ol { margin: 18px 0; padding-left: 24px; }.legal-article li { padding: 5px 0; }
.draft-alert,.risk-alert,.privacy-summary { margin: 0 0 28px; padding: 24px 27px; border: 1px solid; clip-path: polygon(0 0,calc(100% - 18px) 0,100% 18px,100% 100%,18px 100%,0 calc(100% - 18px)); }
.draft-alert { background: rgba(255,42,163,.07); border-color: rgba(255,42,163,.55); }.risk-alert { background: rgba(255,213,42,.07); border-color: rgba(255,213,42,.5); }.privacy-summary { background: rgba(0,231,255,.07); border-color: rgba(0,231,255,.5); }
.draft-alert strong,.risk-alert strong,.privacy-summary strong { display: block; margin-bottom: 10px; font: 700 10px var(--mono); letter-spacing: .12em; }.draft-alert strong { color: #ff94d3; }.risk-alert strong { color: var(--acid); }.privacy-summary strong { color: var(--cyan); }
.draft-alert p,.risk-alert p,.privacy-summary p { margin: 0; font-size: 13px; }
.legal-index { margin: 35px 0 18px; padding: 17px; display: flex; flex-wrap: wrap; gap: 9px; background: rgba(0,231,255,.04); border: 1px solid rgba(0,231,255,.18); }
.legal-index a { padding: 8px 10px; color: #a8d9e6; background: #071527; border: 1px solid rgba(0,231,255,.18); font: 700 7px var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.legal-details,.retention-list { margin: 24px 0; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1px; background: rgba(0,231,255,.2); border: 1px solid rgba(0,231,255,.2); }
.legal-details > div,.retention-list > div { min-height: 105px; padding: 19px 21px; background: #07101f; }.legal-details dt,.retention-list dt { margin-bottom: 9px; color: var(--cyan); font: 700 7px var(--mono); letter-spacing: .11em; text-transform: uppercase; }.legal-details dd,.retention-list dd { margin: 0; overflow-wrap: anywhere; }
.terms-columns,.purpose-grid { margin: 24px 0; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px; }.terms-columns > div,.purpose-grid > div { padding: 24px 25px; background: rgba(6,18,34,.82); border: 1px solid rgba(0,231,255,.2); }.terms-columns h3,.purpose-grid h3 { margin-top: 0; }

@media (max-width: 1160px) {
  .feature-grid { grid-template-columns: repeat(2,1fr); }
  .flow-grid { grid-template-columns: repeat(3,1fr); }
}

@media (max-width: 820px) {
  .hunt-teaser,.rules-strip { min-height: 0; flex-direction: column; align-items: flex-start; }
  .terminal-hero { min-height: 0; padding: 130px 23px 80px; grid-template-columns: 1fr; }
  .key-preview { width: min(100%,570px); justify-self: center; }
  .flow-grid { grid-template-columns: repeat(2,1fr); }
  .legal-hero { min-height: 520px; padding: 130px 23px 70px; }
  .legal-details,.retention-list,.terms-columns,.purpose-grid { grid-template-columns: 1fr; }
}

@media (max-width: 540px) {
  .terminal-copy h1 { font-size: clamp(56px,17vw,82px); }
  .key-preview::before { left: 8px; }
  .key-preview > div { grid-template-columns: 1fr; }.key-preview strong { grid-row: auto; }
  .feature-grid,.flow-grid { grid-template-columns: 1fr; }
  .feature-grid article,.flow-grid li { min-height: 290px; }
  .legal-article { width: min(100% - 34px,980px); padding-top: 55px; }.legal-article p,.legal-article li,.legal-article dd { font-size: 14px; }
  .legal-hero h1 { font-size: clamp(64px,20vw,92px); }
  .terminal-window-body { padding: 43px 25px; }
}

/* Readability repair: retain the terminal aesthetic without micro-sized text. */
body { font-size: 17px; }

.brand-copy small { font-size: 11px; line-height: 1.25; letter-spacing: .11em; }
.brand-copy strong { font-size: 22px; }
.main-nav a { font-size: 14px; line-height: 1.3; letter-spacing: .08em; }
.main-nav .nav-button { font-size: 14px; }

.hero::after,
.terminal-hero::after { font-size: 12px; line-height: 1.35; }
.authority-line { font-size: 13px; line-height: 1.45; letter-spacing: .1em; }
.series-label { font-size: 14px; line-height: 1.4; letter-spacing: .13em; }
.button { font-size: 14px; line-height: 1.35; letter-spacing: .09em; }
.text-link { font-size: 13px; line-height: 1.45; letter-spacing: .08em; }
.hero-copy blockquote { font-size: 13px; line-height: 1.55; }
.hero-metrics span,
.city-page-metrics span { font-size: 12px; line-height: 1.4; }
.portrait-code,
.hero-portrait::before { font-size: 11px; }
.portrait-caption b { font-size: 11px; line-height: 1.4; }

.section-marker { font-size: 12px; line-height: 1.4; letter-spacing: .11em; }
.eyebrow { font-size: 13px; line-height: 1.45; letter-spacing: .11em; }
.section-heading > p { font-size: 17px; }
.intro-copy > p:last-child,
.begin > p:not(.eyebrow),
.hunt-teaser-copy > p:not(.eyebrow) { font-size: 17px; }

.brass-notice::before,
.brass-notice small,
.brass-notice b { font-size: 11px; line-height: 1.4; }
.case-open { font-size: 12px; line-height: 1.35; }
.character-file > span,
.character-file > b { font-size: 11px; line-height: 1.4; }
.character-file p { font-size: 15px; }
.map-open,
.atlas-figure a > span { font-size: 12px; line-height: 1.35; }
.city-facts dt { font-size: 11px; line-height: 1.4; }
.city-facts dd { font-size: 14px; }
.map-note,
.atlas-figure figcaption { font-size: 11px; line-height: 1.5; }

footer > p,
footer nav a { font-size: 12px; line-height: 1.5; }
.footer-brand .brand-copy strong { font-size: 18px; }

.modal-number { font-size: 12px; }
.modal-summary { font-size: 17px; }
.shop-note { font-size: 13px; }
.shop-number { font-size: 11px; }
.shop-card p { font-size: 13px; line-height: 1.6; }
.amazon-button { font-size: 13px; line-height: 1.35; }

.world-card > span { font-size: 11px; }
.world-card p { font-size: 15px; }
.district-card > p { font-size: 12px; line-height: 1.55; }
.district-card > div { font-size: 15px; }

.status-chip { font-size: 12px; line-height: 1.45; }
.status-panel > span { font-size: 11px; line-height: 1.4; }
.status-panel p { font-size: 15px; }
.key-preview::before,
.key-preview span,
.key-preview small { font-size: 11px; line-height: 1.4; }
.feature-grid p,
.flow-grid p { font-size: 15px; }
.terminal-window-bar b,
.terminal-window-bar i { font-size: 11px; line-height: 1.4; }
.terminal-window-body > p:not(.eyebrow) { font-size: 17px; }
.terminal-window-body small { font-size: 12px; line-height: 1.5; }
.rules-strip nav a { font-size: 13px; line-height: 1.4; }

.legal-hero > p:last-child { font-size: 17px; }
.legal-article p,
.legal-article li,
.legal-article dd { font-size: 17px; }
.draft-alert strong,
.risk-alert strong,
.privacy-summary strong { font-size: 13px; line-height: 1.4; }
.draft-alert p,
.risk-alert p,
.privacy-summary p { font-size: 16px; }
.legal-index a { font-size: 13px; line-height: 1.4; }
.legal-details dt,
.retention-list dt { font-size: 13px; line-height: 1.4; }

@media (max-width: 820px) {
  .main-nav a,
  .main-nav .nav-button { font-size: 16px; }
  .main-nav a { padding-top: 16px; padding-bottom: 16px; }
  footer { min-height: 0; }
}

@media (max-width: 540px) {
  .brand-copy small { font-size: 10px; }
  .brand-copy strong { font-size: 18px; }
  .hero-deck,
  .books-hero p:last-child,
  .city-hero-lead { font-size: 17px; }
  .legal-article p,
  .legal-article li,
  .legal-article dd { font-size: 16px; }
}

@media (max-width: 400px) {
  .key-preview::before { padding: 8px 10px; font-size: clamp(9px,3vw,11px); letter-spacing: .08em; }
}
