:root {
  --rb-ink: #070a0e;
  --rb-navy: #0b1828;
  --rb-navy-light: #11263f;
  --rb-ivory: #fff7ea;
  --rb-paper: #f1e5d2;
  --rb-gold: #e0b45f;
  --rb-gold-deep: #916a2f;
  --rb-muted: #a89e90;
  --rb-line: rgba(255, 247, 234, .14);
  --rb-ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; }
html { overflow-x: hidden; scroll-behavior: smooth; background: var(--rb-ink); }
body { margin: 0; overflow-x: hidden; background: var(--rb-ink); color: var(--rb-ivory); font-family: Inter, sans-serif; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; }
::selection { background: var(--rb-gold); color: var(--rb-ink); }
.shell { width: min(1320px, calc(100% - 48px)); margin-inline: auto; }
.mono { font-family: "JetBrains Mono", monospace; letter-spacing: .16em; text-transform: uppercase; }
.skip-link { position: fixed; top: -80px; left: 18px; z-index: 100; padding: 12px 16px; background: var(--rb-gold); color: var(--rb-ink); font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 18px; }

.glass { position: relative; isolation: isolate; contain: paint; border: 1px solid rgba(255, 247, 234, .19); background: linear-gradient(140deg, rgba(255, 247, 234, .13), rgba(255, 255, 255, .022) 48%), rgba(7, 10, 14, .7); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), inset 0 -1px 0 rgba(255, 255, 255, .04), 0 28px 90px rgba(0, 0, 0, .34); -webkit-backdrop-filter: blur(20px) saturate(1.45) brightness(1.05); backdrop-filter: blur(20px) saturate(1.45) brightness(1.05); }
.glass::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; background: radial-gradient(circle at var(--mx, 16%) var(--my, 0%), rgba(255, 255, 255, .27), transparent 28%), linear-gradient(120deg, transparent 35%, rgba(255, 255, 255, .07), transparent 63%); }

.site-header { position: fixed; inset: 17px 0 auto; z-index: 50; }
.nav { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 9px 11px 9px 19px; border-radius: 999px; }
.brand { display: flex; align-items: center; gap: 13px; text-decoration: none; }
.brand img { width: 44px; height: 32px; object-fit: cover; object-position: left center; }
.brand > span { display: grid; gap: 3px; }
.brand strong { font: 600 18px/1 "Cormorant Garamond", serif; }
.brand small { color: #938a7e; font: 500 8px/1.2 "JetBrains Mono", monospace; letter-spacing: .13em; text-transform: uppercase; }
.nav > nav { display: flex; gap: 26px; }
.nav > nav a { color: #c8bdaf; font-size: 11px; text-decoration: none; }
.nav > nav a:hover, .nav > nav a[aria-current="page"] { color: var(--rb-gold); }
.nav-back { min-height: 44px; display: inline-flex; align-items: center; padding: 10px 16px; border: 1px solid rgba(224, 180, 95, .34); border-radius: 999px; color: #e5d7c2; font-size: 11px; text-decoration: none; }

.collection-hero { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; padding: 145px 0 92px; background: radial-gradient(circle at 76% 20%, rgba(17, 66, 108, .48), transparent 29%), radial-gradient(circle at 10% 88%, rgba(224, 180, 95, .13), transparent 28%), linear-gradient(145deg, #070a0e, #0b1828 57%, #070a0e); }
.collection-hero::before { content: "20"; position: absolute; right: -3vw; bottom: -15vh; color: rgba(255, 247, 234, .025); font: 600 min(44vw, 670px)/.72 "Cormorant Garamond", serif; letter-spacing: -.1em; pointer-events: none; }
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(430px, .76fr); gap: clamp(60px, 9vw, 130px); align-items: center; }
.eyebrow { margin: 0 0 24px; color: var(--rb-gold); font-size: 9px; }
.hero-copy h1 { max-width: 790px; margin: 0; font: 500 clamp(67px, 8.4vw, 116px)/.82 "Cormorant Garamond", serif; letter-spacing: -.052em; text-wrap: balance; }
.hero-copy h1 span { display: block; color: #e7c989; font-style: italic; font-weight: 500; }
.hero-lede { max-width: 690px; margin: 32px 0 0; color: #c1b7aa; font-size: clamp(16px, 1.45vw, 19px); line-height: 1.72; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 36px; }
.button { min-height: 50px; display: inline-flex; align-items: center; justify-content: center; gap: 11px; padding: 12px 21px; border: 1px solid transparent; border-radius: 999px; font-size: 12px; font-weight: 700; text-decoration: none; transition: transform .25s var(--rb-ease), border-color .25s ease; }
.button:hover { transform: translateY(-2px); }
.button.primary { background: linear-gradient(135deg, #ebca86, #c79644); color: var(--rb-ink); box-shadow: 0 19px 52px rgba(145, 106, 47, .24); }
.button.secondary { border-color: rgba(255, 247, 234, .2); background: rgba(255, 247, 234, .035); color: #e6dac9; }
.collection-stats { display: flex; flex-wrap: wrap; gap: 0; margin-top: 45px; border-top: 1px solid rgba(255, 247, 234, .13); }
.collection-stats div { min-width: 145px; padding: 20px 30px 0 0; }
.collection-stats strong { display: block; color: var(--rb-ivory); font: 500 31px/1 "Cormorant Garamond", serif; }
.collection-stats span { display: block; margin-top: 7px; color: #847c71; font: 500 8px/1.3 "JetBrains Mono", monospace; letter-spacing: .12em; text-transform: uppercase; }

.progress-console { border-radius: 31px; padding: clamp(28px, 4vw, 42px); }
.progress-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 25px; }
.progress-head p { margin: 0 0 10px; color: var(--rb-gold); font-size: 8px; }
.progress-head h2 { margin: 0; font: 500 clamp(36px, 4vw, 50px)/.92 "Cormorant Garamond", serif; }
.progress-head > strong { color: #e6c77f; font: 500 34px/1 "JetBrains Mono", monospace; letter-spacing: -.06em; }
.progress-track { position: relative; height: 4px; margin: 32px 0 25px; overflow: hidden; border-radius: 999px; background: rgba(255, 247, 234, .1); }
.progress-track i { display: block; width: var(--collection-progress, 0%); height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--rb-gold-deep), var(--rb-gold), #f5dca8); box-shadow: 0 0 18px rgba(224, 180, 95, .4); transition: width .45s var(--rb-ease); }
.progress-nodes { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.progress-nodes span { display: grid; place-items: center; aspect-ratio: 1; border: 1px solid rgba(255, 247, 234, .13); border-radius: 50%; color: #6f6b64; font: 500 8px "JetBrains Mono", monospace; transition: color .25s ease, background .25s ease, border-color .25s ease; }
.progress-nodes span.is-complete { border-color: rgba(224, 180, 95, .62); background: rgba(224, 180, 95, .13); color: var(--rb-gold); }
.progress-status { margin: 22px 0 0; color: #a49b8f; font-size: 11px; }
.continue-link { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 7px 18px; align-items: center; margin-top: 27px; padding: 21px 23px; overflow: hidden; border: 1px solid rgba(224, 180, 95, .26); border-radius: 20px; background: rgba(11, 24, 40, .78); text-decoration: none; }
.continue-link::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(120deg, rgba(255, 255, 255, .08), transparent 42%); }
.continue-link > * { position: relative; }
.continue-link span { color: var(--rb-gold); font-size: 7px; }
.continue-link strong { font: 500 22px/1.1 "Cormorant Garamond", serif; }
.continue-link i { grid-column: 2; grid-row: 1 / span 2; color: var(--rb-gold); font-style: normal; }
.device-note { margin: 17px 0 0; color: #6e6a64; font-size: 9px; line-height: 1.5; }

.reading-contract { padding: clamp(80px, 10vw, 128px) 0; background: var(--rb-paper); color: #1c1d22; }
.contract-grid { display: grid; grid-template-columns: 180px minmax(0, 1fr) minmax(260px, .48fr); gap: clamp(35px, 6vw, 78px); align-items: start; }
.contract-grid > .mono { margin: 8px 0 0; color: var(--rb-gold-deep); font-size: 8px; }
.contract-grid h2 { max-width: 720px; margin: 0; font: 600 clamp(45px, 5vw, 68px)/.94 "Cormorant Garamond", serif; letter-spacing: -.035em; }
.contract-grid div > p { max-width: 760px; margin: 24px 0 0; color: #5c554d; font-size: 15px; line-height: 1.78; }
.boundary { margin: 7px 0 0; padding: 22px 0 22px 24px; border-left: 1px solid rgba(145, 106, 47, .42); color: #6c6258; font-size: 11px; line-height: 1.75; }

.chapters { padding: clamp(90px, 11vw, 150px) 0; }
.phase + .phase { margin-top: clamp(100px, 12vw, 160px); }
.phase-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, .54fr); gap: 60px; align-items: end; margin-bottom: 42px; padding-bottom: 27px; border-bottom: 1px solid var(--rb-line); }
.phase-head .mono { margin: 0 0 15px; color: var(--rb-gold); font-size: 8px; }
.phase-head h2 { max-width: 820px; margin: 0; font: 500 clamp(46px, 5.8vw, 75px)/.9 "Cormorant Garamond", serif; letter-spacing: -.04em; }
.phase-head > p { margin: 0; color: #9e9588; font-size: 13px; line-height: 1.76; }
.chapter-list { display: grid; gap: 16px; }
.chapter { position: relative; display: grid; grid-template-columns: minmax(270px, .37fr) minmax(0, 1fr); min-height: 305px; overflow: hidden; border: 1px solid rgba(255, 247, 234, .12); border-radius: 28px; background: linear-gradient(135deg, rgba(255, 247, 234, .055), rgba(255, 255, 255, .01)), #0b1119; transition: transform .28s var(--rb-ease), border-color .28s ease; }
.chapter:hover { transform: translateY(-3px); border-color: rgba(224, 180, 95, .34); }
.chapter.is-complete { border-color: rgba(224, 180, 95, .42); }
.chapter-media { position: relative; min-height: 305px; overflow: hidden; }
.chapter-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 58%, rgba(11, 17, 25, .82)), linear-gradient(0deg, rgba(7, 10, 14, .45), transparent 55%); }
.chapter-media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.88) contrast(1.04); transition: transform .55s var(--rb-ease), filter .35s ease; }
.chapter:hover .chapter-media img { transform: scale(1.025); filter: saturate(1) contrast(1.04); }
.chapter-number { position: absolute; left: 24px; bottom: 21px; z-index: 2; color: #f0d392; font-size: 11px; }
.chapter-body { display: flex; flex-direction: column; padding: clamp(27px, 4vw, 47px); }
.chapter-status { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.chapter-status span { color: #817a70; font-size: 7px; }
.chapter-status i { width: 8px; height: 8px; border: 1px solid rgba(255, 247, 234, .28); border-radius: 50%; }
.is-complete .chapter-status i { border-color: var(--rb-gold); background: var(--rb-gold); box-shadow: 0 0 0 6px rgba(224, 180, 95, .08); }
.chapter h3 { max-width: 810px; margin: 26px 0 0; font: 500 clamp(34px, 4vw, 53px)/.94 "Cormorant Garamond", serif; letter-spacing: -.025em; }
.chapter h3 a { text-decoration: none; }
.chapter-body > p { max-width: 800px; margin: 18px 0 0; color: #9d9488; font-size: 13px; line-height: 1.72; }
.chapter-actions { display: flex; align-items: center; gap: 25px; margin-top: auto; padding-top: 28px; }
.chapter-read { display: inline-flex; align-items: center; gap: 19px; padding-bottom: 7px; border-bottom: 1px solid rgba(224, 180, 95, .48); color: #e3c77e; font-size: 11px; text-decoration: none; }
.chapter-actions button { min-height: 40px; display: inline-flex; align-items: center; gap: 9px; padding: 8px 13px; border: 1px solid rgba(255, 247, 234, .13); border-radius: 999px; background: transparent; color: #928a7e; font-size: 10px; cursor: pointer; }
.chapter-actions button:hover { border-color: rgba(224, 180, 95, .4); color: var(--rb-ivory); }
.chapter-actions button i { display: none; color: var(--rb-gold); font-style: normal; }
.is-complete .chapter-actions button { border-color: rgba(224, 180, 95, .34); color: var(--rb-gold); }
.is-complete .chapter-actions button i { display: inline; }

.collection-end { padding: clamp(84px, 10vw, 132px) 0; background: radial-gradient(circle at 84% 10%, rgba(224, 180, 95, .14), transparent 27%), linear-gradient(145deg, #101c2b, #070a0e 69%); }
.end-grid { display: flex; align-items: end; justify-content: space-between; gap: 70px; }
.end-grid .mono { margin: 0 0 18px; color: var(--rb-gold); font-size: 8px; }
.end-grid h2 { max-width: 960px; margin: 0; font: 500 clamp(43px, 6vw, 75px)/.92 "Cormorant Garamond", serif; letter-spacing: -.037em; }
.end-grid > .button { flex: 0 0 auto; }
footer { padding: 42px 0 48px; border-top: 1px solid rgba(255, 247, 234, .08); }
.footer-inner { display: flex; align-items: end; justify-content: space-between; gap: 35px; }
.footer-inner img { width: 58px; height: 39px; object-fit: cover; object-position: left center; }
.footer-inner p { margin: 13px 0 0; color: #716a61; font-size: 10px; }
.footer-inner nav { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-inner nav a { color: #9e9588; font-size: 11px; text-decoration: none; }

:is(a, button):focus-visible { outline: 2px solid var(--rb-gold); outline-offset: 4px; }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .glass { background: rgba(7, 10, 14, .95); } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
@media (prefers-contrast: more) { .glass { border-color: #fff; background: #0b1828; -webkit-backdrop-filter: none; backdrop-filter: none; } .chapter-body > p, .phase-head > p, .hero-lede { color: #eee4d6; } }

@media (max-width: 1040px) {
  .nav > nav { display: none; }
  .hero-grid, .contract-grid, .phase-head { grid-template-columns: 1fr; }
  .hero-grid { gap: 55px; }
  .progress-console { max-width: 720px; }
  .contract-grid { gap: 30px; }
  .boundary { max-width: 720px; }
  .phase-head { gap: 23px; align-items: start; }
  .phase-head > p { max-width: 720px; }
}

@media (max-width: 720px) {
  .shell { width: min(100% - 30px, 1320px); }
  .site-header { inset: 10px 0 auto; }
  .nav { min-height: 59px; padding-left: 14px; border-radius: 20px; }
  .brand small { display: none; }
  .nav-back { min-height: 40px; max-width: 118px; padding: 8px 12px; text-align: center; font-size: 9px; }
  .collection-hero { align-items: flex-start; padding: 124px 0 74px; }
  .hero-copy h1 { font-size: clamp(59px, 18vw, 82px); }
  .hero-actions .button { width: 100%; }
  .collection-stats div { min-width: 33%; padding-right: 15px; }
  .collection-stats strong { font-size: 27px; }
  .collection-stats span { font-size: 6px; }
  .progress-console { padding: 25px 20px; border-radius: 24px; }
  .progress-head { align-items: flex-start; flex-direction: column; }
  .progress-nodes { gap: 8px; }
  .reading-contract { padding: 72px 0; }
  .contract-grid h2, .phase-head h2 { font-size: 45px; }
  .chapters { padding: 80px 0 100px; }
  .phase + .phase { margin-top: 100px; }
  .chapter { grid-template-columns: 1fr; border-radius: 22px; }
  .chapter-media { min-height: 220px; aspect-ratio: 16 / 10; }
  .chapter-media::after { background: linear-gradient(0deg, rgba(11, 17, 25, .72), transparent 48%); }
  .chapter-body { min-height: 300px; padding: 26px 21px; }
  .chapter h3 { font-size: 38px; }
  .chapter-actions { align-items: flex-start; flex-direction: column; gap: 17px; }
  .chapter-actions button { width: 100%; justify-content: center; }
  .end-grid, .footer-inner { align-items: flex-start; flex-direction: column; }
  .end-grid > .button { width: 100%; }
}

