/* =========================================================
   T&E · 2026 Report — online edition (sample)
   Brand tokens taken from transportenvironment.org
   ========================================================= */
:root {
  --white: #FFFFFF;
  --charcoal: #1C1C1C;
  --orange: #FF8754;
  --cream: #FBF5F0;
  --burgundy: #59152C;
  --pink: #C2447A;
  --green: #034538;
  --lightgreen: #73D68A;
  --blue: #4D45FF;
  --midblue: #75A1F4;
  --lightblue: #B4D8F4;
  --grey: #A5A5A5;
  --peach: #F0DCCD;
  --greenseries: #039961;

  --grad: linear-gradient(90deg, var(--pink), var(--orange));
  --ease: cubic-bezier(.22, 1, .36, 1);
  --back: cubic-bezier(.34, 1.56, .64, 1);
  --container: 1200px;
  --pad: clamp(20px, 4vw, 48px);
  --bar: 72px;
  --strip: 28px;
  --topbar: calc(var(--bar) + var(--strip));
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--topbar) + 16px); -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--charcoal);
  background: var(--white);
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
svg { display: block; }
a { color: inherit; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.container { max-width: calc(var(--container) + var(--pad) * 2); margin: 0 auto; padding: 0 var(--pad); }

/* ---------- Shared type ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 13px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
  color: var(--burgundy);
}
.eyebrow::before { content: ""; width: 30px; height: 4px; border-radius: 4px; background: var(--grad); }
.eyebrow--light { color: #fff; }
.h-xl { font-weight: 900; font-size: clamp(42px, 5.6vw, 80px); line-height: .98; letter-spacing: -.03em; margin: 18px 0 30px; }
.h-lg { font-weight: 900; font-size: clamp(38px, 4.6vw, 64px); line-height: 1; letter-spacing: -.03em; margin: 16px 0 26px; }
.lead { font-size: clamp(19px, 1.55vw, 22px); line-height: 1.6; color: #2a2a2a; }

/* ---------- Reveal system ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(36px); transition: opacity .9s var(--ease) var(--d, 0s), transform 1.1s var(--ease) var(--d, 0s); }
.js [data-reveal="fade"] { transform: none; transition: opacity 1s ease var(--d, 0s); }
.js [data-reveal="group"] { opacity: 1; transform: none; }
.js [data-reveal].in { opacity: 1; transform: none; }

[data-split] .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
[data-split] .w > span { display: inline-block; }
.js [data-split] .w > span { transform: translateY(105%); transition: transform 1s var(--ease); transition-delay: calc(var(--wi) * 70ms); }
.js [data-split].in .w > span { transform: none; }
.js [data-reveal][data-split] { opacity: 1; transform: none; }

/* =========================================================
   TOP BAR
   ========================================================= */
.topbar { position: fixed; inset: 0 0 auto; padding-top: env(safe-area-inset-top, 0px); background: #fff; z-index: 50; transition: box-shadow .3s; }
.topbar__row { height: var(--bar); display: flex; align-items: center; }
.concept { height: var(--strip); display: flex; align-items: center; justify-content: center; padding: 0 16px; background: var(--charcoal); color: #fff; font-size: 12px; font-weight: 600; letter-spacing: .03em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar.scrolled { box-shadow: 0 8px 30px rgba(89, 21, 44, .08); }
.topbar__inner { display: flex; align-items: center; gap: 26px; width: 100%; }
.btn-menu {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--blue); color: #fff; border: 0; border-radius: 999px;
  padding: 10px 22px; font: 500 15px/1 inherit; cursor: pointer; transition: background .25s;
}
.btn-menu:hover { background: #3a32e6; }
.topbar__logo { display: block; }
.logo { width: 110px; height: 32px; }
.topbar__title { font-size: 15px; font-weight: 500; padding-left: 26px; border-left: 1px solid #ece4dd; white-space: nowrap; }
.topbar__title b { font-weight: 900; }
.topbar__nav { display: flex; gap: 26px; margin-left: auto; }
.topbar__nav a { text-decoration: none; font-size: 15px; font-weight: 600; position: relative; padding: 6px 0; }
.topbar__nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.topbar__nav a:hover::after, .topbar__nav a[aria-current]::after { transform: scaleX(1); }
.btn-outline {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  border: 1.5px solid var(--blue); color: var(--blue); border-radius: 999px;
  padding: 9px 18px; font-weight: 700; font-size: 14px; text-decoration: none; transition: background .25s, color .25s;
}
.btn-outline svg { width: 16px; height: 16px; }
.btn-outline:hover { background: var(--blue); color: #fff; }
.progress { position: absolute; left: 0; right: 0; bottom: -3px; height: 3px; pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--grad); transform-origin: 0 50%; transform: scaleX(0); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: clamp(700px, 100svh, 980px);
  padding-top: var(--topbar);
  background: var(--burgundy); color: #fff;
  display: flex; align-items: flex-end;
}
.hero__art { position: absolute; top: var(--topbar); left: 0; width: 100%; height: calc(100% - var(--topbar)); z-index: -1; }
.hero__content { position: relative; width: 100%; padding-bottom: clamp(56px, 10vh, 110px); }

.hero__eyebrow { position: relative; display: flex; align-items: center; gap: 14px; font-size: 14px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 18px; }
.hero__stripes { position: absolute; right: calc(100% + 14px); top: 50%; width: 64px; height: 98px; transform: translateY(-50%); }
.hero__title { font-weight: 900; font-size: clamp(88px, 14.5vw, 232px); line-height: .84; letter-spacing: -.045em; margin-left: -.04em; }
.hero__title .line { display: block; overflow: hidden; padding: 0 .04em .06em; }
.hero__title .line > span { display: inline-block; }
.hero__title .line:first-child > span {
  background: linear-gradient(95deg, #fff 0%, #FFE3D6 45%, var(--orange) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__lead { font-size: clamp(18px, 1.6vw, 22px); max-width: 520px; margin-top: 22px; color: rgba(255, 255, 255, .88); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.btn-solid, .btn-ghost {
  display: inline-flex; align-items: center; gap: 10px; border-radius: 999px; padding: 14px 26px;
  font-weight: 700; font-size: 16px; text-decoration: none; transition: transform .3s var(--ease), background .3s, color .3s;
}
.btn-solid { background: #fff; color: var(--burgundy); }
.btn-solid svg, .btn-ghost svg { width: 18px; height: 18px; }
.btn-solid:hover { transform: translateY(-2px); background: var(--peach); }
.btn-ghost { border: 1.5px solid rgba(255, 255, 255, .5); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); }

.scroll-cue { position: absolute; right: var(--pad); bottom: 40px; width: 28px; height: 46px; border: 2px solid rgba(255, 255, 255, .55); border-radius: 20px; }
.scroll-cue span { position: absolute; left: 50%; top: 9px; width: 4px; height: 9px; margin-left: -2px; border-radius: 4px; background: #fff; animation: cue 2s var(--ease) infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1 } 70% { transform: translateY(14px); opacity: 0 } 100% { opacity: 0 } }

/* hero intro (runs when html.ready) */
.js .hero__title .line > span { transform: translateY(108%); }
.js .hero__eyebrow, .js .hero__lead, .js .hero__actions, .js .scroll-cue { opacity: 0; transform: translateY(20px); }
.js .hero__stripes { opacity: 0; transform: translate(-60px, -50%); }
.js .orb__in { opacity: 0; transform: scale(.82); transform-box: fill-box; transform-origin: center; }
.js .trail { stroke-dasharray: 1; stroke-dashoffset: 1; }

.ready .hero__title .line > span { animation: rise 1.2s var(--ease) forwards; }
.ready .hero__title .line:nth-child(2) > span { animation-delay: .12s; }
.ready .hero__eyebrow { animation: up .9s var(--ease) .35s forwards; }
.ready .hero__stripes { animation: stripes 1.1s var(--ease) .45s forwards; }
.ready .hero__lead { animation: up .9s var(--ease) .55s forwards; }
.ready .hero__actions { animation: up .9s var(--ease) .7s forwards; }
.ready .scroll-cue { animation: up .9s var(--ease) 1.2s forwards; }
.ready .orb__in { animation: orb 1.6s var(--ease) var(--d, 0s) forwards; }
.ready .trail { animation: draw 2.6s var(--ease) 1s forwards; }

@keyframes rise { to { transform: translateY(0); } }
@keyframes up { to { opacity: 1; transform: none; } }
@keyframes stripes { to { opacity: 1; transform: translate(0, -50%); } }
@keyframes orb { to { opacity: 1; transform: none; } }
@keyframes draw { to { stroke-dashoffset: 0; } }

.spin { transform-box: fill-box; transform-origin: center; animation: spin 70s linear infinite; }
.spin--rev { animation-direction: reverse; animation-duration: 50s; }
@keyframes spin { to { transform: rotate(360deg); } }
.float { animation: float 7s ease-in-out infinite; }
@keyframes float { 50% { transform: translate(6px, -8px); } }
.bob { animation: bob 3.2s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-6px); } }
.flow { animation: flow .9s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -14; } }
.road { animation: road 1.6s linear infinite; }
@keyframes road { to { stroke-dashoffset: -72; } }
.cbar { animation: charge 2.8s ease-in-out infinite; animation-delay: calc(var(--b) * .35s); }
@keyframes charge { 0%, 8% { opacity: .15 } 22%, 82% { opacity: 1 } 100% { opacity: .15 } }

/* =========================================================
   CHAPTER NAV
   ========================================================= */
.chapters { background: #fff; border-bottom: 1px solid #f0e8e1; }
.chapters ol { display: flex; justify-content: space-between; gap: 6px; list-style: none; overflow-x: auto; padding: 22px 0 20px; scrollbar-width: none; }
.chapters ol::-webkit-scrollbar { display: none; }
.chapters a { display: flex; flex-direction: column; align-items: center; gap: 9px; min-width: 84px; text-decoration: none; color: #77685f; font-size: 13px; font-weight: 600; }
.chapters .ic { width: 50px; height: 50px; border-radius: 50%; background: var(--cream); display: grid; place-items: center; color: var(--burgundy); transition: background .3s, transform .4s var(--back), box-shadow .3s; }
.chapters .ic svg { width: 24px; height: 24px; }
.chapters a:hover .ic { background: var(--peach); transform: translateY(-3px); }
.chapters a[aria-current] { color: var(--charcoal); font-weight: 800; }
.chapters a[aria-current] .ic { background: var(--grad); color: #fff; box-shadow: 0 10px 24px -8px rgba(194, 68, 122, .7); }
.js .chapters li { opacity: 0; transform: translateY(14px); }
.ready .chapters li { animation: up .7s var(--ease) forwards; animation-delay: calc(1s + var(--i) * 60ms); }

/* =========================================================
   CHAPTER OPENER + TIMELINE
   ========================================================= */
.chapter { padding: clamp(80px, 11vw, 160px) 0 clamp(40px, 6vw, 80px); }
.chapter__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 90px); align-items: start; }
.chapter__num {
  font-weight: 900; font-size: clamp(140px, 19vw, 290px); line-height: .78; letter-spacing: -.06em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  position: sticky; top: calc(var(--topbar) + 40px);
}

.tl { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; position: relative; margin-top: clamp(60px, 8vw, 110px); }
.tl::before, .tl::after { content: ""; position: absolute; left: 0; right: 0; top: 62px; height: 3px; border-radius: 3px; }
.tl::before { background: #efe5dc; }
.tl::after { background: var(--grad); transform: scaleX(0); transform-origin: 0 50%; transition: transform 2s var(--ease) .2s; }
.tl.in::after { transform: scaleX(1); }
.tl li { position: relative; }
.js .tl li { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(.3s + var(--i) * .4s); }
.js .tl.in li { opacity: 1; transform: none; }
.tl__year { display: block; height: 46px; font-weight: 900; font-size: 42px; line-height: 1; letter-spacing: -.03em; }
.tl__dot { position: relative; z-index: 1; display: block; width: 20px; height: 20px; margin: 6px 0 20px; border-radius: 50%; background: #fff; border: 4px solid var(--pink); }
.tl p { font-size: 16px; line-height: 1.5; color: #4a4a4a; max-width: 300px; }
.tl__future .tl__year { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tl__future .tl__dot { background: var(--orange); border-color: #fff; box-shadow: 0 0 0 4px var(--orange); }
.tl.in .tl__future .tl__dot { animation: pulse 2.2s 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 4px var(--orange), 0 0 0 4px rgba(255, 135, 84, .45) } 100% { box-shadow: 0 0 0 4px var(--orange), 0 0 0 20px rgba(255, 135, 84, 0) } }

/* =========================================================
   TEXT + QUOTE
   ========================================================= */
.split { padding: clamp(60px, 8vw, 120px) 0 clamp(80px, 10vw, 140px); }
.split__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(36px, 7vw, 110px); align-items: center; }
.split__text p { font-size: 19px; line-height: 1.75; color: #2e2e2e; }
.split__text p + p { margin-top: 1.1em; }
p a:not([class]) { color: var(--pink); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; transition: color .2s; }
p a:not([class]):hover { color: var(--burgundy); }
.quote { position: relative; padding: 70px 0 0 0; }
.quote::before {
  content: "“"; position: absolute; top: -30px; left: -6px; font-size: 170px; line-height: 1; font-weight: 900;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.quote p { font-weight: 800; font-size: clamp(28px, 3vw, 42px); line-height: 1.16; letter-spacing: -.02em; }
.js .quote .wd { opacity: .16; transition: opacity .5s ease calc(.3s + var(--k) * 60ms); }
.js .quote.in .wd { opacity: 1; }

/* =========================================================
   40% BAND
   ========================================================= */
.band { position: relative; overflow: hidden; background: var(--burgundy); color: #fff; padding: clamp(90px, 11vw, 150px) 0; }
.band__rings { position: absolute; width: 1100px; height: 1100px; left: -260px; top: 50%; transform: translateY(-50%); fill: none; stroke: rgba(255, 255, 255, .07); stroke-width: 1.5; }
.band::after { content: ""; position: absolute; width: 900px; height: 900px; right: -380px; top: -300px; border-radius: 50%; background: radial-gradient(circle, rgba(194, 68, 122, .55), rgba(194, 68, 122, 0) 65%); pointer-events: none; }
.band__grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 7vw, 110px); align-items: center; }

.gauge { position: relative; width: min(100%, 460px); aspect-ratio: 1; margin: 0 auto; }
.gauge svg { width: 100%; height: 100%; overflow: visible; }
.gauge__track { fill: none; stroke: rgba(255, 255, 255, .1); stroke-width: 36; }
.gauge__value { fill: none; stroke: url(#gGauge); stroke-width: 36; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset 2.2s var(--ease) .2s; }
.gauge.in .gauge__value { stroke-dashoffset: 60; }
.gauge__ticks line { stroke: rgba(255, 255, 255, .28); stroke-width: 2; stroke-linecap: round; }
.gauge__ticks line.major { stroke: rgba(255, 255, 255, .6); stroke-width: 3; }
.gauge__label { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.gauge__num { display: block; font-weight: 900; font-size: clamp(96px, 10.5vw, 156px); line-height: .9; letter-spacing: -.05em; }
.gauge__num .pct { font-size: .5em; letter-spacing: 0; vertical-align: top; margin-left: 4px; position: relative; top: .14em; }
.gauge__sub { display: block; margin-top: 10px; font-size: 13px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 255, 255, .7); }

.band__statement { font-size: clamp(28px, 3vw, 44px); font-weight: 300; line-height: 1.2; letter-spacing: -.015em; margin: 22px 0 40px; }
.band__statement strong { font-weight: 900; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.techs { display: flex; flex-wrap: wrap; gap: 12px; list-style: none; }
.techs li { display: flex; align-items: center; gap: 10px; padding: 8px 18px 8px 8px; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); font-size: 15px; font-weight: 600; }
.js .techs li { opacity: 0; transform: translateY(16px) scale(.96); transition: opacity .6s var(--ease), transform .7s var(--back); transition-delay: calc(.5s + var(--i) * .1s); }
.js .techs.in li { opacity: 1; transform: none; }
.techs .ic { width: 36px; height: 36px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; }
.techs svg { width: 20px; height: 20px; color: #fff; }

/* =========================================================
   INTERACTIVE INFOGRAPHIC
   ========================================================= */
.infog { position: relative; background: var(--cream); padding: clamp(90px, 10vw, 140px) 0 clamp(70px, 8vw, 110px); overflow: hidden; }
.infog__head { position: relative; max-width: 1060px; padding-left: 44px; }
.bracket { position: absolute; left: 0; top: 4px; width: 24px; height: 64px; border-top: 8px solid var(--pink); border-left: 8px solid var(--pink); border-top-left-radius: 10px; }
.infog h2 { font-weight: 900; font-size: clamp(30px, 3.4vw, 48px); line-height: 1.08; letter-spacing: -.025em; }
.hint { display: inline-flex; align-items: center; gap: 12px; margin-top: 20px; font-size: 15px; font-weight: 600; color: #6e5a50; }
.hint__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--pink); animation: hint 2s infinite; }
@keyframes hint { 0% { box-shadow: 0 0 0 0 rgba(194, 68, 122, .5) } 100% { box-shadow: 0 0 0 14px rgba(194, 68, 122, 0) } }

.info { margin-top: clamp(16px, 3vw, 36px); }
.info__stage { position: relative; width: 100%; aspect-ratio: 1200 / 530; }
.info__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.stage-rings circle { fill: none; stroke: #eedfd3; stroke-width: 1.5; }

/* car — line illustration */
.car-shadow { fill: var(--burgundy); opacity: .08; }
.car-body { fill: #fff; stroke: var(--charcoal); stroke-width: 2.6; stroke-linejoin: round; }
.car-glass { fill: #DCE5F6; stroke: var(--charcoal); stroke-width: 2.2; stroke-linejoin: round; }
.car-shine { fill: #fff; opacity: .55; }
.car-pillar { fill: #fff; stroke: var(--charcoal); stroke-width: 2.2; stroke-linejoin: round; }
.car-line { fill: none; stroke: var(--charcoal); stroke-width: 2.2; stroke-linecap: round; }
.car-line--soft { stroke: #cfc5bd; }
.car-detail { fill: var(--charcoal); }
.car-head { fill: var(--lightblue); stroke: var(--charcoal); stroke-width: 1.6; }
.car-tail { fill: var(--pink); }
.car-port { fill: var(--lightgreen); stroke: var(--charcoal); stroke-width: 2; }
.tire { fill: var(--charcoal); stroke: var(--charcoal); stroke-width: 2; }
.rim { fill: #F3EEEA; stroke: var(--charcoal); stroke-width: 2; }
.spokes { fill: #D6CCC4; }
.hub { fill: var(--charcoal); }
.hv { fill: none; stroke: var(--orange); stroke-width: 4; stroke-linecap: round; }
.motor { fill: #E5DDD6; stroke: var(--charcoal); stroke-width: 2; }

.pack__frame { fill: none; stroke: var(--pink); stroke-width: 2; stroke-dasharray: 5 6; opacity: .7; }
.pack__case { fill: var(--charcoal); }
.mod { fill: var(--midblue); transition: fill .4s ease calc(var(--i) * 30ms), opacity .5s var(--ease) calc(var(--i) * 70ms), transform .6s var(--back) calc(var(--i) * 70ms); transform-box: fill-box; transform-origin: center bottom; }
.mod-lines { stroke: rgba(255, 255, 255, .45); stroke-width: 1.5; }
.pack { transition: filter .4s; }
.info__stage[data-active] .mod { fill: var(--ac); }
.info__stage[data-active] .pack { filter: drop-shadow(0 0 10px var(--ac)); }

/* intro choreography: .in (draw) → .pack → .ready */
.js .info .dr { stroke-dasharray: 1; stroke-dashoffset: 1; fill-opacity: 0; transition: stroke-dashoffset 1.8s var(--ease), fill-opacity .8s ease 1s; }
.js .info.in .dr { stroke-dashoffset: 0; fill-opacity: 1; }
.js .info .car-shine, .js .info .car-detail, .js .info .car-head, .js .info .car-tail, .js .info .car-port, .js .info .spokes, .js .info .hub, .js .info .hv, .js .info .motor, .js .info .car-shadow, .js .info .pack__case, .js .info .pack__frame, .js .info .mod-lines { opacity: 0; transition: opacity .6s ease 1.2s; }
.js .info.in .car-shine { opacity: .55; }
.js .info.in .car-shadow { opacity: .08; }
.js .info.in .pack__frame { opacity: .7; }
.js .info.in .car-detail, .js .info.in .car-head, .js .info.in .car-tail, .js .info.in .car-port, .js .info.in .spokes, .js .info.in .hub, .js .info.in .hv, .js .info.in .motor { opacity: 1; }
.js .info.pack .pack__case, .js .info.pack .mod-lines { opacity: 1; transition-delay: 0s; }
.js .info .mod { opacity: 0; transform: scaleY(.2); }
.js .info.pack .mod { opacity: 1; transform: none; }

.leader { fill: none; stroke: var(--c); stroke-width: 2; stroke-dasharray: 3 7; stroke-linecap: round; opacity: 0; transition: opacity .5s, stroke-width .3s; }
.leader[data-for="cells"], .ldot[data-for="cells"] { --c: var(--blue); }
.leader[data-for="cathodes"], .ldot[data-for="cathodes"] { --c: var(--pink); }
.leader[data-for="lithium"], .ldot[data-for="lithium"] { --c: var(--orange); }
.leader[data-for="recycling"], .ldot[data-for="recycling"] { --c: var(--greenseries); }
.ldot { fill: var(--c); stroke: #fff; stroke-width: 2.5; opacity: 0; transition: opacity .5s; transform-box: fill-box; transform-origin: center; }
.info.ready .leader { opacity: .5; }
.info.ready .ldot { opacity: 1; }
.info__stage[data-active] .leader, .info__stage[data-active] .ldot { opacity: .1; }
.info__stage[data-active] .leader.is-active { opacity: 1; stroke-width: 3; stroke-dasharray: 8 6; animation: march .7s linear infinite; }
.info__stage[data-active] .ldot.is-active { opacity: 1; animation: dot 1.2s var(--ease) infinite; }
@keyframes march { to { stroke-dashoffset: -14; } }
@keyframes dot { 0% { transform: scale(1) } 50% { transform: scale(1.6) } 100% { transform: scale(1) } }

/* hotspots */
.spot {
  position: absolute; left: var(--x); top: var(--y); z-index: 3;
  width: clamp(40px, 6.6vw, 80px); aspect-ratio: 1;
  transform: translate(-50%, -50%);
}
.js .spot { opacity: 0; transform: translate(-50%, -50%) scale(.3); transition: opacity .5s ease calc(var(--i) * 130ms), transform .8s var(--back) calc(var(--i) * 130ms); }
.js .info.ready .spot { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.spot button {
  all: unset; box-sizing: border-box; cursor: pointer; position: relative;
  display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%;
  background: var(--c); color: #fff;
  box-shadow: 0 14px 30px -10px var(--c), inset 0 0 0 4px rgba(255, 255, 255, .25);
  transition: transform .4s var(--back), filter .3s, opacity .3s;
}
.spot button > svg { width: 56%; height: 56%; position: relative; z-index: 1; }
.spot button::before, .spot button::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--c); animation: ring 2.6s var(--ease) infinite; pointer-events: none; }
.spot button::after { animation-delay: 1.3s; }
@keyframes ring { 0% { transform: scale(1); opacity: .8 } 100% { transform: scale(1.75); opacity: 0 } }
.spot button:hover, .spot.is-active button { transform: scale(1.12); }
.spot button:focus-visible { outline: 3px solid var(--charcoal); outline-offset: 5px; }
.info__stage[data-active] .spot:not(.is-active) button { filter: grayscale(.85); opacity: .45; }
.info__stage[data-active] .spot button::before, .info__stage[data-active] .spot button::after { animation: none; opacity: 0; }

/* cards */
.card {
  --gap: clamp(36px, 4.4vw, 58px);
  position: absolute; top: var(--y); z-index: 6; width: min(310px, 36%);
  background: #fff; border-radius: 22px; padding: 22px 24px 22px;
  box-shadow: 0 30px 60px -24px rgba(89, 21, 44, .4), 0 2px 8px rgba(28, 28, 28, .05);
  pointer-events: none; opacity: 0; visibility: hidden;
  transition: opacity .3s ease, transform .5s var(--ease), visibility 0s .3s;
}
.card::before { content: ""; position: absolute; left: 24px; right: 24px; top: 0; height: 5px; border-radius: 0 0 6px 6px; background: var(--c); }
.card[data-side="right"] { left: calc(var(--x) + var(--gap)); transform: translate(-14px, -50%) scale(.95); transform-origin: left center; }
.card[data-side="left"] { right: calc(100% - var(--x) + var(--gap)); transform: translate(14px, -50%) scale(.95); transform-origin: right center; }
.card.is-open { opacity: 1; visibility: visible; transform: translate(0, -50%) scale(1); transition: opacity .3s ease, transform .5s var(--ease), visibility 0s; }
.card__kicker { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #5a4a42; }
.card__kicker::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.card__value { font-weight: 900; font-size: clamp(44px, 4.6vw, 62px); line-height: 1; letter-spacing: -.04em; margin: 10px 0 4px; }
.card__value small { font-size: .36em; font-weight: 800; letter-spacing: 0; margin-right: 6px; vertical-align: middle; }
.card__text { font-size: 16px; font-weight: 600; color: #3f3f3f; }
.card__bar { height: 8px; border-radius: 8px; background: #F2EBE5; margin-top: 16px; overflow: hidden; }
.card__bar span { display: block; height: 100%; width: var(--w); border-radius: 8px; background: var(--c); transform: scaleX(0); transform-origin: left; transition: transform 1.1s var(--ease) .1s; }
.card.is-open .card__bar span { transform: scaleX(1); }
.card__trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 12px 0 8px; }
.card__trio > div { border-left: 3px solid var(--c); padding-left: 10px; }
.card__trio b { display: block; font-size: clamp(28px, 2.8vw, 36px); font-weight: 900; line-height: 1; letter-spacing: -.03em; }
.card__trio > div > span { display: block; margin-top: 4px; font-size: 14px; font-weight: 600; color: #555; }

.source { margin-top: 18px; font-size: 13px; font-weight: 600; color: #8b7a70; text-align: right; }

/* =========================================================
   INVESTMENTS AT RISK
   ========================================================= */
.risk { padding: clamp(90px, 11vw, 150px) 0; }
.risk__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 6vw, 100px); align-items: start; }
.risk__text { position: sticky; top: calc(var(--topbar) + 48px); }
.risk__text p:not(.eyebrow) { font-size: 18px; line-height: 1.75; color: #2e2e2e; }
.risk__text p + p { margin-top: 1em; }
.risk__cards { display: grid; gap: 22px; }
.stat { position: relative; overflow: hidden; background: var(--cream); border-radius: 30px; padding: clamp(26px, 3vw, 38px); }
.stat--dark { background: var(--burgundy); color: #fff; }
.stat--dark::after { content: ""; position: absolute; width: 380px; height: 380px; right: -140px; top: -170px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 135, 84, .45), rgba(255, 135, 84, 0) 68%); }
.stat__num { position: relative; z-index: 1; font-weight: 900; font-size: clamp(60px, 6.4vw, 92px); line-height: .92; letter-spacing: -.045em; }
.stat__num .unit { font-size: .42em; letter-spacing: -.01em; margin-left: 8px; }
.stat__num .frac { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat__label { position: relative; z-index: 1; font-size: 17px; font-weight: 500; line-height: 1.45; max-width: 440px; margin: 10px 0 24px; color: inherit; opacity: .85; }
.stat__label strong { font-weight: 800; }
.factories { display: grid; grid-template-columns: repeat(10, 1fr); gap: 10px 8px; }
.factories svg { width: 100%; height: auto; aspect-ratio: 1; color: var(--burgundy); }
.js .factories svg { opacity: 0; transform: translateY(8px) scale(.5); transition: opacity .4s ease, transform .6s var(--back); transition-delay: calc(.3s + var(--i) * 25ms); }
.js .stat.in .factories svg { opacity: 1; transform: none; }
.riskbar { position: relative; z-index: 1; height: 30px; border-radius: 999px; background: rgba(255, 255, 255, .14); overflow: hidden; }
.riskbar span { position: absolute; inset: 0 auto 0 0; width: 68%; border-radius: 999px; background: var(--grad); }
.js .riskbar span { transform: scaleX(0); transform-origin: left; transition: transform 1.8s var(--ease) .35s; }
.js .stat.in .riskbar span { transform: scaleX(1); }
.riskbar__mark { position: absolute; top: 0; bottom: 0; left: 66.67%; width: 2px; background: #fff; opacity: .9; }
.riskbar__legend { position: relative; z-index: 1; display: flex; justify-content: space-between; margin-top: 10px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .75; }
.evs { display: grid; grid-template-columns: repeat(9, 1fr); gap: 12px 10px; }
.evs svg { width: 100%; height: auto; aspect-ratio: 32 / 18; color: #E3D6CB; transition: color .35s ease, transform .5s var(--back); transition-delay: calc(.4s + var(--i) * 80ms); }
.stat.in .evs svg { color: var(--pink); }
.stat__note { display: flex; align-items: center; gap: 8px; margin-top: 16px; font-size: 13px; font-weight: 600; color: #7d6b61; }
.stat__note svg { width: 26px; height: 15px; color: var(--pink); }

/* =========================================================
   NEXT + FOOTER
   ========================================================= */
.next { background: var(--grad); color: #fff; }
.next__inner { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 6px 30px; padding-top: clamp(50px, 6vw, 80px); padding-bottom: clamp(50px, 6vw, 80px); text-decoration: none; }
.next__label { grid-column: 1; font-size: 13px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; opacity: .9; }
.next__title { grid-column: 1; font-weight: 900; font-size: clamp(40px, 6vw, 84px); line-height: 1; letter-spacing: -.035em; }
.next__num { opacity: .55; margin-right: .15em; }
.next__arrow { grid-column: 2; grid-row: 1 / span 2; width: clamp(64px, 7vw, 96px); aspect-ratio: 1; border-radius: 50%; background: #fff; color: var(--pink); display: grid; place-items: center; transition: transform .5s var(--back); }
.next__arrow svg { width: 40%; height: 40%; }
.next__inner:hover .next__arrow { transform: translateX(10px) rotate(-8deg); }

.footer { background: var(--burgundy); color: #fff; padding: 46px 0; }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 36px; }
.logo--white { --logo-pink: #fff; --logo-orange: #FF8754; --logo-stripe: rgba(255, 255, 255, .85); width: 120px; height: 35px; }
.footer__txt { font-size: 14px; opacity: .75; }
.footer__social { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.footer__social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .1); transition: background .25s; }
.footer__social a:hover { background: var(--pink); }
.footer__social svg { width: 18px; height: 18px; }
.footer__social .footer__url { width: auto; height: auto; background: none; padding-left: 8px; font-size: 14px; font-weight: 700; text-decoration: none; }
.footer__social .footer__url:hover { background: none; color: var(--orange); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1080px) {
  .topbar__nav { display: none; }
  .btn-outline { margin-left: auto; }
}
@media (max-width: 900px) {
  .chapter__grid, .split__grid, .band__grid, .risk__grid { grid-template-columns: 1fr; }
  .chapter__num { position: static; font-size: clamp(120px, 34vw, 200px); }
  .risk__text { position: static; }
  .gauge { width: min(100%, 380px); }
}
@media (max-width: 820px) {
  /* infographic: card docks under the stage */
  .info { padding-bottom: 210px; }
  .card, .card[data-side="right"], .card[data-side="left"] {
    left: 0; right: 0; top: calc(100% + 14px); width: auto;
    transform: translateY(10px); transform-origin: center top;
  }
  .card.is-open { transform: none; }
  .spot button::before, .spot button::after { border-width: 1.5px; }
}
@media (max-width: 700px) {
  :root { --bar: 64px; }
  .btn-menu { padding: 9px 16px; }
  .topbar__title { display: none; }
  .btn-outline span { display: none; }
  .btn-outline { padding: 9px; }
  .hero { display: block; min-height: 0; }
  .hero__art { position: relative; top: 0; height: min(54vh, 430px); -webkit-mask-image: linear-gradient(#000 78%, transparent); mask-image: linear-gradient(#000 78%, transparent); }
  .hero__content { margin-top: -28px; padding-bottom: 56px; }
  .hero__stripes { width: 40px; height: 62px; }
  .scroll-cue { display: none; }
  .tl { grid-template-columns: 1fr; gap: 26px; padding-left: 36px; }
  .tl::before, .tl::after { left: 9px; right: auto; top: 6px; bottom: 6px; width: 3px; height: auto; }
  .tl::after { transform: scaleY(0); transform-origin: 50% 0; }
  .tl.in::after { transform: scaleY(1); }
  .tl__year { height: auto; font-size: 34px; }
  .tl__dot { position: absolute; left: -36px; top: 8px; margin: 0; }
  .tl p { margin-top: 6px; }
  .factories { gap: 6px; }
  .evs { grid-template-columns: repeat(6, 1fr); }
  .footer__social { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
}
