:root {
  --ink: #05080f;
  --panel: #0c1320;
  --panel-2: #111c2b;
  --gold: #e8b84c;
  --gold-light: #f6d88a;
  --turquoise: #41d8cf;
  --text: #f7f1df;
  --muted: #a9b2bf;
  --line: rgba(232, 184, 76, 0.22);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background: radial-gradient(circle at 20% 0%, #182741 0, var(--ink) 32rem), var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; }
h1 { max-width: 880px; margin-bottom: 20px; font-size: clamp(3.2rem, 8vw, 7rem); line-height: 0.92; letter-spacing: -0.05em; }
h2 { margin-bottom: 18px; font-size: clamp(2.25rem, 5vw, 4.4rem); line-height: 0.98; letter-spacing: -0.04em; }
h3 { margin-bottom: 10px; font-size: 1.45rem; line-height: 1.15; }

.chronicle-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  min-height: 78px;
  padding: 12px clamp(18px, 4vw, 64px);
  background: rgba(5, 8, 15, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}
.chronicle-brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 800; letter-spacing: 0.02em; }
.chronicle-brand img { width: 50px; height: 50px; border-radius: 50%; border: 1px solid var(--line); }
.chronicle-header nav { display: flex; align-items: center; gap: 22px; color: var(--muted); font-size: 0.92rem; }
.chronicle-header nav a:hover, .text-link:hover, .chronicle-footer a:hover { color: var(--gold-light); }

.chronicle-hero { position: relative; min-height: 760px; display: flex; align-items: flex-end; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero-banner { position: absolute; inset: 0; height: 100%; object-fit: cover; object-position: center; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(3,6,12,.96) 0%, rgba(3,6,12,.7) 48%, rgba(3,6,12,.12) 100%), linear-gradient(0deg, rgba(3,6,12,.98), transparent 65%); }
.hero-content { position: relative; z-index: 2; width: min(1180px, calc(100% - 36px)); margin: 0 auto; padding: 110px 0 74px; }
.hero-content > p:not(.kicker) { max-width: 720px; color: #d9dde3; font-size: 1.25rem; }
.kicker { margin-bottom: 14px; color: var(--gold); font-size: .78rem; font-weight: 900; letter-spacing: .15em; text-transform: uppercase; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0; }
.gold-button, .outline-button { display: inline-flex; min-height: 50px; align-items: center; justify-content: center; padding: 13px 22px; border-radius: 999px; font-weight: 900; transition: transform .16s ease, background .16s ease; }
.gold-button { color: #171007; background: linear-gradient(135deg, var(--gold-light), var(--gold)); box-shadow: 0 14px 34px rgba(232,184,76,.18); }
.gold-button.small { min-height: 40px; padding: 9px 15px; }
.outline-button { border: 1px solid rgba(247,241,223,.32); background: rgba(255,255,255,.04); }
.gold-button:hover, .outline-button:hover { transform: translateY(-2px); }
.facts { display: flex; flex-wrap: wrap; gap: 10px; }
.facts span { padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; color: #d7deea; background: rgba(9,14,23,.68); font-size: .9rem; }

.chronicle-section { width: min(1180px, calc(100% - 36px)); margin: 0 auto; padding: 92px 0; }
.story-intro { max-width: 940px; text-align: center; }
.lead { color: var(--muted); font-size: 1.2rem; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 40px; margin-bottom: 34px; }
.section-heading > div { max-width: 760px; }
.section-heading > p { max-width: 380px; color: var(--muted); }
.episode-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }
.episode-card { overflow: hidden; border: 1px solid var(--line); border-radius: 28px; background: linear-gradient(145deg, var(--panel-2), var(--panel)); box-shadow: 0 26px 70px rgba(0,0,0,.28); }
.episode-card img { aspect-ratio: 1; object-fit: cover; transition: transform .35s ease; }
.episode-card a:hover img { transform: scale(1.015); }
.episode-copy { padding: 26px; }
.episode-copy p { color: var(--muted); }
.episode-number { display: inline-block; margin-bottom: 12px; color: var(--turquoise); font-size: .78rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.text-link { color: var(--gold-light); font-weight: 800; }
.chapter-path { display: grid; grid-template-columns: repeat(7, minmax(120px, 1fr)); gap: 10px; margin-top: 32px; overflow-x: auto; padding-bottom: 8px; }
.chapter-path div { min-width: 130px; padding: 16px; border: 1px solid rgba(255,255,255,.1); border-radius: 16px; background: rgba(255,255,255,.025); }
.chapter-path div.complete { border-color: var(--line); background: rgba(232,184,76,.07); }
.chapter-path span { display: block; margin-bottom: 7px; color: var(--gold); font-size: .78rem; font-weight: 900; }
.chapter-path strong { font-size: .88rem; line-height: 1.2; }

.proof-band { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: linear-gradient(135deg, rgba(19,35,55,.85), rgba(6,11,18,.95)); }
.proof-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: start; }
.proof-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.proof-list div, .faq-grid article { padding: 24px; border: 1px solid var(--line); border-radius: 20px; background: rgba(255,255,255,.035); }
.proof-list strong, .proof-list span { display: block; }
.proof-list span, .faq-grid p { margin: 6px 0 0; color: var(--muted); }
.contract-card { display: flex; justify-content: space-between; align-items: center; gap: 36px; }
.contract-card code { display: block; max-width: 100%; overflow-wrap: anywhere; color: var(--turquoise); font-size: clamp(.82rem, 2vw, 1.12rem); }
.faq-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.final-cta { text-align: center; padding-bottom: 120px; }
.final-cta h2 { max-width: 820px; margin-left: auto; margin-right: auto; }

.chronicle-footer { width: min(1180px, calc(100% - 36px)); margin: 0 auto; padding: 28px 0 44px; display: flex; justify-content: space-between; gap: 22px; border-top: 1px solid var(--line); color: var(--muted); }
.chronicle-footer div { display: flex; gap: 16px; flex-wrap: wrap; }
.chronicle-footer div:first-child { display: grid; gap: 2px; }

@media (max-width: 850px) {
  .chronicle-header { align-items: flex-start; }
  .chronicle-header nav a:not(.gold-button) { display: none; }
  .chronicle-hero { min-height: 680px; }
  .hero-shade { background: linear-gradient(0deg, rgba(3,6,12,.98) 12%, rgba(3,6,12,.68) 72%, rgba(3,6,12,.35)); }
  .section-heading, .contract-card, .chronicle-footer { flex-direction: column; align-items: flex-start; }
  .episode-grid, .proof-layout, .proof-list, .faq-grid { grid-template-columns: 1fr; }
  .proof-layout { gap: 26px; }
}

@media (max-width: 560px) {
  h1 { font-size: clamp(3rem, 16vw, 4.6rem); }
  .chronicle-brand span { font-size: .92rem; }
  .chronicle-brand img { width: 44px; height: 44px; }
  .gold-button.small { font-size: .82rem; }
  .hero-content { width: min(100% - 28px, 1180px); padding-bottom: 46px; }
  .hero-content > p:not(.kicker), .lead { font-size: 1.04rem; }
  .hero-actions { display: grid; }
  .chronicle-section { width: min(100% - 28px, 1180px); padding: 66px 0; }
  .episode-copy, .proof-list div, .faq-grid article { padding: 20px; }
}
