﻿:root {
  --ink: #000000;
  --muted: #5f5f5f;
  --paper: #ffffff;
  --white: #ffffff;
  --red: #ff0000;
  --terracotta: #ff0000;
  --green: #000000;
  --line: rgba(0, 0, 0, 0.16);
  --line-dark: rgba(255, 255, 255, 0.22);
  --shadow: none;
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --serif: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --section-x: clamp(1.25rem, 4vw, 4.5rem);
  --section-y: clamp(5rem, 10vw, 9rem);
  --ease: 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  overflow-x: hidden;
}

body.has-story-fullscreen {
  overflow: hidden;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 60;
  width: 0;
  height: 4px;
  background: var(--red);
  pointer-events: none;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 4px;
}

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

h1 {
  max-width: 12ch;
  margin-bottom: 1.5rem;
  font-size: clamp(4rem, 8.4vw, 8.8rem);
  line-height: 0.92;
  font-weight: 800;
  letter-spacing: 0;
}

h2 {
  max-width: 12ch;
  margin-bottom: 1.5rem;
  font-size: clamp(2.35rem, 6.4vw, 6.5rem);
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 0.85rem;
  font-size: clamp(1.25rem, 2vw, 1.7rem);
  line-height: 1.2;
}

p {
  max-width: 66ch;
  margin-bottom: 1.15rem;
  font-size: clamp(1rem, 1.2vw, 1.18rem);
}

figure {
  margin: 0;
}

figcaption {
  margin-top: 0.8rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  transform: translateY(-160%);
  padding: 0.75rem 1rem;
  background: var(--ink);
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
}

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.5rem;
  align-items: center;
  padding: 1.25rem var(--section-x);
  color: var(--white);
  transition: background var(--ease), color var(--ease), padding var(--ease), box-shadow var(--ease);
}

.site-header.scrolled {
  padding-top: 0.8rem;
  padding-bottom: 0.8rem;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 1px 0 var(--line);
  backdrop-filter: blur(18px);
}

.site-header.on-diagrams {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 1px 0 var(--line);
}

.site-header.on-diagrams .desktop-nav a.active {
  color: var(--red);
}

.brand {
  display: inline-flex;
  flex-direction: column;
  text-decoration: none;
  text-transform: uppercase;
}

.brand span {
  font-size: 0.9rem;
  font-weight: 800;
}

.brand small {
  margin-top: 0.15rem;
  font-size: 0.68rem;
  font-weight: 600;
  opacity: 0.72;
}

.desktop-nav {
  display: flex;
  justify-content: center;
  gap: clamp(1rem, 2.2vw, 2.4rem);
}

.desktop-nav a,
.lang-switch button {
  min-height: 44px;
  min-width: 44px;
  border: 0;
  background: transparent;
  color: inherit;
  font: 700 0.78rem var(--sans);
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  opacity: 0.74;
}

.desktop-nav a:hover,
.lang-switch button:hover,
.lang-switch button.active {
  opacity: 1;
}

.desktop-nav a.active {
  color: var(--red);
  opacity: 1;
}

.site-header.scrolled .desktop-nav a.active {
  color: var(--red);
}

.lang-switch {
  display: flex;
  gap: 0.75rem;
}

.hero,
.statement-section {
  position: relative;
  min-height: 100svh;
  padding: calc(var(--section-y) + 3rem) var(--section-x) var(--section-x);
  color: var(--white);
  background-position: center;
  background-size: cover;
}

.hero {
  display: grid;
  grid-template-rows: 1fr auto;
  align-items: end;
  overflow: hidden;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.22) 58%, rgba(0, 0, 0, 0.42)),
    linear-gradient(0deg, rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.05) 44%, rgba(0, 0, 0, 0.54));
}

.hero-inner,
.hero-facts,
.statement-content {
  position: relative;
  z-index: 1;
}

.hero-inner {
  max-width: 980px;
  padding-top: 4rem;
}

.hero h1 {
  color: var(--white);
  text-wrap: balance;
}

.eyebrow,
.section-kicker {
  margin-bottom: 1rem;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hero .eyebrow,
.statement-content .eyebrow {
  color: var(--red);
}

.hero-lead {
  max-width: 680px;
  margin-bottom: 0;
  font-family: var(--serif);
  font-size: clamp(1.15rem, 1.75vw, 1.65rem);
  color: rgba(255, 255, 255, 0.88);
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  max-width: 940px;
  margin-top: 4rem;
  background: var(--white);
  border: 1px solid var(--white);
  color: var(--ink);
}

.hero-facts div {
  min-height: 112px;
  padding: 1.2rem;
  background: var(--white);
}

.hero-facts span {
  display: block;
  margin-bottom: 0.35rem;
  font-size: clamp(1.5rem, 3.5vw, 3rem);
  font-weight: 800;
  line-height: 1;
}

.hero-facts small {
  display: block;
  max-width: 18ch;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
}

.intro-band,
.tools-section,
.diagram-section,
.project-viewer,
.split-section,
.concept-section,
.story-media,
.stats-section,
.timeline-section,
.dossier-section {
  padding: var(--section-y) var(--section-x);
}

.tools-section {
  background: var(--white);
}

.tools-intro {
  display: grid;
  grid-template-columns: 0.85fr 2fr;
  gap: clamp(2rem, 8vw, 8rem);
  margin-bottom: clamp(2rem, 5vw, 4.5rem);
}

.tools-intro h2 {
  max-width: 15ch;
}

.tools-intro p:not(.section-kicker) {
  max-width: 58ch;
  color: var(--muted);
  align-self: end;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--ink);
  border: 1px solid var(--line);
}

.tool-card {
  display: flex;
  min-height: 360px;
  flex-direction: column;
  padding: clamp(1.2rem, 2.8vw, 2.2rem);
  background: var(--white);
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
  overflow-wrap: anywhere;
}

.tool-card:hover,
.tool-card:focus-visible {
  transform: translateY(-4px);
  background: var(--ink);
  color: var(--white);
}

.tool-card:hover p,
.tool-card:focus-visible p {
  color: rgba(255, 255, 255, 0.84);
}

.tool-card:hover h3,
.tool-card:focus-visible h3,
.tool-card:hover strong,
.tool-card:focus-visible strong {
  color: var(--white);
}

.tool-card span {
  margin-bottom: 4rem;
  color: var(--red);
  font-size: 0.82rem;
  font-weight: 800;
}

.tool-card h3 {
  max-width: 14ch;
  font-size: clamp(1.55rem, 2.5vw, 2.5rem);
}

.tool-card p {
  color: var(--muted);
  font-size: 1rem;
}

.tool-card strong {
  margin-top: auto;
  color: var(--red);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.tool-card strong::after {
  content: " ->";
}

.intro-band {
  display: grid;
  grid-template-columns: 0.85fr 2fr;
  gap: clamp(2rem, 8vw, 8rem);
  background: var(--ink);
  color: var(--white);
}

.intro-band .section-kicker {
  color: var(--red);
}

.intro-copy h2 {
  max-width: 16ch;
}

.intro-copy p {
  font-family: var(--serif);
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(1.12rem, 1.7vw, 1.55rem);
}

.project-viewer {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.35fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
  background: var(--ink);
  color: var(--white);
}

.viewer-copy {
  position: sticky;
  top: 7rem;
  align-self: start;
}

.viewer-copy h2 {
  max-width: 11ch;
  color: var(--white);
}

.viewer-copy p:not(.section-kicker) {
  color: rgba(255, 255, 255, 0.72);
}

.viewer-controls {
  display: grid;
  gap: 0.75rem;
  margin-top: 2rem;
}

.viewer-controls button {
  display: flex;
  min-height: 56px;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
  font: 800 0.8rem var(--sans);
  text-align: left;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.viewer-controls button::after {
  content: "+";
  color: var(--red);
  font-size: 1.1rem;
}

.viewer-controls button:hover,
.viewer-controls button.active {
  transform: translateX(4px);
  border-color: var(--red);
  background: var(--red);
}

.viewer-controls button:hover::after,
.viewer-controls button.active::after {
  color: var(--white);
}

.viewer-media {
  position: relative;
}

.viewer-media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: contain;
  background: var(--white);
  box-shadow: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.viewer-media.is-changing img {
  opacity: 0.45;
  transform: scale(0.992);
}

.viewer-media figcaption {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  max-width: 50ch;
  margin: 0;
  padding: 0.8rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  color: var(--white);
  background: rgba(0, 0, 0, 0.64);
  backdrop-filter: blur(14px);
}

.diagram-section {
  position: relative;
  display: block;
  height: 145svh;
  min-height: 145svh;
  padding: 0;
  overflow: visible;
  background: var(--white);
  color: var(--ink);
  scroll-snap-align: start;
}

.diagram-copy,
.diagram-stage {
  position: relative;
  z-index: 1;
}

.diagram-copy {
  display: none;
}

.diagram-stage {
  position: sticky;
  top: 0;
  display: grid;
  width: 100%;
  height: 100svh;
  max-height: 100svh;
  min-height: 100svh;
  grid-template-columns: 1fr;
  grid-template-rows: minmax(0, 1fr) auto auto;
  align-items: stretch;
  padding: 0;
  overflow: hidden;
  background: var(--white);
}

.diagram-stage::before {
  content: "";
  display: none;
}

.diagram-grid-layer {
  position: absolute;
  inset: 0;
  z-index: 0;
  --diagram-grid-size: clamp(28px, 5vw, 72px);
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80' shape-rendering='geometricPrecision'%3E%3Cg fill='none' stroke-linecap='square'%3E%3Cpath d='M40 0V80M0 40H80' stroke='%23000' stroke-opacity='.32' stroke-width='1.2'/%3E%3Cpath d='M40 31.75V48.25M31.75 40H48.25' stroke='%23181818' stroke-opacity='1' stroke-width='2.15'/%3E%3C/g%3E%3C/svg%3E");
  background-size: var(--diagram-grid-size) var(--diagram-grid-size);
  background-position: var(--diagram-grid-x, 0px) var(--diagram-grid-y, 0px);
  background-repeat: repeat;
  mix-blend-mode: multiply;
  opacity: 0.9;
  will-change: background-position;
}

.diagram-status {
  position: absolute;
  top: calc(4.75rem + 1vw);
  left: var(--section-x);
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.9);
  padding: 0.5rem 0.65rem;
  border-left: 4px solid var(--red);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.diagram-status span:last-child {
  color: rgba(0, 0, 0, 0.56);
}

.diagram-slide {
  position: relative;
  grid-row: 1;
  z-index: auto;
  --diagram-frame-width: min(980px, calc(100vw - 2 * var(--section-x)));
  display: grid;
  width: 100vw;
  height: auto;
  min-height: 0;
  justify-items: center;
  grid-template-rows: minmax(0, 1fr) auto;
  align-items: stretch;
  align-content: end;
  background: transparent;
  overflow: visible;
}

.diagram-slide::before {
  content: "";
  display: none;
}

.diagram-slide img {
  grid-row: 1;
  grid-column: 1;
  position: relative;
  z-index: 1;
  width: var(--diagram-frame-width);
  height: auto;
  align-self: end;
  padding: 0;
  filter: none;
  opacity: 1;
  /* No blend mode: the image paints opaquely on top of the grid so the moving
     grid sits truly behind it. Transparent areas of overlay PNGs still reveal
     the grid; opaque images (e.g. the satellite photo) hide it as expected. */
  mix-blend-mode: normal;
  object-fit: contain;
  object-position: center center;
  cursor: grab;
  user-select: none;
}

.diagram-slide img:active {
  cursor: grabbing;
}

.diagram-slide figcaption {
  position: relative;
  grid-row: 2;
  z-index: 4;
  left: 0;
  align-self: start;
  justify-self: start;
  display: grid;
  gap: 0.28rem;
  width: min(900px, var(--diagram-frame-width));
  margin: 0 0 1.05rem;
  padding: 0.62rem 0.78rem;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
  border-left: 4px solid var(--red);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: none;
}

.diagram-slide figcaption strong {
  color: var(--red);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.diagram-slide figcaption span {
  color: rgba(0, 0, 0, 0.7);
  font-size: clamp(0.78rem, 0.82vw, 0.9rem);
  font-weight: 700;
  line-height: 1.28;
}

.diagram-nav {
  position: absolute;
  top: calc((100svh - 9rem) / 2);
  z-index: 5;
  display: inline-flex;
  width: 48px;
  height: 96px;
  align-items: center;
  justify-content: center;
  transform: translateY(-50%);
  border: 1px solid var(--ink);
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink);
  font: 900 1.15rem var(--sans);
  cursor: pointer;
}

.diagram-prev {
  left: var(--section-x);
}

.diagram-next {
  right: var(--section-x);
}

.diagram-nav:hover,
.diagram-nav:focus-visible {
  border-color: var(--red);
  background: var(--red);
  color: var(--white);
}

.diagram-progress {
  position: relative;
  grid-row: 3;
  justify-self: center;
  z-index: 3;
  width: calc(100vw - 2 * var(--section-x));
  height: 4px;
  margin: 0 0 2rem;
  background: rgba(0, 0, 0, 0.18);
}

.diagram-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--red);
  transition: width 0.25s ease;
}

.diagram-dots {
  position: relative;
  grid-row: 2;
  justify-self: end;
  z-index: 3;
  width: min(420px, calc(100vw - 2 * var(--section-x)));
  margin: 0 var(--section-x) 0.65rem 0;
  display: grid;
  grid-template-columns: repeat(14, minmax(18px, 1fr));
  gap: 0.25rem;
}

.diagram-dots button {
  height: 8px;
  padding: 0;
  border: 1px solid rgba(0, 0, 0, 0.55);
  border-radius: 0;
  background: var(--white);
  cursor: pointer;
}

.diagram-dots button.active {
  background: var(--red);
  border-color: var(--red);
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
  background: var(--white);
}

.split-copy h2 {
  max-width: 13ch;
}

.image-panel img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: var(--white);
  box-shadow: none;
}

.statement-section {
  display: flex;
  align-items: center;
  min-height: 82svh;
}

.statement-content h2 {
  max-width: 12ch;
  margin-bottom: 0;
  color: var(--white);
}

.statement-content em {
  color: var(--red);
  font-style: normal;
}

.concept-section {
  background: var(--ink);
  color: var(--white);
}

.concept-header {
  display: grid;
  grid-template-columns: 0.85fr 2fr;
  gap: clamp(2rem, 8vw, 8rem);
  margin-bottom: clamp(2.5rem, 5vw, 5rem);
}

.concept-header h2 {
  max-width: 15ch;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  border-left: 1px solid rgba(255, 255, 255, 0.22);
}

.feature-card {
  min-height: 340px;
  padding: clamp(1.35rem, 3vw, 2.4rem);
  border-right: 1px solid rgba(255, 255, 255, 0.22);
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
}

.feature-card span {
  display: block;
  margin-bottom: 5rem;
  color: var(--red);
  font-weight: 800;
}

.feature-card p {
  color: rgba(255, 255, 255, 0.74);
}

.media-pair {
  display: grid;
  gap: 0;
  padding: 0;
  background: var(--white);
}

.media-pair figure {
  position: relative;
  min-height: 0;
  background: var(--white);
}

.media-pair img {
  width: 100%;
  height: min(64vw, 760px);
  min-height: 360px;
  background: var(--white);
}

.media-pair img.diagram-media {
  object-fit: contain;
}

.media-pair img.render-media {
  object-fit: cover;
}

.media-pair-full img {
  width: 100vw;
  max-width: none;
  height: auto;
  min-height: 0;
  object-fit: contain;
}

.media-pair figcaption {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  max-width: 44ch;
  margin: 0;
  padding: 0.8rem 1rem;
  color: var(--white);
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(12px);
}

.stats-section {
  background: var(--white);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: clamp(2rem, 4vw, 4rem);
}

.section-heading h2 {
  margin-bottom: 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--ink);
  border: 1px solid var(--line);
}

.stat-card {
  min-height: 210px;
  padding: clamp(1.1rem, 2.4vw, 2rem);
  background: var(--white);
}

.stat-card strong {
  display: block;
  margin-bottom: 1.2rem;
  color: var(--red);
  font-size: clamp(2.3rem, 4.8vw, 4.9rem);
  line-height: 0.95;
}

.stat-card span {
  display: block;
  max-width: 20ch;
  color: var(--muted);
  font-weight: 700;
}

.story-media {
  display: grid;
  grid-template-columns: minmax(260px, 0.62fr) minmax(0, 1.38fr);
  gap: clamp(1.5rem, 5vw, 5rem);
  align-items: start;
  min-height: 100svh;
}

.story-media-light {
  background: var(--white);
  color: var(--ink);
}

.story-media-dark {
  background: var(--ink);
  color: var(--white);
}

.story-copy {
  position: sticky;
  top: 7rem;
}

.story-copy h2 {
  max-width: 12ch;
  /* Cap the size and allow long words to wrap/hyphenate so a long word
     (e.g. "programmes,", "organisation") can never spill out of the copy
     column into the slideshow image. */
  font-size: clamp(2rem, 4.4vw, 4.6rem);
  overflow-wrap: break-word;
  hyphens: auto;
}

.story-copy p:not(.section-kicker) {
  color: var(--muted);
}

.story-media-dark .story-copy p:not(.section-kicker) {
  color: rgba(255, 255, 255, 0.72);
}

.story-meta {
  display: grid;
  gap: 0.3rem;
  margin-top: 2rem;
  padding-left: 0.9rem;
  border-left: 4px solid var(--red);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.story-media-dark .story-meta {
  color: rgba(255, 255, 255, 0.66);
}

.story-download {
  margin-top: 1.4rem;
}

.story-download a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1rem;
  border: 1px solid currentColor;
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.story-download a::after {
  content: "->";
}

.story-media-dark .story-download a {
  color: var(--white);
}

.story-download a:hover {
  border-color: var(--red);
  background: var(--red);
  color: var(--white);
}

.story-counter {
  color: var(--red);
}

.story-frame {
  position: relative;
  grid-column: 2;
  grid-row: 1;
  width: 100%;
  background: var(--white);
  color: var(--ink);
  border: 0;
}

.story-frame img {
  width: 100%;
  height: min(78vh, 820px);
  min-height: 520px;
  object-fit: contain;
  object-position: center;
  background: var(--white);
  box-shadow: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  cursor: grab;
  user-select: none;
}

.story-frame[data-fit="cover"] img {
  object-fit: cover;
}

.story-frame.is-changing img {
  opacity: 0.55;
  transform: scale(0.996);
}

.story-frame img:active {
  cursor: grabbing;
}

.story-frame figcaption {
  position: absolute;
  right: auto;
  bottom: 1rem;
  left: 1rem;
  display: grid;
  gap: 0.2rem;
  max-width: 52ch;
  margin: 0;
  padding: 0.72rem 0.9rem;
  border-left: 4px solid var(--red);
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font-weight: 800;
}

.story-frame figcaption strong {
  color: var(--red);
  font-size: 0.75rem;
  text-transform: uppercase;
}

.story-frame figcaption span {
  overflow-wrap: anywhere;
}

.story-controls {
  grid-column: 2;
  grid-row: 1;
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: minmax(56px, auto) 1fr minmax(56px, auto);
  grid-template-rows: 1fr;
  align-items: center;
  align-self: start;
  justify-self: stretch;
  gap: 0;
  height: min(78vh, 820px);
  min-height: 520px;
  pointer-events: none;
}

.story-controls-full {
  grid-template-columns: minmax(56px, auto) 1fr minmax(56px, auto);
}

.story-controls button {
  width: 48px;
  min-height: 64px;
  border: 1px solid rgba(0, 0, 0, 0.72);
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font: 900 1rem var(--sans);
  cursor: pointer;
  pointer-events: auto;
}

.story-controls .story-prev,
.story-controls .story-next {
  grid-row: 1;
  align-self: center;
}

.story-controls .story-prev {
  grid-column: 1;
  justify-self: start;
  margin-left: clamp(0.75rem, 1.4vw, 1.2rem);
}

.story-controls .story-next {
  grid-column: 3;
  justify-self: end;
  margin-right: clamp(0.75rem, 1.4vw, 1.2rem);
}

.story-controls button:hover,
.story-controls button:focus-visible {
  border-color: var(--red);
  background: var(--red);
  color: var(--white);
}

/* Needs the extra ".story-controls" so this wins over
   ".story-controls button { width: 48px }" — otherwise the button is forced
   to 48px and the "FULLSCREEN" label overflows its box. */
.story-controls .story-fullscreen {
  grid-column: 2;
  grid-row: 1;
  align-self: end;
  justify-self: end;
  width: auto;
  min-width: max-content;
  min-height: 42px;
  margin: 0 1rem 1rem 0;
  padding: 0 1rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  white-space: nowrap;
}

.story-zoom {
  display: none;
}

.story-frame:fullscreen {
  display: grid;
  align-items: center;
  justify-items: center;
  width: 100vw;
  height: 100vh;
  padding: clamp(1rem, 2vw, 2rem);
  border: 0;
  background: var(--white);
}

.story-frame:fullscreen img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
  cursor: default;
}

.story-frame:fullscreen figcaption {
  display: none;
}

.story-frame.is-story-fullscreen {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  align-items: center;
  justify-items: center;
  width: 100vw;
  height: 100vh;
  padding: clamp(1rem, 2vw, 2rem);
  border: 0;
  background: var(--white);
  overflow: auto;
}

.story-frame.is-story-fullscreen img {
  width: calc(100% * var(--story-zoom, 1));
  height: calc(100% * var(--story-zoom, 1));
  max-width: none;
  min-height: 0;
  object-fit: contain;
  cursor: default;
}

.story-frame.is-story-fullscreen figcaption {
  display: none;
}

.story-media.story-fullscreen-active .story-controls {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 101;
  width: auto;
  grid-template-columns: repeat(3, auto);
  gap: 0.5rem;
  pointer-events: auto;
  /* Clear the .fade-in translateY(0): any transform here would make the
     position:fixed side arrows anchor to this cluster instead of the viewport.
     Kill the transition too so the arrows snap to the edges immediately. */
  transform: none;
  transition: none;
}

.story-media.story-fullscreen-active .story-progress {
  display: none;
}

/* Keep the previous/next arrows in fullscreen so drawings can be switched.
   Pull them out of the top-right control cluster and pin them to the left and
   right edges, vertically centred over the fullscreen image. */
.story-media.story-fullscreen-active .story-prev,
.story-media.story-fullscreen-active .story-next {
  position: fixed;
  top: 50%;
  z-index: 102;
  margin: 0;
  transform: translateY(-50%);
  pointer-events: auto;
}

.story-media.story-fullscreen-active .story-prev {
  left: 1rem;
}

.story-media.story-fullscreen-active .story-next {
  right: 1rem;
}

.story-media.story-fullscreen-active .story-fullscreen {
  border-color: var(--red);
  background: var(--ink);
  color: var(--white);
}

.story-media.story-fullscreen-active .story-zoom {
  display: block;
  border-color: var(--red);
  background: var(--white);
  color: var(--ink);
}

.story-progress {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 4px;
  background: rgba(0, 0, 0, 0.16);
  pointer-events: none;
}

.story-media-dark .story-progress {
  background: rgba(255, 255, 255, 0.22);
}

.story-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--red);
  transition: width 0.25s ease;
}

.section-feature {
  padding: var(--section-y) 0;
  overflow: hidden;
  background: var(--white);
  color: var(--ink);
}

.section-feature-copy {
  display: grid;
  grid-template-columns: minmax(260px, 0.62fr) minmax(0, 1.38fr);
  gap: clamp(1.5rem, 5vw, 5rem);
  align-items: end;
  padding: 0 var(--section-x) clamp(2rem, 4vw, 3.5rem);
}

.section-feature-copy h2 {
  max-width: 13ch;
}

.section-feature-copy p:not(.section-kicker) {
  max-width: 58ch;
  color: var(--muted);
}

.section-feature-frame {
  width: 100vw;
  margin: 0;
  background: var(--white);
  color: var(--ink);
}

.section-feature-frame img {
  width: 100vw;
  max-width: none;
  height: auto;
  background: var(--white);
  box-shadow: none;
}

.section-feature-frame figcaption {
  max-width: 72ch;
  margin: 0.9rem var(--section-x) 0;
  padding-left: 0.9rem;
  border-left: 4px solid var(--red);
  color: var(--muted);
  font-weight: 800;
}

.timeline-section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 7vw, 7rem);
  background: var(--white);
}

.timeline-intro {
  position: sticky;
  top: 7rem;
  align-self: start;
}

.timeline {
  display: grid;
  gap: 1px;
  background: var(--ink);
  border: 1px solid var(--line);
}

.timeline-item {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 1.5rem;
  padding: clamp(1.1rem, 2.6vw, 2rem);
  background: var(--white);
}

.timeline-item time {
  color: var(--red);
  font-size: 1.35rem;
  font-weight: 800;
}

.timeline-item p {
  margin-bottom: 0;
  color: var(--muted);
}

.dossier-section {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: clamp(2rem, 7vw, 7rem);
  background: var(--ink);
  color: var(--white);
}

.dossier-section .section-kicker {
  color: var(--red);
}

.dossier-copy p {
  color: rgba(255, 255, 255, 0.82);
}

.dossier-copy h2 {
  max-width: 10ch;
}

.dossier-links {
  display: grid;
  align-content: center;
  gap: 0.75rem;
}

.dossier-links a {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.2rem;
  border: 1px solid var(--white);
  border-radius: 0;
  background: var(--white);
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.dossier-links a::after {
  content: "->";
  font-size: 1.1rem;
}

.dossier-links a:hover {
  transform: translateY(-2px);
  border-color: var(--red);
  background: var(--red);
  color: var(--white);
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  padding: 2rem var(--section-x);
  color: var(--white);
  background: var(--ink);
}

footer div {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

footer span,
footer a {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.95rem;
  text-decoration: none;
}

.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--ease), transform var(--ease);
}

.fade-in.in-view {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  body {
    padding-bottom: calc(3.75rem + env(safe-area-inset-bottom));
  }

  .site-header {
    grid-template-columns: 1fr auto;
  }

  .desktop-nav {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 70;
    display: flex;
    gap: 0;
    padding: 0.45rem 0.75rem calc(0.45rem + env(safe-area-inset-bottom));
    overflow-x: auto;
    overflow-y: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(0, 0, 0, 0.94);
  }

  .desktop-nav a {
    flex: 1 0 auto;
    min-height: 42px;
    padding: 0.75rem 0.7rem;
    color: var(--white);
    font-size: 0.68rem;
    text-align: center;
  }

  .desktop-nav a.active {
    color: var(--red);
  }

  .intro-band,
  .tools-intro,
  .diagram-section,
  .project-viewer,
  .split-section,
  .story-media,
  .concept-header,
  .timeline-section,
  .dossier-section {
    grid-template-columns: 1fr;
  }

  .viewer-copy {
    position: static;
  }

  .timeline-intro {
    position: static;
  }

  .feature-grid,
  .stats-grid,
  .tools-grid {
    grid-template-columns: 1fr 1fr;
  }

  .media-pair,
  .story-media {
    grid-template-columns: 1fr;
  }

  .story-copy {
    position: static;
  }

  .site-header {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .desktop-nav {
    display: none;
  }

  .brand {
    min-width: 0;
  }

  .story-frame {
    grid-column: 1;
    grid-row: 2;
  }

  .story-controls {
    grid-column: 1;
    grid-row: 2;
  }

  .section-feature-copy {
    grid-template-columns: 1fr;
  }

  .tool-card {
    min-height: 300px;
  }

  .diagram-copy {
    min-height: auto;
    padding: 0;
  }

  .diagram-stage {
    min-height: 100svh;
  }
}

@media (max-width: 680px) {
  h1 {
    font-size: clamp(3.3rem, 17vw, 5.8rem);
  }

  .site-header {
    padding: 0.9rem 1rem;
  }

  .brand small {
    display: none;
  }

  .lang-switch {
    gap: 0.2rem;
  }

  .hero,
  .statement-section {
    min-height: 92svh;
    padding: 7.5rem 1rem 1rem;
  }

  .hero-facts,
  .feature-grid,
  .stats-grid,
  .tools-grid,
  .media-pair,
  .story-media {
    grid-template-columns: 1fr;
  }

  .hero-facts div {
    min-height: 92px;
  }

  .intro-band,
  .tools-section,
  .project-viewer,
  .split-section,
  .story-media,
  .concept-section,
  .stats-section,
  .timeline-section,
  .dossier-section {
    padding: 4.5rem 1rem;
  }

  .section-feature {
    padding: 4.5rem 0;
  }

  .section-feature-copy {
    padding: 0 1rem 1.5rem;
  }

  .section-feature-frame figcaption {
    margin-right: 1rem;
    margin-left: 1rem;
  }

  .story-controls-full {
    grid-template-columns: 48px 1fr 48px;
  }

  .story-controls-full .story-fullscreen {
    display: block;
    grid-column: 2;
    align-self: end;
    justify-self: end;
    width: 42px;
    min-width: 42px;
    min-height: 38px;
    margin: 0 0.75rem 0.75rem 0;
    padding: 0;
    overflow: hidden;
    font-size: 0;
  }

  .story-controls-full .story-fullscreen::before {
    content: "FS";
    font-size: 0.68rem;
  }

  .story-media.story-fullscreen-active .story-controls-full .story-fullscreen {
    width: auto;
    min-width: 42px;
    padding: 0 0.75rem;
    font-size: 0.72rem;
  }

  .story-media.story-fullscreen-active .story-controls-full .story-fullscreen::before {
    content: none;
  }

  .diagram-section {
    height: auto;
    min-height: 0;
    padding: 4.5rem 0 5.5rem;
    overflow: hidden;
  }

  .viewer-media img {
    min-height: 320px;
  }

  .viewer-controls button {
    min-height: 52px;
  }

  .tool-card {
    min-height: 0;
    padding: 1.25rem;
  }

  .tool-card span {
    margin-bottom: 2.5rem;
  }

  .diagram-stage {
    position: relative;
    top: auto;
    height: auto;
    min-height: 0;
    max-height: none;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto auto;
    gap: 0.75rem;
    padding: 0;
    overflow: visible;
  }

  .diagram-status {
    position: relative;
    grid-row: 1;
    top: auto;
    left: auto;
    justify-self: start;
    margin: 0 1rem;
    font-size: 0.62rem;
  }

  .diagram-nav {
    top: 13rem;
    width: 34px;
    height: 58px;
  }

  .diagram-prev {
    left: 1rem;
  }

  .diagram-next {
    right: 1rem;
  }

  .diagram-slide {
    --diagram-frame-width: calc(100vw - 2.5rem);
    height: auto;
    grid-row: 2;
    grid-template-rows: auto auto;
    align-content: start;
    gap: 0.55rem;
  }

  .diagram-slide::before {
    align-self: start;
  }

  .diagram-slide img {
    height: auto;
    margin-top: 0;
    padding: 0;
    align-self: start;
    object-fit: contain;
  }

  .diagram-slide figcaption {
    left: 1rem;
    bottom: auto;
    justify-self: center;
    width: calc(100vw - 2rem);
    max-height: 7.6rem;
    margin: 0;
    overflow: auto;
    padding: 0.62rem 0.72rem;
  }

  .diagram-slide figcaption span {
    font-size: 0.78rem;
    line-height: 1.28;
  }

  .diagram-dots {
    grid-row: 3;
    left: auto;
    right: auto;
    bottom: auto;
    width: auto;
    justify-self: stretch;
    margin: 0 1rem 0.55rem;
    grid-template-columns: repeat(7, minmax(18px, 1fr));
  }

  .diagram-progress {
    grid-row: 4;
    left: auto;
    right: auto;
    bottom: auto;
    width: auto;
    justify-self: stretch;
    margin: 0 1rem 1.4rem;
  }

  .feature-card {
    min-height: 280px;
  }

  .feature-card span {
    margin-bottom: 3rem;
  }

  .media-pair figure,
  .media-pair img,
  .story-frame img {
    min-height: 380px;
  }

  .story-controls {
    min-height: 380px;
  }

  .story-controls button {
    width: 42px;
    min-height: 58px;
  }

  .story-controls .story-prev {
    margin-left: 0.75rem;
  }

  .story-controls .story-next {
    margin-right: 0.75rem;
  }

  .story-fullscreen {
    min-height: 38px;
    margin: 0.75rem 0.75rem 0 0;
    padding: 0 0.75rem;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 0.4rem;
  }

  footer {
    flex-direction: column;
    padding: 2rem 1rem;
  }
}

@media (max-width: 430px) {
  h1 {
    font-size: clamp(2.9rem, 16vw, 4.6rem);
  }

  h2 {
    font-size: clamp(2rem, 13vw, 3.6rem);
  }

  .diagram-stage {
    grid-template-columns: 1fr;
    padding-top: 0;
  }

  .diagram-nav {
    width: 34px;
    font-size: 1rem;
    top: 13rem;
  }

  .diagram-slide figcaption {
    max-height: 6.5rem;
  }
}

@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;
  }

  .fade-in {
    opacity: 1;
    transform: none;
  }
}
