/* Stories on the site (/stories/): the mineral-story layout (minerals.css: sticky globe, glass chapter cards, charts)
   plus what the story chapters and the long read add: headline figures, citations, comparison bars, then/now table,
   FAQ, facts, timeline and the story cards. The film versions at /stories/films/ use stories.css. */
.card > p { margin-bottom: 10px; }
.card .cmp { margin-top: 16px; }
.card .cmp h3 { font: 11.5px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 8px; }
.card .rank li { grid-template-columns: 128px 1fr 76px; }
.card .chart + .note { margin-top: 6px; }
.hero-copy h1 { font-size: clamp(44px, 6.2vw, 80px); line-height: 1; letter-spacing: -.04em; }
.card .big { display: flex; gap: 14px; flex-wrap: wrap; margin: 14px 0 6px; }
.card .big div { flex: 1 1 120px; border-top: 1px solid var(--line2); padding-top: 8px; }
.card .big b { display: block; font-family: var(--head); font-size: 26px; font-weight: 600; letter-spacing: -.02em; color: var(--c); }
.card .big span { font-size: 12.5px; color: var(--muted); }
.cite { font-size: 12px; color: var(--faint); margin-top: 12px; line-height: 1.45; }
.cite a { color: var(--muted); }
.then-now { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-top: 12px; background: var(--line); border-radius: 12px; overflow: hidden; font-size: 13.5px; }
.then-now > div { background: rgba(5, 8, 10, .7); padding: 9px 11px; }
.then-now .hd { font: 11px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--c); }
.then-now .hd + .hd { color: var(--lime); }

/* deep section additions */
.tline { margin: 18px 0 8px; border-left: 2px solid var(--line2); }
.tline li { position: relative; padding: 0 0 14px 18px; color: #c9d4d0; font-size: 14.5px; }
.tline li::before { content: ""; position: absolute; left: -6px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--bg); border: 2px solid var(--c); }
.tline b { font-family: var(--mono); color: var(--text); font-weight: 500; margin-right: 8px; }
.faq details { border-top: 1px solid var(--line); padding: 12px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-family: var(--head); font-size: 16.5px; }
.faq details p { margin-top: 8px; color: #c9d4d0; font-size: 14.5px; }
.facts-t { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.facts-t td { border-top: 1px solid var(--line); padding: 7px 0; vertical-align: top; }
.facts-t td:last-child { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; padding-left: 10px; }
.facts-t td:first-child { color: var(--muted); }
.why { margin-top: 26px; padding: 18px 20px; border-radius: 14px; border: 1px solid color-mix(in srgb, var(--c) 40%, transparent); background: color-mix(in srgb, var(--c) 6%, transparent); }
.why h3 { margin: 0 0 8px; font-size: 17px; }
.why li { padding-left: 18px; position: relative; color: #c9d4d0; font-size: 14.5px; margin: 6px 0; }
.why li::before { content: ""; position: absolute; left: 0; top: .6em; width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.more-st { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin-top: 60px; }

/* story cards (hub and "more stories") */
.scard { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 230px; padding: 18px; border-radius: 16px; text-decoration: none; overflow: hidden; isolation: isolate;
  border: 1px solid var(--line); background: linear-gradient(180deg, transparent 30%, rgba(5, 8, 10, .92) 90%), radial-gradient(90% 80% at 70% 20%, color-mix(in srgb, var(--k) 45%, transparent), transparent 70%), #0b1013;
  transition: transform .35s var(--ease), border-color .35s, box-shadow .35s; }
.scard:hover, .scard:focus-visible { transform: translateY(-4px); border-color: color-mix(in srgb, var(--k) 60%, transparent); box-shadow: 0 20px 50px -22px var(--k); }
.scard .yr { position: absolute; top: 14px; right: 16px; font: 500 12px var(--mono); color: var(--k); letter-spacing: .06em; }
.scard .art { position: absolute; inset: 0 0 34% 0; width: 100%; height: 66%; z-index: -1; opacity: .85; transition: transform .6s var(--ease); }
.scard::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(5, 8, 10, .92) 0%, rgba(5, 8, 10, .55) 38%, transparent 62%); }
.scard:hover .art { transform: scale(1.05); }
.hub-grid .scard:first-child .art { inset: 0 0 0 40%; width: 60%; height: 100%; }
.scard h3 { font-size: 21px; line-height: 1.12; }
.scard p { font-size: 13.5px; color: var(--muted); margin-top: 6px; }
.scard .tag { font: 11px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--k); margin-bottom: 6px; }

/* cover photos on the story cards */
.scard .photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; filter: saturate(1.05);
  transition: transform .8s var(--ease), filter .6s var(--ease); }
.scard.has-photo::after { background: linear-gradient(0deg, rgba(5, 8, 10, .97) 0%, rgba(5, 8, 10, .82) 36%, rgba(5, 8, 10, .25) 66%, rgba(5, 8, 10, .05) 100%); }
.scard.has-photo::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, color-mix(in srgb, var(--k) 22%, transparent), transparent 40%); mix-blend-mode: soft-light; }
.scard.has-photo:hover .photo, .scard.has-photo:focus-visible .photo { transform: scale(1.04); filter: saturate(1.15); }
.scard.has-photo { min-height: 320px; }
.scard.has-photo .tag, .scard.has-photo h3, .scard.has-photo p { text-shadow: 0 1px 14px rgba(0, 0, 0, .75); }
.scard.has-photo .yr { background: rgba(5, 8, 10, .6); padding: 3px 8px; border-radius: 999px; backdrop-filter: blur(6px); }
.credits { font-size: 12px; color: var(--faint); margin: 10px 0 0; line-height: 1.5; }
.credits a { color: var(--muted); }
@media (min-width: 641px) and (max-width: 900px) { .hub-grid .scard:last-child:nth-child(odd) { grid-column: 1 / -1; } }
@media (prefers-reduced-motion: reduce) { .scard .photo { transition: none; } .scard.has-photo:hover .photo { transform: none; } }

/* hub */
.shero { position: relative; min-height: 64vh; min-height: 64svh; display: flex; align-items: center; overflow: hidden; }
.shero-copy { position: relative; z-index: 4; padding-top: 110px; padding-bottom: 70px; }
.shero h1 { font-size: clamp(44px, 7.4vw, 96px); line-height: .98; letter-spacing: -.045em; max-width: 900px; }
.shero .lead { max-width: 640px; }
.shero-sky { position: absolute; inset: 0; background: radial-gradient(60% 50% at 70% 30%, rgba(220, 255, 60, .12), transparent 70%), radial-gradient(50% 60% at 20% 80%, rgba(95, 224, 200, .1), transparent 70%); }
.hub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; padding-bottom: 40px; }
.hub-grid .scard { min-height: 340px; }
.hub-grid .scard:first-child { grid-column: span 2; min-height: 380px; }
.hub-grid .scard:first-child h3 { font-size: 32px; }
.era-line { margin: 70px 0 30px; }
.era-line ol { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0; border-top: 1px solid var(--line2); }
.era-line li { padding: 14px 14px 0 0; position: relative; font-size: 13.5px; color: var(--muted); }
.era-line li::before { content: ""; position: absolute; top: -5px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--c, var(--lime)); }
.era-line b { display: block; font: 500 15px var(--mono); color: var(--text); }
/* comparison figures: cubes and cross-sections to scale draw when their chapter comes on */
.cmp .chart .draw { animation: none; }
.chapter.on .cmp .chart .draw { animation: draw 1.6s var(--ease) forwards; }
.cmp .cube, .cmp .pit, .cmp .ref { cursor: default; outline: none; transition: opacity .3s var(--ease); }
.cmp svg:hover .cube, .cmp svg:hover .pit { opacity: .45; }
.cmp svg:hover .cube:hover, .cmp svg:hover .pit:hover, .cmp .cube:focus-visible, .cmp .pit:focus-visible { opacity: 1; }
.cmp .cube polygon { transition: fill-opacity .3s; }
.cmp .cube:hover polygon { fill-opacity: .95; }
.cmp .note { font-size: 12.5px; color: var(--faint); margin-top: 8px; line-height: 1.45; }
.cmp + .cmp { margin-top: 18px; }

/* rankings and flow lists that steer the globe */
.pick li { cursor: pointer; border-radius: 6px; padding: 3px 6px; margin: 0 -6px; transition: background .25s var(--ease); outline: none; }
.pick li:hover, .pick li:focus-visible, .pick li.sel { background: rgba(255, 255, 255, .06); }
.pick li.sel .cn, .pick li.sel span { color: var(--text); }
.flows li em { font: 10.5px var(--mono); font-style: normal; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); margin-left: 4px; }
.pick li:focus-visible { box-shadow: 0 0 0 1px var(--c) inset; }

@media (prefers-reduced-motion: reduce) {
  .cmp .chart .draw, .chapter.on .cmp .chart .draw { animation: none; stroke-dashoffset: 0; }
  .rank .bar { transition: none; }
}

@media (max-width: 900px) {
  .hub-grid .scard:first-child { grid-column: auto; }
  .card .rank li { grid-template-columns: 96px 1fr 64px; }
  .shero-copy { padding-bottom: 60px; }
}
@media (max-width: 420px) { .hero-copy h1 { font-size: 40px; } }
