.stories-page,
.story-page {
  background:
    radial-gradient(circle at 88% 14%, rgba(112, 71, 235, .12), transparent 28rem),
    var(--parchment);
}

.stories-page .site-header,
.story-page .site-header {
  position: fixed;
  background: rgba(24, 18, 40, .96);
  backdrop-filter: blur(16px);
}

.stories-page .nav-shell,
.story-page .nav-shell { width: min(1480px, calc(100% - 48px)); gap: 26px; }
.stories-page .site-nav,
.story-page .site-nav { gap: clamp(14px, 1.65vw, 28px); }
.stories-page .site-nav a,
.story-page .site-nav a,
.stories-page .watchlist-pill,
.story-page .watchlist-pill { font-size: .75rem; }

.stories-hero {
  position: relative;
  overflow: hidden;
  padding: 176px 0 96px;
  background:
    linear-gradient(128deg, rgba(24,18,40,.98), rgba(56,29,93,.96) 57%, rgba(111,49,174,.92)),
    url("assets/frontier-outpost.webp") center 38%/cover no-repeat;
  color: var(--white);
}

.stories-hero::before,
.article-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, transparent, #000 24%, #000 82%, transparent);
}

.stories-hero-shell,
.stories-shell,
.standards-shell,
.article-hero-shell,
.article-shell,
.related-shell { position: relative; z-index: 2; width: min(1320px, calc(100% - 48px)); margin: auto; }

.stories-hero-shell { display: grid; grid-template-columns: 1.25fr .75fr; align-items: end; gap: 70px; }
.stories-hero h1 { max-width: 880px; margin: 12px 0 22px; font: 400 clamp(4.2rem, 7.8vw, 8rem)/.88 "Rowdies", sans-serif; letter-spacing: -.055em; }
.stories-hero h1 em { color: var(--gold); font-style: normal; }
.stories-hero-copy > p:last-child { max-width: 740px; margin: 0; color: rgba(255,255,255,.7); font-size: 1.05rem; }
.stories-manifesto { padding: 28px; border: 1px solid rgba(255,255,255,.17); border-radius: 22px; background: rgba(13,8,25,.58); box-shadow: 0 25px 80px rgba(0,0,0,.28); backdrop-filter: blur(16px); transform: rotate(.75deg); }
.stories-manifesto > span { color: var(--cyan); font: 700 .65rem "DM Mono", monospace; letter-spacing: .12em; }
.stories-manifesto h2 { margin: 14px 0 12px; font: 400 1.65rem/1.08 "Rowdies", sans-serif; }
.stories-manifesto p { margin: 0; color: rgba(255,255,255,.65); font-size: .82rem; }
.manifesto-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 23px; }
.manifesto-stats div { padding: 13px 8px; border-radius: 10px; background: rgba(255,255,255,.07); text-align: center; }
.manifesto-stats b, .manifesto-stats small { display: block; }
.manifesto-stats b { color: var(--gold); font: 500 1.15rem "DM Mono", monospace; }
.manifesto-stats small { margin-top: 3px; color: rgba(255,255,255,.5); font-size: .55rem; }

.report-grid { display: grid; grid-template-columns: 1.16fr .84fr; gap: 22px; padding: 72px 0 88px; }
.report-card { position: relative; overflow: hidden; min-height: 560px; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 26px; background: var(--paper); box-shadow: var(--shadow); transition: transform .25s ease, box-shadow .25s ease; }
.report-card:hover { transform: translateY(-7px); box-shadow: var(--shadow-purple); }
.report-card-media { position: relative; min-height: 245px; overflow: hidden; background: var(--ink-2); }
.report-card-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(24,18,40,.72), transparent 62%); }
.report-card-media img { position: absolute; width: 185px; height: auto; filter: drop-shadow(0 22px 28px rgba(0,0,0,.35)); }
.report-card-media img:first-child { left: 15%; bottom: -27%; transform: rotate(-8deg); }
.report-card-media img:last-child { right: 14%; bottom: -25%; transform: rotate(8deg); }
.report-card-media.has-single-image img,
.report-card-media.has-single-image img:first-child,
.report-card-media.has-single-image img:last-child { left: 50%; right: auto; bottom: -24%; transform: translateX(-50%) rotate(2deg); }
.report-card.scarcity .report-card-media { background: radial-gradient(circle at 50% 32%, #8f64ff, #332052 67%, #171025); }
.report-card.risk .report-card-media { background: radial-gradient(circle at 65% 26%, #ff9e43, #5c254d 54%, #171025); }
.report-card.risk .report-card-media img:first-child { left: 24%; }
.report-card.risk .report-card-media img:last-child { right: 22%; }
.report-number { position: absolute; z-index: 2; top: 20px; right: 22px; color: rgba(255,255,255,.22); font: 400 6rem/1 "Rowdies", sans-serif; }
.report-card-copy { flex: 1; display: flex; flex-direction: column; padding: 31px; }
.report-meta { display: flex; justify-content: space-between; gap: 16px; color: var(--muted); font: 700 .61rem "DM Mono", monospace; letter-spacing: .08em; }
.report-meta b { color: var(--violet-dark); }
.report-card h2 { margin: 24px 0 14px; font: 400 clamp(2rem, 3.8vw, 3.65rem)/.98 "Rowdies", sans-serif; letter-spacing: -.04em; }
.report-card.risk h2 { font-size: clamp(1.8rem, 3vw, 2.75rem); }
.report-card p { margin: 0; color: var(--muted); font-size: .88rem; }
.report-findings { display: flex; flex-wrap: wrap; gap: 8px; margin: 23px 0; }
.report-findings span { padding: 7px 9px; border-radius: 7px; background: var(--violet-soft); color: var(--violet-dark); font: 700 .59rem "DM Mono", monospace; }
.report-card.risk .report-findings span { background: #ffe4cf; color: #8b3f1b; }
.report-link { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 22px; border-top: 1px solid var(--line); color: var(--violet-dark); font-size: .78rem; font-weight: 800; }
.report-link span { transition: transform .2s ease; }
.report-link:hover span { transform: translateX(5px); }
.stories-pagination { width: min(1180px, calc(100% - 42px)); display: flex; justify-content: center; gap: 8px; margin: -48px auto 72px; }
.stories-pagination .page-numbers { min-width: 42px; min-height: 42px; display: inline-grid; place-items: center; padding: 9px 13px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); color: var(--violet-dark); font: 700 .68rem "DM Mono", monospace; }
.stories-pagination .page-numbers.current,
.stories-pagination .page-numbers:hover { border-color: var(--violet); background: var(--violet); color: var(--white); }

.standards-section { padding: 84px 0; background: var(--ink); color: var(--white); }
.standards-head { display: flex; justify-content: space-between; gap: 40px; align-items: end; margin-bottom: 38px; }
.standards-head h2 { max-width: 740px; margin: 6px 0 0; font: 400 clamp(2.6rem, 5vw, 5rem)/.94 "Rowdies", sans-serif; }
.standards-head > p { max-width: 430px; margin: 0; color: rgba(255,255,255,.58); font-size: .82rem; }
.standards-grid { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--dark-line); border-radius: 20px; overflow: hidden; }
.standards-grid article { padding: 30px; border-right: 1px solid var(--dark-line); }
.standards-grid article:last-child { border: 0; }
.standards-grid span { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 12px; background: var(--violet); color: var(--cyan); }
.standards-grid h3 { margin: 22px 0 9px; font-size: 1rem; }
.standards-grid p { margin: 0; color: rgba(255,255,255,.52); font-size: .75rem; }

.reading-progress { position: fixed; z-index: 100; left: 0; top: 0; width: var(--read-progress, 0%); height: 4px; background: linear-gradient(90deg, var(--cyan), var(--magenta), var(--gold)); box-shadow: 0 0 15px rgba(57,215,227,.5); }
.article-hero { position: relative; overflow: hidden; padding: 160px 0 72px; background: linear-gradient(128deg, #171025 0%, #34205d 55%, #6d35b3 100%); color: var(--white); }
.article-hero.risk { background: linear-gradient(128deg, #171025 0%, #522344 55%, #9c4924 100%); }
.article-hero-shell { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(340px,.62fr); align-items: center; gap: 70px; }
.article-back { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 32px; color: rgba(255,255,255,.65); font-size: .76rem; font-weight: 800; }
.article-back:hover { color: var(--cyan); }
.article-label { display: flex; align-items: center; gap: 10px; color: var(--cyan); font: 700 .65rem "DM Mono", monospace; letter-spacing: .12em; }
.article-label::before { content: ""; width: 34px; height: 2px; background: currentColor; }
.article-hero h1 { max-width: 880px; margin: 14px 0 22px; font: 400 clamp(3.7rem, 7vw, 7.2rem)/.88 "Rowdies", sans-serif; letter-spacing: -.055em; }
.article-hero h1 em { color: var(--gold); font-style: normal; }
.article-deck { max-width: 790px; margin: 0; color: rgba(255,255,255,.72); font-size: 1.08rem; }
.article-byline { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 28px; color: rgba(255,255,255,.5); font: 500 .63rem "DM Mono", monospace; }
.article-byline b { color: var(--white); }
.article-visual { position: relative; min-height: 420px; }
.article-visual img { position: absolute; bottom: -70px; width: min(63%, 260px); filter: drop-shadow(0 26px 30px rgba(0,0,0,.42)); }
.article-visual img:first-child { left: 2%; transform: rotate(-9deg); }
.article-visual img:last-child { right: 3%; transform: rotate(8deg); }
.article-visual.single-visual img,
.article-visual.single-visual img:first-child,
.article-visual.single-visual img:last-child { left: 50%; right: auto; transform: translateX(-50%) rotate(2deg); }
.visual-stamp { position: absolute; z-index: 3; right: 0; top: 8%; width: 120px; height: 120px; display: grid; place-items: center; border: 2px solid var(--gold); border-radius: 50%; color: var(--gold); font: 700 .62rem/1.3 "DM Mono", monospace; letter-spacing: .08em; text-align: center; transform: rotate(10deg); }
.risk-visual { display: grid; place-items: center; }
.risk-visual .pack-stack { width: min(100%, 400px); padding: 35px; border: 1px solid rgba(255,255,255,.15); border-radius: 25px; background: rgba(16,10,29,.55); box-shadow: 0 30px 90px rgba(0,0,0,.28); transform: rotate(1.5deg); }
.risk-visual .pack-stack span { display: block; color: var(--gold); font: 400 6.5rem/.9 "Rowdies", sans-serif; }
.risk-visual .pack-stack b { display: block; margin-top: 12px; font: 700 .72rem "DM Mono", monospace; letter-spacing: .12em; }
.risk-visual .pack-stack p { margin: 12px 0 0; color: rgba(255,255,255,.58); font-size: .75rem; }

.article-fact-strip { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--paper); border-bottom: 1px solid var(--line); }
.article-fact-strip div { min-height: 105px; display: flex; flex-direction: column; justify-content: center; padding: 20px 32px; border-right: 1px solid var(--line); }
.article-fact-strip div:last-child { border: 0; }
.article-fact-strip.is-single { grid-template-columns: 1fr; }
.article-fact-strip.is-single div { border: 0; }
.article-fact-strip strong, .article-fact-strip span { display: block; }
.article-fact-strip strong { color: var(--violet-dark); font: 500 1.45rem "DM Mono", monospace; }
.article-fact-strip span { margin-top: 5px; color: var(--muted); font-size: .63rem; }

.article-shell { display: grid; grid-template-columns: minmax(0, 760px) minmax(260px, 340px); justify-content: center; gap: 90px; padding: 82px 0 104px; }
.article-main { min-width: 0; }
.article-main > p:first-child { margin-top: 0; font-size: 1.17rem; line-height: 1.72; }
.article-main p { margin: 0 0 25px; color: #4d4652; font-size: .96rem; line-height: 1.83; }
.article-main h2 { margin: 66px 0 22px; color: var(--ink); font: 400 clamp(2.2rem, 4vw, 3.65rem)/1 "Rowdies", sans-serif; letter-spacing: -.035em; }
.article-main h3 { margin: 38px 0 13px; font-size: 1.08rem; }
.article-main a { color: var(--violet-dark); text-decoration: underline; text-decoration-color: rgba(112,71,235,.3); text-underline-offset: 3px; }
.article-main a:hover { text-decoration-color: currentColor; }
.article-main ul, .article-main ol { margin: 0 0 30px; padding-left: 1.25rem; }
.article-main li { margin: 0 0 13px; color: #4d4652; font-size: .92rem; line-height: 1.72; }
.pull-quote { position: relative; margin: 48px 0; padding: 34px 36px 34px 44px; border-left: 6px solid var(--magenta); border-radius: 0 18px 18px 0; background: var(--ink); color: var(--white); box-shadow: var(--shadow); }
.pull-quote p { margin: 0; color: var(--white); font: 400 clamp(1.45rem, 3vw, 2.15rem)/1.2 "Rowdies", sans-serif; }
.pull-quote small { display: block; margin-top: 13px; color: var(--cyan); font: 700 .58rem "DM Mono", monospace; letter-spacing: .1em; }
.method-note { margin: 42px 0; padding: 24px; border: 1px solid rgba(112,71,235,.25); border-radius: 15px; background: #f0eaff; }
.method-note b { display: flex; align-items: center; gap: 8px; margin-bottom: 9px; color: var(--violet-dark); font-size: .76rem; }
.method-note p { margin: 0; color: #5f566d; font-size: .79rem; line-height: 1.68; }

.evidence-table { margin: 36px 0 44px; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); box-shadow: 0 15px 42px rgba(24,18,40,.08); }
.evidence-table-head, .evidence-row { display: grid; grid-template-columns: minmax(210px, 1.5fr) .6fr .45fr .55fr; align-items: center; gap: 16px; padding: 15px 18px; }
.evidence-table-head { background: var(--ink); color: rgba(255,255,255,.68); font: 700 .57rem "DM Mono", monospace; letter-spacing: .09em; text-transform: uppercase; }
.evidence-row { border-bottom: 1px solid var(--line); }
.evidence-row:last-child { border: 0; }
.evidence-card-name b, .evidence-card-name small { display: block; }
.evidence-card-name b { font-size: .78rem; }
.evidence-card-name small { margin-top: 3px; color: var(--muted); font: 500 .55rem "DM Mono", monospace; }
.evidence-rarity { justify-self: start; padding: 5px 7px; border-radius: 5px; background: var(--violet-soft); color: var(--violet-dark); font: 700 .56rem "DM Mono", monospace; }
.evidence-rarity.ssp { background: #ffe0ef; color: #9c235e; }
.evidence-count, .evidence-price { font: 500 .72rem "DM Mono", monospace; }
.evidence-price { font-weight: 700; }
.table-caption { padding: 14px 18px; border-top: 1px solid var(--line); background: #f7f1e7; color: var(--muted); font-size: .61rem; line-height: 1.55; }

.signal-bars { margin: 35px 0 45px; padding: 26px; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); }
.signal-bars h3 { margin: 0 0 24px; }
.signal-bar { display: grid; grid-template-columns: 150px minmax(120px,1fr) 56px; align-items: center; gap: 14px; margin: 13px 0; }
.signal-bar span { font-size: .68rem; font-weight: 800; }
.signal-bar i { height: 13px; overflow: hidden; border-radius: 20px; background: #ece3f3; }
.signal-bar i::before { content: ""; display: block; width: var(--bar); height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--violet), var(--magenta)); }
.signal-bar b { color: var(--violet-dark); font: 500 .7rem "DM Mono", monospace; text-align: right; }

.opening-ledger { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 35px 0 46px; }
.opening-ledger article { padding: 24px; border: 1px solid var(--line); border-radius: 15px; background: var(--paper); }
.opening-ledger article.alert { border-color: rgba(240,70,154,.32); background: #fff1f7; }
.opening-ledger article.reference { border-color: rgba(57,215,227,.42); background: #eafcfd; }
.opening-ledger span { font: 700 .57rem "DM Mono", monospace; letter-spacing: .08em; }
.opening-ledger h3 { margin: 13px 0 18px; font: 400 1.45rem/1.05 "Rowdies", sans-serif; }
.opening-ledger dl { display: grid; grid-template-columns: 1fr auto; gap: 9px; margin: 0; font-size: .72rem; }
.opening-ledger dt { color: var(--muted); }
.opening-ledger dd { margin: 0; font: 500 .7rem "DM Mono", monospace; }
.warning-box { margin: 38px 0; padding: 27px; border-radius: 17px; background: #fff0dc; border: 1px solid rgba(174,93,27,.22); }
.warning-box h3 { margin: 0 0 10px; color: #75380d; }
.warning-box p { margin: 0; color: #704c32; font-size: .82rem; }

.article-aside { align-self: start; position: sticky; top: 118px; display: grid; gap: 16px; }
.aside-card { padding: 23px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); box-shadow: 0 12px 35px rgba(24,18,40,.07); }
.aside-card.dark { background: var(--ink); color: var(--white); }
.aside-card > span { color: var(--violet-dark); font: 700 .58rem "DM Mono", monospace; letter-spacing: .1em; }
.aside-card.dark > span { color: var(--cyan); }
.aside-card h2, .aside-card h3 { margin: 12px 0 10px; font: 400 1.3rem/1.1 "Rowdies", sans-serif; }
.aside-card p { margin: 0; color: var(--muted); font-size: .69rem; line-height: 1.65; }
.aside-card.dark p { color: rgba(255,255,255,.55); }
.aside-card ul { margin: 15px 0 0; padding: 0; list-style: none; }
.aside-card li { padding: 10px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: .64rem; }
.aside-card.dark li { border-color: var(--dark-line); color: rgba(255,255,255,.62); }
.aside-card a { color: var(--violet-dark); text-decoration: underline; text-underline-offset: 3px; }
.aside-card.dark a { color: var(--cyan); }

.source-ledger { margin-top: 66px; padding-top: 34px; border-top: 2px solid var(--ink); }
.source-ledger h2 { margin-top: 0; }
.source-item { display: grid; grid-template-columns: 34px 1fr; gap: 12px; padding: 17px 0; border-top: 1px solid var(--line); }
.source-item b { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 7px; background: var(--ink); color: var(--cyan); font: 700 .55rem "DM Mono", monospace; }
.source-item p { margin: 0; font-size: .73rem; line-height: 1.6; }
.source-item strong { color: var(--ink); }

.related-section { padding: 72px 0; background: var(--ink); color: var(--white); }
.related-shell { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.related-shell > div > span { color: var(--cyan); font: 700 .58rem "DM Mono", monospace; letter-spacing: .1em; }
.related-shell h2 { max-width: 760px; margin: 10px 0 0; font: 400 clamp(2rem, 4vw, 3.8rem)/.98 "Rowdies", sans-serif; }
.related-link { flex: 0 0 auto; min-width: 220px; display: flex; justify-content: space-between; align-items: center; padding: 18px; border: 1px solid rgba(255,255,255,.18); border-radius: 12px; color: var(--gold); font-size: .72rem; font-weight: 800; }
.related-link:hover { border-color: var(--gold); }

@media (max-width: 1050px) {
  .stories-hero-shell, .article-hero-shell { grid-template-columns: 1fr; }
  .stories-manifesto { max-width: 650px; transform: none; }
  .article-visual { min-height: 360px; max-width: 520px; width: 100%; }
  .article-visual img { bottom: -100px; }
  .article-shell { grid-template-columns: minmax(0,760px); gap: 50px; }
  .article-aside { position: static; grid-template-columns: 1fr 1fr; }
  .article-fact-strip { grid-template-columns: repeat(2, 1fr); }
  .article-fact-strip div:nth-child(2) { border-right: 0; }
  .article-fact-strip div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

@media (max-width: 820px) {
  .stories-page .nav-shell, .story-page .nav-shell { grid-template-columns: 1fr auto auto; }
  .report-grid { grid-template-columns: 1fr; }
  .standards-head { align-items: start; flex-direction: column; }
  .standards-grid { grid-template-columns: 1fr; }
  .standards-grid article { border-right: 0; border-bottom: 1px solid var(--dark-line); }
  .evidence-table { overflow-x: auto; }
  .evidence-table-head, .evidence-row { min-width: 650px; }
  .related-shell { align-items: start; flex-direction: column; }
}

@media (max-width: 620px) {
  .stories-hero { padding: 138px 0 68px; }
  .stories-hero-shell, .stories-shell, .standards-shell, .article-hero-shell, .article-shell, .related-shell { width: min(100% - 30px, 100%); }
  .stories-hero h1 { font-size: clamp(3.4rem, 18vw, 5.4rem); }
  .report-grid { padding: 42px 0 62px; }
  .report-card { min-height: 520px; }
  .report-card-media { min-height: 210px; }
  .report-card-copy { padding: 24px; }
  .manifesto-stats { grid-template-columns: 1fr; }
  .article-hero { padding: 132px 0 58px; }
  .article-hero h1 { font-size: clamp(3rem, 16vw, 5rem); }
  .article-visual { min-height: 300px; }
  .article-visual img { width: 54%; bottom: -70px; }
  .article-fact-strip { grid-template-columns: 1fr 1fr; }
  .article-fact-strip div { padding: 18px; }
  .article-shell { padding: 56px 0 72px; }
  .article-main h2 { margin-top: 52px; }
  .pull-quote { padding: 28px 25px; }
  .opening-ledger, .article-aside { grid-template-columns: 1fr; }
  .signal-bar { grid-template-columns: 100px 1fr 40px; }
}
