:root {
  --accent: #f26a21;
  --bg-hero: #0a0a0a;
  --bg-health: #111111;
  --bg-network: #0d1118;
  --bg-spectacle: #070707;
  --paper: #111111;
  --text: #e8e4df;
  --text-dim: rgba(232, 228, 223, 0.76);
  --panel: rgba(245, 238, 225, 0.98);
  --panel-text: #161616;
  --rule: rgba(232, 228, 223, 0.08);
  --panel-rule: rgba(22, 22, 22, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg-hero);
  color: var(--text);
  font-family: Georgia, "Times New Roman", Times, serif;
}

.story-shell {
  width: 100%;
  background: var(--bg-hero);
  transition: background-color 600ms ease;
}

.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 40;
  width: 100%;
  height: 2px;
  background: transparent;
}

.progress-bar-fill {
  height: 100%;
  width: 0;
  background: var(--accent);
  transform-origin: left center;
}

.hero-panel,
.chapter {
  min-height: 100vh;
}

.opening-film {
  position: relative;
  min-height: 400vh;
  background: var(--bg-hero);
}

.methodology-film {
  min-height: 400vh;
}

.headline-film {
  min-height: 460vh;
  background: #000000;
}

.finding-film-health {
  min-height: 540vh;
  padding: 0;
  background: #000000;
}

.finding-film-network {
  min-height: 430vh;
  padding: 0;
  background: #000000;
}

.finding-film-spectacle {
  min-height: 430vh;
  padding: 0;
  background: #000000;
}

.finding-film-health .opening-film-bg {
  background: #000000;
}

.finding-film-network .opening-film-bg {
  background: #000000;
}

.finding-film-spectacle .opening-film-bg {
  background: #000000;
}

.opening-film-bg {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: clip;
}

.opening-film-content {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.hero-panel {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 3;
  display: grid;
  align-items: start;
  min-height: 100vh;
  padding: 8vh 24px 12vh;
  background: transparent;
}

#opening-sequence-story {
  padding-top: 100vh;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  will-change: contents;
}

.methodology-video {
  object-position: left center;
}

.finding-video-network {
  object-position: left center;
  background: #000000;
}

.finding-video-spectacle {
  object-position: right center;
  background: #000000;
}

.hero-overlay,
.opening-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 10, 10, 0.34) 0%, rgba(10, 10, 10, 0.3) 38%, rgba(10, 10, 10, 0.48) 100%);
}

.methodology-overlay {
  background:
    linear-gradient(180deg, rgba(10, 10, 10, 0.28) 0%, rgba(10, 10, 10, 0.18) 34%, rgba(10, 10, 10, 0.46) 100%);
}

.headline-overlay {
  background:
    linear-gradient(90deg, rgba(8, 8, 8, 0.22) 0%, rgba(8, 8, 8, 0.12) 34%, rgba(8, 8, 8, 0.56) 68%, rgba(8, 8, 8, 0.82) 100%),
    linear-gradient(180deg, rgba(8, 8, 8, 0.18) 0%, rgba(8, 8, 8, 0.38) 100%);
}

.finding-overlay {
  background:
    linear-gradient(90deg, rgba(8, 8, 8, 0.82) 0%, rgba(8, 8, 8, 0.56) 26%, rgba(8, 8, 8, 0.18) 52%, rgba(8, 8, 8, 0.28) 100%),
    linear-gradient(180deg, rgba(8, 8, 8, 0.22) 0%, rgba(8, 8, 8, 0.42) 100%);
}

.finding-video-health {
  object-fit: contain;
  object-position: right center;
  background: #000000;
}

.hero-copy,
.opening-stage,
.chapter-stage {
  width: min(1160px, 100%);
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero-copy-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 2vh;
}

.hero-title,
.chapter-note h2,
.generator-section h2,
.generator-output h3 {
  font-family: Georgia, "Times New Roman", Times, serif;
}

.chapter-kicker,
.section-label,
.generator-meta,
.generator-tags,
.generator-pill,
.generate-button {
  font-family: Arial, Helvetica, sans-serif;
}

.hero-title {
  max-width: 24ch;
  margin: 0;
  font-size: clamp(1.4rem, 2.15vw, 2.55rem);
  line-height: 1.02;
  font-weight: 700;
  letter-spacing: -0.02em;
  opacity: 1;
  transform: none;
}

.hero-dek,
.hero-byline,
.hero-scroll {
  opacity: 1;
  transform: none;
}

.hero-sequence,
.hero-sequence.is-visible {
  animation: none;
}

.hero-dek,
.opening-note p,
.chapter-note p,
.generator-intro,
.title-card-en,
.generator-translation {
  font-size: clamp(1.15rem, 1.7vw, 1.25rem);
  line-height: 1.72;
}

.hero-dek {
  max-width: 42rem;
  margin: 18px 0 0;
  color: var(--text-dim);
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  line-height: 1.55;
}

.hero-byline {
  margin: 18px 0 0;
  color: rgba(232, 228, 223, 0.82);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.hero-byline a {
  position: relative;
  z-index: 5;
  display: inline-block;
  color: inherit;
  pointer-events: auto;
  cursor: pointer;
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(232, 228, 223, 0.42);
  text-underline-offset: 0.12em;
}

.hero-byline a:hover,
.hero-byline a:focus-visible {
  text-decoration-color: currentColor;
}

.hero-scroll {
  margin-top: 34px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(232, 228, 223, 0.4);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.opening-sequence,
.headline-section,
.generator-section {
  background: transparent;
  color: var(--text);
}

.opening-sequence {
  position: relative;
  min-height: 300vh;
  padding: 0 24px;
  background: transparent;
}

.opening-sequence-methodology {
  min-height: 300vh;
}

.headline-sequence {
  min-height: 460vh;
  padding-bottom: 28vh;
}

.finding-sequence {
  min-height: 540vh;
  padding-bottom: 20vh;
}

.finding-sequence-network {
  min-height: 430vh;
  padding-bottom: 18vh;
}

.finding-sequence-spectacle {
  min-height: 430vh;
  padding-bottom: 18vh;
}

.opening-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 34%);
  gap: 32px;
  align-items: start;
}

.opening-spacer {
  min-height: 1px;
}

.opening-text {
  position: relative;
  z-index: 2;
}

.opening-note {
  min-height: 100vh;
  padding: 42vh 0;
  display: grid;
  align-items: center;
}

.opening-note-inner {
  max-width: 28rem;
  padding: 28px 30px;
  background: rgba(11, 15, 22, 0.8);
  border: 1px solid rgba(242, 106, 33, 0.22);
  box-shadow: 0 18px 70px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(3px);
}

.opening-sequence-methodology .opening-note-inner {
  background: rgba(11, 15, 22, 0.74);
}

.headline-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(640px, 58%);
  gap: 32px;
  width: min(1160px, 100%);
  margin: 0 auto;
}

.headline-spacer {
  min-height: 1px;
}

.headline-card-column {
  position: relative;
  z-index: 2;
}

.headline-cluster {
  min-height: 110vh;
  padding: 20vh 0;
  display: grid;
  align-items: center;
}

.headline-cluster[data-step="3"] {
  min-height: 72vh;
  padding-top: 12vh;
  padding-bottom: 8vh;
}

.headline-cluster-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.headline-cluster-grid-single {
  grid-template-columns: minmax(220px, 280px);
}

.mini-headline-card {
  padding: 18px 18px 16px;
  background: rgba(11, 15, 22, 0.82);
  border: 1px solid rgba(242, 106, 33, 0.18);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(3px);
}

.mini-headline-label {
  margin: 0 0 10px;
  color: var(--accent);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.headline-cluster p,
.headline-cluster .mini-headline-fr,
.headline-cluster .mini-headline-en,
.headline-cluster .mini-headline-source {
  opacity: 1;
  transform: none;
  animation: none;
}

.mini-headline-fr {
  margin: 0 0 10px;
  font-family: Georgia, "Times New Roman", Times, serif;
  font-style: italic;
  font-size: 1.02rem;
  line-height: 1.42;
}

.mini-headline-en {
  margin: 0 0 10px;
  color: var(--text-dim);
  font-size: 0.98rem;
  line-height: 1.5;
}

.mini-headline-source {
  margin: 0;
  color: #f26a21;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.finding-stage {
  width: min(1160px, 100%);
  margin: 0 auto;
}

.finding-stage-right {
  display: flex;
  justify-content: flex-end;
}

.finding-text {
  width: min(34rem, calc(100vw - 48px));
}

.finding-text-right {
  width: min(34rem, calc(100vw - 48px));
  margin-left: auto;
}

.finding-note {
  min-height: 72vh;
  padding: 10vh 0;
}

.finding-note-inner {
  max-width: 32rem;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
}

.finding-note .chapter-kicker {
  margin-bottom: 10px;
}

.finding-note[data-step="0"] {
  min-height: 92vh;
  padding-top: 20vh;
  padding-bottom: 8vh;
}

.finding-note h2 {
  max-width: 12ch;
  margin-bottom: 0;
}

.finding-note p:not(.chapter-kicker) {
  max-width: 31rem;
  margin: 0;
  font-size: clamp(1.16rem, 1.7vw, 1.3rem);
  font-weight: 400;
  line-height: 1.68;
}

.finding-note[data-step="1"] .finding-note-inner,
.finding-note[data-step="2"] .finding-note-inner,
.finding-note[data-step="3"] .finding-note-inner,
.finding-note[data-step="4"] .finding-note-inner {
  max-width: 28rem;
  padding: 24px 26px;
  background: rgba(11, 15, 22, 0.8);
  border: 1px solid rgba(242, 106, 33, 0.2);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(3px);
}

.finding-note[data-step="4"] {
  min-height: 52vh;
  padding-top: 4vh;
  padding-bottom: 0;
}

.finding-film-network .finding-note[data-step="3"] {
  min-height: 56vh;
  padding-top: 8vh;
  padding-bottom: 2vh;
}

.finding-film-spectacle .finding-note[data-step="3"] {
  min-height: 56vh;
  padding-top: 8vh;
  padding-bottom: 2vh;
}

.article-column {
  width: min(38em, calc(100vw - 48px));
  margin: 0 auto;
}

.article-column p {
  margin: 0 0 1.25rem;
}

.chapter {
  position: relative;
  padding: 0 24px;
}

.chapter-health {
  background: var(--bg-health);
}

.chapter-network {
  background: var(--bg-network);
}

.chapter-spectacle {
  background: var(--bg-spectacle);
}

.chapter-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 40%);
  gap: 28px;
  align-items: start;
  width: min(1240px, 100%);
  margin: 0 auto;
}

.chapter-visual {
  position: sticky;
  top: 0;
  height: 100vh;
  display: grid;
  place-items: center;
  will-change: transform, opacity;
}

.visual-frame {
  width: min(520px, 86%);
  text-align: left;
}

.visual-kicker,
.section-label,
.generator-meta,
.generator-tags {
  margin: 0 0 12px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.visual-stat {
  margin-bottom: 18px;
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: clamp(4rem, 12vw, 9rem);
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--text);
  transition: opacity 400ms ease, transform 400ms ease;
}

.visual-title {
  margin: 0 0 16px;
  font-size: clamp(2rem, 4vw, 3.75rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
  transition: opacity 400ms ease, transform 400ms ease;
}

.visual-caption {
  max-width: 24rem;
  margin: 0;
  color: var(--text-dim);
  transition: opacity 400ms ease, transform 400ms ease;
}

.chapter-text {
  position: relative;
  z-index: 2;
}

.chapter-note {
  min-height: 100vh;
  padding: 42vh 0;
  display: grid;
  align-items: center;
  opacity: 0.3;
  transition: opacity 400ms ease;
}

.chapter-note.is-active {
  opacity: 1;
}

.note-inner {
  max-width: 34rem;
  will-change: transform, opacity;
}

.chapter-kicker {
  margin: 0 0 12px;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.chapter-note h2 {
  margin: 0 0 18px;
  font-size: clamp(2rem, 4vw, 3.7rem);
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.02em;
  opacity: 0;
  transform: translateY(24px);
}

.chapter-note p:not(.chapter-kicker) {
  opacity: 0;
  transform: translateY(24px);
}

.chapter-note.is-active h2,
.chapter-note.is-active p:not(.chapter-kicker) {
  animation: noteRise 0.7s ease forwards;
}

.chapter-note.is-active p:nth-of-type(2) {
  animation-delay: 0.22s;
}

.chapter-note.is-active p:nth-of-type(3) {
  animation-delay: 0.4s;
}

.chapter-note.is-past {
  opacity: 0.3;
}

.headline-section {
  padding: 64px 24px 100px;
}

.headline-section-health {
  background: #000000;
}

.headline-section-dark {
  background: inherit;
}

.title-card-grid {
  display: grid;
  gap: 0;
  margin-top: 20px;
}

.title-card {
  padding: 22px 0;
  border-top: 1px solid var(--rule);
  opacity: 0;
  transform: translateY(20px);
  will-change: transform, opacity;
}

.title-card:last-child {
  border-bottom: 1px solid var(--rule);
}

.title-card.is-visible {
  animation: cardRise 0.6s ease forwards;
}

.title-card-fr {
  margin: 0 0 10px;
  font-family: Georgia, "Times New Roman", Times, serif;
  font-style: italic;
  font-size: 1.28rem;
  line-height: 1.36;
  opacity: 0;
  transform: translateY(10px);
}

.title-card-en {
  margin: 0 0 10px;
  color: var(--text-dim);
  opacity: 0;
}

.title-card-source {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(232, 228, 223, 0.52);
  opacity: 0;
}

.title-card.is-visible .title-card-fr {
  animation: cardTextIn 0.55s ease forwards;
}

.title-card.is-visible .title-card-en {
  animation: cardTranslationIn 0.55s ease forwards;
  animation-delay: 0.4s;
}

.title-card.is-visible .title-card-source {
  animation: cardTranslationIn 0.55s ease forwards;
  animation-delay: 0.52s;
}

.headline-section-static .title-card,
.headline-section-static .title-card-fr,
.headline-section-static .title-card-en,
.headline-section-static .title-card-source {
  opacity: 1;
  transform: none;
  animation: none !important;
}

.headline-section-static .title-card-en {
  opacity: 0.75;
}

.headline-section-static .title-card-source {
  opacity: 1;
}

.generator-section {
  padding: 88px 24px 120px;
}

.generator-section h2 {
  margin: 0 0 16px;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
}

.generator-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin: 28px 0 26px;
}

.generator-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.generator-pill,
.generate-button {
  position: relative;
  border: 0;
  background: transparent;
  color: var(--text);
  padding: 0 0 10px;
  cursor: pointer;
  transition: color 300ms ease;
}

.generator-pill::after,
.generate-button::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: rgba(232, 228, 223, 0.22);
}

.generator-pill::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 300ms ease;
}

.generator-pill.is-active::before {
  width: 100%;
}

.generate-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border: 1px solid rgba(242, 106, 33, 0.48);
  border-radius: 999px;
  background: rgba(242, 106, 33, 0.12);
  color: var(--accent);
  box-shadow: inset 0 -1px 0 rgba(242, 106, 33, 0.12);
  font-weight: 500;
}

.generate-button::after {
  content: none;
}

.generate-button:hover {
  background: rgba(242, 106, 33, 0.18);
  border-color: rgba(242, 106, 33, 0.7);
}

.generate-button:active {
  transform: translateY(1px);
}

.generate-button.is-shuffling {
  animation: shufflePulse 0.35s ease;
}

.generator-output {
  min-height: 40vh;
  padding: 30px 0 0;
  border-top: 1px solid var(--rule);
}

.generator-meta {
  margin: 0 0 12px;
}

.generator-swap {
  min-height: 210px;
  will-change: transform, opacity;
}

.generator-swap.is-transitioning {
  animation: generatorSwap 0.42s ease;
}

.generator-output h3 {
  margin: 0 0 16px;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.generator-translation {
  max-width: 38em;
  color: var(--text-dim);
}

.generator-disclaimer {
  max-width: 38em;
  margin: 18px 0 0;
  color: rgba(232, 228, 223, 0.58);
  font-size: 0.92rem;
  line-height: 1.55;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  will-change: transform, opacity;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes heroRise {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes noteRise {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes cardRise {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes cardTextIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes cardTranslationIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 0.75;
  }
}

@keyframes generatorSwap {
  0% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
  49% {
    opacity: 0;
    transform: translateX(-18px) scale(0.985);
  }
  50% {
    opacity: 0;
    transform: translateX(18px) scale(0.985);
  }
  100% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes shufflePulse {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-2px);
  }
  50% {
    transform: translateX(2px);
  }
  75% {
    transform: translateX(-1px);
  }
}

@media (max-width: 767px) {
  .hero-panel,
  .opening-sequence,
  .headline-section,
  .generator-section,
  .chapter {
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero-title {
    max-width: 18ch;
    font-size: clamp(1.45rem, 6vw, 2.15rem);
  }

  .hero-panel {
    position: absolute;
    inset: 0 0 auto 0;
    min-height: 100svh;
    align-items: start;
    padding-top: 6vh;
    padding-bottom: 28vh;
  }

  .hero-title,
  .hero-dek,
  .hero-byline,
  .hero-scroll {
    opacity: 1;
    transform: none;
    animation: none !important;
  }

  .opening-stage,
  .chapter-stage {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .headline-stage {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .headline-spacer {
    display: none;
  }

  .headline-cluster {
    min-height: auto;
    padding: 10vh 0;
  }

  .headline-cluster-grid,
  .headline-cluster-grid-single {
    grid-template-columns: 1fr;
  }

  .hero-copy-center {
    align-items: center;
    justify-content: flex-start;
  }

  .hero-dek {
    max-width: 28rem;
  }

  .chapter-visual {
    position: relative;
    top: auto;
    height: auto;
    min-height: 45vh;
    padding-top: 60px;
    padding-bottom: 20px;
  }

  .chapter-text {
    padding-bottom: 40px;
  }

  .opening-film {
    min-height: auto;
  }

  #opening-sequence {
    min-height: 400vh;
  }

  .opening-film-bg {
    height: 100vh;
  }

  .opening-film-content {
    position: relative;
  }

  #opening-sequence .opening-film-content {
    position: absolute;
    inset: 0;
    z-index: 2;
  }

  .opening-spacer {
    display: none;
  }

  .opening-note {
    min-height: auto;
    padding: 10vh 0;
  }

  .finding-note {
    min-height: auto;
    padding: 12vh 0;
  }

  .opening-note-inner {
    padding: 22px 22px 24px;
  }

  .chapter-note {
    min-height: auto;
    padding: 10vh 0;
  }

  .title-card {
    transform: translateY(10px);
  }

  .generator-controls {
    flex-direction: column;
    align-items: flex-start;
  }
}
