:root {
  color-scheme: dark;
  --bg: #070e1c;
  --navy: #101f3b;
  --paper: #f0f5ff;
  --muted: #a9b8d2;
  --blue: #92b8ff;
  --line: #273853;
  --gutter: clamp(24px, 5.2vw, 88px);
  --ease: cubic-bezier(.22, .72, .24, 1);
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--paper);
}
* { box-sizing: border-box; }
body { margin: 0; }
button { font: inherit; }
button:focus-visible { outline: 2px solid #b0cbff; outline-offset: 4px; }
[hidden] { display: none !important; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.deck {
  isolation: isolate;
  position: relative;
  height: 100vh;
  height: 100svh;
  height: 100dvh;
  max-width: 1780px;
  margin: auto;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  padding-inline: var(--gutter);
  padding-left: max(var(--gutter), env(safe-area-inset-left));
  padding-right: max(var(--gutter), env(safe-area-inset-right));
  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);
}
.deck::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 87% 35%, #152b54a3, transparent 56%),
    linear-gradient(#799bda0a 1px, transparent 1px),
    linear-gradient(90deg, #799bda0a 1px, transparent 1px);
  background-size: auto, 64px 64px, 64px 64px;
  mask-image: linear-gradient(transparent, #000 18%, #000 76%, transparent);
}
.topbar, .controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: clamp(69px, 10vh, 91px);
}
.topbar { border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 14px; font-size: .92rem; font-weight: 650; }
.brand > span { overflow-wrap: anywhere; }
.brand small { color: var(--muted); display: block; margin-top: 4px; font-size: .78rem; font-weight: 400; }
.brand-mark {
  display: grid;
  grid-template-columns: repeat(2, 5px);
  gap: 3px;
  padding: 8px;
  transform: rotate(45deg);
  border: 1px solid #466aab;
  background: #102449;
  box-shadow: 0 0 20px #4480ff30;
  margin-inline: 5px;
}
.brand-mark i { width: 5px; height: 5px; background: #88b3ff; }
.brand-mark i:nth-child(2) { background: #33578d; }
.view-button {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  gap: 11px;
  min-height: 42px;
  background: #0e1a31;
  border: 1px solid #304463;
  border-radius: 6px;
  color: #d7e5ff;
  cursor: pointer;
  padding: 0 14px;
  font-size: .87rem;
}
.view-button:hover, .nav-button:hover:not(:disabled) { background: #1c3762; border-color: #709bdf; }
.expand-icon {
  width: 14px;
  height: 14px;
  background:
    linear-gradient(currentColor, currentColor) left top / 5px 1px,
    linear-gradient(currentColor, currentColor) right top / 5px 1px,
    linear-gradient(currentColor, currentColor) left bottom / 5px 1px,
    linear-gradient(currentColor, currentColor) right bottom / 5px 1px,
    linear-gradient(currentColor, currentColor) left top / 1px 5px,
    linear-gradient(currentColor, currentColor) right top / 1px 5px,
    linear-gradient(currentColor, currentColor) left bottom / 1px 5px,
    linear-gradient(currentColor, currentColor) right bottom / 1px 5px;
  background-repeat: no-repeat;
}
.stage {
  position: relative;
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  align-items: center;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}
.slide {
  min-width: 0;
  min-height: 0;
  max-height: 100%;
  padding-block: clamp(16px, 4vh, 48px);
  overflow-y: auto;
  overscroll-behavior-y: contain;
  scrollbar-gutter: stable both-edges;
  scrollbar-width: thin;
  scrollbar-color: #3b5f96 transparent;
  overflow-wrap: break-word;
}
.slide:focus-visible { outline: 2px solid #b0cbff; outline-offset: -2px; }
.cover {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(20px, 3.2vw, 58px);
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--blue);
  font: 600 .83rem/1.35 ui-monospace, Consolas, monospace;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin: 0 0 18px;
}
.eyebrow-line { width: 22px; height: 1px; background: var(--blue); box-shadow: 0 0 9px #79a8ff; flex: none; }
h1, h2, h3, p { margin: 0; }
h1 {
  font-size: clamp(2.5rem, 5.05vw, 5.5rem);
  line-height: 1;
  font-weight: 690;
  letter-spacing: -.057em;
}
h2 {
  font-size: clamp(2.05rem, 4vw, 4.65rem);
  line-height: 1.04;
  font-weight: 680;
  letter-spacing: -.052em;
  text-wrap: balance;
}
h3 { font-weight: 650; }
.subtitle {
  max-width: 27em;
  margin-top: 20px;
  font-size: clamp(1.05rem, 1.48vw, 1.37rem);
  color: #b6c8e7;
  line-height: 1.45;
}
.credits {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-top: clamp(32px, 6vh, 67px);
}
.credits strong { display: block; font-size: clamp(.95rem, 1.2vw, 1.13rem); line-height: 1.35; }
.credits span { color: var(--muted); display: block; font-size: .86rem; line-height: 1.4; margin-top: 6px; max-width: 28ch; }
.art {
  position: relative;
  isolation: isolate;
  border: 1px solid #344d77;
  background-color: #0a162b;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  border-radius: 8px;
  min-height: 0;
  overflow: hidden;
  box-shadow: 0 18px 56px #0006;
}
.art::before, .art::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: 1;
  width: 24px;
  height: 24px;
}
.art::before { left: 13px; top: 13px; border-top: 1px solid #a6c8ff; border-left: 1px solid #a6c8ff; }
.art::after { right: 13px; bottom: 13px; border-bottom: 1px solid #a6c8ff; border-right: 1px solid #a6c8ff; }
.art-hero { aspect-ratio: 1.28; background-image: url("assets/globe.webp"); }
.art-digital { background-image: url("assets/network.webp"); }
.art-tech { background-image: url("assets/industry.webp"); }
.art-data { background-image: url("assets/data.webp"); }
.slide-heading { margin-bottom: clamp(24px, 4.4vh, 44px); }
.slide-heading > p:not(.eyebrow) {
  font-size: clamp(1rem, 1.48vw, 1.35rem);
  color: var(--muted);
  max-width: 72ch;
  line-height: 1.45;
  margin-top: 15px;
}
.question-grid, .concept-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  gap: clamp(22px, 4vw, 60px);
}
.question-panel {
  background: linear-gradient(145deg, #19345c, #0d1b32 75%);
  border: 1px solid #3a5781;
  border-radius: 8px;
  padding: clamp(22px, 3.3vw, 47px);
  align-content: center;
}
.panel-label { color: var(--blue); font: 600 .82rem/1.3 ui-monospace, Consolas, monospace; letter-spacing: .09em; text-transform: uppercase; }
.question-panel h3 { margin-top: 18px; font-size: clamp(1.4rem, 2.5vw, 2.65rem); line-height: 1.14; letter-spacing: -.03em; }
.question-panel p, .research dd, .readings p, .overlaps p { color: var(--muted); font-size: clamp(1rem, 1.28vw, 1.18rem); line-height: 1.42; }
.question-panel p { margin-top: 15px; }
.research { margin: 0; }
.research > div, .readings article { border-top: 1px solid var(--line); padding-block: clamp(13px, 2.1vh, 21px); }
.research > div:last-child, .readings article:last-child { padding-bottom: 0; }
.research dt, .readings h3 { margin: 0 0 7px; color: var(--paper); font-size: clamp(1.03rem, 1.55vw, 1.37rem); font-weight: 650; }
.research dd { margin: 0; }
.readings h3 span, .ref { color: var(--blue); font: .82em ui-monospace, Consolas, monospace; white-space: nowrap; }
.concept-grid .art { min-height: min(33vh, 300px); }
.table-wrap { overflow-x: auto; border: 1px solid #344d77; border-radius: 8px; }
.cell-label { display: none; }
table { width: 100%; border-collapse: collapse; table-layout: fixed; background: #0b1528; }
th, td { padding: clamp(14px, 2.1vw, 30px); text-align: left; vertical-align: top; border-right: 1px solid var(--line); }
th:last-child, td:last-child { border-right: 0; }
thead { background: #152b4e; }
thead th { color: #e9f1ff; font-size: clamp(1rem, 1.58vw, 1.39rem); }
thead th:first-child { width: 17%; color: #adc8ff; }
tbody th, tbody td { border-top: 1px solid var(--line); font-size: clamp(1rem, 1.27vw, 1.18rem); line-height: 1.43; }
tbody td { color: var(--muted); }
tbody th { color: #dce9ff; background: #101c33; }
.overlaps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.overlaps article { padding: clamp(18px, 2.1vw, 30px); background: linear-gradient(145deg, #142646, #0c172b); border: 1px solid var(--line); border-radius: 8px; }
.connection { display: flex; gap: 10px; align-items: center; color: #dce9ff; font-size: clamp(.85rem, 1.13vw, 1.07rem); font-weight: 650; margin-bottom: 18px; }
.connection i { height: 1px; min-width: 14px; flex: auto; position: relative; background: #6a9bf1; box-shadow: 0 0 9px #558fff; }
.connection i::before, .connection i::after { content: ""; position: absolute; width: 5px; height: 5px; top: -2px; border-radius: 50%; background: #a9c8ff; }
.connection i::before { left: 0; }
.connection i::after { right: 0; }
.takeaway { margin-top: 22px; border-left: 2px solid #84adff; background: #122240; padding: 18px 24px; }
.takeaway p { margin-top: 8px; font-size: clamp(1rem, 1.5vw, 1.36rem); line-height: 1.4; }
.bibliography {
  list-style: none;
  counter-reset: ref;
  display: grid;
  grid-template-rows: repeat(4, auto);
  grid-auto-flow: column;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(22px, 4.2vw, 60px);
  margin: 0;
  padding: 0;
}
.bibliography li {
  border-top: 1px solid var(--line);
  padding-block: clamp(12px, 2.3vh, 22px);
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.bibliography li::before { counter-increment: ref; content: "[" counter(ref) "]"; color: var(--blue); font: .82rem ui-monospace, Consolas, monospace; }
.bibliography strong { font-size: clamp(.96rem, 1.25vw, 1.14rem); line-height: 1.32; font-weight: 650; }
.bibliography p { color: var(--muted); font-size: .91rem; line-height: 1.4; margin-top: 5px; overflow-wrap: anywhere; }
.controls {
  gap: clamp(12px, 3vw, 46px);
  border-top: 1px solid var(--line);
}
.position {
  display: flex;
  gap: 9px;
  align-items: baseline;
  color: var(--muted);
  font: 500 .89rem/1 ui-monospace, Consolas, monospace;
  font-variant-numeric: tabular-nums;
}
#slide-number { font-size: 1.35rem; color: #edf4ff; }
.position-divider { color: #6b83ab; }
.progress { display: flex; gap: 6px; flex: 1; min-width: 0; }
.progress button {
  position: relative;
  min-width: 0;
  min-height: 35px;
  flex: 1;
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
}
.progress button::after {
  content: "";
  position: absolute;
  height: 3px;
  inset: calc(50% - 1px) 0 auto;
  border-radius: 3px;
  background: #283a56;
  transition: background .28s, box-shadow .28s;
}
.progress button.is-past::after { background: #4a70b5; }
.progress button[aria-current]::after, .progress button:hover::after { background: #9dc0ff; box-shadow: 0 0 12px #5790ff88; }
.navigation, .keyboard-hint { display: flex; align-items: center; gap: 8px; }
.keyboard-hint { margin-right: 10px; color: var(--muted); font-size: .79rem; }
.keyboard-hint kbd { border: 1px solid #334563; border-radius: 4px; padding: 3px 4px; font: .85rem/1.05 Arial, sans-serif; min-width: 21px; text-align: center; }
.nav-button {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  cursor: pointer;
  border-radius: 6px;
  border: 1px solid #3b5f96;
  color: #e2eeff;
  background: #152a4e;
}
.nav-button:disabled { cursor: default; color: #74839b; border-color: #293951; background: #0c172a; }
.chevron { width: 9px; height: 9px; border-top: 2px solid; border-right: 2px solid; transform: translateX(-2px) rotate(45deg); }
.chevron.previous { transform: translateX(2px) rotate(-135deg); }
.slide.is-leaving { position: absolute; inset: 0 0 auto; align-self: center; pointer-events: none; }
.slide.is-entering { animation: enter .48s var(--ease) both; }
.slide.is-leaving { animation: leave .34s var(--ease) both; }
.slide.is-entering .art { animation: image-enter .62s var(--ease) both; }
@keyframes enter {
  from { opacity: 0; transform: translateX(var(--enter-x, 48px)) scale(.987); filter: blur(5px); }
  to { opacity: 1; transform: none; filter: none; }
}
@keyframes leave {
  from { opacity: 1; transform: none; filter: none; }
  to { opacity: 0; transform: translateX(var(--leave-x, -36px)) scale(.985); filter: blur(4px); }
}
@keyframes image-enter {
  from { opacity: 0; transform: scale(1.035); }
  to { opacity: 1; transform: none; }
}
.script-message { color: var(--muted); margin: 0 0 16px; }

@media (max-width: 940px) {
  .credits { grid-template-columns: 1fr; gap: 12px; }
  .cover { gap: 22px; }
  .overlaps { grid-template-columns: 1fr; }
}
@media (max-width: 800px) {
  :root { --gutter: clamp(14px, 4vw, 28px); }
  .topbar, .controls { min-height: 58px; }
  .cover, .question-grid, .concept-grid, .bibliography { grid-template-columns: minmax(0, 1fr); }
  .bibliography { grid-template-rows: none; grid-auto-flow: row; }
  .cover { gap: 23px; }
  .cover h1 { font-size: clamp(1.55rem, 8.25vw, 3.9rem); }
  .art-hero { aspect-ratio: 1.5; }
  .credits { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 26px; }
  .keyboard-hint { display: none; }
  .concept-grid .art { min-height: 0; aspect-ratio: 1.7; }
}
@media (max-width: 700px) {
  .table-wrap { border: 0; overflow: visible; }
  .table-wrap :is(table, tbody, tr, tbody th, td) { display: block; }
  .table-wrap table { position: relative; background: transparent; }
  .table-wrap thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .table-wrap tbody tr {
    background: #0b1528;
    border: 1px solid #344d77;
    border-radius: 8px;
    overflow: hidden;
  }
  .table-wrap tbody tr + tr { margin-top: 12px; }
  .table-wrap tbody :is(th, td) { border-right: 0; padding: 10px 14px; }
  .table-wrap tbody th { border-top: 0; }
  .cell-label { display: block; color: var(--blue); font-weight: 650; margin-bottom: 4px; }
}
@media (max-width: 480px) {
  .brand { gap: 8px; font-size: .82rem; }
  .view-button { width: 44px; height: 44px; padding: 0; }
  #fullscreen-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .credits { grid-template-columns: 1fr; }
  .position { gap: 5px; }
  .controls { gap: 9px; }
  .progress { gap: 4px; }
}
@media (max-height: 760px) and (min-width: 801px) {
  .slide { padding-block: 25px; }
  .art-hero { max-height: 60vh; }
  .slide-heading { margin-bottom: 21px; }
  .concept-grid .art { min-height: min(31vh, 260px); }
}
@media (min-aspect-ratio: 3/2) {
  .slide:is([aria-labelledby="compare"], .sources) {
    padding-block: clamp(12px, 2.4vh, 30px);
  }
  .slide:is([aria-labelledby="compare"], .sources) .slide-heading {
    margin-bottom: clamp(12px, 2.4vh, 26px);
  }
  .sources .bibliography li {
    padding-block: clamp(6px, 1.2vh, 14px);
  }
}
@media (min-aspect-ratio: 3/2) and (min-width: 701px) {
  .slide[aria-labelledby="compare"] :is(th, td) {
    padding: clamp(7px, 1.4vh, 16px) clamp(9px, 1.4vw, 23px);
  }
}
@media (min-aspect-ratio: 3/2) and (min-width: 801px) {
  .sources .bibliography {
    display: block;
    column-count: 2;
    column-gap: clamp(18px, 3vw, 42px);
  }
  .sources .bibliography li { break-inside: avoid; }
}
@media (min-aspect-ratio: 3/2) and (max-height: 690px) {
  .slide:is([aria-labelledby="compare"], .sources) .eyebrow { margin-bottom: 10px; }
  .slide:is([aria-labelledby="compare"], .sources) h2 {
    font-size: clamp(1.85rem, 3.5vw, 3.4rem);
  }
  .slide[aria-labelledby="compare"] .slide-heading > p:not(.eyebrow) { margin-top: 9px; }
}
@media (min-aspect-ratio: 3/2) and (max-height: 600px) {
  .sources .bibliography li { padding-block: 4px; }
  .sources .bibliography p { margin-top: 3px; line-height: 1.3; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
