@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@400;500;600;700;800&family=Cinzel:wght@600;700;800&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

:root {
  color-scheme: dark;
  --ink: #02080b;
  --ink-2: #071116;
  --panel: rgba(5, 15, 20, .94);
  --panel-soft: rgba(9, 22, 27, .82);
  --gold: #dca64e;
  --gold-bright: #f3bd5c;
  --gold-soft: #a87531;
  --cream: #ead5aa;
  --text: #f0eadf;
  --muted: #a9a59b;
  --line: rgba(220, 166, 78, .32);
  --line-soft: rgba(220, 166, 78, .14);
  --green: #71c56a;
  --red: #e26252;
  --radius: 10px;
  --max: 1420px;
  --display: 'Barlow Condensed', Impact, sans-serif;
  --serif: 'Cinzel', Georgia, serif;
  --mono: 'IBM Plex Mono', monospace;
}

* { box-sizing: border-box; }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }
html { scroll-behavior: smooth; background: var(--ink); }
body { margin: 0; min-height: 100vh; background:
  radial-gradient(circle at 50% -20%, rgba(173, 112, 35, .18), transparent 38rem),
  linear-gradient(rgba(255,255,255,.012) 1px, transparent 1px),
  linear-gradient(90deg, rgba(255,255,255,.012) 1px, transparent 1px), var(--ink);
  background-size: auto, 32px 32px, 32px 32px, auto;
  color: var(--text); font-family: var(--display); font-size: 17px; line-height: 1.45; }
a { color: inherit; }
button, input { font: inherit; }
::selection { background: var(--gold); color: var(--ink); }

.site-shell { width: min(calc(100% - 28px), var(--max)); margin: 14px auto; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: rgba(2, 8, 11, .88); box-shadow: 0 28px 90px rgba(0,0,0,.55); }
.site-header { min-height: 66px; display: grid; grid-template-columns: 250px 1fr 250px; align-items: center; gap: 20px; padding: 0 26px; border-bottom: 1px solid var(--line); background: rgba(2,8,11,.92); position: sticky; top: 0; z-index: 100; backdrop-filter: blur(14px); }
.brand { display: inline-flex; align-items: center; text-decoration: none; width: fit-content; }
.brand-wordmark { display: block; width: 188px; height: auto; max-height: 52px; object-fit: contain; object-position: left center; }
.site-nav { justify-self: center; display: flex; height: 66px; align-items: stretch; }
.site-nav a { position: relative; display: grid; place-items: center; padding: 0 18px; text-decoration: none; color: #c6c1b5; text-transform: uppercase; letter-spacing: .09em; font-size: 14px; font-weight: 600; }
.site-nav a::after { content: ''; position: absolute; left: 20%; right: 20%; bottom: 0; height: 2px; background: var(--gold); transform: scaleX(0); transition: .2s ease; }
.site-nav a:hover, .site-nav a[aria-current='page'] { color: var(--gold-bright); }
.site-nav a:hover::after, .site-nav a[aria-current='page']::after { transform: scaleX(1); }
.header-actions { justify-self: end; display: flex; align-items: center; gap: 9px; }
.contract-chip { min-width: 150px; height: 36px; border: 1px solid var(--line); border-radius: 5px; display: grid; place-items: center; color: var(--muted); background: rgba(255,255,255,.025); font: 11px var(--mono); letter-spacing: .04em; }
.x-link { width: 36px; height: 36px; border: 1px solid var(--line); display: grid; place-items: center; text-decoration: none; color: var(--gold); border-radius: 5px; font: 18px var(--display); }

main { min-height: 70vh; }
.section { padding: 28px; }
.section + .section { border-top: 1px solid var(--line-soft); }
.section-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 14px; }
.panel { border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(145deg, rgba(10,22,27,.96), rgba(3,12,16,.96)); position: relative; overflow: hidden; }
.panel::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(120deg, rgba(255,184,73,.025), transparent 45%); }
.panel-pad { padding: 22px; }
.tax-table { width: 100%; border-collapse: collapse; }
.tax-table th { padding: 10px; text-align: left; border-bottom: 1px solid var(--line); color: var(--muted); font: 600 11px var(--mono); text-transform: uppercase; letter-spacing: .04em; }
.tax-table td { padding: 10px; border-bottom: 1px solid rgba(255,255,255,.06); color: #d1cec4; }
.tax-table td:nth-child(2) { white-space: nowrap; font-family: var(--mono); }
.eyebrow { color: var(--gold); font: 600 12px var(--mono); text-transform: uppercase; letter-spacing: .14em; }
h1,h2,h3,p { margin-top: 0; }
h1 { font: 800 clamp(58px, 8vw, 118px)/.8 var(--display); letter-spacing: -.045em; text-transform: uppercase; color: var(--cream); margin-bottom: 22px; text-shadow: 0 4px 0 rgba(0,0,0,.3); }
h2 { color: var(--cream); font: 800 clamp(27px,3vw,42px)/1 var(--display); text-transform: uppercase; letter-spacing: .015em; margin-bottom: 12px; }
h3 { color: var(--gold-bright); font: 700 21px/1.1 var(--display); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 8px; }
p { color: #c9c6bd; }
.lead { font-size: clamp(18px,2vw,25px); max-width: 640px; color: #e3ddd2; line-height: 1.35; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); }
.gold { color: var(--gold-bright); }
.green { color: var(--green); }
.prelaunch { display: inline-flex; align-items: center; gap: 7px; color: var(--gold-bright); background: rgba(220,166,78,.09); border: 1px solid var(--line); border-radius: 999px; padding: 6px 10px; font: 600 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.prelaunch::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 12px var(--gold); }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.btn { min-height: 45px; padding: 0 24px; display: inline-flex; justify-content: center; align-items: center; gap: 9px; border-radius: 5px; border: 1px solid var(--line); text-decoration: none; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; font-size: 14px; background: rgba(255,255,255,.02); color: var(--cream); cursor: pointer; }
.btn:hover { border-color: var(--gold); background: rgba(220,166,78,.07); }
.btn-primary { color: #14100a; background: linear-gradient(180deg,#f3bd5c,#c8892c); border-color: #e7ad4d; }
.btn-primary:hover { background: linear-gradient(180deg,#ffd17a,#d89b39); }
.btn[disabled], .btn.disabled { opacity: .48; cursor: not-allowed; pointer-events: none; }

.hero { min-height: 450px; display: grid; grid-template-columns: minmax(420px, .85fr) minmax(480px, 1.15fr); align-items: stretch; border-bottom: 1px solid var(--line); position: relative; }
.hero-copy { padding: clamp(42px,6vw,84px) 28px clamp(44px,6vw,80px) clamp(28px,6vw,80px); position: relative; z-index: 2; }
.hero-visual { min-height: 420px; position: relative; overflow: hidden; }
.hero-visual img { width: 100%; height: 100%; object-fit: cover; object-position: center; filter: contrast(1.05) saturate(.82) brightness(.8); }
.hero-visual::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg,var(--ink) 0,rgba(2,8,11,.58) 16%,transparent 55%), linear-gradient(0deg,var(--ink),transparent 30%); }
.hero-visual::after { content: ''; position: absolute; inset: 0; box-shadow: inset 0 0 80px rgba(0,0,0,.45); }
.hero-kicker { margin-bottom: 12px; }
.hero-wordmark { margin: 0 0 25px; line-height: 0; }
.hero-wordmark img { display: block; width: min(100%, 590px); height: auto; filter: drop-shadow(0 8px 18px rgba(0,0,0,.35)); }
.home-hero { display: block; min-height: 680px; overflow: hidden; isolation: isolate; }
.home-hero .hero-visual { position: absolute; inset: 0; z-index: 0; min-height: 0; }
.home-hero .hero-visual img { object-position: 30% center; filter: contrast(1.08) saturate(.96) brightness(.92); }
.home-hero .hero-visual::before { background: linear-gradient(90deg,rgba(2,8,11,.96) 0%,rgba(2,8,11,.86) 28%,rgba(2,8,11,.52) 39%,rgba(2,8,11,.16) 47%,transparent 54%),linear-gradient(0deg,var(--ink) 0%,rgba(2,8,11,.32) 22%,transparent 52%); }
.home-hero .hero-copy { width: min(100%,700px); min-height: 680px; display: flex; flex-direction: column; justify-content: center; position: relative; z-index: 2; }
.home-hero .hero-wordmark img { width: min(100%,540px); }
.home-hero .hero-title-lockup { position: relative; isolation: isolate; width: min(100%,610px); }
.home-hero .hero-title-lockup .lead { color: #f3eee5; font-weight: 500; text-shadow: 0 2px 8px rgba(0,0,0,.96); }
.home-hero .hero-title-lockup .hero-kicker { text-shadow: 0 2px 7px rgba(0,0,0,.96); }

.card-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.story-card { min-height: 260px; display: flex; flex-direction: column; }
.story-art { height: 150px; overflow: hidden; border-bottom: 1px solid var(--line); position: relative; }
.story-art img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.75) contrast(1.08); transition: transform .35s ease; }
.story-art.cover-art { height: 180px; background: #02070a; }
.story-art.cover-art img { object-fit: contain; object-position: center; filter: none; }
.story-card:hover .story-art img { transform: scale(1.035); }
.story-body { padding: 18px; display: flex; flex: 1; flex-direction: column; }
.story-body .btn { margin-top: auto; align-self: flex-start; min-height: 38px; padding: 0 16px; }

.data-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; }
.stat { min-height: 94px; padding: 15px; border: 1px solid var(--line-soft); background: rgba(255,255,255,.018); border-radius: 6px; }
.stat-label { color: var(--muted); font: 500 10px var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.stat-value { display: block; margin-top: 8px; color: var(--cream); font: 700 23px var(--display); }
.chart-placeholder { min-height: 280px; position: relative; display: grid; place-items: center; background-image: linear-gradient(rgba(220,166,78,.07) 1px,transparent 1px),linear-gradient(90deg,rgba(220,166,78,.07) 1px,transparent 1px); background-size: 42px 42px; }
.chart-placeholder::after { content: ''; position: absolute; left: 5%; right: 5%; top: 55%; height: 2px; background: linear-gradient(90deg,transparent,var(--gold),transparent); opacity: .25; transform: skewY(-6deg); }
.empty-state { text-align: center; max-width: 440px; padding: 35px; position: relative; z-index: 2; }
.empty-state strong { display: block; color: var(--cream); font: 800 26px var(--display); text-transform: uppercase; margin-bottom: 7px; }

.contract-bar { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding: 12px; margin-top: 22px; border: 1px solid var(--line); border-radius: 7px; background: rgba(0,0,0,.25); max-width: 670px; }
.contract-bar label { color: var(--gold); font: 700 12px var(--mono); }
.contract-value { min-width: 0; overflow: hidden; text-overflow: ellipsis; color: var(--muted); font: 12px var(--mono); }
.contract-bar .btn { min-height: 34px; padding: 0 12px; font-size: 11px; }

.leaderboard-wrap { overflow-x: auto; }
.leaderboard { width: 100%; border-collapse: collapse; min-width: 760px; }
.leaderboard th { padding: 12px 10px; text-align: left; border-bottom: 1px solid var(--line); color: var(--muted); font: 600 10px var(--mono); text-transform: uppercase; letter-spacing: .06em; }
.leaderboard td { padding: 14px 10px; border-bottom: 1px solid rgba(255,255,255,.045); color: #d1cec4; }
.leaderboard-empty td { height: 250px; text-align: center; }
.cutoff { color: var(--gold); background: rgba(220,166,78,.06); text-align: center !important; font: 600 11px var(--mono); letter-spacing: .1em; }

.process { display: grid; grid-template-columns: repeat(5,1fr); gap: 10px; align-items: stretch; }
.process-step { min-height: 150px; padding: 17px; border: 1px solid var(--line-soft); border-radius: 7px; position: relative; background: rgba(255,255,255,.015); }
.process-step:not(:last-child)::after { content: '→'; color: var(--gold); position: absolute; right: -11px; top: 38%; z-index: 2; }
.step-no { width: 31px; height: 31px; display: grid; place-items: center; border: 1px solid var(--line); color: var(--gold); border-radius: 50%; font: 700 12px var(--mono); margin-bottom: 16px; }
.process-step strong { color: var(--cream); text-transform: uppercase; display: block; }
.process-step p { font-size: 14px; margin: 7px 0 0; color: var(--muted); }

.district-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; }
.district { padding: 18px; min-height: 145px; border: 1px solid var(--line-soft); border-radius: 7px; background: linear-gradient(145deg,rgba(220,166,78,.055),rgba(255,255,255,.01)); }
.district:nth-child(2n) { transform: translateY(8px); }
.district-code { font: 600 10px var(--mono); color: var(--gold-soft); }
.district p { font-size: 14px; color: var(--muted); margin-bottom: 0; }

.comic-page .hero { min-height: 310px; }
.comic-page .hero-copy { padding-top: 46px; padding-bottom: 42px; }
.comic-page h1 { font-size: clamp(50px,7vw,88px); }
.reading-progress { display: flex; align-items: center; gap: 12px; margin-top: 25px; max-width: 520px; color: var(--muted); font: 10px var(--mono); letter-spacing: .08em; }
.progress-line { height: 5px; flex: 1; border-radius: 8px; background: rgba(255,255,255,.1); overflow: hidden; }
.progress-line span { display: block; height: 100%; background: var(--gold); }
.comic-strip { display: grid; gap: 12px; }
.comic-panel { min-height: 130px; display: grid; grid-template-columns: 210px 1fr; border: 1px solid var(--line); overflow: hidden; border-radius: 8px; background: #050d11; }
.comic-caption { margin: 14px; padding: 17px; align-self: center; color: #20190e; background: #d7c29b; border: 1px solid #9a7844; transform: rotate(-.4deg); font: 600 16px/1.4 var(--mono); box-shadow: 5px 5px 0 rgba(0,0,0,.18); }
.comic-panel img { width: 100%; height: 100%; min-height: 130px; object-fit: cover; }
.creator-note { display: grid; grid-template-columns: 70px 1fr; gap: 18px; align-items: center; }
.note-icon { width: 58px; height: 58px; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; color: var(--gold); font-size: 28px; }

.chapter-reader-intro { padding: clamp(46px,7vw,92px) 24px clamp(36px,5vw,64px); text-align: center; border-bottom: 1px solid var(--line); background: radial-gradient(circle at 50% 0,rgba(220,166,78,.11),transparent 34rem); }
.chapter-reader-intro .chapter-number { margin: 28px 0 12px; }
.chapter-reader-intro h1 { margin: 0 auto 24px; font-size: clamp(58px,9vw,120px); }
.chapter-reader-intro .lead { margin: 0 auto; max-width: 720px; }
.reader-meta { display: flex; justify-content: center; flex-wrap: wrap; gap: 9px; margin-top: 28px; }
.reader-meta span { padding: 7px 11px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: rgba(0,0,0,.2); font: 500 10px var(--mono); letter-spacing: .07em; text-transform: uppercase; }
.comic-reader-section { padding: clamp(24px,4vw,48px) 18px 64px; background: #010609; }
.reader-toolbar { width: min(100%, 840px); margin: 0 auto 10px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; color: var(--muted); font: 500 10px var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.reader-toolbar strong { color: var(--gold); text-align: center; }
.reader-toolbar span:last-child { text-align: right; }
.comic-progress { width: min(100%,840px); height: 5px; margin: 0 auto 18px; overflow: hidden; border-radius: 99px; background: rgba(255,255,255,.08); }
.comic-progress span { display: block; width: 9.0909%; height: 100%; border-radius: inherit; background: linear-gradient(90deg,var(--gold-soft),var(--gold-bright)); transition: width .25s ease; }
.comic-reader-stage { width: min(100%,840px); margin: 0 auto; position: relative; }
.comic-reader { width: 100%; display: flex; gap: 18px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; }
.comic-reader::-webkit-scrollbar { display: none; }
.comic-sheet { position: relative; flex: 0 0 100%; height: min(78vh,800px); min-height: 520px; margin: 0; display: grid; place-items: center; scroll-snap-align: center; scroll-snap-stop: always; overflow: hidden; border: 1px solid rgba(220,166,78,.24); border-radius: 5px; background: #02070a; box-shadow: 0 24px 70px rgba(0,0,0,.42); }
.comic-sheet img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; max-width: none; max-height: none; object-fit: contain; }
.comic-cover { border-color: rgba(220,166,78,.48); }
.reader-arrow { position: absolute; top: 50%; z-index: 4; width: 46px; height: 54px; display: grid; place-items: center; transform: translateY(-50%); border: 1px solid var(--line); border-radius: 6px; background: rgba(2,8,11,.9); color: var(--gold-bright); font: 700 22px var(--display); cursor: pointer; backdrop-filter: blur(10px); }
.reader-arrow:hover { border-color: var(--gold); background: rgba(220,166,78,.12); }
.reader-arrow:disabled { opacity: .25; cursor: default; }
.reader-arrow-prev { left: -60px; }
.reader-arrow-next { right: -60px; }
.comic-dots { width: min(100%,840px); margin: 18px auto 0; display: flex; justify-content: center; gap: 8px; }
.comic-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; background: #4c4b47; cursor: pointer; transition: width .2s ease,background .2s ease; }
.comic-dots button[aria-current='step'] { width: 25px; border-radius: 99px; background: var(--gold-bright); }
.reader-hint { margin: 12px auto 0; text-align: center; color: var(--muted); font: 500 10px var(--mono); letter-spacing: .05em; }
.reader-hint span { color: var(--gold); }
.chapter-end-nav { width: min(100%,840px); margin: 28px auto 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }

@media (min-width: 761px) {
  .comic-hub-hero { height: 520px; min-height: 0; }
  .comic-hub-hero .hero-visual { height: 520px; min-height: 0; min-width: 0; background: radial-gradient(circle at center,rgba(220,166,78,.06),transparent 65%); }
  .comic-hub-hero .hero-visual img { position: absolute; inset: 18px 28px; width: calc(100% - 56px); height: calc(100% - 36px); object-fit: contain; object-position: center; }
}

.site-footer { display: grid; grid-template-columns: 1.4fr repeat(5,1fr); gap: 24px; padding: 32px 28px; border-top: 1px solid var(--line); background: #02070a; }
.footer-brand p { color: var(--muted); max-width: 230px; font-size: 14px; }
.footer-col strong { display: block; color: var(--gold); margin-bottom: 10px; font: 600 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.footer-col a, .footer-col span { display: block; color: #95958f; text-decoration: none; font-size: 14px; margin: 5px 0; }
.footer-col a:hover { color: var(--cream); }
.footer-bottom { grid-column: 1/-1; padding-top: 18px; border-top: 1px solid var(--line-soft); color: #716f69; font: 10px var(--mono); display: flex; justify-content: space-between; gap: 16px; }
.mobile-nav { display: none; }

@media (max-width: 1100px) {
  .site-header { grid-template-columns: 210px 1fr 150px; padding: 0 18px; }
  .site-nav a { padding: 0 10px; }
  .contract-chip { display: none; }
  .hero { grid-template-columns: 1fr 1fr; }
  .home-hero .hero-visual img { object-position: 18% center; }
  .home-hero .hero-copy { width: min(100%,620px); }
  .home-hero .hero-title-lockup { width: min(100%,530px); }
  .home-hero .hero-wordmark img { width: min(100%,470px); }
  .card-grid, .district-grid { grid-template-columns: repeat(2,1fr); }
  .data-grid { grid-template-columns: repeat(2,1fr); }
  .process { grid-template-columns: repeat(3,1fr); }
  .process-step:nth-child(3)::after { display:none; }
  .site-footer { grid-template-columns: 1.5fr repeat(3,1fr); }
}

@media (max-width: 760px) {
  body { padding-bottom: 66px; }
  .site-shell { width: 100%; margin: 0; border: 0; border-radius: 0; }
  .site-header { min-height: 58px; grid-template-columns: 1fr auto; padding: 0 16px; }
  .brand-wordmark { width: 154px; max-height: 44px; }
  .site-nav { display: none; }
  .x-link { width: 34px; height: 34px; }
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-copy { padding: 48px 20px 30px; }
  .hero-visual { min-height: 260px; order: -1; }
  .hero-visual::before { background: linear-gradient(0deg,var(--ink),transparent 58%), linear-gradient(90deg,rgba(2,8,11,.35),transparent); }
  .home-hero { min-height: 0; }
  .home-hero .hero-visual { position: absolute; inset: 0 0 auto; width: 100%; height: 450px; min-height: 0; order: initial; background: var(--ink); }
  .home-hero .hero-visual img { width: 100%; height: 300px; object-fit: cover; object-position: 42% top; filter: contrast(1.05) saturate(.85) brightness(.7); }
  .home-hero .hero-visual::before { background: linear-gradient(0deg,var(--ink) 0,rgba(2,8,11,.94) 25%,rgba(2,8,11,.38) 53%,rgba(2,8,11,.06) 100%),linear-gradient(90deg,rgba(2,8,11,.25),transparent 65%); }
  .home-hero .hero-copy { width: 100%; min-height: 0; padding: 230px 20px 34px; justify-content: flex-start; }
  .home-hero .hero-kicker { text-shadow: 0 2px 10px #000; }
  .home-hero .hero-wordmark img { width: min(100%,520px); filter: drop-shadow(0 8px 20px #000); }
  .home-hero .hero-title-lockup { width: 100%; }
  h1 { font-size: clamp(58px,19vw,82px); }
  .section { padding: 20px 14px; }
  .section-grid { display: block; }
  .panel { margin-bottom: 12px; }
  .panel-pad { padding: 17px; }
  .card-grid, .district-grid, .data-grid, .process { grid-template-columns: 1fr; }
  .district:nth-child(2n) { transform: none; }
  .process-step:not(:last-child)::after { content:'↓'; top:auto; bottom:-14px; right:50%; }
  .contract-bar { grid-template-columns: 1fr; }
  .contract-bar .btn { width:100%; }
  .comic-panel { grid-template-columns: 1fr; }
  .comic-caption { position: relative; z-index: 2; margin-bottom: -8px; }
  .comic-panel img { min-height: 160px; }
  .story-art.cover-art { height: 280px; }
  .chapter-reader-intro { padding-left: 18px; padding-right: 18px; }
  .chapter-reader-intro h1 { font-size: clamp(54px,18vw,78px); }
  .comic-reader-section { padding: 14px 0 82px; }
  .reader-toolbar { padding: 0 14px; grid-template-columns: 1fr auto 1fr; }
  .reader-toolbar strong { text-align: right; }
  .reader-toolbar span:last-child { display: block; }
  .comic-progress { margin-bottom: 10px; }
  .comic-reader { gap: 10px; }
  .comic-reader-stage { width: 100%; }
  .comic-sheet { height: min(68dvh,640px); min-height: 430px; border-left: 0; border-right: 0; border-radius: 0; }
  .reader-arrow { width: 38px; height: 48px; background: rgba(2,8,11,.78); }
  .reader-arrow-prev { left: 8px; }
  .reader-arrow-next { right: 8px; }
  .comic-dots { gap: 6px; padding: 0 12px; }
  .comic-dots button { width: 7px; height: 7px; }
  .comic-dots button[aria-current='step'] { width: 20px; }
  .reader-hint { padding: 0 12px; }
  .chapter-end-nav { padding: 0 14px; }
  .site-footer { grid-template-columns: 1fr 1fr; padding: 26px 18px 84px; }
  .footer-brand { grid-column: 1/-1; }
  .footer-bottom { flex-direction: column; }
  .tax-table { font-size: 14px; }
  .tax-table th, .tax-table td { padding: 8px 6px; }
  .mobile-nav { position: fixed; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); left: 0; right: 0; bottom: 0; z-index: 200; height: 64px; padding: 0; padding-bottom: env(safe-area-inset-bottom); border-top: 1px solid var(--line); background: rgba(2,8,11,.97); backdrop-filter: blur(14px); }
  .mobile-nav a { display: flex; align-items: center; justify-content: center; width: 100%; min-width: 0; padding: 0; color: #8f8e88; text-decoration: none; font: 600 10px var(--mono); text-transform: uppercase; text-align: center; white-space: nowrap; }
  .mobile-nav a[aria-current='page'] { color: var(--gold); background: rgba(220,166,78,.06); }
}

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

/* ─── Market Grid (8-box) ─────────────────────────────────────────── */
.market-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.market-card {
  background: var(--panel-bg, rgba(255,255,255,.03));
  border: 1px solid var(--border, rgba(255,255,255,.08));
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.market-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted, rgba(255,255,255,.5));
}

.market-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--gold, #d4a853);
  line-height: 1.1;
}

.market-note {
  font-size: 12px;
  color: var(--muted, rgba(255,255,255,.4));
  line-height: 1.4;
}

/* ─── Citizenship Note ────────────────────────────────────────────── */
.citizenship-note {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border, rgba(255,255,255,.08));
  font-size: 13px;
  color: var(--gold, #d4a853);
  font-style: italic;
}

/* ─── Section Header ──────────────────────────────────────────────── */
.section-header {
  margin-bottom: 16px;
}

.section-header h2 {
  margin-top: 14px;
}

/* ─── Mobile Market Grid ──────────────────────────────────────────── */
@media (max-width: 900px) {
  .market-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 500px) {
  .market-grid {
    grid-template-columns: 1fr;
  }
}

/* ─── Comic Hero — City Image ─────────────────────────────────────── */
.comic-hub-hero .hero-visual img {
  object-fit: cover !important;
  filter: none !important;
  width: 100% !important;
  height: 100% !important;
  inset: 0 !important;
}

/* ─── Chapter Cover Cards — Contain ───────────────────────────────── */
.story-art.cover-art img {
  object-fit: contain !important;
  filter: none !important;
}

/* ─── Comic Hub Hero — Full-Width Background ──────────────────────── */
.comic-hub-hero {
  display: block !important;
  position: relative;
  min-height: 500px;
}

.comic-hub-hero .hero-visual {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.comic-hub-hero .hero-visual img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center bottom !important;
  filter: none !important;
  inset: 0 !important;
}

.comic-hub-hero .hero-copy {
  position: relative;
  z-index: 2;
  background: linear-gradient(to right, rgba(2,8,11,0.95) 0%, rgba(2,8,11,0.7) 40%, transparent 70%);
  padding: 60px 40px;
  min-height: 500px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ─── Page Hero — Full-Bleed Pattern ──────────────────────────────── */
.page-hero {
  position: relative;
  width: 100%;
  min-height: 420px;
  overflow: hidden;
}

.page-hero .hero-visual {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.page-hero .hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: none !important;
}

.page-hero .hero-copy {
  position: relative;
  z-index: 2;
  max-width: 42%;
  padding: 48px;
  background: linear-gradient(90deg, rgba(0,0,0,.72), rgba(0,0,0,0));
}

/* ─── Per-Page object-position ────────────────────────────────────── */
.home-hero .hero-visual img { object-position: center center; }
.market-hero .hero-visual img { object-position: right center; }
.dividend-hero .hero-visual img { object-position: center center; }
.vault-hero .hero-visual img { object-position: center center; }
.world-hero .hero-visual img { object-position: center right; }
.about-hero .hero-visual img { object-position: center center; }
.comic-hub-hero .hero-visual img { object-position: center bottom; }

/* ─── Mobile Hero ─────────────────────────────────────────────────── */
@media (max-width: 700px) {
  .page-hero {
    min-height: 350px;
  }
  .page-hero .hero-copy {
    max-width: 100%;
    padding: 24px;
    background: linear-gradient(180deg, rgba(0,0,0,.8) 0%, rgba(0,0,0,.4) 60%, transparent 100%);
  }
}

/* ─── Hero Text Layout Fix ────────────────────────────────────────── */
.page-hero .hero-copy {
  max-width: 46% !important;
  min-width: 520px;
  padding: 48px !important;
  background: linear-gradient(90deg, rgba(0,0,0,.82) 0%, rgba(0,0,0,.45) 55%, rgba(0,0,0,0) 100%) !important;
}

.page-hero .hero-copy h1 {
  text-shadow: 0 2px 12px rgba(0,0,0,.6);
  line-height: 1.1;
}

.page-hero .hero-copy p {
  text-shadow: 0 1px 8px rgba(0,0,0,.5);
  line-height: 1.5;
  max-width: 480px;
}

.page-hero .hero-copy .button-row {
  margin-top: 24px;
}

/* ─── Mobile Hero Text ────────────────────────────────────────────── */
@media (max-width: 700px) {
  .page-hero .hero-copy {
    min-width: 0 !important;
    max-width: 100% !important;
    padding: 24px !important;
    background: linear-gradient(180deg, rgba(0,0,0,.85) 0%, rgba(0,0,0,.5) 60%, transparent 100%) !important;
  }
}

/* ─── Mobile Global Fixes ─────────────────────────────────────────── */
@media (max-width: 700px) {
  body {
    padding-bottom: 88px;
  }

  .page-hero {
  }

  .page-hero h1 {
    font-size: 42px !important;
    line-height: 0.95 !important;
    max-width: 100% !important;
  }

  .page-hero .hero-copy {
    position: relative !important;
    max-width: 100% !important;
    min-width: 0 !important;
    padding: 24px 20px 32px !important;
    background: linear-gradient(180deg, rgba(0,0,0,.78) 0%, rgba(0,0,0,.42) 65%, rgba(7,11,14,.92) 100%) !important;
  }

  .page-hero .hero-visual img {
    object-fit: cover !important;
  }

  /* Home hero: show city + Zuno body */
  .home-hero .hero-visual img {
    object-position: center 30% !important;
  }

  /* Market: Zuno right, not covered */
  .market-hero .hero-visual img {
    object-position: right 20% !important;
  }

  /* World: Zuno right */
  .world-hero .hero-visual img {
    object-position: center right !important;
  }

  /* Comic: city bottom */
  .comic-hub-hero .hero-visual img {
    object-position: center bottom !important;
  }

  /* Bottom nav */
  .mobile-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    z-index: 50;
  }

  /* Market grid: 1-2 columns */
  .market-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  /* District grid: 1 column */
  .district-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ─── Home Mobile: Hide h1, Show Tagline ──────────────────────────── */
@media (max-width: 700px) {
  .home-hero .hero-title-lockup h1 {
    display: none !important;
  }

  .home-hero .hero-visual img {
    object-position: 68% 22% !important;
  }

  .home-hero .hero-copy {
    background: linear-gradient(180deg, rgba(0,0,0,.72) 0%, rgba(0,0,0,.3) 50%, transparent 100%) !important;
  }
}

/* ─── Home Mobile: Hide Wordmark Image ────────────────────────────── */
@media (max-width: 700px) {
  .home-hero .hero-wordmark {
    display: none !important;
  }

  .home-hero .hero-title-lockup h1.hero-wordmark {
    display: none !important;
  }

  .home-hero .hero-title-lockup h1.hero-wordmark img {
    display: none !important;
  }
}

/* ─── Home Mobile: Move Image Right ───────────────────────────────── */
@media (max-width: 700px) {
  .home-hero .hero-visual img {
    object-position: 85% 22% !important;
  }
}

/* ─── Home Mobile: Zuno Visible ───────────────────────────────────── */
@media (max-width: 700px) {
  .home-hero .hero-visual img {
    object-position: 58% 18% !important;
  }

  .home-hero .hero-copy {
    justify-content: flex-end !important;
    padding-bottom: 40px !important;
  }

  .home-hero .hero-title-lockup {
    margin-top: auto !important;
  }
}

/* ─── Home Mobile: Tighten Section Spacing ────────────────────────── */
@media (max-width: 700px) {
  .home-hero .contract-bar {
    margin-bottom: 0 !important;
  }

  .section {
    padding: 16px 14px !important;
  }

  .section-header {
    margin-bottom: 12px !important;
  }
}

/* ─── Home: Consistent Section Spacing ────────────────────────────── */
@media (max-width: 700px) {
  .home-hero {
    padding-bottom: 0 !important;
  }

  .home-hero .contract-bar {
    margin-top: 16px !important;
    margin-bottom: 0 !important;
  }

  .home-hero + .section {
    margin-top: 0 !important;
    padding-top: 16px !important;
  }

  .section {
    padding: 16px 14px !important;
    margin-bottom: 0 !important;
  }

  .section + .section {
    border-top: 1px solid var(--line-soft) !important;
    padding-top: 16px !important;
  }
}

/* ─── Spacing Variables ───────────────────────────────────────────── */
:root {
  --section-pad: 24px 16px 24px;
  --section-gap: 16px;
  --card-pad: 16px;
  --card-gap: 12px;
}

/* ─── Mobile: Hero Auto Height ────────────────────────────────────── */
@media (max-width: 700px) {
  .page-hero {
    min-height: auto !important;
    height: auto !important;
  }

  .home-hero {
    height: auto !important;
    padding-bottom: 0 !important;
  }

  .home-hero .hero-copy {
    height: auto !important;
    padding: 24px 16px 24px !important;
  }

  .section {
    padding: var(--section-pad) !important;
    margin-top: 0 !important;
  }

  .section + .section {
    border-top: 1px solid var(--line-soft);
    padding-top: var(--section-gap) !important;
  }

  .panel {
    padding: var(--card-pad) !important;
    margin-bottom: var(--card-gap) !important;
  }

  .card-grid {
    gap: var(--card-gap) !important;
  }

  .data-grid {
    gap: var(--card-gap) !important;
  }

  body {
    padding-bottom: 88px !important;
  }
}

/* ─── Mobile: Clean Hero + Spacing ────────────────────────────────── */
@media (max-width: 700px) {
  /* Hero auto height */
  .page-hero,
  .home-hero,
  .dividend-hero,
  .vault-hero,
  .market-hero,
  .world-hero,
  .about-hero,
  .comic-hub-hero {
    min-height: auto !important;
    height: auto !important;
  }

  .page-hero .hero-copy,
  .home-hero .hero-copy {
    min-height: auto !important;
    height: auto !important;
    padding: 24px 16px 24px !important;
  }

  /* Spacing variables */
  .section {
    padding: 24px 16px 24px !important;
    margin-top: 0 !important;
  }

  .section + .section {
    border-top: 1px solid var(--line-soft);
    padding-top: 16px !important;
  }

  .panel {
    padding: 16px !important;
    margin-bottom: 12px !important;
  }

  .card-grid,
  .data-grid {
    gap: 12px !important;
  }

  /* Body padding for nav */
  body {
    padding-bottom: 88px !important;
  }
}

/* ─── Mobile: Hero Copy Padding Fix ───────────────────────────────── */
@media (max-width: 700px) {
  .page-hero .hero-copy,
  .dividend-hero .hero-copy,
  .vault-hero .hero-copy,
  .market-hero .hero-copy,
  .world-hero .hero-copy,
  .about-hero .hero-copy,
  .comic-hub-hero .hero-copy {
    padding: 24px 16px 20px !important;
    min-height: auto !important;
    height: auto !important;
  }

  .home-hero .hero-copy {
    padding: 24px 16px 24px !important;
    min-height: auto !important;
    height: auto !important;
  }
}

/* ─── Mobile: Hero Visual Out of Flow ─────────────────────────────── */
@media (max-width: 800px) {
  .page-hero,
  .hero {
    min-height: 0 !important;
    height: auto !important;
    position: relative;
  }

  .hero-visual {
    position: absolute;
    inset: 0;
    height: auto;
    min-height: 0;
    z-index: 0;
    pointer-events: none;
  }

  .hero-copy {
    position: relative;
    z-index: 1;
    padding: 24px 16px 20px;
  }
}

/* ─── Mobile: Hero Visual Absolute Override ───────────────────────── */
@media (max-width: 800px) {
  .hero,
  .page-hero,
  .dividend-hero {
    display: block !important;
    min-height: 0 !important;
    height: auto !important;
  }

  .hero-visual {
    position: absolute !important;
    inset: 0 !important;
    min-height: 0 !important;
    height: 100% !important;
    order: 0 !important;
  }
}

/* ─── Mobile Nav: 5 Items ─────────────────────────────────────────── */
@media (max-width: 700px) {
  .mobile-nav {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0;
    padding: 0;
    font-size: 10px;
    letter-spacing: 0.02em;
  }

  .mobile-nav a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 0;
    padding: 0;
    text-align: center;
    white-space: nowrap;
  }
}

/* ─── Market Desktop: How to Buy Fix ──────────────────────────────── */
@media (min-width: 701px) {
  .market-page .process {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--card-gap, 12px);
  }

  .market-page .panel,
  .market-page .section,
  .market-page .process {
    height: auto;
    min-height: 0;
  }

  .market-page .section-grid {
    align-items: start;
  }

  .market-page .section-grid > * {
    height: auto;
    min-height: 0;
  }
}
