/* ============================================================
   DRIVING CULTURES — presentation deck
   Editorial / cinematic system: cream paper, ink, terracotta.
   ============================================================ */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../fonts/bricolage.woff2") format("woff2");
  font-weight: 200 800;
  font-display: block;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/jetbrains-400.woff2") format("woff2");
  font-weight: 400;
  font-display: block;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/jetbrains-500.woff2") format("woff2");
  font-weight: 500;
  font-display: block;
}

:root {
  --paper: #faf9f5;
  --paper-2: #f3efe7;
  --ink: #1f1e1b;
  --ink-2: #55524b;
  --ink-3: #8a857b;
  --accent: #c96442;
  --accent-deep: #98452b;
  --line: rgba(31, 30, 27, 0.14);
  --line-soft: rgba(31, 30, 27, 0.08);
  --font-display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  width: 100%;
  height: 100%;
  background: #0e0d0c;
  overflow: hidden;
  font-family: var(--font-display);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body { cursor: default; }
body.is-idle { cursor: none; }

/* ---------- stage ---------- */

#viewport {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0e0d0c;
}

#stage {
  position: relative;
  flex: 0 0 auto;
  width: 1920px;
  height: 1080px;
  background: var(--paper);
  transform-origin: center center;
  overflow: hidden;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.45);
}

.slide {
  position: absolute;
  inset: 0;
  background: var(--paper);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  will-change: opacity, transform;
}
.slide.is-active { opacity: 1; visibility: visible; }

/* film treatment over every slide */
#stage::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 90;
  background:
    radial-gradient(ellipse at 50% 45%, rgba(0,0,0,0) 52%, rgba(24, 20, 16, 0.16) 100%);
  mix-blend-mode: multiply;
}
.grain {
  position: absolute;
  inset: -40px;
  z-index: 89;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("../img/grain.png");
  background-size: 420px 420px;
  animation: grain-shift 1.4s steps(3) infinite;
}
@keyframes grain-shift {
  0% { transform: translate(0, 0); }
  33% { transform: translate(-14px, 9px); }
  66% { transform: translate(11px, -12px); }
  100% { transform: translate(0, 0); }
}

/* ---------- shared typographic furniture ---------- */

.kicker {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--accent-deep);
}
.label {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.label .num { color: var(--accent-deep); }

.display {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 0.95;
  color: var(--ink);
}
.h1 { font-size: 168px; }
.h2 { font-size: 92px; }
.h3 { font-size: 44px; letter-spacing: -0.03em; line-height: 1.05; }

.body {
  font-size: 22px;
  line-height: 1.62;
  color: var(--ink-2);
  font-weight: 400;
  letter-spacing: -0.005em;
}
.body strong { color: var(--ink); font-weight: 600; }
.small { font-size: 16px; line-height: 1.55; color: var(--ink-2); }
.mono {
  font-family: var(--font-mono);
  font-size: 13.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.rule { height: 1px; background: var(--line); width: 100%; }

/* line-by-line headline reveal */
.line { display: block; overflow: hidden; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.line > span { display: block; will-change: transform; }

/* top / bottom furniture */
.topbar {
  position: absolute;
  top: 54px;
  left: 96px;
  right: 96px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 20;
}
.topbar .right { display: flex; align-items: center; gap: 22px; }
.dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  display: inline-block;
}
.folio {
  position: absolute;
  left: 96px;
  right: 96px;
  bottom: 46px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  z-index: 20;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* ---------- cover ---------- */

.cover-plate {
  position: absolute;
  inset: 0;
  width: 64%;
  overflow: hidden;
  z-index: 0;
}
.cover-plate video {
  position: absolute;
  top: 0;
  left: 0;
  width: 1920px;
  height: 1080px;
  object-fit: cover;
}
.cover-plate::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(250,249,245,0.90) 0%, rgba(250,249,245,0.85) 58%, rgba(250,249,245,0.97) 100%);
}
.cover-photo {
  position: absolute;
  top: 0;
  right: 0;
  width: 42%;
  height: 100%;
  overflow: hidden;
  z-index: 2;
  border-left: 1px solid var(--line);
}
.cover-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.03);
}
.cover-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(31,30,27,0.16) 0%, rgba(31,30,27,0) 32%, rgba(31,30,27,0.32) 100%);
}
.cover-caption {
  position: absolute;
  right: 28px;
  bottom: 52px;
  z-index: 3;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(250, 249, 245, 0.82);
  text-align: right;
  line-height: 1.8;
}
.cover-content {
  position: absolute;
  left: 96px;
  top: 196px;
  width: 800px;
  z-index: 5;
}
.cover-content .h1 { font-size: 176px; }
.cover-sub {
  margin-top: 34px;
  width: 640px;
  font-size: 23px;
  line-height: 1.5;
  color: var(--ink-2);
  letter-spacing: -0.01em;
}
.cover-meta {
  position: absolute;
  left: 96px;
  bottom: 100px;
  z-index: 5;
  display: flex;
  gap: 54px;
  align-items: flex-end;
}
.cover-meta .who { font-size: 20px; font-weight: 600; color: var(--ink); }
.cover-meta .what { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-3); margin-top: 8px; }
.cover-hint {
  position: absolute;
  right: 42%;
  bottom: 96px;
  margin-right: 40px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.key {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255,255,255,0.5);
  color: var(--ink-2);
  font-size: 11px;
}

/* ---------- generic content shell ---------- */

.pad {
  position: absolute;
  left: 96px;
  right: 96px;
  top: 150px;
  bottom: 96px;
}

/* ---------- slide 2 : thesis ---------- */

.thesis-grid {
  display: grid;
  grid-template-columns: 660px 1fr;
  gap: 74px;
  height: 100%;
}
.thesis-copy { padding-top: 36px; }
.thesis-copy .h2 { margin-top: 26px; max-width: 640px; }
.thesis-copy .body { margin-top: 36px; max-width: 560px; }
.stat-block {
  margin-top: 52px;
  display: flex;
  align-items: baseline;
  gap: 22px;
}
.stat-block .value {
  font-size: 86px;
  font-weight: 600;
  letter-spacing: -0.05em;
  color: var(--accent);
  line-height: 0.9;
}
.stat-block .unit { font-size: 20px; color: var(--ink-2); max-width: 300px; line-height: 1.35; }
.photo-frame {
  position: relative;
  height: 100%;
  overflow: hidden;
  background: var(--paper-2);
}
.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.04);
  will-change: transform;
}
.photo-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(31,30,27,0.05), rgba(31,30,27,0.24));
  pointer-events: none;
}
.photo-caption {
  position: absolute;
  left: 0;
  bottom: -40px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.photo-wrap { position: relative; }

/* ---------- slide 3 : left / right ---------- */

.split-grid {
  display: grid;
  grid-template-columns: 1fr 620px;
  gap: 80px;
  height: 100%;
}
.sidecopy { padding-top: 20px; }
.sidecopy .h2 { margin-top: 22px; }
.big-nums {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 54px;
  border-top: 1px solid var(--line);
}
.big-nums > div {
  padding: 24px 22px 26px 0;
  border-right: 1px solid var(--line);
}
.big-nums > div:last-child { border-right: 0; }
.big-nums .value {
  font-size: 74px;
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 1;
  color: var(--ink);
}
.big-nums .value em { font-style: normal; color: var(--accent); }
.big-nums .cap {
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.4;
  color: var(--ink-2);
  max-width: 180px;
}
.sidecopy .body { margin-top: 34px; max-width: 620px; }

/* ---------- slide 4 : chart ---------- */

.chart-slide .pad { top: 142px; }
.chart-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; }
.chart-head .h2 { margin-top: 20px; font-size: 80px; }
.chart-source { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); text-align: right; line-height: 1.8; }
.chart {
  margin-top: 54px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.bar-row {
  display: grid;
  grid-template-columns: 210px 1fr 110px;
  align-items: center;
  gap: 26px;
  height: 74px;
  border-bottom: 1px solid var(--line-soft);
}
.bar-row .country { font-size: 25px; font-weight: 500; letter-spacing: -0.02em; }
.bar-track { position: relative; height: 100%; display: flex; align-items: center; }
.bar-track::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 50%;
  height: 1px;
  background: var(--line);
}
.bar {
  position: relative;
  height: 22px;
  width: 0;
  background: var(--accent);
  border-radius: 1px;
}
.bar-row.is-muted .bar { background: #d8b9a9; }
.bar-row .val {
  text-align: right;
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.bar-row .val small { font-size: 13px; font-weight: 400; color: var(--ink-3); margin-left: 4px; letter-spacing: 0; }
.world-line {
  position: absolute;
  top: 0; bottom: 0;
  width: 1px;
  background: var(--ink);
  opacity: 0.5;
}
.world-line span {
  position: absolute;
  top: 8px;
  left: 8px;
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.chart-note { margin-top: 24px; font-size: 16.5px; color: var(--ink-2); max-width: 700px; line-height: 1.5; }

/* ---------- slide 5 : four forces (dark) ---------- */

.slide--dark { background: #14130f; color: var(--paper); }
.slide--dark .label { color: rgba(250,249,245,0.55); }
.slide--dark .label .num { color: #e08a63; }
.slide--dark .h2 { color: var(--paper); }
.slide--dark .body { color: rgba(250,249,245,0.72); }
.slide--dark .folio { color: rgba(250,249,245,0.45); }
.dark-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.dark-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.42; filter: saturate(0.7) contrast(1.1); }
.dark-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20,19,15,0.78) 0%, rgba(20,19,15,0.88) 55%, rgba(20,19,15,0.96) 100%);
}
.forces { position: relative; z-index: 2; }
.forces-head { display: flex; justify-content: space-between; align-items: flex-end; }
.forces-head .h2 { margin-top: 18px; font-size: 78px; max-width: 900px; }
.forces-grid {
  margin-top: 62px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 90px;
  row-gap: 0;
  border-top: 1px solid rgba(250,249,245,0.18);
}
.force {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 24px;
  padding: 34px 0 36px;
  border-bottom: 1px solid rgba(250,249,245,0.14);
}
.force .n {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: #e08a63;
  padding-top: 6px;
}
.force h3 { font-size: 34px; font-weight: 600; letter-spacing: -0.02em; color: var(--paper); }
.forces-close {
  margin-top: 40px;
  font-size: 27px;
  letter-spacing: -0.02em;
  color: var(--paper);
  max-width: 720px;
}
.force p { margin-top: 10px; font-size: 19px; line-height: 1.55; color: rgba(250,249,245,0.82); max-width: 480px; }

/* ---------- slide 6 : policy cards ---------- */

.cards-head { display: flex; justify-content: space-between; align-items: flex-end; }
.cards-head .h2 { margin-top: 18px; font-size: 78px; }
.cards-head .body { max-width: 380px; font-size: 16px; line-height: 1.55; text-align: right; padding-bottom: 8px; }
.cards {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  height: 560px;
}
.policy-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--paper-2);
  overflow: hidden;
}
.policy-card .img {
  height: 300px;
  overflow: hidden;
  position: relative;
}
.policy-card .img img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(0.88) contrast(1.05);
  will-change: transform;
}
.policy-card .img::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(31,30,27,0.02), rgba(31,30,27,0.26));
}
.policy-card .txt { padding: 24px 26px 26px; display: flex; flex-direction: column; flex: 1; }
.policy-card .place { font-size: 13px; font-weight: 600; letter-spacing: 0.06em; color: var(--accent-deep); text-transform: uppercase; }
.policy-card h3 { margin-top: 8px; font-size: 27px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; }
.policy-card p { margin-top: 10px; font-size: 17px; line-height: 1.55; color: var(--ink-2); }
.policy-card .num {
  position: absolute;
  top: 14px; left: 16px;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: rgba(250,249,245,0.9);
  background: rgba(20,19,15,0.45);
  padding: 5px 8px;
}
.cards-note { margin-top: 22px; font-size: 16px; color: var(--ink-2); }

/* ---------- slide 7 : public transport ---------- */

.transit-grid {
  display: grid;
  grid-template-columns: 640px 1fr;
  gap: 70px;
  height: 100%;
}
.transit-copy { padding-top: 18px; }
.transit-copy .h2 { margin-top: 20px; }
.transit-stats { margin-top: 46px; border-top: 1px solid var(--line); }
.transit-stat { padding: 22px 0 24px; border-bottom: 1px solid var(--line); }
.transit-stat .v { font-size: 68px; font-weight: 600; letter-spacing: -0.05em; line-height: 0.95; }
.transit-stat .v span { color: var(--accent); }
.transit-stat .c { margin-top: 8px; font-size: 16px; color: var(--ink-2); line-height: 1.45; max-width: 520px; }
.transit-photos { display: grid; grid-template-rows: 1fr 1fr; gap: 18px; height: 100%; }
.transit-photos figure { position: relative; overflow: hidden; margin: 0; }
.transit-photos img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.88) contrast(1.04); will-change: transform; }
.transit-photos figcaption {
  position: absolute; left: 18px; bottom: 14px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.18em;
  text-transform: uppercase; color: rgba(250,249,245,0.88);
  text-shadow: 0 1px 8px rgba(0,0,0,0.4);
}

/* ---------- slide 8 : city vs nation ---------- */

.scale-grid {
  display: grid;
  grid-template-columns: 1fr 720px;
  gap: 70px;
  height: 100%;
}
.scale-copy { padding-top: 14px; }
.scale-copy .h2 { margin-top: 18px; }
.scale-pair { margin-top: 44px; display: flex; align-items: flex-end; gap: 44px; }
.scale-item .v { font-size: 128px; font-weight: 600; letter-spacing: -0.06em; line-height: 0.82; }
.scale-item.muted .v { color: var(--ink-2); font-size: 96px; }
.scale-item .c { margin-top: 12px; font-size: 15px; color: var(--ink-2); line-height: 1.4; max-width: 230px; }
.scale-arrow { padding-bottom: 14px; }
.scale-copy .body { margin-top: 38px; max-width: 560px; }
.scale-note { margin-top: 22px; font-size: 13px; color: var(--ink-3); }
.scale-photo { position: relative; overflow: hidden; height: 100%; }
.scale-photo img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.9) contrast(1.03); will-change: transform; }

/* ---------- slide 9 : future (full bleed) ---------- */

.full-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.full-bg img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.82) contrast(1.05); will-change: transform; }
.full-bg::after { display: none; }
.slide--full .pad { z-index: 3; color: var(--paper); }
.slide--full .label { color: rgba(250,249,245,0.6); }
.slide--full .label .num { color: #e08a63; }
.slide--full .h2 { color: var(--paper); max-width: 820px; margin-top: 20px; font-size: 88px; }
.future-list { margin-top: 48px; max-width: 760px; border-top: 1px solid rgba(250,249,245,0.2); }
.future-item { display: grid; grid-template-columns: 190px 1fr; gap: 30px; padding: 20px 0 22px; border-bottom: 1px solid rgba(250,249,245,0.16); }
.future-item .k { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.18em; text-transform: uppercase; color: #f0a07c; padding-top: 5px; }
.future-item .d { font-size: 20px; line-height: 1.45; color: rgba(250,249,245,0.96); text-shadow: 0 1px 2px rgba(0,0,0,0.35); }
.future-close { margin-top: 36px; font-size: 27px; line-height: 1.35; color: var(--paper); max-width: 760px; letter-spacing: -0.02em; }
.future-close em { font-style: normal; color: #e08a63; }
.slide--full .folio { color: rgba(250,249,245,0.5); }

/* ---------- slide 10 : conclusion ---------- */

.end-wrap {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
}
.end-copy { padding: 150px 96px 96px; display: flex; flex-direction: column; }
.end-copy .h2 { margin-top: 20px; font-size: 104px; }
.end-copy .body { margin-top: 34px; max-width: 660px; font-size: 21px; }
.end-thanks { margin-top: 44px; display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; }
.end-thanks .thanks { font-size: 52px; font-weight: 600; letter-spacing: -0.04em; }
.end-thanks .thanks em { font-style: normal; color: var(--accent); }
.end-thanks .sig { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-3); text-align: right; line-height: 1.8; }
.end-photo { position: relative; overflow: hidden; }
.end-photo img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.9) contrast(1.02); }
.end-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(250,249,245,0.16), rgba(31,30,27,0.18)); }
.sources {
  position: absolute;
  left: 96px;
  bottom: 96px;
  width: 660px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 30px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.06em;
  color: var(--ink-3);
  line-height: 1.5;
}
.sources b { color: var(--ink-2); font-weight: 500; }

/* ---------- chrome : progress, nav, notes ---------- */

#progress {
  position: fixed;
  left: 0; bottom: 0;
  height: 3px;
  background: var(--accent);
  width: 0;
  z-index: 300;
  transition: width 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

#chrome {
  position: fixed;
  right: 20px;
  bottom: 18px;
  z-index: 320;
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  transition: opacity 0.35s ease;
}
body:hover #chrome, body.is-paused #chrome { opacity: 1; }
.chrome-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(250,249,245,0.22);
  border-radius: 999px;
  background: rgba(20,19,15,0.72);
  backdrop-filter: blur(12px);
  color: rgba(250,249,245,0.86);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.chrome-btn:hover { background: rgba(31,30,27,0.92); border-color: rgba(250,249,245,0.4); }
.chrome-btn svg { width: 14px; height: 14px; }
#counter { font-variant-numeric: tabular-nums; min-width: 64px; justify-content: center; }

/* notes drawer */
#notes {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: 430px;
  max-width: 92vw;
  background: #12110f;
  color: #f2efe8;
  border-left: 1px solid rgba(250,249,245,0.14);
  z-index: 400;
  transform: translateX(102%);
  transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
  display: flex;
  flex-direction: column;
  box-shadow: -30px 0 80px rgba(0,0,0,0.4);
}
#notes.is-open { transform: translateX(0); }
.notes-head {
  padding: 24px 26px 18px;
  border-bottom: 1px solid rgba(250,249,245,0.12);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.notes-head .t { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: #e08a63; }
.notes-head .timer { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; color: rgba(250,249,245,0.6); font-variant-numeric: tabular-nums; }
.notes-body { padding: 26px; overflow-y: auto; flex: 1; }
.notes-slide { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(250,249,245,0.4); }
.notes-title { margin-top: 10px; font-size: 28px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.15; }
.notes-text { margin-top: 20px; font-size: 17px; line-height: 1.68; color: rgba(250,249,245,0.82); }
.notes-cue { margin-top: 24px; padding-top: 16px; border-top: 1px solid rgba(250,249,245,0.12); font-family: var(--font-mono); font-size: 11px; line-height: 1.7; letter-spacing: 0.04em; color: rgba(250,249,245,0.5); }
.notes-close { background: none; border: 0; color: rgba(250,249,245,0.6); font-size: 22px; cursor: pointer; line-height: 1; padding: 4px; }
.notes-foot { padding: 14px 26px; border-top: 1px solid rgba(250,249,245,0.12); font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(250,249,245,0.35); display: flex; justify-content: space-between; }

/* overview */
#overview {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(12,11,9,0.96);
  display: none;
  padding: 40px;
  overflow-y: auto;
}
#overview.is-open { display: block; }
.ov-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; max-width: 1600px; margin: 0 auto; }
.ov-item {
  position: relative; aspect-ratio: 16/9; background: #1c1a16; border: 1px solid rgba(250,249,245,0.12);
  cursor: pointer; overflow: hidden;
}
.ov-item:hover { border-color: var(--accent); }
.ov-item .n { position: absolute; left: 10px; top: 8px; font-family: var(--font-mono); font-size: 10px; color: rgba(250,249,245,0.6); z-index: 2; }
.ov-item .t { position: absolute; left: 10px; right: 10px; bottom: 10px; font-size: 15px; line-height: 1.25; color: rgba(250,249,245,0.9); z-index: 2; }
.ov-item canvas { width: 100%; height: 100%; display: block; }

/* ---------- responsive chrome ---------- */
@media (max-width: 720px) {
  #notes { width: 100vw; }
  #chrome {
    left: 10px;
    right: 10px;
    bottom: 12px;
    justify-content: space-between;
    gap: 4px;
    opacity: 1;
  }
  .chrome-btn { height: 44px; min-width: 44px; padding: 0 12px; }
  #btn-full { display: none; }
  .chrome-btn span { display: none; }
  #viewport::before {
    content: "DRIVING CULTURES  ·  10 SLIDES";
    position: fixed;
    top: 26px;
    left: 0;
    right: 0;
    text-align: center;
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 0.24em;
    color: rgba(250,249,245,0.45);
    pointer-events: none;
  }
  #viewport::after {
    content: "↻  ROTATE FOR FULL SCREEN";
    position: fixed;
    top: 46px;
    left: 0;
    right: 0;
    text-align: center;
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 0.2em;
    color: rgba(201,100,66,0.9);
    pointer-events: none;
  }
}
@media (max-width: 860px) and (orientation: landscape) {
  #viewport::before, #viewport::after { display: none; }
}

/* ---------- print / pdf ---------- */
@media print {
  @page { size: 1920px 1080px; margin: 0; }
  .cover-plate { background: url("../img/plate-frame.jpg") 0 0 / 1920px 1080px no-repeat; }
  .cover-plate video { display: none !important; }
  .cover-plate::after { display: none; }
  html, body { background: #fff; overflow: visible; }
  #viewport { position: static; display: block; }
  #stage { width: 1920px; height: auto; overflow: visible; transform: none !important; box-shadow: none; }
  #stage::after { display: none; }
  .full-bg img, .anim-photo { will-change: auto !important; }
  body { margin: 0; }
  .slide {
    position: relative;
    opacity: 1 !important;
    visibility: visible !important;
    inset: auto;
    width: 1920px;
    height: 1080px;
    page-break-after: always;
    break-after: page;
  }
  .slide:last-child { page-break-after: auto; break-after: auto; }
  #chrome, #progress, #notes, #overview, .grain { display: none !important; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

@media (prefers-reduced-motion: reduce) {
  .grain { animation: none; }
}

/* touch devices: fewer composited layers, same look */
@media (hover: none) {
  .grain { display: none !important; }
  .chrome-btn { backdrop-filter: none; -webkit-backdrop-filter: none; }
}

/* ---------- six-slide edition ---------- */

.chart--short { margin-top: 38px; }
.chart--short .bar-row { height: 88px; grid-template-columns: 240px 1fr 150px; }
.chart--short .country { font-size: 30px; }
.chart--short .bar { height: 26px; }
.chart--short .val { font-size: 40px; }

.why-strip {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px;
  max-width: 1180px;
}
.why-item .k {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--accent-deep);
}
.why-item p { margin-top: 7px; font-size: 18px; line-height: 1.35; color: var(--ink-2); }

.policy-card .big {
  margin: 6px 0 4px;
  font-size: 44px;
  line-height: 1;
  font-weight: 600;
  letter-spacing: -0.05em;
  color: var(--accent);
}
.policy-card h3 { font-size: 24px; }
.policy-card p { font-size: 15.5px; line-height: 1.45; }

.transit-note {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  max-width: 540px;
  font-size: 15px;
  line-height: 1.45;
  color: var(--ink-2);
}

.end-future { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.end-future span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 13px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
}

/* absolute pads must size from top/bottom, not from a stale 100% height */
.slide .pad { height: auto; }
.slide--thesis .pad, .slide--transit .pad { height: 834px; }
.transit-grid { grid-template-rows: minmax(0, 1fr); }
.transit-photos { grid-template-rows: repeat(2, minmax(0, 1fr)); min-height: 0; }
.transit-photos figure { min-height: 0; }

/* speaker notes keep their bullet line breaks */
.notes-text { white-space: pre-line; }

/* the dark forces slide sets its own positioning; keep the pad absolutely inset */
.pad.forces { position: absolute; }
