:root {
  --ink: #232321;
  --ink-soft: #5e5b55;
  --paper: #f5f0e8;
  --paper-deep: #e9e1d5;
  --night: #171b29;
  --night-soft: #252b3d;
  --ember: #b65343;
  --ember-dark: #7f332f;
  --cool: #2f6f73;
  --line: rgba(35, 35, 33, 0.17);
  --shadow: 0 28px 70px rgba(38, 30, 24, 0.12);
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color-scheme: light;
  font-family: var(--sans);
  font-synthesis: none;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  color: var(--ink);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--paper);
}

button,
select,
input {
  font: inherit;
}

button,
a,
select,
input {
  -webkit-tap-highlight-color: transparent;
}

button,
a {
  color: inherit;
}

button {
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid #167f86;
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.7rem 1rem;
  transform: translateY(-160%);
  border-radius: 999px;
  background: #fff;
  color: #111;
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  transform: translateY(0);
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.site-header {
  position: fixed;
  z-index: 100;
  inset: 0 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  min-height: 4.25rem;
  padding: 0.7rem clamp(1rem, 3vw, 3rem);
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
  background: rgba(23, 27, 41, 0.88);
  color: #f8f3ec;
  backdrop-filter: blur(18px);
}

.brand {
  display: block;
  width: 5.2rem;
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: 100%;
  height: auto;
}

.edition {
  margin: 0 0 0 clamp(1rem, 3vw, 3rem);
  color: rgba(248, 243, 236, 0.67);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.menu-toggle {
  display: none;
  gap: 0.65rem;
  align-items: center;
  border: 0;
  background: transparent;
  color: inherit;
}

.menu-toggle-icon,
.menu-toggle-icon::before,
.menu-toggle-icon::after {
  display: block;
  width: 1.25rem;
  height: 1px;
  background: currentColor;
  content: "";
}

.menu-toggle-icon::before {
  transform: translateY(-5px);
}

.menu-toggle-icon::after {
  transform: translateY(4px);
}

.scene-nav {
  justify-self: end;
}

.scene-nav ol {
  display: flex;
  gap: clamp(0.65rem, 1.7vw, 1.6rem);
  align-items: center;
  padding: 0;
  margin: 0;
  list-style: none;
}

.scene-nav a {
  display: grid;
  gap: 0.05rem;
  color: rgba(248, 243, 236, 0.58);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 180ms ease;
}

.scene-nav a span:first-child {
  font-family: var(--serif);
  font-size: 0.62rem;
  font-style: italic;
  opacity: 0.65;
}

.scene-nav a:hover,
.scene-nav a.is-active {
  color: #fff;
}

.progress {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: rgba(255, 255, 255, 0.08);
}

.progress span {
  display: block;
  width: 0;
  height: 100%;
  background: #d5795d;
  transition: width 300ms ease;
}

.progress span[data-step="0"] { width: 0; }
.progress span[data-step="1"] { width: 16.6667%; }
.progress span[data-step="2"] { width: 33.3333%; }
.progress span[data-step="3"] { width: 50%; }
.progress span[data-step="4"] { width: 66.6667%; }
.progress span[data-step="5"] { width: 83.3333%; }
.progress span[data-step="6"] { width: 100%; }

.city-rennes,
.city-line-rennes { --city: #2f6f73; }

.city-lyon,
.city-line-lyon { --city: #c46a4a; }

.city-marseille,
.city-line-marseille { --city: #7b3f58; }

.loading,
.no-script,
.load-error {
  display: grid;
  min-height: 100vh;
  place-content: center;
  padding: 3rem;
  background: var(--night);
  color: #f8f3ec;
  text-align: center;
}

.loading p,
.no-script p,
.load-error p {
  max-width: 42rem;
  margin: 0.25rem auto;
}

.loading-kicker {
  font-family: var(--serif);
  font-size: clamp(2rem, 7vw, 5rem);
}

.load-error h1,
.no-script h1 {
  max-width: 52rem;
  margin: 1rem auto;
  font-family: var(--serif);
  font-size: clamp(2rem, 6vw, 4.5rem);
  font-weight: 400;
  line-height: 1.04;
}

.load-error button {
  width: fit-content;
  margin: 2rem auto 0;
  padding: 0.8rem 1.2rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  background: transparent;
  color: inherit;
}

.scene {
  position: relative;
  min-height: 100vh;
  scroll-margin-top: 4.2rem;
}

.scene-inner {
  width: min(70rem, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(7.5rem, 11vw, 10rem) 0 clamp(6rem, 10vw, 9rem);
}

.scene-inner-wide {
  width: min(82rem, calc(100% - 2rem));
}

.scene-inner-extra-wide {
  width: min(92rem, calc(100% - 2rem));
}

.scene-light {
  background: #f8f4ed;
}

.scene-heading {
  display: grid;
  grid-template-columns: minmax(4rem, 0.25fr) minmax(0, 1fr);
  gap: 0 clamp(1rem, 5vw, 5rem);
  max-width: 63rem;
  margin-bottom: clamp(3rem, 7vw, 6rem);
}

.scene-number {
  grid-row: 1 / span 3;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin: 0;
  color: var(--ember-dark);
  font-size: 0.72rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.scene-number span:last-child {
  width: 2.5rem;
  padding-top: 0.35rem;
  border-top: 1px solid currentColor;
  font-family: var(--serif);
  font-size: 1.25rem;
  letter-spacing: normal;
}

.scene-eyebrow {
  margin: 0 0 0.65rem;
  color: var(--ink-soft);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.scene-heading h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.8rem, 7vw, 6.8rem);
  font-weight: 400;
  letter-spacing: normal;
  line-height: 0.95;
}

.scene-question {
  max-width: 45rem;
  margin: 1.4rem 0 0;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2.2vw, 1.55rem);
  line-height: 1.45;
}

.reveal {
  transform: translateY(1.25rem);
  opacity: 0;
  transition: opacity 700ms ease, transform 700ms cubic-bezier(0.2, 0.7, 0.25, 1);
}

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

.scene-opening {
  display: grid;
  min-height: max(100vh, 48rem);
  place-items: center;
  overflow: hidden;
  background: #111625;
  color: #f8f3ec;
}

.opening-visual,
.night-sky {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.opening-visual {
  object-fit: cover;
  object-position: center 62%;
  filter: saturate(0.82) contrast(0.94) brightness(1.16);
}

.night-sky {
  background:
    radial-gradient(circle at 50% 30%, rgba(9, 13, 24, 0.16), rgba(9, 13, 24, 0.58) 76%),
    linear-gradient(to bottom, rgba(7, 11, 20, 0.2) 0%, rgba(10, 14, 24, 0.42) 48%, rgba(15, 15, 24, 0.88) 100%);
}

.opening-inner {
  position: relative;
  z-index: 1;
  width: min(80rem, calc(100% - 2rem));
  padding: 8rem 0 3rem;
  text-align: center;
}

.opening-kicker {
  margin: 0 0 1.3rem;
  color: rgba(248, 243, 236, 0.68);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.opening-inner h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(3.7rem, 9vw, 8.1rem);
  font-weight: 400;
  letter-spacing: normal;
  line-height: 0.92;
}

.opening-lead {
  max-width: 47rem;
  margin: 2.5rem auto 3rem;
  color: rgba(248, 243, 236, 0.78);
  font-family: var(--serif);
  font-size: clamp(1.05rem, 2vw, 1.4rem);
}

.opening-cities {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: min(62rem, 100%);
  margin: 0 auto;
  border-block: 1px solid rgba(255, 255, 255, 0.15);
}

.opening-city {
  position: relative;
  display: grid;
  gap: 0.35rem;
  padding: 1.5rem clamp(0.7rem, 2.5vw, 2.5rem);
}

.opening-city + .opening-city {
  border-left: 1px solid rgba(255, 255, 255, 0.15);
}

.opening-city::before {
  position: absolute;
  top: -2px;
  right: 32%;
  left: 32%;
  height: 3px;
  background: var(--city);
  content: "";
}

.opening-city p,
.opening-city span {
  margin: 0;
}

.opening-city p {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.opening-city strong {
  font-family: var(--serif);
  font-size: clamp(2.1rem, 4.5vw, 4rem);
  font-weight: 400;
}

.opening-city span {
  color: rgba(248, 243, 236, 0.61);
  font-size: 0.72rem;
}

.opening-contract {
  display: flex;
  gap: clamp(0.8rem, 2vw, 1.5rem);
  align-items: center;
  justify-content: center;
  margin: 1.7rem 0 0;
  color: rgba(248, 243, 236, 0.86);
  font-size: clamp(0.82rem, 1.15vw, 1rem);
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.opening-contract strong {
  color: #f8f3ec;
  font-family: var(--serif);
  font-size: clamp(1.9rem, 3vw, 2.75rem);
  font-weight: 400;
  letter-spacing: normal;
}

.opening-transition {
  max-width: 36rem;
  margin: 1.15rem auto 0;
  color: rgba(248, 243, 236, 0.68);
  font-family: var(--serif);
  font-size: clamp(0.95rem, 1.3vw, 1.1rem);
}

.enter-story,
.scene-next,
.replay {
  display: inline-flex;
  gap: 1.5rem;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.1rem;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: transparent;
  color: inherit;
  font-weight: 700;
}

.enter-story {
  gap: 2rem;
  margin: 2.5rem auto 0;
  padding: 0.95rem 1.2rem;
  font-size: clamp(1.15rem, 1.5vw, 1.3rem);
}

.opening-limit {
  max-width: 36rem;
  margin: 1.8rem auto 0;
  color: rgba(248, 243, 236, 0.45);
  font-size: 0.68rem;
}

.opening-visual-note {
  margin: 0.35rem auto 0;
  color: rgba(248, 243, 236, 0.38);
  font-size: 0.62rem;
}

.finding {
  max-width: 50rem;
  margin: 0 auto clamp(3rem, 7vw, 6rem);
  padding-left: 1.5rem;
  border-left: 3px solid var(--ember);
}

.finding p,
.finding strong,
.finding span {
  display: block;
  margin: 0;
}

.finding p {
  color: var(--ink-soft);
}

.finding strong {
  margin-top: 0.35rem;
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3.5vw, 3rem);
  font-weight: 400;
  line-height: 1.15;
}

.finding span {
  max-width: 38rem;
  margin-top: 0.8rem;
  color: var(--ink-soft);
  font-size: 0.82rem;
}

.night-stage {
  padding: clamp(1rem, 3vw, 2.5rem);
  border: 1px solid var(--line);
  border-radius: 1.2rem;
  background: #fffdf9;
  box-shadow: var(--shadow);
}

.night-toolbar {
  display: grid;
  gap: 0.8rem;
  align-items: center;
  max-width: 46rem;
  margin: 0 auto 2rem;
}

.night-toolbar label {
  display: grid;
  grid-template-columns: auto auto;
  gap: 0.3rem 1rem;
  align-items: baseline;
  justify-content: center;
}

.night-toolbar label span {
  color: var(--ink-soft);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.night-toolbar label strong {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 400;
}

.night-slider-controls {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr) 2.5rem;
  gap: 1rem;
  align-items: center;
}

.night-toolbar input {
  width: 100%;
  margin: 0;
  accent-color: var(--ember);
}

.icon-button {
  display: grid;
  width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
}

.icon-button:disabled {
  cursor: default;
  opacity: 0.35;
}

.chart-frame {
  overflow-x: auto;
}

.episode-chart {
  display: block;
  width: 100%;
  min-width: 64rem;
  height: auto;
}

.comparison-chart-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  background: #fff;
}

.comparison-chart-header {
  display: grid;
  grid-template-columns: minmax(18rem, 1fr) auto;
  gap: 1.5rem 3rem;
  align-items: end;
  padding: 1.5rem 1.5rem 1rem;
}

.comparison-chart-header h3,
.comparison-chart-header p,
.comparison-chart-legend {
  margin: 0;
}

.comparison-chart-header h3 {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3vw, 2.45rem);
  font-weight: 400;
}

.comparison-chart-header p,
.comparison-chart-legend small {
  color: var(--ink-soft);
  font-size: 0.65rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.comparison-chart-legend {
  display: flex;
  gap: 1.2rem;
  padding: 0;
  list-style: none;
}

.comparison-chart-legend li {
  display: flex;
  gap: 0.55rem;
  align-items: center;
}

.comparison-chart-legend i {
  width: 1.8rem;
  height: 3px;
  flex: none;
  background: var(--city);
}

.comparison-chart-legend span {
  display: grid;
}

.comparison-chart-legend strong {
  color: var(--city);
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 400;
}

.comparison-chart-legend small {
  max-width: 8rem;
  line-height: 1.25;
}

.episode-night-band {
  fill: rgba(35, 35, 33, 0.045);
}

.episode-night-band.is-selected {
  fill: rgba(182, 83, 67, 0.14);
}

.episode-night-target {
  cursor: pointer;
  fill: transparent;
  pointer-events: all;
}

.episode-night-target:hover,
.episode-night-target:focus-visible {
  fill: rgba(182, 83, 67, 0.09);
  outline: none;
  stroke: var(--ember-dark);
  stroke-width: 2;
}

.chart-interaction-hint {
  margin: 0;
  padding: 0.7rem 1.5rem 0;
  color: var(--ink-soft);
  font-size: 0.75rem;
  text-align: center;
}

.night-chart-tooltip {
  position: fixed;
  z-index: 500;
  width: min(19rem, calc(100vw - 1.5rem));
  padding: 0.9rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 0.65rem;
  background: rgba(23, 27, 41, 0.96);
  box-shadow: 0 16px 42px rgba(17, 22, 37, 0.3);
  color: #f8f3ec;
  pointer-events: none;
}

.night-chart-tooltip p,
.night-chart-tooltip > strong,
.night-chart-tooltip > span,
.night-chart-tooltip ul {
  margin: 0;
}

.night-chart-tooltip p {
  font-weight: 700;
}

.night-chart-tooltip > strong {
  display: block;
  margin-top: 0.15rem;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 400;
}

.night-chart-tooltip > span {
  display: block;
  margin-top: 0.45rem;
  color: rgba(248, 243, 236, 0.6);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.night-chart-tooltip ul {
  display: grid;
  gap: 0.3rem;
  padding: 0.55rem 0 0;
  list-style: none;
}

.night-chart-tooltip li {
  display: grid;
  grid-template-columns: 0.75rem 1fr auto;
  gap: 0.45rem;
  align-items: center;
  font-size: 0.78rem;
}

.night-chart-tooltip li i {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--city);
}

.night-chart-tooltip li strong {
  font-variant-numeric: tabular-nums;
}

.chart-day-tick {
  stroke: rgba(35, 35, 33, 0.08);
  stroke-width: 1;
}

.chart-grid {
  stroke: rgba(35, 35, 33, 0.12);
  stroke-dasharray: 2 5;
}

.chart-axis-label,
.chart-threshold-label,
.city-line text {
  fill: var(--ink-soft);
  font: 12px var(--sans);
}

.chart-warm-zone {
  fill: rgba(182, 83, 67, 0.055);
}

.chart-threshold {
  stroke: var(--ember-dark);
  stroke-dasharray: 7 5;
  stroke-width: 1.5;
}

.chart-threshold-label {
  fill: var(--ember-dark);
  font-weight: 700;
}

.city-line polyline {
  fill: none;
  stroke: var(--city);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
}

.city-line circle {
  fill: #fffdf9;
  stroke: var(--city);
  stroke-width: 2;
}

.city-line .selected-observation {
  fill: #fff;
  stroke-width: 3;
}

.city-line .minimum-marker {
  fill: #fff;
  stroke-width: 3;
}

.city-line .threshold-below-marker {
  fill: var(--city);
  stroke: #fff;
  stroke-width: 2;
}

.city-line text {
  fill: var(--city);
  font-weight: 700;
}

.chart-symbol-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1.5rem;
  padding: 0.8rem 1.5rem 1rem;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.7rem;
}

.chart-symbol-legend span {
  display: inline-flex;
  gap: 0.55rem;
  align-items: center;
}

.chart-symbol-legend i {
  display: inline-block;
  width: 0.7rem;
  height: 0.7rem;
  flex: none;
  border: 2px solid var(--ink-soft);
  background: #fff;
}

.chart-symbol-legend .symbol-minimum {
  border-radius: 50%;
}

.chart-symbol-legend .symbol-below {
  transform: rotate(45deg) scale(0.8);
  background: var(--ink-soft);
}

.night-readouts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.night-readout {
  padding: 1.25rem 1.35rem 1.4rem;
}

.night-readout + .night-readout {
  border-left: 1px solid var(--line);
}

.night-readout header {
  display: flex;
  gap: 0.6rem;
  align-items: center;
}

.night-readout h4,
.night-readout p,
.night-readout dl,
.night-readout dd {
  margin: 0;
}

.night-readout h4 {
  color: var(--city);
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 400;
}

.night-readout header p,
.night-readout dt {
  color: var(--ink-soft);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.night-readout dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.night-readout dl > div {
  min-width: 0;
  padding-top: 0.75rem;
  border-top: 2px solid color-mix(in srgb, var(--city) 34%, transparent);
}

.night-readout dd {
  display: grid;
  margin-top: 0.35rem;
}

.night-readout dd strong {
  color: var(--city);
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2.3vw, 1.8rem);
  font-weight: 400;
}

.night-readout dd span {
  color: var(--ink-soft);
  font-size: 0.68rem;
  line-height: 1.35;
}

.night-readout .is-relief dd strong {
  color: var(--cool);
}

.night-readout .is-threshold dd strong {
  color: #8a6330;
}

.table-scroll {
  margin-top: 2rem;
  overflow-x: auto;
}

.data-table {
  width: 100%;
  min-width: 46rem;
  border-collapse: collapse;
  text-align: left;
}

.data-table caption {
  padding-bottom: 0.7rem;
  color: var(--ink-soft);
  font-size: 0.78rem;
  text-align: left;
}

.data-table th,
.data-table td {
  padding: 0.8rem 0.55rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.78rem;
  white-space: nowrap;
}

.table-subvalue {
  display: block;
  margin-top: 0.2rem;
  color: var(--ink-soft);
  font-size: 0.66rem;
}

.data-table thead th {
  color: var(--ink-soft);
  font-size: 0.67rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.city-dot {
  display: inline-block;
  width: 0.58rem;
  height: 0.58rem;
  margin-right: 0.55rem;
  border-radius: 50%;
  background: var(--city);
}

.status-pill {
  display: inline-block;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: #e0ece9;
  color: #24575b;
  font-size: 0.68rem;
  font-weight: 700;
}

.status-pill.is-hot {
  background: #f0d9d0;
  color: #79372f;
}

.status-pill.is-threshold {
  background: #eee3ce;
  color: #76542b;
}

.chart-reading {
  max-width: 45rem;
  margin: 1.6rem auto;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 1.08rem;
  text-align: center;
}

.proof-drawer {
  max-width: 55rem;
  margin: clamp(2.5rem, 6vw, 5rem) auto 0;
  border-block: 1px solid var(--line);
}

.proof-drawer summary,
.backstage summary {
  padding: 1rem 0;
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.proof-drawer-body {
  padding: 0 0 1.5rem;
  color: var(--ink-soft);
  font-size: 0.86rem;
}

.proof-drawer-body strong {
  color: var(--ink);
}

.source-list {
  padding-left: 1.2rem;
}

.source-list a,
.proof-drawer a {
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.scene-transition {
  max-width: 64rem;
  margin: clamp(4rem, 8vw, 7rem) auto 0;
  padding-top: 2.2rem;
  border-top: 1px solid var(--line);
  text-align: center;
}

.scene-position {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.scene-transition-copy {
  max-width: 43rem;
  margin: 0.7rem auto 0;
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2.3vw, 1.85rem);
  line-height: 1.3;
}

.scene-transition-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 1.25rem;
  align-items: center;
  margin-top: 1.8rem;
}

.scene-previous {
  display: inline-flex;
  gap: 0.65rem;
  align-items: center;
  justify-self: start;
  padding: 0.7rem 0;
  border: 0;
  border-bottom: 1px solid transparent;
  background: transparent;
  color: var(--ink-soft);
  font-size: 0.8rem;
}

.scene-previous:hover {
  border-bottom-color: currentColor;
}

.scene-next {
  grid-column: 2;
  justify-self: center;
  min-height: 3.2rem;
  margin: 0;
  padding: 0.85rem 1.2rem;
  border: 1px solid var(--ember-dark);
  border-radius: 999px;
  background: var(--ember-dark);
  color: #fff;
  text-align: left;
}

.scene-sequence {
  background: var(--paper-deep);
}

.sequence-rule {
  display: flex;
  gap: clamp(0.6rem, 2vw, 1.5rem);
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
  font-family: var(--serif);
  font-size: clamp(1rem, 2vw, 1.35rem);
}

.sequence-rule strong {
  padding: 0.6rem 0.9rem;
  border-radius: 0.25rem;
  background: var(--ink);
  color: var(--paper);
  font-weight: 400;
}

.calendar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: flex-end;
  margin-bottom: 1rem;
  color: var(--ink-soft);
  font-size: 0.72rem;
}

.calendar-legend span {
  display: flex;
  gap: 0.4rem;
  align-items: center;
}

.calendar-legend i {
  display: block;
  width: 0.8rem;
  height: 0.8rem;
  border: 1px solid var(--line);
  border-radius: 2px;
}

.legend-relief { background: #f7f2e9; }
.legend-hot { background: #d99a7e; }
.legend-sequence { background: #88433e; box-shadow: inset 0 -3px #f5d165; }

.sequence-calendar {
  overflow: hidden;
  border: 1px solid rgba(35, 35, 33, 0.13);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.45);
}

.calendar-row {
  display: grid;
  grid-template-columns: 9rem minmax(22rem, 1fr) 11rem;
  gap: 1.2rem;
  align-items: center;
  padding: 1.4rem;
}

.calendar-row + .calendar-row {
  border-top: 1px solid var(--line);
}

.calendar-row h3,
.calendar-row p {
  margin: 0;
}

.calendar-row h3 {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 400;
}

.calendar-row header p {
  color: var(--ink-soft);
  font-size: 0.68rem;
}

.calendar-cells {
  display: grid;
  grid-template-columns: repeat(10, minmax(1.8rem, 1fr));
  gap: 0.25rem;
}

.calendar-night {
  position: relative;
  display: grid;
  aspect-ratio: 1.05;
  min-width: 0;
  place-items: end center;
  padding: 0;
  border: 0;
  border-radius: 2px;
  background: #f7f2e9;
  color: rgba(35, 35, 33, 0.55);
}

.calendar-night span {
  font-size: 0.7rem;
  line-height: 1;
}

.calendar-night.is-hot {
  background: color-mix(in srgb, var(--city) 62%, #f7f2e9);
  color: #fff;
}

.calendar-night.is-sequence {
  box-shadow: inset 0 -3px #f2d264;
}

.calendar-night.is-selected {
  z-index: 1;
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.sequence-result {
  display: grid;
}

.sequence-result strong {
  color: var(--city);
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 400;
}

.sequence-result span {
  color: var(--ink-soft);
  font-size: 0.67rem;
}

.sequence-insight {
  max-width: 51rem;
  margin: clamp(3rem, 7vw, 6rem) auto 0;
  text-align: center;
}

.sequence-insight p,
.sequence-insight strong {
  display: block;
  margin: 0;
}

.sequence-insight strong {
  margin-top: 0.5rem;
  font-family: var(--serif);
  font-size: clamp(1.8rem, 4vw, 3.5rem);
  font-weight: 400;
  line-height: 1.12;
}

.text-button {
  margin-top: 1.3rem;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: transparent;
  color: var(--ember-dark);
}

.scene-map {
  background: #f7f3ed;
}

.map-intro {
  max-width: 44rem;
  margin: 0 auto 2rem;
  text-align: center;
}

.map-intro p,
.map-intro strong {
  display: block;
  margin: 0;
}

.map-intro p {
  color: var(--ink-soft);
}

.map-intro strong {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 400;
}

.map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(15rem, 0.65fr);
  min-height: 39rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1.2rem;
  background: #ede8df;
  box-shadow: var(--shadow);
}

.map-frame {
  position: relative;
  display: grid;
  min-height: 37rem;
  place-items: center;
  overflow: hidden;
}

.france-map {
  width: min(100%, 42rem);
  max-height: 39rem;
}

.region-shapes path {
  fill: #e2dbcf;
  stroke: #f7f3ed;
  stroke-width: 1.2;
}

.map-point {
  color: #934139;
  cursor: pointer;
}

.map-point.duration-7 { color: #c98468; }
.map-point.duration-9 { color: #ae594d; }
.map-point.duration-10 { color: #8d3c40; }
.map-point.duration-12 { color: #5c2639; }

.map-point-halo {
  fill: currentColor;
  fill-opacity: 0.18;
  stroke: currentColor;
  stroke-opacity: 0.55;
  stroke-width: 1;
  transition: fill 180ms ease, stroke 180ms ease;
}

.map-point-core {
  fill: currentColor;
}

.map-point text {
  fill: var(--ink);
  font: 700 13px var(--sans);
  paint-order: stroke;
  stroke: #ede8df;
  stroke-width: 4px;
}

.map-point .map-point-value {
  fill: var(--ink-soft);
  font-size: 11px;
  font-weight: 400;
}

.map-point.is-selected .map-point-halo {
  fill: rgba(182, 79, 75, 0.34);
  stroke: var(--ember-dark);
  stroke-width: 2;
}

.map-caption {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.68rem;
}

.point-map-legend {
  position: absolute;
  top: 1rem;
  left: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.8rem;
  align-items: center;
  padding: 0.55rem 0.7rem;
  border-radius: 0.35rem;
  background: rgba(247, 243, 237, 0.86);
  color: var(--ink-soft);
  font-size: 0.7rem;
  backdrop-filter: blur(8px);
}

.point-map-legend p {
  margin: 0 0.15rem 0 0;
  color: var(--ink);
  font-weight: 700;
}

.point-map-legend span {
  display: flex;
  gap: 0.3rem;
  align-items: center;
}

.point-map-legend i {
  display: block;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background: #934139;
}

.point-map-legend .duration-7 { background: #c98468; }
.point-map-legend .duration-9 { background: #ae594d; }
.point-map-legend .duration-10 { background: #8d3c40; }
.point-map-legend .duration-12 { background: #5c2639; }

.map-detail {
  display: grid;
  align-content: center;
  padding: clamp(1.5rem, 4vw, 3.5rem);
  background: var(--night);
  color: #f8f3ec;
}

.map-detail p {
  margin: 0.4rem 0;
}

.map-detail-kicker {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.map-detail-value {
  display: grid;
  margin: 1.2rem 0 !important;
}

.map-detail-value strong {
  font-family: var(--serif);
  font-size: clamp(4rem, 8vw, 7rem);
  font-weight: 400;
  line-height: 0.85;
}

.map-detail-value span {
  max-width: 10rem;
  color: rgba(248, 243, 236, 0.7);
}

.map-detail-note {
  margin-top: 1.5rem !important;
  color: rgba(248, 243, 236, 0.52);
  font-size: 0.72rem;
}

.point-list {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  margin-top: 1rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 0.7rem;
}

.point-list button {
  display: flex;
  gap: 0.4rem;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
  padding: 0.7rem;
  border: 0;
  background: rgba(255, 255, 255, 0.55);
  color: var(--ink-soft);
}

.point-list button + button {
  border-left: 1px solid var(--line);
}

.point-list button.is-active {
  background: var(--ink);
  color: #fff;
}

.point-list strong {
  font-family: var(--serif);
  font-size: 1.2rem;
}

.scene-history {
  background: var(--night);
  color: #f8f3ec;
}

.scene-history .scene-number,
.scene-climate .scene-number {
  color: #e18a6c;
}

.scene-history .scene-eyebrow,
.scene-history .scene-question {
  color: rgba(248, 243, 236, 0.62);
}

.history-count {
  max-width: 62rem;
  margin: 0 auto 5rem;
  text-align: center;
}

.history-count p {
  display: flex;
  gap: 1.4rem;
  align-items: center;
  justify-content: center;
  margin: 0;
}

.history-count strong {
  font-family: var(--serif);
  font-size: clamp(7rem, 17vw, 15rem);
  font-weight: 400;
  letter-spacing: normal;
  line-height: 0.8;
}

.history-count span {
  max-width: 16rem;
  color: rgba(248, 243, 236, 0.72);
  font-family: var(--serif);
  font-size: 1.25rem;
  text-align: left;
}

.history-count small {
  color: rgba(248, 243, 236, 0.42);
}

.history-count .history-share {
  gap: 0.7rem;
  margin: 2rem auto 1rem;
}

.history-count .history-share strong {
  color: #e8a186;
  font-size: clamp(2.1rem, 5vw, 4rem);
  letter-spacing: normal;
  line-height: 1;
}

.history-count .history-share span {
  max-width: none;
  font-family: var(--sans);
  font-size: 0.9rem;
}

.history-timeline {
  margin: 0;
}

.history-timeline-scroll {
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.035);
}

.history-timeline-svg {
  display: block;
  width: 100%;
  min-width: 62rem;
  height: auto;
}

.history-recent-zone {
  fill: rgba(225, 138, 108, 0.055);
}

.history-decade-tick {
  stroke: rgba(248, 243, 236, 0.11);
  stroke-width: 1;
}

.history-decade-tick.is-endpoint {
  stroke: rgba(248, 243, 236, 0.3);
}

.history-axis {
  stroke: rgba(248, 243, 236, 0.55);
  stroke-width: 1.5;
}

.history-wave {
  stroke-linecap: round;
  stroke-width: 2.6;
}

.history-wave.is-earlier {
  stroke: rgba(248, 243, 236, 0.46);
}

.history-wave.is-recent {
  stroke: #df8a70;
}

.history-wave.is-2026 {
  stroke: #f5d36d;
  stroke-width: 4;
}

.history-axis-label,
.history-zone-label {
  fill: rgba(248, 243, 236, 0.56);
  font: 13px var(--sans);
}

.history-axis-label.is-endpoint {
  fill: #f8f3ec;
  font-weight: 700;
}

.history-zone-label {
  fill: rgba(248, 243, 236, 0.62);
  font-size: 14px;
  font-weight: 700;
}

.history-zone-label.is-recent {
  fill: #e8a186;
}

.history-timeline figcaption {
  max-width: 62rem;
  margin: 0.9rem auto 0;
  color: rgba(248, 243, 236, 0.55);
  font-size: 0.78rem;
  line-height: 1.55;
}

.history-periods {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)) minmax(18rem, 1.3fr);
  gap: 1rem;
  margin-top: 2rem;
}

.history-periods article,
.history-periods > p {
  min-height: 10rem;
  padding: 1.4rem;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 0.8rem;
  background: rgba(255, 255, 255, 0.035);
}

.history-periods article {
  display: grid;
  grid-template-columns: auto 1fr;
  align-content: center;
  align-items: end;
  gap: 0 1rem;
}

.history-periods article p,
.history-periods article span {
  grid-column: 2;
  margin: 0;
  color: rgba(248, 243, 236, 0.62);
  font-size: 0.8rem;
}

.history-periods article strong {
  grid-row: 1 / span 2;
  color: #e8a186;
  font-family: var(--serif);
  font-size: clamp(3.5rem, 7vw, 6rem);
  font-weight: 400;
  line-height: 0.85;
}

.history-periods > p {
  display: grid;
  align-content: center;
  color: rgba(248, 243, 236, 0.68);
  font-family: var(--serif);
  font-size: 1.2rem;
  line-height: 1.45;
}

.history-periods > p strong {
  color: #f8f3ec;
  font-weight: 400;
}

.history-year-details {
  max-width: 62rem;
  margin: 2rem auto 0;
  border-block: 1px solid rgba(255, 255, 255, 0.15);
}

.history-year-details summary {
  padding: 1rem 0;
  cursor: pointer;
  color: rgba(248, 243, 236, 0.72);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.history-year-details ul {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 0.5rem;
  padding: 0 0 1.2rem;
  margin: 0;
  list-style: none;
}

.history-year-details li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 0.45rem 0.55rem;
  border-radius: 0.25rem;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(248, 243, 236, 0.62);
  font-size: 0.72rem;
}

.history-year-details li strong {
  color: #e8a186;
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 400;
}

.honesty-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem 3rem;
  max-width: 55rem;
  margin: 5rem auto 0;
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.04);
}

.honesty-card > p:first-child {
  font-family: var(--serif);
  font-size: 1.5rem;
}

.honesty-card ul {
  margin: 0;
  color: rgba(248, 243, 236, 0.7);
}

.honesty-no {
  grid-column: 1 / -1;
  padding-top: 1rem;
  margin: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: #efb099;
  font-weight: 700;
}

.honesty-no span {
  margin-right: 0.5rem;
}

.scene-history .proof-drawer {
  border-color: rgba(255, 255, 255, 0.18);
}

.scene-history .proof-drawer-body {
  color: rgba(248, 243, 236, 0.67);
}

.scene-history .proof-drawer-body strong,
.scene-history .proof-drawer a {
  color: #f8f3ec;
}

.scene-history .scene-transition,
.scene-climate .scene-transition {
  border-top-color: rgba(255, 255, 255, 0.18);
}

.scene-history .scene-position,
.scene-history .scene-previous,
.scene-climate .scene-position,
.scene-climate .scene-previous {
  color: rgba(248, 243, 236, 0.62);
}

.scene-history .scene-next,
.scene-climate .scene-next {
  border-color: #f8f3ec;
  background: #f8f3ec;
  color: #171b29;
}

.scene-climate {
  background: #252936;
  color: #f8f3ec;
}

.scene-climate .scene-eyebrow,
.scene-climate .scene-question {
  color: rgba(248, 243, 236, 0.65);
}

.climate-rule {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  align-items: center;
  justify-content: center;
  max-width: 70rem;
  margin: 0 auto 3rem;
  padding: 1.1rem 1.5rem;
  border-block: 1px solid rgba(255, 255, 255, 0.16);
}

.climate-rule p,
.climate-rule strong {
  margin: 0;
}

.climate-rule p {
  color: rgba(248, 243, 236, 0.55);
}

.climate-rule ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.climate-rule li {
  padding: 0.25rem 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  font-size: 0.7rem;
}

.climate-rule strong {
  color: #f2b29d;
}

.climate-triptych {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.climate-map-card {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.035);
}

.climate-map-card header {
  padding: 1.2rem 1.4rem 0;
}

.climate-map-card header p,
.climate-map-card h3 {
  margin: 0;
}

.climate-map-card header p {
  color: rgba(248, 243, 236, 0.5);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.climate-map-card h3 {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  font-weight: 400;
}

.climate-map-card svg {
  display: block;
  width: 100%;
  margin: -1rem 0 -2rem;
}

.climate-region-shapes path {
  cursor: pointer;
  stroke: #252936;
  stroke-width: 1.25;
  transition: filter 150ms ease, stroke-width 150ms ease;
}

.climate-region-shapes path:hover,
.climate-region-shapes path.is-selected {
  filter: brightness(1.2);
  stroke: #fff;
  stroke-width: 3;
}

.climate-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1rem;
  align-items: center;
  justify-content: center;
  margin: 1.5rem 0;
  color: rgba(248, 243, 236, 0.67);
  font-size: 0.68rem;
}

.climate-legend p {
  margin: 0 0.4rem 0;
  color: #fff;
  font-weight: 700;
}

.climate-legend span {
  display: flex;
  gap: 0.35rem;
  align-items: center;
}

.climate-legend i {
  display: block;
  width: 1.4rem;
  height: 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: var(--swatch);
}

.climate-legend .swatch-0 { --swatch: #eee9df; }
.climate-legend .swatch-1 { --swatch: #e8d5c1; }
.climate-legend .swatch-2 { --swatch: #ddb092; }
.climate-legend .swatch-3 { --swatch: #cc8065; }
.climate-legend .swatch-4 { --swatch: #b64f4b; }
.climate-legend .swatch-5 { --swatch: #87313d; }
.climate-legend .swatch-6 { --swatch: #54233a; }

.climate-detail {
  display: grid;
  grid-template-columns: minmax(11rem, 0.7fr) minmax(0, 2fr);
  gap: 1rem 2rem;
  align-items: center;
  max-width: 72rem;
  margin: 2.5rem auto 0;
  padding: clamp(1.2rem, 3vw, 2rem);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.055);
}

.climate-detail p {
  margin: 0;
}

.climate-detail select {
  width: 100%;
  margin-top: 0.4rem;
  padding: 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 0.3rem;
  background: #343948;
  color: #fff;
}

.climate-values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.climate-values article {
  display: grid;
  padding-left: 1rem;
  border-left: 2px solid rgba(255, 255, 255, 0.2);
}

.climate-values article p,
.climate-values article span {
  color: rgba(248, 243, 236, 0.58);
  font-size: 0.82rem;
}

.climate-values strong {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 400;
  line-height: 1;
}

.climate-detail-note {
  grid-column: 2;
  color: rgba(248, 243, 236, 0.52);
  font-size: 0.7rem;
}

.climate-headline {
  display: grid;
  grid-template-columns: repeat(2, 1fr) minmax(15rem, 1.5fr);
  gap: 1rem;
  max-width: 72rem;
  margin: 4rem auto 0;
}

.climate-headline article {
  padding: 1.5rem;
  border-radius: 0.7rem;
  background: #f3eee6;
  color: var(--ink);
}

.climate-headline article p,
.climate-headline article span {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.82rem;
}

.climate-headline article strong {
  display: block;
  margin: 0.4rem 0;
  font-family: var(--serif);
  font-size: 4rem;
  font-weight: 400;
  line-height: 0.9;
}

.climate-headline > p {
  align-self: center;
  color: rgba(248, 243, 236, 0.6);
  font-family: var(--serif);
  font-size: 1.05rem;
}

.missing-components {
  max-width: 72rem;
  margin: 4rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.missing-components > p {
  max-width: 52rem;
  color: rgba(248, 243, 236, 0.62);
}

.missing-components ul {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding: 0;
  list-style: none;
}

.missing-components li {
  display: grid;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.5rem;
  color: rgba(248, 243, 236, 0.58);
  font-size: 0.78rem;
}

.missing-components li span {
  color: #f8f3ec;
  font-family: var(--serif);
  font-size: 1.25rem;
}

.scene-climate .proof-drawer {
  border-color: rgba(255, 255, 255, 0.16);
}

.scene-climate .proof-drawer-body,
.scene-climate .proof-drawer-body strong,
.scene-climate .proof-drawer a {
  color: #f8f3ec;
}

.scene-epilogue {
  background: var(--paper);
}

.boundary-stack {
  max-width: 64rem;
  margin: 0 auto;
}

.boundary-stack article {
  display: grid;
  grid-template-columns: 4rem 1fr;
  gap: 1.5rem;
  padding: 1.3rem 0;
  border-top: 1px solid var(--line);
}

.boundary-stack article:last-child {
  border-bottom: 1px solid var(--line);
}

.boundary-stack > article:first-child {
  color: var(--ember-dark);
}

.boundary-stack span {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-style: italic;
}

.boundary-stack h3,
.boundary-stack p {
  margin: 0;
}

.boundary-stack h3 {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.7vw, 2rem);
  font-weight: 400;
}

.boundary-stack p {
  max-width: 43rem;
  margin-top: 0.25rem;
  color: var(--ink-soft);
  font-size: 0.84rem;
}

.closing-line {
  max-width: 61rem;
  margin: clamp(5rem, 10vw, 9rem) auto;
  font-family: var(--serif);
  font-size: clamp(2rem, 5.2vw, 4.8rem);
  font-weight: 400;
  letter-spacing: normal;
  line-height: 1.07;
  text-align: center;
}

.closing-line strong {
  color: var(--ember-dark);
  font-weight: 400;
}

.future-links {
  max-width: 55rem;
  margin: 0 auto;
  padding: 1.6rem;
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  background: rgba(255, 255, 255, 0.45);
}

.future-links p {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.future-links ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  padding: 0;
  list-style: none;
}

.future-links li {
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  background: var(--paper-deep);
}

.future-links small {
  color: var(--ink-soft);
}

.backstage {
  max-width: 64rem;
  margin: 3rem auto 0;
  border-block: 1px solid var(--line);
}

.backstage-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding-bottom: 2rem;
}

.backstage-grid section {
  padding: 1rem;
  background: rgba(255, 255, 255, 0.45);
}

.backstage-grid h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 400;
}

.backstage-grid p,
.backstage-grid li {
  color: var(--ink-soft);
  font-size: 0.72rem;
}

.backstage-grid ul {
  padding-left: 1.1rem;
}

.scene-transition .replay {
  margin: 0;
}

.site-footer {
  display: grid;
  grid-template-columns: auto minmax(17rem, 1fr) auto;
  gap: clamp(1.75rem, 5vw, 4.75rem);
  align-items: center;
  padding: 1.4rem clamp(1.5rem, 6vw, 6.5rem);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: #111625;
  color: #f8f3ec;
}

.footer-brand {
  display: flex;
  gap: 0.9rem;
  align-items: center;
}

.footer-logo {
  display: block;
  width: 5.2rem;
  flex: none;
}

.footer-logo img {
  display: block;
  width: 100%;
  height: auto;
  transition: opacity 160ms ease;
}

.footer-logo:hover img {
  opacity: 0.76;
}

.footer-brand > span,
.site-footer p,
.site-footer a {
  color: rgba(248, 243, 236, 0.58);
  font-size: 0.8rem;
}

.footer-brand > span {
  max-width: 12rem;
  line-height: 1.35;
}

.site-footer p {
  max-width: 36rem;
  margin: 0;
  line-height: 1.55;
}

.footer-links {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  justify-content: flex-end;
  white-space: nowrap;
}

.site-footer a {
  text-decoration: none;
}

.site-footer a:hover {
  color: #f6c5b5;
}

.site-footer .footer-project {
  color: rgba(248, 243, 236, 0.78);
  font-weight: 700;
}

.site-footer .footer-owner {
  color: rgba(248, 243, 236, 0.9);
  font-weight: 700;
}

@media (max-width: 76rem) {
  .edition,
  .scene-nav a span:first-child {
    display: none;
  }

  .scene-nav a {
    font-size: 0.58rem;
  }

  .calendar-row {
    grid-template-columns: 8rem minmax(22rem, 1fr);
    overflow-x: auto;
  }

  .sequence-result {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}

@media (max-width: 58rem) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .scene-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    padding: 1rem;
    background: rgba(23, 27, 41, 0.97);
  }

  .scene-nav.is-open {
    display: block;
  }

  .scene-nav ol {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
  }

  .scene-nav a {
    padding: 0.7rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.72rem;
  }

  .opening-cities {
    grid-template-columns: 1fr;
  }

  .opening-city {
    grid-template-columns: 1fr auto;
    gap: 0.1rem 1rem;
    align-items: center;
    text-align: left;
  }

  .opening-city + .opening-city {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    border-left: 0;
  }

  .opening-city::before {
    top: 25%;
    bottom: 25%;
    left: -2px;
    width: 3px;
    height: auto;
  }

  .opening-city strong {
    grid-row: 1 / span 2;
    grid-column: 2;
  }

  .comparison-chart-header {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .comparison-chart-legend {
    flex-wrap: wrap;
  }

  .site-footer {
    grid-template-columns: auto 1fr;
    gap: 1rem 2rem;
  }

  .site-footer > p {
    justify-self: end;
    text-align: right;
  }

  .footer-links {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .map-layout,
  .climate-detail {
    grid-template-columns: 1fr;
  }

  .map-detail {
    min-height: 18rem;
  }

  .point-list {
    grid-template-columns: repeat(3, 1fr);
  }

  .point-list button:nth-child(4) {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .point-list button:nth-child(5),
  .point-list button:nth-child(6) {
    border-top: 1px solid var(--line);
  }

  .history-periods {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .history-periods > p {
    grid-column: 1 / -1;
  }

  .history-year-details ul {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .climate-triptych {
    grid-template-columns: 1fr;
  }

  .climate-map-card {
    display: grid;
    grid-template-columns: 12rem 1fr;
    align-items: center;
  }

  .climate-map-card svg {
    max-height: 25rem;
  }

  .climate-detail-note {
    grid-column: 1;
  }

  .climate-headline {
    grid-template-columns: repeat(2, 1fr);
  }

  .climate-headline > p {
    grid-column: 1 / -1;
  }

  .backstage-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 40rem) {
  .scene-inner,
  .scene-inner-wide,
  .scene-inner-extra-wide {
    width: min(100% - 1.25rem, 92rem);
  }

  .scene-heading {
    grid-template-columns: 1fr;
  }

  .scene-number {
    grid-row: auto;
    flex-direction: row;
    justify-content: space-between;
    margin-bottom: 1.5rem;
  }

  .scene-number span:last-child {
    width: auto;
    padding: 0;
    border: 0;
    font-size: 0.8rem;
  }

  .opening-inner {
    padding-top: 8rem;
  }

  .opening-inner h1 {
    font-size: clamp(3.4rem, 18vw, 5.3rem);
  }

  .opening-contract {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.15rem;
    margin-top: 1.8rem;
  }

  .opening-contract strong {
    line-height: 1;
  }

  .night-stage {
    padding: 1rem 0.65rem;
  }

  .night-toolbar label {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .night-slider-controls {
    gap: 0.55rem;
  }

  .comparison-chart-header {
    padding: 1.1rem;
  }

  .comparison-chart-legend {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    gap: 0.7rem;
  }

  .comparison-chart-legend i {
    width: 1.1rem;
  }

  .comparison-chart-legend small {
    display: none;
  }

  .chart-symbol-legend {
    padding-inline: 1rem;
  }

  .night-readouts {
    grid-template-columns: 1fr;
  }

  .night-readout + .night-readout {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .sequence-rule {
    display: grid;
    grid-template-columns: 1fr auto;
    justify-items: center;
  }

  .sequence-rule strong {
    grid-column: 1 / -1;
  }

  .calendar-row {
    display: block;
    padding: 1rem;
  }

  .calendar-cells {
    width: 100%;
    margin: 1rem 0;
  }

  .map-frame {
    min-height: 27rem;
  }

  .point-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .point-list button:nth-child(3),
  .point-list button:nth-child(5) {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .point-list button:nth-child(4) {
    border-left: 1px solid var(--line);
  }

  .history-count p {
    display: grid;
  }

  .history-count span {
    margin: 0 auto;
    text-align: center;
  }

  .history-periods {
    grid-template-columns: 1fr;
  }

  .history-periods > p {
    grid-column: 1;
  }

  .history-year-details ul {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .honesty-card {
    grid-template-columns: 1fr;
    padding: 1.2rem;
  }

  .honesty-no {
    grid-column: 1;
  }

  .climate-rule {
    justify-content: flex-start;
  }

  .climate-map-card {
    display: block;
  }

  .climate-values {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .climate-values article {
    padding-left: 0.55rem;
  }

  .climate-values strong {
    font-size: 2rem;
  }

  .climate-headline,
  .missing-components ul {
    grid-template-columns: 1fr;
  }

  .climate-headline > p {
    grid-column: 1;
  }

  .boundary-stack article {
    grid-template-columns: 2.5rem 1fr;
    gap: 0.6rem;
  }

  .future-links ul {
    display: grid;
  }

  .scene-transition {
    padding-top: 1.7rem;
  }

  .scene-transition-actions {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .scene-previous {
    justify-self: center;
    grid-row: 1;
  }

  .scene-next {
    grid-column: 1;
    grid-row: 2;
    width: min(100%, 24rem);
    justify-self: center;
  }

  .site-footer {
    grid-template-columns: 1fr;
    gap: 0.85rem;
    padding-inline: 1.25rem;
  }

  .site-footer > p {
    justify-self: start;
    text-align: left;
  }

  .footer-links {
    grid-column: auto;
    flex-wrap: wrap;
    gap: 0.55rem 1rem;
  }
}

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

  .reveal {
    transform: none;
    opacity: 1;
  }
}

@media print {
  .site-header,
  .site-footer,
  .scene-transition,
  .enter-story,
  .replay,
  .night-toolbar,
  .point-list {
    display: none !important;
  }

  .scene {
    min-height: 0;
    break-inside: avoid;
  }

  .scene-opening,
  .scene-history,
  .scene-climate {
    background: #fff;
    color: #111;
  }

  .reveal {
    transform: none;
    opacity: 1;
  }
}
