/* GoNoGo site. One stylesheet, no framework. Colors match the app so the screenshots sit naturally on the page. */

@font-face {
  font-family: "Inter";
  src: url("assets/fonts/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --navy: #020b1f;
  --navy-2: #071a40;
  --ink: #0c1322;
  --muted: #566074;
  --faint: #8a93a5;
  --line: #e4e2da;
  --bg: #f7f6f2;
  --surface: #ffffff;
  --accent: #2f5bff;
  --glow: #29c5ff;
  --go: #178a58;
  --go-soft: #dff4e8;
  --nogo: #cf3a34;
  --nogo-soft: #fbe3e1;
  --hold: #b86e00;
  --hold-soft: #fdf0d6;
  --counsel: #6d44cc;
  --counsel-soft: #ece6fb;
  --nodata: #5f6b7e;
  --nodata-soft: #e9ebef;
  --radius: 18px;
  --shadow: 0 1px 2px rgb(12 19 34 / 6%), 0 12px 40px rgb(12 19 34 / 10%);
  --max: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-underline-offset: 3px;
}

:focus-visible {
  outline: 3px solid var(--glow);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  z-index: 100;
}
.skip:focus {
  left: 12px;
}

.wrap {
  width: min(var(--max), 100% - 48px);
  margin-inline: auto;
}

/* ---------- type ---------- */

h1,
h2,
h3 {
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0;
  font-weight: 750;
  text-wrap: balance;
}
h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.6rem);
  font-weight: 800;
}
h2 {
  font-size: clamp(1.6rem, 2.9vw, 2.3rem);
}
h3 {
  font-size: 1.08rem;
  letter-spacing: -0.015em;
  line-height: 1.25;
}
p {
  margin: 0;
}

.eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}
.on-dark .eyebrow {
  color: var(--glow);
}

.lede {
  font-size: clamp(1rem, 1.3vw, 1.12rem);
  color: var(--muted);
  max-width: 62ch;
  margin-top: 18px;
}
.on-dark .lede {
  color: #b7c4de;
}

.mono {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

/* ---------- navigation ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  transition: background 0.3s, box-shadow 0.3s;
}
.nav.solid {
  background: rgb(2 11 31 / 86%);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgb(255 255 255 / 8%);
}
.nav .wrap {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
  font-size: 1.15rem;
}
.brand svg {
  width: 28px;
  height: 28px;
}
.nav ul {
  display: flex;
  gap: 26px;
  list-style: none;
  margin: 0 0 0 auto;
  padding: 0;
}
.nav ul a {
  color: #c6d2ea;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
}
.nav ul a:hover {
  color: #fff;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 650;
  font-size: 1rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  cursor: pointer;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn-primary {
  background: linear-gradient(135deg, #3a63ff, #1f8bff);
  color: #fff;
  box-shadow: 0 8px 30px rgb(47 91 255 / 45%);
}
.btn-ghost {
  color: #fff;
  background: rgb(255 255 255 / 8%);
  border-color: rgb(255 255 255 / 22%);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover {
  background: rgb(255 255 255 / 15%);
}
.btn-dark {
  background: var(--ink);
  color: #fff;
}
.btn-line {
  border-color: var(--line);
  color: var(--ink);
  background: var(--surface);
}
.nav .btn {
  padding: 10px 20px;
  font-size: 0.92rem;
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: center;
  color: #fff;
  background: var(--navy);
  overflow: hidden;
  padding: 120px 0 80px;
}
.hero video,
.band video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(1200px 600px at 12% 30%, rgb(2 11 31 / 10%), rgb(2 11 31 / 80%) 70%),
    linear-gradient(180deg, rgb(2 11 31 / 30%) 0%, rgb(2 11 31 / 92%) 100%);
}
.hero .wrap {
  position: relative;
  z-index: 2;
}
.hero h1 {
  max-width: 17ch;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(100deg, #5b8bff, #29c5ff 60%, #7be0ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero .lede {
  max-width: 56ch;
}
.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: 72px;
  background: rgb(255 255 255 / 14%);
  border: 1px solid rgb(255 255 255 / 14%);
  border-radius: var(--radius);
  overflow: hidden;
  backdrop-filter: blur(12px);
}
.stat {
  padding: 22px 26px;
  background: rgb(5 16 42 / 62%);
}
.stat b {
  display: block;
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.stat span {
  font-size: 0.88rem;
  color: #aebbd6;
}
.scroll-cue {
  position: absolute;
  bottom: 22px;
  left: 50%;
  translate: -50% 0;
  z-index: 3;
  width: 26px;
  height: 42px;
  border: 2px solid rgb(255 255 255 / 40%);
  border-radius: 14px;
}
.scroll-cue::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 8px;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  border-radius: 2px;
  background: #fff;
  animation: cue 1.8s infinite;
}
@keyframes cue {
  0% {
    opacity: 0;
    transform: translateY(0);
  }
  30% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(14px);
  }
}

/* ---------- sections ---------- */

section {
  position: relative;
  padding: clamp(64px, 8vw, 112px) 0;
}
.on-dark {
  background: var(--navy);
  color: #fff;
}
.band {
  overflow: hidden;
}
.band .shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgb(2 11 31 / 88%), rgb(2 11 31 / 74%) 50%, rgb(2 11 31 / 92%));
}
.band .wrap {
  position: relative;
  z-index: 2;
}
.head {
  max-width: 740px;
}
.center {
  margin-inline: auto;
  text-align: center;
}
.center .lede {
  margin-inline: auto;
}

/* the five checks */

.checks {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-top: 56px;
}
.check {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px 24px;
  position: relative;
  transition: transform 0.25s, box-shadow 0.25s;
}
.check:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}
.check .n {
  position: absolute;
  top: 18px;
  right: 20px;
  font-weight: 800;
  color: #d6d9e1;
  font-size: 1.5rem;
  letter-spacing: -0.04em;
}
.check svg {
  width: 38px;
  height: 38px;
  color: var(--accent);
  margin-bottom: 20px;
}
.check h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}
.check p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}
.pull {
  margin-top: 48px;
  padding: 24px 28px;
  border-radius: var(--radius);
  background: var(--nogo-soft);
  color: #6d1d19;
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.pull svg {
  flex: none;
  width: 30px;
  height: 30px;
  margin-top: 2px;
}

/* verdict + browser frame */

.split.wide-right {
  grid-template-columns: 0.8fr 1.2fr;
}
.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
}
.chips {
  display: grid;
  gap: 12px;
  margin-top: 36px;
}
.chip {
  display: grid;
  grid-template-columns: 112px 1fr;
  align-items: center;
  gap: 16px;
  font-size: 0.97rem;
}
.chip b {
  text-align: center;
  padding: 7px 0;
  border-radius: 999px;
  font-size: 0.82rem;
  letter-spacing: 0.05em;
}
.go {
  background: var(--go-soft);
  color: var(--go);
}
.nogo {
  background: var(--nogo-soft);
  color: var(--nogo);
}
.hold {
  background: var(--hold-soft);
  color: var(--hold);
}
.counsel {
  background: var(--counsel-soft);
  color: var(--counsel);
}
.nodata {
  background: var(--nodata-soft);
  color: var(--nodata);
}
.rule-note {
  margin-top: 32px;
  padding-left: 18px;
  border-left: 3px solid var(--accent);
  color: var(--muted);
  font-size: 1rem;
}
.rule-note b {
  color: var(--ink);
}

.frame {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.frame .bar {
  display: flex;
  gap: 7px;
  align-items: center;
  padding: 11px 14px;
  background: #efeee8;
  border-bottom: 1px solid var(--line);
}
.frame .bar i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #d3d1c8;
}
.frame .bar span {
  margin-left: 10px;
  font-size: 0.78rem;
  color: var(--faint);
}
.frame img,
.frame video {
  width: 100%;
}
.tilt {
  transform: none;
}

/* how it works */

.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
  margin-top: 56px;
}
.step {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  background: rgb(255 255 255 / 7%);
  border: 1px solid rgb(255 255 255 / 15%);
  border-radius: var(--radius);
  padding: clamp(22px, 3vw, 36px);
  backdrop-filter: blur(14px);
}
.step:nth-child(even) {
  grid-template-columns: 1.2fr 0.8fr;
}
.step:nth-child(even) .txt {
  order: 2;
}
@media (max-width: 980px) {
  .step:nth-child(even) {
    grid-template-columns: 1fr;
  }
  .step:nth-child(even) .txt {
    order: 0;
  }
}
.step .num {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3a63ff, #1f8bff);
  font-weight: 800;
  margin-bottom: 20px;
}
.step p {
  color: #b7c4de;
  margin-top: 10px;
  font-size: 0.98rem;
}
.step img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  border: 1px solid rgb(255 255 255 / 14%);
  background: #fff;
}

.flow {
  margin-top: 60px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  align-items: stretch;
}
.node {
  position: relative;
  background: rgb(255 255 255 / 8%);
  border: 1px solid rgb(255 255 255 / 18%);
  border-radius: 14px;
  padding: 18px 16px;
  text-align: center;
  font-size: 0.9rem;
  color: #d7e1f5;
}
.node b {
  display: block;
  color: #fff;
  font-size: 1rem;
  margin-bottom: 4px;
}
.node + .node::before {
  content: "";
  position: absolute;
  left: -22px;
  top: 50%;
  width: 22px;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--glow) 0 6px, transparent 6px 12px);
  background-size: 24px 2px;
  animation: dash 0.9s linear infinite;
}
@keyframes dash {
  to {
    background-position: 24px 0;
  }
}
.flow .node {
  margin-left: 22px;
}
.flow .node:first-child {
  margin-left: 0;
}
.node.never {
  border-style: dashed;
  opacity: 0.8;
}

/* proof */

.bars {
  margin-top: 60px;
  display: grid;
  gap: 26px;
}
.bar-row {
  display: grid;
  grid-template-columns: 210px 1fr 96px;
  gap: 20px;
  align-items: center;
}
.bar-row .who b {
  display: block;
  font-weight: 650;
}
.bar-row .who span {
  font-size: 0.85rem;
  color: #9fb0cf;
}
.track {
  height: 34px;
  border-radius: 10px;
  background: rgb(255 255 255 / 9%);
  overflow: hidden;
}
.fill {
  height: 100%;
  width: 0;
  border-radius: 10px;
  background: linear-gradient(90deg, #3a63ff, #29c5ff);
  transition: width 1.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.bar-row.us .fill {
  background: linear-gradient(90deg, #14a36b, #5be3a8);
}
.bar-row.weak .fill {
  background: linear-gradient(90deg, #5b6a88, #8b9bb8);
}
.bar-row .val {
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
  text-align: right;
}
.falsego {
  margin-top: 70px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.fg {
  padding: 28px;
  border-radius: var(--radius);
  background: rgb(255 255 255 / 6%);
  border: 1px solid rgb(255 255 255 / 14%);
}
.fg b {
  display: block;
  font-size: clamp(2.4rem, 4.4vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
}
.fg.bad b {
  color: #ff7d77;
}
.fg.zero b {
  color: #5be3a8;
}
.fg span {
  display: block;
  margin-top: 10px;
  font-weight: 650;
}
.fg small {
  display: block;
  margin-top: 6px;
  color: #9fb0cf;
  line-height: 1.4;
}
.quote {
  margin-top: 60px;
  font-size: clamp(1.2rem, 2.2vw, 1.7rem);
  font-weight: 650;
  letter-spacing: -0.025em;
  line-height: 1.25;
  max-width: 24ch;
}
.quote em {
  font-style: normal;
  color: var(--glow);
}
.fine {
  margin-top: 40px;
  font-size: 0.9rem;
  color: #9fb0cf;
  max-width: 78ch;
}
.fine a {
  color: #8fb0ff;
}

/* governance */

.cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 56px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.card p {
  color: var(--muted);
  font-size: 0.98rem;
}
.card img {
  margin-top: auto;
  border-radius: 10px;
  border: 1px solid var(--line);
}
.card .tag {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}
.pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 56px;
  align-items: start;
}
.pair figure {
  margin: 0;
}
.pair figcaption {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.95rem;
}
.pair figcaption b {
  color: var(--ink);
}

/* ontology */

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}
.pill {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgb(255 255 255 / 22%);
  background: rgb(255 255 255 / 7%);
  font-size: 0.9rem;
  font-weight: 550;
  color: #dbe5fa;
}
.numbers {
  display: flex;
  gap: 40px;
  margin-top: 36px;
  flex-wrap: wrap;
}
.numbers b {
  display: block;
  font-size: 2.1rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}
.numbers span {
  color: #9fb0cf;
  font-size: 0.88rem;
}
.reads {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 60px;
}
.reads a {
  display: block;
  padding: 24px;
  border-radius: var(--radius);
  background: rgb(255 255 255 / 6%);
  border: 1px solid rgb(255 255 255 / 14%);
  color: #fff;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
}
.reads a:hover {
  background: rgb(255 255 255 / 11%);
  transform: translateY(-4px);
}
.reads b {
  display: block;
  margin-bottom: 6px;
}
.reads span {
  color: #a9b8d6;
  font-size: 0.93rem;
}

/* architecture */

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 48px;
}
.tab {
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s;
}
.tab[aria-selected="true"] {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.panel {
  margin-top: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}
.panel[hidden] {
  display: none;
}
.panel button.zoom {
  all: unset;
  display: block;
  cursor: zoom-in;
  width: 100%;
}
.panel img {
  width: auto;
  max-width: 100%;
  max-height: min(84vh, 1000px);
  margin: 0 auto;
  object-fit: contain;
  border-radius: 8px;
}
.panel p {
  margin: 14px 6px 2px;
  color: var(--muted);
  font-size: 0.92rem;
  text-align: center;
}
dialog {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: 96vw;
  max-height: 96vh;
}
dialog::backdrop {
  background: rgb(2 11 31 / 88%);
  backdrop-filter: blur(6px);
}
dialog img {
  max-width: 96vw;
  max-height: 92vh;
  border-radius: 12px;
  background: #fff;
}
dialog button {
  position: fixed;
  top: 18px;
  right: 22px;
  font-size: 2rem;
  line-height: 1;
  background: none;
  border: 0;
  color: #fff;
  cursor: pointer;
}

/* video */

.player {
  margin-top: 50px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 30px 90px rgb(0 0 0 / 55%);
  border: 1px solid rgb(255 255 255 / 14%);
}
.player video {
  width: 100%;
  background: #000;
}

/* beyond patents */

.vs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 50px;
}
.vs .card ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  display: grid;
  gap: 8px;
}
.vs .yes {
  border-top: 4px solid var(--go);
}
.vs .no {
  border-top: 4px solid var(--hold);
}

/* explore */

.links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 50px;
}
.links a {
  display: block;
  padding: 26px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}
.links a:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}
.links b {
  display: block;
  font-size: 1.1rem;
  margin-bottom: 6px;
  letter-spacing: -0.015em;
}
.links span {
  color: var(--muted);
  font-size: 0.95rem;
}
.links b::after {
  content: " →";
  color: var(--accent);
}

footer {
  background: var(--navy);
  color: #9fb0cf;
  padding: 60px 0;
  font-size: 0.92rem;
}
footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
footer p {
  max-width: 64ch;
}
footer a {
  color: #cfdcf5;
}

/* motion: sections rise in once */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.reveal.in {
  opacity: 1;
  transform: none;
}
.d1 {
  transition-delay: 0.08s;
}
.d2 {
  transition-delay: 0.16s;
}
.d3 {
  transition-delay: 0.24s;
}
.d4 {
  transition-delay: 0.32s;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .fill {
    transition: none;
  }
  .node + .node::before,
  .scroll-cue::after {
    animation: none;
  }
  .tilt {
    transform: none;
  }
}

/* small screens */

@media (max-width: 980px) {
  .nav ul {
    display: none;
  }
  .nav .btn {
    margin-left: auto;
  }
  .checks {
    grid-template-columns: repeat(2, 1fr);
  }
  .split,
  .split.wide-right,
  .step,
  .steps,
  .cols,
  .pair,
  .vs,
  .reads,
  .links,
  .falsego {
    grid-template-columns: 1fr;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .flow {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .flow .node {
    margin-left: 0;
  }
  .node + .node::before {
    left: 50%;
    top: -22px;
    width: 2px;
    height: 22px;
    background: repeating-linear-gradient(180deg, var(--glow) 0 6px, transparent 6px 12px);
  }
  .bar-row {
    grid-template-columns: 1fr 70px;
  }
  .bar-row .who {
    grid-column: 1 / -1;
  }
  .tilt {
    transform: none;
  }
}
@media (max-width: 560px) {
  body {
    font-size: 16px;
  }
  .wrap {
    width: min(var(--max), 100% - 36px);
  }
  .checks {
    grid-template-columns: 1fr;
  }
  .stats {
    margin-top: 48px;
  }
  .stat {
    padding: 16px;
  }
  .pull {
    flex-direction: column;
  }
}

/* phones: a diagram is wider than the screen, so it scrolls sideways at a size that can be read */
@media (max-width: 700px) {
  .panel {
    padding: 12px;
  }
  .panel button.zoom {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .panel img {
    max-width: none;
    width: 880px;
    max-height: none;
  }
  .panel p::before {
    content: "Swipe to pan, tap to enlarge. ";
    color: var(--faint);
  }
  dialog {
    overflow: auto;
    max-width: 100vw;
    max-height: 100vh;
  }
  dialog img {
    max-width: none;
    max-height: none;
    width: 1500px;
  }
}

/* ---------- plain-words sections: the problem, the data, the technology, the story ---------- */

.quad {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 44px;
}
.mini {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 22px;
}
.mini .n {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  font-size: 0.9rem;
  margin-bottom: 16px;
}
.mini h3 {
  font-size: 1rem;
  margin-bottom: 8px;
}
.mini p {
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.5;
}
.scene {
  margin: 36px 0 0;
  padding: 28px 32px;
  border-radius: var(--radius);
  background: var(--navy);
  color: #fff;
}
.scene figcaption {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--glow);
}
.scene blockquote {
  margin: 14px 0 0;
  font-size: clamp(1.05rem, 1.7vw, 1.3rem);
  line-height: 1.5;
  font-weight: 550;
  letter-spacing: -0.01em;
}
.scene p {
  margin-top: 14px;
  color: #aebbd6;
  font-size: 0.94rem;
}
.scene b {
  color: #5be3a8;
}

.sources {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-top: 48px;
}
.src {
  padding: 20px 18px;
  border-radius: 14px;
  background: var(--bg);
  border: 1px solid var(--line);
}
.src b {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}
.src span {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.45;
  display: block;
}
.src.gap {
  background: var(--hold-soft);
  border-color: #f0d9a3;
}
.sub {
  margin-top: 64px;
  font-size: 1.15rem;
}
.findings {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 22px;
}
.find {
  padding: 26px 26px 24px;
  border-radius: var(--radius);
  background: var(--navy);
  color: #fff;
}
.find b {
  display: block;
  font-size: clamp(2.2rem, 3.8vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: #ffb866;
}
.find b small {
  font-size: 0.45em;
  font-weight: 600;
  letter-spacing: 0;
  color: #c7d3ec;
}
.find span {
  display: block;
  margin-top: 12px;
  font-size: 0.93rem;
  line-height: 1.5;
  color: #c7d3ec;
}
.takeaway {
  margin-top: 36px;
  padding-left: 18px;
  border-left: 3px solid var(--accent);
  max-width: 78ch;
  font-size: 1.02rem;
  color: var(--ink);
}

.ideas {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 52px;
}
.idea {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 22px 26px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.idea svg {
  width: 100%;
  height: auto;
  margin-bottom: 10px;
  background: #f4f5fb;
  border-radius: 12px;
  color: var(--accent);
  font-family: inherit;
  font-size: 11.5px;
}
.idea svg text {
  fill: var(--ink);
}
.idea svg circle,
.idea svg rect {
  fill: #fff;
  stroke: var(--accent);
  stroke-width: 1.6;
}
.idea svg .hub {
  fill: #e5ebff;
}
.idea svg .pick {
  fill: var(--go-soft);
  stroke: var(--go);
}
.idea svg .dash {
  stroke-dasharray: 5 4;
  stroke: var(--hold);
  fill: var(--hold-soft);
}
.idea svg .bar {
  fill: #d4defc;
  stroke: none;
}
.idea svg .arrow,
.idea svg .head {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.idea svg .rel {
  fill: var(--muted);
  font-style: italic;
}
.idea svg .q {
  fill: var(--hold);
  font-weight: 700;
}
.idea h3 {
  font-size: 1.02rem;
}
.idea p {
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.55;
}
.idea-note {
  background: var(--navy);
  border-color: var(--navy);
  justify-content: center;
}
.idea-note h3 {
  color: #fff;
}
.idea-note p {
  color: #b7c4de;
}
.idea-note a {
  color: #8fb0ff;
  font-size: 0.93rem;
  font-weight: 600;
}

.timeline {
  list-style: none;
  margin: 56px 0 0;
  padding: 0;
  position: relative;
  display: grid;
  gap: 26px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 21px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent), #b9c7ff);
}
.stage {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 24px;
  align-items: start;
}
.stage .dot {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 0 0 6px var(--bg);
}
.stage > div {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 28px;
}
.stage h3 {
  margin-bottom: 10px;
}
.stage p {
  color: var(--muted);
  font-size: 0.97rem;
  line-height: 1.6;
}
.stage .learned {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  color: var(--ink);
}

.reasons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 48px;
}
.reason {
  padding: 24px;
  border-radius: var(--radius);
  background: var(--bg);
  border: 1px solid var(--line);
}
.reason h3 {
  font-size: 1.02rem;
  margin-bottom: 8px;
}
.reason p {
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.55;
}
.reason b {
  color: var(--ink);
}

@media (max-width: 1100px) {
  .quad {
    grid-template-columns: repeat(2, 1fr);
  }
  .sources {
    grid-template-columns: repeat(2, 1fr);
  }
  .ideas {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 760px) {
  .quad,
  .sources,
  .findings,
  .ideas,
  .reasons {
    grid-template-columns: 1fr;
  }
  .stage {
    grid-template-columns: 34px 1fr;
    gap: 14px;
  }
  .stage .dot {
    width: 34px;
    height: 34px;
    font-size: 0.9rem;
  }
  .timeline::before {
    left: 16px;
  }
  .stage > div {
    padding: 18px;
  }
  .scene {
    padding: 22px 20px;
  }
}
