/* Tokens and document defaults */
:root {
  --paper: #0F151B;
  --ink: #ffffff;
  --muted: rgba(255, 255, 255, 0.72);
  --heading: #c0c0c0;
  --copy-width: 720px;
  --wide-width: 1180px;
  --map-width: 1024px;
  --gutter: clamp(1rem, 4vw, 2rem);
  --section-space: clamp(4rem, 9vw, 8rem);
  --story-gap: clamp(3.25rem, 8vw, 6rem);
  --story-gap-large: clamp(4rem, 10vw, 7.5rem);
  --story-gap-compact: clamp(2rem, 5vw, 3.5rem);
  --media-gap: clamp(1.5rem, 4vw, 2.5rem);
  --font-serif: "PT Serif", Georgia, "Times New Roman", serif;
  --font-sans: "franklin-gothic-urw", Arial, sans-serif;
  --font-sans-cond: "franklin-gothic-urw-cond", "franklin-gothic-urw", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-serif);
}

.index-page {
  position: relative;
  isolation: isolate;
  background-color: #0A0B09;
}

.index-page::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, #1A1C16 0%, #101210 52%, #0A0B09 100%);
}

.index-page .index-hero,
.index-page .index-hero__sequence,
.index-page .index-hero__sticky,
.index-page .credits {
  background: transparent;
}

.index-page .index-hero__sticky::after {
  background: linear-gradient(180deg, rgba(26, 28, 22, 0), rgba(16, 18, 16, 0.12) 56%, rgba(10, 11, 9, 0.28) 100%);
}

.commodity-page {
  --paper: #010B09;
  background: var(--paper);
}

/* Global typography and controls */
h1,
h2,
h3,
.index-hero__byline,
.index-hero__dateline {
  font-family: var(--font-sans-cond);
}

h1,
h2,
h3 {
  margin-top: 0;
}

h1 {
  max-width: 11ch;
  margin-bottom: 1.2rem;
  font-size: clamp(3rem, 10vw, 7rem);
  font-weight: 600;
  line-height: 0.92;
}

h2 {
  margin: 3rem 0 1rem;
  color: var(--ink);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0.05rem;
  line-height: normal;
  text-transform: uppercase;
}

h2.graph-hed {
  color: #d6d6d6;
  font-family: var(--font-sans);
  font-weight: 700;
  text-transform: none !important;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 0.7rem;
  font-size: clamp(1.3rem, 2.3vw, 2rem);
  font-weight: 600;
  line-height: 1;
}

p {
  margin-top: 8px;
  font-family: var(--font-serif);
  font-size: 1.3rem;
  line-height: 1.7;
  text-align: left;
}

/* Main index: scroll-controlled hero mosaic */
.index-hero {
  position: relative;
  background: var(--paper);
  color: var(--ink);
}

.index-hero__sequence {
  position: relative;
  height: 380vh;
  min-height: 0;
  background: var(--paper);
}

.index-hero__sticky {
  position: sticky;
  top: 0;
  height: 100svh;
  min-height: 620px;
  overflow: hidden;
  overflow: clip;
  background: var(--paper);
  isolation: isolate;
}

.index-hero__sticky::after {
  content: "";
  position: absolute;
  z-index: 2;
  inset: auto 0 0;
  height: 24svh;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(15, 21, 27, 0), var(--paper));
}

.index-hero__brand {
  --brand-inset: clamp(1.25rem, 3vw, 2.5rem);
  position: absolute;
  z-index: 4;
  top: calc(env(safe-area-inset-top, 0px) + var(--brand-inset));
  left: calc(env(safe-area-inset-left, 0px) + var(--brand-inset));
  display: block;
  width: 200px;
  height: 200px;
  pointer-events: auto;
  opacity: 1;
  will-change: opacity;
}

.index-hero__brand-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.index-hero__brand:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 4px;
}

.index-hero__sequence-cue {
  position: absolute;
  z-index: 4;
  bottom: max(1.25rem, calc(env(safe-area-inset-bottom, 0px) + 0.75rem));
  left: 50%;
  display: flex;
  width: 1.25rem;
  height: 4rem;
  align-items: center;
  flex-direction: column;
  justify-content: flex-end;
  pointer-events: none;
  opacity: 0.72;
  transform: translateX(-50%);
  transition: opacity 180ms linear;
  will-change: opacity;
}

.index-hero__sequence-cue::before {
  width: 4px;
  height: 2.5rem;
  margin-bottom: 0.25rem;
  background: rgba(255, 255, 255, 0.58);
  content: "";
}

.index-hero__sequence-cue span {
  width: 1rem;
  height: 1rem;
  border-right: 4px solid rgba(255, 255, 255, 0.82);
  border-bottom: 4px solid rgba(255, 255, 255, 0.82);
  animation: index-scroll-cue 1.8s ease-in-out infinite;
  transform: translateY(-0.15rem) rotate(45deg);
}

@keyframes index-scroll-cue {
  0%,
  100% {
    opacity: 0.38;
    transform: translateY(-0.15rem) rotate(45deg);
  }

  50% {
    opacity: 1;
    transform: translateY(0.18rem) rotate(45deg);
  }
}

.index-hero__copy {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(760px, calc(100vw - (2 * var(--gutter))));
  margin: 0 auto;
  padding: clamp(4rem, 9vw, 5rem) 0 clamp(2.5rem, 6vw, 4rem);
  text-align: center;
}

.index-hero__title {
  max-width: 34ch;
  margin: 0;
  color: var(--heading);
  font-family: var(--font-sans-cond);
  font-size: clamp(2.6rem, 6.4vw, 5rem);
  font-weight: 600;
  line-height: 0.96;
  text-transform: none;
}

.index-hero__subhed {
  max-width: 47rem;
  margin: 2rem 0 1.45rem;
  color: var(--ink);
  opacity: 0.9;
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 2.4vw, 1.5rem); 
  font-style: italic;
  line-height: 1.4;
  text-align: center;
}

.index-hero__divider {
  width: 8rem;
  margin: 0;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.index-hero__byline,
.index-hero__dateline {
  max-width: 34rem;
}

.index-hero__byline {
  margin: 1rem 5vw 0.1rem;
  opacity: 0.9;
  font-size: clamp(1rem, 2.2vw, 1.26rem);
}

.index-hero__byline span {
  opacity: 0.65;
}

.index-hero__byline strong {
  letter-spacing: 0.09rem;
}

.index-hero__dateline {
  margin: 0 5vw 1.35rem;
  opacity: 0.65;
  font-size: clamp(1rem, 2.2vw, 1.22rem);
  letter-spacing: 0.05rem;
}

.index-hero__scroll-cue {
  display: grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 50%;
  color: var(--ink);
  text-decoration: none;
  opacity: 0.8;
}

.index-hero__scroll-cue span {
  width: 0.55rem;
  height: 0.55rem;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: translateY(-0.12rem) rotate(45deg);
}

.index-hero__mosaic {
  position: absolute;
  z-index: 1;
  top: 0;
  left: 50%;
  width: min(100vw, 175svh);
  height: auto;
  aspect-ratio: 558 / 626;
  pointer-events: none;
  transform: translate(-50%, var(--index-mosaic-shift, 0px));
  will-change: transform;
}

/* JavaScript reveals and repositions each tile as the sequence advances. */
.index-hero__tile {
  position: absolute;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  opacity: 0;
  will-change: opacity, transform;
}

.index-hero__tile--lead {
  top: 25.7%;
  left: 66.3%;
  width: 31.4%;
  height: 18.7%;
  opacity: 1;
  will-change: top, left, width, height;
}

.index-hero__tile--12 {
  top: 7.5%;
  left: 7.9%;
  width: 38.7%;
  height: 16.6%;
}

.index-hero__tile--08 {
  top: 2.1%;
  left: 47.8%;
  width: 22.5%;
  height: 15%;
}

.index-hero__tile--05 {
  top: 7.4%;
  left: 71.7%;
  width: 26.9%;
  height: 15.7%;
}

.index-hero__tile--07 {
  top: 25.7%;
  left: 12.4%;
  width: 35.1%;
  height: 19.5%;
}

.index-hero__tile--03 {
  top: 20.8%;
  left: 49.5%;
  width: 14.7%;
  height: 21.2%;
}

.index-hero__tile--02 {
  top: 47.5%;
  left: 7.9%;
  width: 10.4%;
  height: 22.5%;
}

.index-hero__tile--11 {
  top: 49.9%;
  left: 21.9%;
  width: 30.5%;
  height: 20.3%;
}

.index-hero__tile--09 {
  top: 51.6%;
  left: 54.8%;
  width: 18.3%;
  height: 16.3%;
}

.index-hero__tile--06 {
  top: 49.4%;
  left: 75.6%;
  width: 22.9%;
  height: 13.4%;
}

.index-hero__tile--01 {
  top: 74.8%;
  left: 12.5%;
  width: 20.4%;
  height: 24.5%;
}

.index-hero__tile--10 {
  top: 72.9%;
  left: 36%;
  width: 30.1%;
  height: 18.7%;
}

.index-hero__tile--04 {
  top: 70.5%;
  left: 67.6%;
  width: 30.9%;
  height: 18.7%;
}

.index-hero__tile--03 .index-hero__media {
  object-position: 56% center;
}

.index-hero__tile--02 .index-hero__media {
  object-position: 48% center;
}

.index-hero__tile--01 .index-hero__media {
  object-position: 60% center;
}

.index-hero__media {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.chapter-copy {
  max-width: var(--copy-width);
  margin: 0 auto;
  padding: 0 var(--gutter) var(--section-space);
}

.introduction-inset-map {
  width: clamp(8.5rem, 30vw, 210px);
  aspect-ratio: 209 / 320;
  margin: 0 auto var(--media-gap);
}

.introduction-inset-map .media-expand-target {
  display: block;
  width: 100%;
}

.introduction-inset-map img {
  display: block;
  width: 100%;
  height: auto;
}

/* Shared commodity navigation */
.commodity-links {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 2rem 0 0;
}

.commodity-links .commodity-link--introduction {
  order: 1;
}

.commodity-links .commodity-link--tin {
  order: 2;
}

.commodity-links .commodity-link--gold {
  order: 3;
}

.commodity-links .commodity-link--jade {
  order: 4;
}

.commodity-links .commodity-link--rare-earths {
  order: 5;
}

.commodity-link {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.26rem 0.55rem;
  border: 1px solid currentColor;
  background: rgba(17, 17, 17, 0.06);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
}

.commodity-link--tin {
  color: #C562A1;
}

.commodity-link--introduction {
  color: #C0C0C0;
}

.commodity-link--introduction span {
  color: #C0C0C0;
}

.commodity-link--gold {
  color: #ed924e;
  background: rgba(199, 120, 54, 0.12);
}

.commodity-link--jade {
  color: #80c5a4;
  background: rgba(106, 164, 132, 0.12);
}

.commodity-link--rare-earths {
  color: #6ecfc7;
  background: rgba(84, 187, 183, 0.12);
}

.commodity-link[aria-current="page"],
.commodity-link.is-active {
  background: currentColor;
}

.commodity-link[aria-current="page"] span,
.commodity-link.is-active span {
  color: var(--paper);
}

.commodity-link:hover,
.commodity-link:focus-visible {
  border-color: #c0c0c0;
  background: rgba(192, 192, 192, 0.12);
  color: #c0c0c0;
}

.commodity-link:hover span,
.commodity-link:focus-visible span {
  color: #c0c0c0;
}

/* Shared commodity story header */
.commodity-intro {
  max-width: var(--copy-width);
  margin: 0 auto;
  padding: 0 var(--gutter) var(--section-space);
}

.commodity-tag {
  margin-bottom: 2.2rem;
}

.commodity-intro h1 {
  margin: 0 0 2rem;
  color: var(--heading);
  font-family: var(--font-sans-cond);
  font-size: clamp(2.3rem, 5vw, 3.3rem);
  font-weight: 600;
  line-height: 1.1;
  max-width: 11ch;
}

.commodity-intro .commodity-links {
  margin-top: 2.5rem;
}

/* Shared story shells */
.tin-story,
.gold-story,
.jade-story,
.rare-earths-story {
  padding-bottom: clamp(8rem, 18vw, 16rem);
}

.tin-story .commodity-intro,
.gold-story .commodity-intro,
.jade-story .commodity-intro,
.rare-earths-story .commodity-intro {
  padding-bottom: 0;
}

.tin-story__block,
.gold-story__block,
.jade-story__block,
.rare-earths-story__block {
  max-width: var(--copy-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.tin-story__block--text,
.gold-story__block--text,
.rare-earths-story__block--text {
  margin-top: var(--story-gap);
}

/* Full-width and scroll-controlled video headers */
.commodity-video-hero {
  width: 100%;
  background: var(--paper);
  margin-bottom: var(--story-gap-compact);
}

.commodity-video-hero__media {
  position: relative;
  width: 100%;
  max-height: 92vh;
  aspect-ratio: 64 / 27;
  overflow: hidden;
  background: #000000;
}

.commodity-video-hero__media::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(180deg, rgba(20, 35, 38, 0), var(--paper));
  pointer-events: none;
}

.commodity-video-hero__video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.commodity-scroll-video-hero {
  position: relative;
  height: 220svh;
}

.commodity-scroll-video-hero__stage {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
  background: var(--paper);
  isolation: isolate;
}

.commodity-scroll-video-hero__media {
  position: absolute;
  inset: 0;
  width: 100%;
  max-height: none;
  aspect-ratio: auto;
}

.commodity-scroll-video-hero__media::after {
  z-index: 1;
}

.commodity-scroll-video-hero__overlay {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  width: min(76vw, 72rem);
  opacity: var(--commodity-overlay-opacity, 0);
  transform: translate(-50%, -50%) scale(var(--commodity-overlay-scale, 0.38));
  transform-origin: center;
  will-change: opacity, transform;
}

.commodity-scroll-video-hero__overlay img {
  display: block;
  width: 100%;
  height: auto;
}

/* Shared pull quotes */
.story-pullquote {
  position: relative;
  left: 50%;
  width: min(calc(var(--copy-width) + 11rem), calc(100vw - (2 * var(--gutter))));
  margin: calc(var(--media-gap) + 0.5rem) 0 calc(var(--media-gap) + 1.5rem);
  padding: 0;
  border: 0;
  text-align: center;
  transform: translateX(-50%);
}

.tin-pullquote {
  color: #edbfdc;
}

.rare-earths-pullquote {
  color: #85ded7;
}

.gold-pullquote {
  color: #e6bb9a;
}

.story-pullquote::before {
  display: block;
  height: 3.5rem;
  margin-bottom: 0.75rem;
  color: #6aa484;
  content: "\201C";
  font-family: var(--font-serif);
  font-size: 5rem;
  font-style: italic;
  font-weight: 400;
  line-height: 1;
}

.tin-pullquote::before {
  color: #cf78b4;
}

.rare-earths-pullquote::before {
  color: #54bbb7;
}

.gold-pullquote::before {
  color: #ed924e;
}

.story-pullquote p {
  margin: 0;
  color: inherit;
  font-family: "Spectral", Georgia, "Times New Roman", serif;
  font-size: 2rem;
  font-style: italic;
  font-weight: 400;
  font-variant: normal;
  letter-spacing: 0;
  line-height: 1.5;
  text-align: center;
  text-wrap: balance;
}

.story-pullquote__media {
  display: block;
  width: min(100%, 20rem);
  height: auto;
  margin: 0 auto;
  padding: 2rem 1rem 0;
  box-sizing: border-box;
}

.gold-pullquote .story-pullquote__media {
  width: min(100%, 24rem);
}

.jade-pullquote .story-pullquote__media {
  width: min(100%, 15rem);
}

.tin-pullquote .story-pullquote__media {
  width: min(100%, 16rem);
}

.rare-earths-pullquote .story-pullquote__media {
  width: min(100%, 18rem);
}

.gold-pullquote + .gold-story__block--text,
.jade-pullquote + .jade-story__block--text {
  margin-top: var(--media-gap);
}

.tin-story .commodity-intro h1 {
  color: #cf78b4;
  max-width: 15ch;
}

/* Shared static media */
.tin-visual,
.gold-visual {
  width: min(520px, calc(100vw - (2 * var(--gutter))));
  margin: var(--media-gap) auto 0;
  text-align: center;
}

.tin-visual + .tin-story__block--text,
.gold-visual + .gold-story__block--text,
.jade-visual + .jade-story__block--text,
.rare-earths-visual + .rare-earths-story__block--text {
  margin-top: var(--media-gap);
}

.tin-visual__image,
.gold-visual__static-image,
.jade-visual__image,
.jade-visual__video,
.rare-earths-visual--image img {
  display: block;
  width: 100%;
  height: auto;
}

/* Tin */
.tin-visual--medium {
  width: min(var(--copy-width), 100%);
  padding: 0 var(--gutter);
}

.tin-visual--comparison {
  width: min(var(--wide-width), calc(100vw - (2 * var(--gutter))));
}

.tin-visual__comparison {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.5rem, 1.5vw, 1rem);
}

.tin-visual__comparison-frame {
  position: relative;
  min-width: 0;
}

.tin-visual__comparison-frame--wide {
  grid-column: 1 / -1;
}

.tin-visual__year,
.gold-visual__year,
.media-year {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.3rem 0.5rem;
  background: rgba(1, 11, 9, 0.84);
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
}

.tin-visual--comparison .media-caption {
  width: min(var(--copy-width), 100%);
  margin-right: auto;
  margin-left: auto;
  padding: 0 var(--gutter);
}

.tin-visual--chart {
  width: min(var(--copy-width), 100%);
  padding: 0 var(--gutter);
}

.tin-visual--chart .graph-hed,
.gold-visual--chart .graph-hed,
.jade-visual--charts .graph-hed,
.rare-earths-visual--charts .graph-hed {
  margin: 0 0 0.25rem;
  text-align: left;
}

.graph-subhed {
  margin: 0 0 1rem;
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 1.2rem;
  font-weight: 300;
  line-height: 1.4;
  text-align: left;
}

/* Gold */
.gold-story .commodity-intro h1 {
  color: #c77836;
  max-width: 17ch;
}

.gold-visual--body-width {
  width: min(var(--copy-width), 100%);
  padding: 0 var(--gutter);
}

.gold-visual--transform-triptych {
  width: min(860px, calc(100vw - (2 * var(--gutter))));
}

.gold-visual__transform-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.5rem, 1.5vw, 0.875rem);
}

.gold-visual__transform-frame {
  position: relative;
  min-width: 0;
}

.gold-visual__transform-frame img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 16;
  object-fit: cover;
}

.gold-visual--transform-triptych .media-caption {
  width: min(var(--copy-width), 100%);
  margin-right: auto;
  margin-left: auto;
  padding: 0 var(--gutter);
}

/* Jade */
.jade-page {
  --jade-text: #6aa484;
}

.jade-story .commodity-intro h1 {
  color: var(--jade-text);
  max-width: 17ch;
}

.jade-pullquote {
  color: #aaeacc;
}

.jade-visual {
  width: min(var(--copy-width), 100%);
  margin: var(--media-gap) auto 0;
  padding: 0 var(--gutter);
  text-align: left;
}

/* Displayed only when autoplay is unavailable or blocked. */
.autoplay-video-frame {
  position: relative;
}

.autoplay-video-fallback {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 10rem;
  min-height: 2.75rem;
  padding: 0.65rem 1rem;
  gap: 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 4px;
  background: rgba(1, 11, 9, 0.88);
  color: #ffffff;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1;
  text-transform: none;
  transform: translate(-50%, -50%);
}

.autoplay-video-fallback[hidden] {
  display: none;
}

.autoplay-video-fallback:hover {
  background: rgba(1, 11, 9, 0.98);
}

.autoplay-video-fallback:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
}

.autoplay-video-fallback:disabled {
  cursor: default;
  opacity: 0.82;
}

.autoplay-video-fallback__icon {
  font-family: Arial, sans-serif;
  font-size: 0.8em;
}

.jade-visual--split {
  width: min(var(--wide-width), 100%);
}

.jade-visual--wide {
  width: min(var(--map-width), 100%);
}

.jade-visual--split .media-caption {
  width: min(calc(var(--copy-width) - (2 * var(--gutter))), 100%);
  margin-right: auto;
  margin-left: auto;
}

.jade-visual__pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.5rem, 1.5vw, 1rem);
}

.jade-visual__comparison-frame {
  position: relative;
  min-width: 0;
}

.jade-visual__stack {
  display: grid;
  gap: clamp(0.75rem, 2vw, 1.25rem);
}

.jade-visual__stack .graph-subhed {
  margin: 0;
}

.jade-visual--night-lights {
  width: min(var(--wide-width), 100%);
}

/* The empty track supplies scroll duration while the stage remains sticky. */
.media-scroll-swap {
  position: relative;
  margin: var(--media-gap) auto 0;
}

.media-scroll-swap__stage {
  position: sticky;
  z-index: 1;
  top: clamp(0.75rem, 2vh, 1.5rem);
  background: var(--paper);
}

.media-scroll-swap__figure {
  width: min(var(--map-width), 100%);
  margin: 0 auto;
}

.media-scroll-swap__figure .media-caption {
  width: min(var(--copy-width), 100%);
  margin-right: auto;
  margin-left: auto;
}

.media-scroll-swap__track {
  height: clamp(10rem, 28svh, 18rem);
  pointer-events: none;
}

.media-scroll-swap--slow .media-scroll-swap__track {
  height: 140svh;
}

.media-scroll-swap__frames {
  display: grid;
  width: min(100%, calc(100svh - 6.5rem));
  aspect-ratio: 1;
  margin: 0 auto;
}

.media-scroll-swap__frame {
  grid-area: 1 / 1;
  opacity: 0;
  transform: translateZ(0);
  transition: opacity 100ms linear;
  backface-visibility: hidden;
  will-change: opacity;
}

.media-scroll-swap__frame--first {
  opacity: 1;
}

.media-scroll-swap__frame--second {
  opacity: var(--media-swap-progress, 0);
}

.media-scroll-swap__following {
  opacity: var(--media-swap-following-opacity, 0);
  transition: opacity 220ms ease-out;
}

.media-scroll-swap + .media-scroll-swap__following {
  margin-top: var(--media-gap);
}

.jade-visual__night-light-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.5rem, 1.5vw, 1rem);
}

.jade-visual__night-light-pair .jade-visual__image {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.commodity-links--story-end {
  width: min(var(--copy-width), 100%);
  margin: var(--story-gap) auto 0;
  padding: 0 var(--gutter);
}

/* Rare earths */
.rare-earths-story .commodity-intro h1 {
  color: #54bbb7;
  max-width: 15ch;
}

/* Full-viewport Mapbox scroll stories */
.story-mapbox-scrolly {
  --story-map-step-count: 4;
  position: relative;
  margin: var(--story-gap-large) auto 0;
  /* One viewport per step, plus one viewport to release the sticky map. */
  min-height: calc((var(--story-map-step-count) + 1) * 100vh);
  background: #000000;
}

.gold-mapbox-scrolly {
  --story-map-step-count: 5;
}

.story-mapbox-scrolly--three {
  --story-map-step-count: 3;
}

.story-mapbox-scrolly__stage {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  background: #000000;
}

.story-mapbox {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 280ms ease;
}

.story-mapbox.is-ready {
  opacity: 1;
}

.story-mapbox__fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 34% 40%, rgba(84, 187, 183, 0.22), transparent 0 16%),
    radial-gradient(circle at 68% 58%, rgba(84, 187, 183, 0.16), transparent 0 20%),
    linear-gradient(135deg, #050505 0%, #101b1d 100%);
  color: rgba(84, 187, 183, 0.68);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.story-mapbox__fallback span {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}

.story-mapbox__fallback span::before {
  content: "";
  width: 0.85rem;
  height: 0.85rem;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: map-loading-spin 900ms linear infinite;
}

.gold-mapbox-scrolly .story-mapbox__fallback {
  color: #e6bb9a;
}

.rare-earths-mapbox-scrolly .story-mapbox__fallback {
  color: #85ded7;
}

.story-mapbox.is-ready + .story-mapbox__fallback {
  display: none;
}

@keyframes map-loading-spin {
  to {
    transform: rotate(360deg);
  }
}

.story-mapbox-scrolly__steps {
  position: relative;
  z-index: 2;
  display: grid;
  grid-auto-rows: 100vh;
  justify-items: center;
  align-items: center;
  width: min(760px, calc(100vw - (2 * var(--gutter))));
  /* Overlay the steps on the sticky stage, then leave room to unstick it. */
  margin: -100vh auto 0;
  padding: 0 0 100vh;
}

.story-mapbox-scrolly__step {
  position: relative;
  width: min(var(--copy-width), calc(100vw - (2 * var(--gutter))));
  padding: clamp(1.2rem, 3vw, 1.7rem) clamp(1.35rem, 3.5vw, 2.2rem);
  border: 1px solid rgba(84, 187, 183, 0.4);
  background: rgba(20, 55, 58, 0.95);
  opacity: 0.72;
  transition: opacity 220ms ease, transform 220ms ease;
}

.gold-mapbox-scrolly .story-mapbox-scrolly__step {
  border-color: #ed924e;
  background: #171717;
}

/* JavaScript updates the temporal custom properties for the active step. */
.story-mapbox-scrolly__temporal-label {
  position: absolute;
  z-index: 4;
  top: clamp(1.5rem, 7vh, 4.5rem);
  left: clamp(1rem, 4vw, 4.5rem);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  color: #FFB984;
  font-family: var(--font-sans);
  text-align: left;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-0.35rem);
  transition: opacity 220ms ease, transform 220ms ease, visibility 220ms;
  pointer-events: none;
}

.story-mapbox-scrolly__temporal-label.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.story-mapbox-scrolly__temporal-year {
  min-width: 4rem;
  padding: 0.4rem 0.6rem;
  background: var(--temporal-year-background, rgba(0, 0, 0, 1));
  color: var(--temporal-year-color, #FFB984);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1;
  text-align: center;
}

.rare-earths-mapbox-scrolly .story-mapbox-scrolly__temporal-label {
  --temporal-year-border: #6ECFC7;
  --temporal-year-color: #85DED7;
}

.story-mapbox-scrolly__temporal-place {
  margin-top: 1rem;
  color: var(--temporal-detail-color, #F8CDAE);
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: left;
}

.rare-earths-mapbox-scrolly .story-mapbox-scrolly__step {
  border-color: #6ecfc7;
  background: #171717;
}

.story-mapbox-scrolly__step.story-mapbox-scrolly__step--map-only {
  padding: 0;
  border: 0;
  background: transparent;
  pointer-events: none;
}

.story-mapbox-scrolly__step.is-active {
  opacity: 1;
  transform: translateY(-0.25rem);
}

.story-mapbox-scrolly__step p {
  margin: 0;
  color: #54bbb7;
  font-family: var(--font-sans);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 2rem;
}

.gold-mapbox-scrolly .story-mapbox-scrolly__step p {
  color: #e6bb9a;
}

.rare-earths-mapbox-scrolly .story-mapbox-scrolly__step p {
  color: #85ded7;
}

.rare-earths-visual {
  width: min(420px, calc(100vw - (2 * var(--gutter))));
  margin: var(--media-gap) auto 0;
  text-align: center;
}

.rare-earths-visual--image,
.rare-earths-visual--charts {
  width: min(var(--copy-width), 100%);
  padding: 0 var(--gutter);
}

.rare-earths-visual--wide {
  width: min(var(--map-width), 100%);
}

.rare-earths-visual__chart-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  justify-content: center;
  gap: clamp(0.75rem, 2vw, 1.5rem);
}

.rare-earths-visual__chart-title {
  margin: 0;
  color: #54BBB7;
  font-family: var(--font-sans);
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1.2;
  text-align: left;
}

.rare-earths-visual__chart-grid img {
  display: block;
  width: 100%;
  height: auto;
}

/* Shared media captions */
figcaption.media-caption {
  max-width: none;
  margin: 0.7rem 0 0;
  color: inherit;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.4;
  text-align: left;
  opacity: 0.75;
}

figcaption.media-caption a {
  color: inherit !important;
}

figcaption.media-caption a:visited {
  color: inherit !important;
}

/* Full-screen inspection for graphics with small, baked-in labels. */
.media-expand-target,
.media-scroll-swap__frames {
  position: relative;
}

.media-expand-target > img {
  cursor: zoom-in;
}

.media-expand-button {
  position: absolute;
  z-index: 5;
  top: 0.625rem;
  right: 0.625rem;
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  background: rgba(1, 11, 9, 0.82);
  color: #ffffff;
  cursor: pointer;
  opacity: 0;
  transition: background-color 160ms ease, opacity 160ms ease;
}

.media-expand-button svg,
.media-viewer__control svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.media-expand-target:hover .media-expand-button,
.media-scroll-swap__frames:hover .media-expand-button,
.media-expand-button:focus-visible {
  opacity: 1;
}

@media (hover: none) {
  .media-expand-button {
    opacity: 1;
  }
}

.media-expand-button:hover {
  background: rgba(1, 11, 9, 0.96);
}

.media-expand-button:focus-visible,
.media-viewer__control:focus-visible,
.media-viewer__comparison-button:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
}

html.media-viewer-open,
html.media-viewer-open body {
  overflow: hidden;
  overscroll-behavior: none;
}

.media-viewer {
  position: fixed;
  z-index: 10000;
  inset: 0;
  width: 100vw;
  max-width: none;
  height: 100vh;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: #010b09;
  color: #ffffff;
}

.media-viewer[open] {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.media-viewer::backdrop {
  background: rgba(0, 0, 0, 0.94);
}

.media-viewer__toolbar {
  position: relative;
  z-index: 2;
  display: flex;
  min-width: 0;
  min-height: 3.75rem;
  align-items: center;
  padding: max(0.5rem, env(safe-area-inset-top)) max(0.75rem, env(safe-area-inset-right)) 0.5rem max(0.75rem, env(safe-area-inset-left));
  gap: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(1, 11, 9, 0.96);
}

.media-viewer__status {
  min-width: 0;
  margin-right: auto;
  overflow: hidden;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.media-viewer__zoom-controls {
  display: flex;
  flex: 0 0 auto;
  gap: 0.35rem;
}

.media-viewer__control {
  display: grid;
  flex: 0 0 2.75rem;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 50%;
  background: transparent;
  color: #ffffff;
  cursor: pointer;
  font-family: Arial, sans-serif;
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1;
}

.media-viewer__control:hover {
  background: rgba(255, 255, 255, 0.1);
}

.media-viewer__control[data-media-viewer-reset] {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
}

.media-viewer__control:disabled {
  cursor: default;
  opacity: 0.38;
}

.media-viewer__viewport {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  place-items: center;
  background: #000000;
  cursor: default;
  touch-action: none;
  user-select: none;
}

.media-viewer__viewport.is-zoomed {
  cursor: grab;
}

.media-viewer__viewport.is-manipulating {
  cursor: grabbing;
}

.media-viewer__image {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
  opacity: 1;
  transform: translate3d(var(--media-viewer-x, 0), var(--media-viewer-y, 0), 0) scale(var(--media-viewer-scale, 1));
  transform-origin: center;
  transition: opacity 120ms ease, transform 180ms ease;
  will-change: opacity, transform;
  -webkit-user-drag: none;
}

.media-viewer__viewport.is-manipulating .media-viewer__image {
  transition: opacity 120ms ease;
}

.media-viewer__image.is-switching {
  opacity: 0;
}

.media-viewer__footer {
  position: relative;
  z-index: 2;
  display: grid;
  padding: 0.7rem max(1rem, env(safe-area-inset-right)) max(0.8rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
  gap: 0.65rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(1, 11, 9, 0.96);
}

.media-viewer__comparison {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
}

.media-viewer__comparison[hidden],
.media-viewer__footer[hidden],
.media-viewer__caption[hidden] {
  display: none;
}

.media-viewer__comparison-button {
  min-height: 2.5rem;
  padding: 0.5rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: 3px;
  background: transparent;
  color: #ffffff;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0;
}

.media-viewer__comparison-button[aria-pressed="true"] {
  background: #ffffff;
  color: #010b09;
}

.media-viewer__caption {
  width: min(var(--copy-width), 100%);
  max-height: 4.2em;
  margin: 0 auto;
  overflow-y: auto;
  color: rgba(255, 255, 255, 0.78);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 300;
  line-height: 1.4;
  text-align: left;
}

/* Credits and methodology dialogs */
.credits {
  background: var(--paper);
  width: min(var(--copy-width), 100%);
  margin: 0 auto;
  padding: 0 var(--gutter) 3rem;
}

.credits__inner {
  width: 100%;
  text-align: left;
}

.credits__label {
  margin: 0 0 0.75rem;
  opacity: 0.75;
  font-family: var(--font-sans-cond);
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.credits__text {
  margin: 0;
  opacity: 0.85;
  font-family: var(--font-sans);
  font-size: 1.2rem;
  letter-spacing: 0.02rem;
  line-height: 1.6;
}

.credits__text strong {
  font-weight: 700;
}

.credits__text__author {
  font-family: var(--font-sans);
  font-weight: 700;
}

.credits__spaced {
  margin-top: 1.5rem;
}

.credits__methodology {
  margin: 1.5rem 0 0;
  font-family: var(--font-sans);
  font-size: 1.2rem;
}

.credits__methodology a {
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

.credits__methodology a:hover {
  opacity: 0.72;
}

.credits__copyright {
  margin-top: 1.5rem;
  opacity: 0.85;
  font-family: var(--font-sans);
  font-size: 1.2rem;
}

.credits a {
  color: inherit;
}

.methodology-modal {
  width: min(calc(100% - (2 * var(--gutter))), 46rem);
  max-height: calc(100svh - 2rem);
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 4px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.55);
}

.methodology-modal::backdrop {
  background: rgba(0, 0, 0, 0.76);
  backdrop-filter: blur(2px);
}

.methodology-modal__content {
  position: relative;
  max-height: calc(100svh - 2rem);
  padding: clamp(1.5rem, 5vw, 3rem);
  overflow-y: auto;
}

.methodology-modal__title {
  margin: 0;
  padding-right: 3rem;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.15;
  text-transform: none;
}

.methodology-modal__body {
  margin-top: 1.5rem;
}

#tin-methodology {
  --methodology-link: #ce82b2;
}

#gold-methodology {
  --methodology-link: #ed924e;
}

#jade-methodology {
  --methodology-link: #80c5a4;
}

#rare-earths-methodology {
  --methodology-link: #6ecfc7;
}

.methodology-modal__body p,
.methodology-modal__body li {
  font-size: 1.1rem;
  line-height: 1.65;
}

.methodology-modal__body em {
  font-size: inherit;
}

.methodology-modal__body p.methodology-modal__subhead {
  font-size: 1.25rem;
}

.methodology-modal__body p:last-child,
.methodology-modal__body ol:last-child,
.methodology-modal__body ul:last-child {
  margin-bottom: 0;
}

.methodology-modal__body a {
  color: var(--methodology-link, inherit);
  text-underline-offset: 0.2em;
  transition: opacity 160ms ease;
}

.methodology-modal__body a:hover {
  opacity: 0.8;
}

.methodology-modal__body a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

.methodology-modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: grid;
  width: 2.5rem;
  min-height: 2.5rem;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-family: Arial, sans-serif;
  font-size: 1.8rem;
  font-weight: 400;
  line-height: 1;
  text-transform: none;
}

.methodology-modal__close:hover {
  background: rgba(255, 255, 255, 0.1);
}

.methodology-modal__close:focus-visible,
.credits__methodology a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

/* Keep Jade's labeled comparisons readable on wider phone viewports. */
@media (max-width: 800px) {
  .jade-visual__pair,
  .jade-visual__night-light-pair {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Small screens */
@media (max-width: 700px) {
  /* Keep the five-item navigation readable when it wraps. */
  .commodity-links {
    justify-content: flex-start;
  }

  .commodity-links .commodity-link {
    white-space: nowrap;
  }

  /* Give the bottom navigation a reliable touch target on phones. */
  .commodity-links--story-end .commodity-link {
    min-height: 2.75rem;
    padding: 0.5rem 0.7rem;
  }

  .commodity-scroll-video-hero {
    height: 190svh;
  }

  .commodity-scroll-video-hero__overlay {
    width: 90vw;
  }

  /* Image swaps stop pinning and reserving extra scroll space on phones. */
  .media-scroll-swap__stage {
    position: relative;
    top: auto;
  }

  .media-scroll-swap__track {
    display: none;
  }

  .media-scroll-swap__following {
    opacity: 1;
  }

  .media-expand-button {
    opacity: 1;
  }

  /* Let editorial stills use the full phone canvas; copy and captions stay aligned. */
  .tin-visual,
  .gold-visual,
  .jade-visual,
  .rare-earths-visual,
  .media-scroll-swap__figure {
    width: 100vw;
    max-width: none;
    margin-right: calc(50% - 50vw);
    margin-left: calc(50% - 50vw);
    padding-right: 0;
    padding-left: 0;
  }

  /* Baked-in labels benefit from a narrow edge buffer without constraining photos. */
  .media-visual--data {
    --mobile-data-visual-gutter: 0.5rem;
    width: calc(100vw - (2 * var(--mobile-data-visual-gutter)));
    margin-right: calc(50% - 50vw + var(--mobile-data-visual-gutter));
    margin-left: calc(50% - 50vw + var(--mobile-data-visual-gutter));
  }

  :is(.tin-visual, .gold-visual, .jade-visual, .rare-earths-visual) > .media-caption,
  .media-scroll-swap__figure .media-caption {
    width: min(var(--copy-width), 100%);
    margin-right: auto;
    margin-left: auto;
    padding-right: var(--gutter);
    padding-left: var(--gutter);
  }

  :is(.tin-visual--chart, .gold-visual--chart, .jade-visual--charts, .rare-earths-visual--charts) > .graph-hed,
  :is(.tin-visual--chart, .gold-visual--chart, .jade-visual--charts, .rare-earths-visual--charts) > .graph-subhed,
  .jade-visual__stack > .graph-subhed,
  .rare-earths-visual__chart-title {
    width: min(var(--copy-width), 100%);
    margin-right: auto;
    margin-left: auto;
    padding-right: var(--gutter);
    padding-left: var(--gutter);
  }

  .media-visual--data > .media-caption,
  .media-visual--data > .graph-hed,
  .media-visual--data > .graph-subhed,
  .media-visual--data .jade-visual__stack > .graph-subhed,
  .media-visual--data .rare-earths-visual__chart-title {
    padding-right: calc(var(--gutter) - var(--mobile-data-visual-gutter));
    padding-left: calc(var(--gutter) - var(--mobile-data-visual-gutter));
  }

  /* Multi-panel graphics become one readable vertical sequence. */
  .tin-visual__comparison,
  .rare-earths-visual__chart-grid,
  .gold-visual__transform-grid {
    grid-template-columns: 1fr;
    justify-content: stretch;
  }

  /* The main mosaic uses a taller, single-column composition on phones. */
  .index-hero__brand {
    top: max(0.5rem, env(safe-area-inset-top, 0px));
    left: 50%;
    width: 75px;
    height: 75px;
    transform: translateX(-50%);
  }

  .index-hero__sequence {
    height: 340vh;
    min-height: 0;
  }

  .index-hero__sticky {
    min-height: 100svh;
  }

  .index-hero__copy {
    width: calc(100vw - 2rem);
    padding: clamp(3.25rem, 13vw, 5rem) 0 clamp(2.25rem, 9vw, 3.5rem);
  }

  .index-hero__title {
    max-width: 17ch;
    font-size: clamp(2rem, 10vw, 3.35rem);
    line-height: 1;
  }

  .index-hero__subhed {
    margin: 0.85rem 0 1rem;
    font-size: clamp(0.98rem, 4.3vw, 1.12rem);
    line-height: 1.35;
  }

  .index-hero__byline {
    margin-top: 0.8rem;
    font-size: 0.95rem;
  }

  .index-hero__dateline {
    margin-bottom: 0.9rem;
    font-size: 0.94rem;
  }

  .index-hero__scroll-cue {
    width: 2rem;
    height: 2rem;
  }

  .index-hero__mosaic {
    top: 0;
    width: 100vw;
    height: 200svh;
    aspect-ratio: auto;
  }

  .index-hero__tile--lead {
    top: 27%;
    left: 31%;
    width: 66%;
    height: 10%;
  }

  .index-hero__tile--12 {
    top: 5%;
    left: 3%;
    width: 52%;
    height: 9%;
  }

  .index-hero__tile--08 {
    top: 1%;
    left: 58%;
    width: 39%;
    height: 9%;
  }

  .index-hero__tile--05 {
    top: 16%;
    left: 3%;
    width: 42%;
    height: 9%;
  }

  .index-hero__tile--07 {
    top: 14%;
    left: 48%;
    width: 49%;
    height: 11%;
  }

  .index-hero__tile--03 {
    top: 28%;
    left: 3%;
    width: 25%;
    height: 13%;
  }

  .index-hero__tile--02 {
    top: 44%;
    left: 3%;
    width: 22%;
    height: 13%;
  }

  .index-hero__tile--11 {
    top: 41%;
    left: 28%;
    width: 69%;
    height: 11%;
  }

  .index-hero__tile--09 {
    top: 59%;
    left: 3%;
    width: 42%;
    height: 9%;
  }

  .index-hero__tile--06 {
    top: 56%;
    left: 48%;
    width: 49%;
    height: 9%;
  }

  .index-hero__tile--01 {
    top: 70%;
    left: 3%;
    width: 27%;
    height: 14%;
  }

  .index-hero__tile--10 {
    top: 69%;
    left: 33%;
    width: 64%;
    height: 10%;
  }

  .index-hero__tile--04 {
    top: 85%;
    left: 19%;
    width: 78%;
    height: 9.5%;
  }

  .gold-visual__transform-grid {
    grid-template-columns: 1fr;
    justify-content: stretch;
  }

  /* Map copy uses the full available width without touching screen edges. */
  .story-mapbox-scrolly__steps {
    width: calc(100% - 2rem);
    margin-inline: 1rem;
  }

  .story-mapbox-scrolly__step {
    width: 100%;
  }

  .story-mapbox-scrolly__temporal-label {
    top: 1rem;
    left: 1rem;
  }
}

/* Accessible motion fallback */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .media-expand-button,
  .media-viewer__image {
    transition: none;
  }

  .index-hero__sequence-cue span {
    animation: none;
  }

  .commodity-scroll-video-hero {
    height: auto;
  }

  .commodity-scroll-video-hero__stage {
    position: relative;
    height: auto;
    aspect-ratio: 64 / 27;
  }

  .commodity-scroll-video-hero__overlay {
    width: min(76vw, 72rem);
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    will-change: auto;
  }

  .media-scroll-swap__frame--first {
    opacity: 0;
  }

  .media-scroll-swap__frame--second {
    opacity: 1;
  }

  .media-scroll-swap__following {
    opacity: 1;
  }

  .media-scroll-swap__stage {
    position: relative;
    top: auto;
  }

  .media-scroll-swap__track {
    display: none;
  }

  .index-hero__sequence {
    height: auto;
    min-height: 0;
  }

  .index-hero__sticky {
    position: relative;
    height: auto;
    min-height: 0;
    overflow: visible;
    padding: clamp(2.5rem, 8vw, 5rem) 0 var(--section-space);
  }

  .index-hero__sticky::after {
    display: none;
  }

  .index-hero__brand {
    position: relative;
    top: auto;
    left: auto;
    width: 200px;
    height: 200px;
    margin: 0 0 clamp(1rem, 3vw, 1.5rem) var(--gutter);
    will-change: auto;
  }

  .index-hero__copy {
    margin: 0 auto;
    opacity: 1 !important;
    transform: none !important;
  }

  .index-hero__scroll-cue {
    display: none;
  }

  .index-hero__mosaic {
    position: relative;
    top: auto;
    left: auto;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: clamp(0.75rem, 2vw, 1.1rem);
    width: min(1120px, calc(100vw - (2 * var(--gutter))));
    height: auto;
    margin: 0 auto;
    transform: none;
  }

  .index-hero__tile {
    position: relative;
    top: auto !important;
    left: auto !important;
    width: auto !important;
    height: auto !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .index-hero__tile--12 {
    grid-column: 1 / 4;
    aspect-ratio: 16 / 9;
  }

  .index-hero__tile--08 {
    grid-column: 4 / 7;
    aspect-ratio: 3 / 2;
  }

  .index-hero__tile--05 {
    grid-column: 1 / 4;
    aspect-ratio: 3 / 2;
  }

  .index-hero__tile--07 {
    grid-column: 4 / 7;
    aspect-ratio: 3 / 2;
  }

  .index-hero__tile--03 {
    grid-column: 1 / 3;
    aspect-ratio: 4 / 5;
  }

  .index-hero__tile--lead {
    grid-column: 3 / 7;
    aspect-ratio: 16 / 9;
  }

  .index-hero__tile--02 {
    grid-column: 1 / 2;
    aspect-ratio: 3 / 4;
  }

  .index-hero__tile--11 {
    grid-column: 2 / 5;
    aspect-ratio: 4 / 3;
  }

  .index-hero__tile--09 {
    grid-column: 5 / 7;
    aspect-ratio: 1;
  }

  .index-hero__tile--06 {
    grid-column: 1 / 4;
    aspect-ratio: 16 / 10;
  }

  .index-hero__tile--01 {
    grid-column: 4 / 5;
    aspect-ratio: 3 / 4;
  }

  .index-hero__tile--10 {
    grid-column: 5 / 7;
    aspect-ratio: 16 / 9;
  }

  .index-hero__tile--04 {
    grid-column: 2 / 6;
    aspect-ratio: 3 / 2;
  }

}

@media (max-width: 700px) and (prefers-reduced-motion: reduce) {
  .index-hero__brand {
    left: auto;
    width: 75px;
    height: 75px;
    margin: 0 auto clamp(1rem, 3vw, 1.5rem);
    transform: none;
  }
}
