:root {
  --navy: #0e1428;
  --navy-2: #151d37;
  --white: #ffffff;
  --paper: #f7f7f7;
  --ink: #151821;
  --muted: #747987;
  --line: #e7e7ea;
  --gold: #c59b45;
  --green: #007c70;
  --shadow: 10px 10px 20px rgba(0, 0, 0, 0.05);
  --max: 1236px;
  --font: titling-gothic-fb, -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Helvetica, Arial, sans-serif;
  --font-wide: titling-gothic-fb-wide, "Arial Narrow", "Roboto Condensed", Arial, sans-serif;
  --mono: "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--navy);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

main {
  background: var(--paper);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  width: 100%;
  height: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1380px;
  min-height: 88px;
  margin: 0 auto;
  padding: 22px 30px;
  background: rgba(14, 20, 40, 0.94);
  color: var(--white);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  width: 236px;
  min-width: 236px;
}

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

.site-header nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-header nav a {
  padding: 10px 16px;
  border-radius: 999px;
  color: #dbe2f1;
  font-size: 14px;
  font-weight: 700;
  font-family: var(--font-wide);
  letter-spacing: 0.04em;
}

.site-header nav a:hover {
  background: var(--white);
  color: var(--navy);
}

.site-header nav a.active {
  background: var(--white);
  color: var(--navy);
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 430px;
  color: var(--white);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(14, 20, 40, 0.98), rgba(14, 20, 40, 0.70)),
    url("../images/covers/machine-lab.png") center / cover;
  transform: scale(1.02);
}

.hero-copy {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: 92px 30px 86px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 900;
  font-family: var(--font-wide);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 920px;
  margin: 0;
  font-size: 60px;
  line-height: 1.08;
  letter-spacing: 0;
  font-family: var(--font-wide);
  font-weight: 400;
}

.hero p:last-child {
  max-width: 680px;
  margin: 24px 0 0;
  color: #d6dced;
  font-size: 19px;
}

.subnav {
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 22px 20px;
  background: #eef0f3;
}

.subnav a {
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--white);
  color: var(--navy);
  box-shadow: var(--shadow);
  font-size: 13px;
  font-weight: 800;
  font-family: var(--font-wide);
}

.author-landing {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 28px;
  align-items: center;
  max-width: var(--max);
  margin: 0 auto;
  padding: 58px 30px 18px;
  background: var(--paper);
}

.author-copy {
  display: grid;
  align-content: center;
  padding: 40px 44px;
  border-radius: 10px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.author-copy h2 {
  margin: 0;
  color: var(--navy);
  font-family: var(--font-wide);
  font-size: 48px;
  font-weight: 400;
  line-height: 1.05;
}

.author-role {
  margin: 12px 0 22px;
  color: var(--gold);
  font-family: var(--font-wide);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.author-copy p:not(.eyebrow):not(.author-role) {
  max-width: 760px;
  margin: 0 0 18px;
  color: #5f6674;
  font-size: 17px;
  line-height: 1.7;
}

.author-focus {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.author-focus span {
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f8f9fb;
  color: var(--navy);
  font-family: var(--font-wide);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.author-portrait {
  position: relative;
  width: 260px;
  min-height: 0;
  aspect-ratio: 3 / 4;
  margin: 0;
  overflow: hidden;
  border-radius: 10px;
  background: var(--navy);
  box-shadow: var(--shadow);
}

.author-portrait img {
  height: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: center 24%;
}

.feature-strip,
.maps,
.insights {
  background: var(--paper);
}

.feature-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 54px 30px 0;
}

.feature-card {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  min-height: 330px;
  border-radius: 10px;
  background: var(--white);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.feature-card img {
  aspect-ratio: 16 / 9;
  height: auto;
  object-fit: cover;
}

.feature-card span,
.feature-card strong,
.feature-card small {
  margin-left: 28px;
  margin-right: 28px;
}

.feature-card span {
  margin-top: 24px;
}

.feature-strip span,
.card-meta,
.article-kicker {
  color: var(--gold);
  font-size: 10px;
  font-weight: 900;
  font-family: var(--font-wide);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.feature-strip strong {
  display: block;
  margin-top: 18px;
  font-size: 24px;
  line-height: 1.2;
}

.feature-card small {
  display: block;
  margin-top: 18px;
  margin-bottom: 26px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.maps,
.insights {
  padding: 78px 30px;
}

.maps > *,
.insights > * {
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
}

.section-heading {
  margin-bottom: 28px;
}

.section-heading h2 {
  margin: 0;
  font-size: 44px;
  line-height: 1.1;
  letter-spacing: 0;
  font-family: var(--font-wide);
  font-weight: 400;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-bottom: 24px;
}

.stat {
  padding: 28px;
  border-radius: 10px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.stat strong {
  display: block;
  color: var(--navy);
  font-size: 46px;
  line-height: 1;
  font-family: var(--font-wide);
}

.stat span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.charts,
.data-visuals {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
  gap: 22px;
}

.chart-panel {
  padding: 26px;
  border-radius: 10px;
  background: var(--navy);
  box-shadow: var(--shadow);
  color: var(--white);
}

.chart-panel h3 {
  margin: 0 0 18px;
  font-size: 20px;
}

.chart-panel canvas {
  width: 100%;
  max-width: 100%;
  height: auto;
}

.data-card {
  position: relative;
  overflow: hidden;
  min-height: 390px;
  padding: 30px;
  border-radius: 14px;
  background:
    radial-gradient(circle at 20% 0%, rgba(139, 225, 211, 0.16), transparent 34%),
    linear-gradient(145deg, #111a34, #090f22 70%);
  box-shadow: 0 30px 70px rgba(14, 20, 40, 0.20);
  color: var(--white);
  isolation: isolate;
}

.data-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.8), transparent);
  z-index: -1;
}

.data-card-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.data-card-head h3 {
  margin: 0;
  font-family: var(--font-wide);
  font-size: 25px;
  font-weight: 400;
  line-height: 1.15;
}

.data-card-head span {
  flex: 0 0 auto;
  padding: 8px 11px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  color: #cbd3e4;
  font-family: var(--font-wide);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.depth-bars {
  display: grid;
  gap: 13px;
}

.depth-row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.depth-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.depth-label strong {
  overflow: hidden;
  color: #e9edf7;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.depth-label span {
  color: var(--gold);
  font-family: var(--font-wide);
  font-size: 13px;
}

.depth-track {
  position: relative;
  height: 18px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  box-shadow: inset 0 2px 8px rgba(0,0,0,0.35);
  transform: perspective(420px) rotateX(10deg);
}

.depth-track span {
  position: absolute;
  inset: 0 auto 0 0;
  width: calc(var(--value) * 1%);
  border-radius: inherit;
  background:
    linear-gradient(180deg, rgba(255,255,255,.38), rgba(255,255,255,0) 42%),
    linear-gradient(90deg, #8be1d3, #c59b45);
  box-shadow: 0 12px 28px rgba(139,225,211,.22), 8px 8px 0 rgba(0,0,0,.14);
  transform-origin: left center;
  animation: growBar .8s ease both;
  animation-delay: var(--delay);
}

@keyframes growBar {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.split-viz {
  min-height: 390px;
}

.split-stage {
  display: grid;
  gap: 24px;
  place-items: center;
}

.split-orbit {
  position: relative;
  width: min(100%, 310px);
  height: 210px;
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(255,255,255,.08), rgba(255,255,255,.02));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), inset 0 -18px 32px rgba(0,0,0,.26);
  transform: perspective(680px) rotateX(10deg);
}

.split-disc {
  position: absolute;
  display: grid;
  place-items: center;
  align-content: center;
  border-radius: 50%;
  color: var(--white);
  box-shadow: 0 24px 42px rgba(0,0,0,.34), inset 0 14px 18px rgba(255,255,255,.16);
}

.split-disc strong {
  font-family: var(--font-wide);
  font-size: 30px;
  font-weight: 400;
  line-height: 1;
}

.split-disc span {
  margin-top: 7px;
  color: rgba(255,255,255,.82);
  font-family: var(--font-wide);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.machine-disc {
  left: 30px;
  top: 38px;
  width: 138px;
  height: 138px;
  background: radial-gradient(circle at 35% 25%, #d8fff8, #00a18f 50%, #00584f);
}

.challenge-disc {
  right: 28px;
  top: 64px;
  width: 108px;
  height: 108px;
  background: radial-gradient(circle at 35% 25%, #fff3d2, #c59b45 54%, #6f4f13);
}

.split-legend {
  display: grid;
  width: 100%;
  gap: 12px;
}

.split-legend div {
  display: grid;
  grid-template-columns: 12px 54px 1fr;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 10px;
  background: rgba(255,255,255,.055);
}

.split-legend i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #8be1d3;
}

.split-legend div:nth-child(2) i {
  background: var(--gold);
}

.split-legend strong {
  font-family: var(--font-wide);
  font-size: 22px;
  font-weight: 400;
}

.split-legend span {
  color: #cbd3e4;
  font-size: 13px;
}

.graphs-hero {
  background:
    linear-gradient(90deg, rgba(14,20,40,.98), rgba(14,20,40,.74)),
    url("../images/covers/research-lab.png") center / cover;
}

.graph-dashboard {
  min-width: 0;
  max-width: var(--max);
  margin: 0 auto;
  padding: 62px 30px 82px;
}

.graph-summary {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.graph-summary article {
  min-height: 112px;
  padding: 20px;
  border-radius: 10px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.graph-summary strong {
  display: block;
  color: var(--navy);
  font-family: var(--font-wide);
  font-size: 34px;
  font-weight: 400;
  line-height: 1;
}

.graph-summary span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.1em;
  line-height: 1.3;
  text-transform: uppercase;
}

.graph-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
  min-width: 0;
}

.graph-panel,
.graph-notes {
  min-width: 0;
  padding: 28px;
  border-radius: 10px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.graph-panel-wide,
.graph-notes {
  grid-column: 1 / -1;
}

.graph-panel-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.graph-panel-head h2,
.graph-notes h2 {
  margin: 0;
  color: var(--navy);
  font-family: var(--font-wide);
  font-size: 28px;
  font-weight: 400;
  line-height: 1.12;
}

.graph-panel-head span {
  flex: 0 0 auto;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-family: var(--font-wide);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.graph-bars {
  display: grid;
  gap: 13px;
}

.graph-row {
  display: grid;
  grid-template-columns: minmax(130px, 0.36fr) minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}

.graph-row-label {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.graph-row-label strong {
  overflow: hidden;
  color: var(--navy);
  font-size: 13px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.graph-row-label span {
  flex: 0 0 auto;
  color: var(--gold);
  font-family: var(--font-wide);
  font-size: 12px;
}

.graph-row-track {
  position: relative;
  height: 16px;
  overflow: hidden;
  border-radius: 999px;
  background: #eceff4;
}

.graph-row-track span {
  position: absolute;
  inset: 0 auto 0 0;
  width: calc(var(--value) * 1%);
  border-radius: inherit;
  background: linear-gradient(90deg, #007c70, #c59b45);
  animation: growBar .8s ease both;
  animation-delay: var(--delay);
}

.timeline-bars {
  display: grid;
  grid-template-columns: repeat(30, minmax(18px, 1fr));
  gap: 8px;
  align-items: end;
  min-width: 0;
  min-height: 220px;
  padding-top: 14px;
}

.timeline-month {
  display: grid;
  gap: 8px;
  justify-items: center;
}

.timeline-stack {
  position: relative;
  width: 100%;
  height: 180px;
  border-radius: 999px;
  background: #eef1f6;
  overflow: hidden;
}

.timeline-stack span {
  position: absolute;
  inset: auto 0 0;
  height: calc(var(--total) * 1%);
  border-radius: inherit;
  background:
    linear-gradient(180deg, rgba(255,255,255,.35), rgba(255,255,255,0) 38%),
    linear-gradient(180deg, #007c70 0 calc(var(--complete) * 1%), #c59b45 calc(var(--complete) * 1%) 100%);
}

.timeline-month small {
  color: var(--muted);
  font-family: var(--font-wide);
  font-size: 9px;
  font-weight: 800;
}

.year-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.year-card {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbfbfc;
  text-align: center;
}

.year-card > strong {
  color: var(--navy);
  font-family: var(--font-wide);
  font-size: 24px;
  font-weight: 400;
}

.ring {
  display: grid;
  place-items: center;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  background: conic-gradient(#007c70 calc(var(--pct) * 1%), #e8ebf1 0);
}

.ring span {
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: var(--white);
  color: var(--navy);
  font-family: var(--font-wide);
  font-size: 20px;
}

.year-card p,
.year-card small {
  margin: 0;
  color: var(--muted);
}

.matrix-bars {
  display: grid;
  gap: 16px;
}

.matrix-row {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}

.matrix-row > strong {
  color: var(--navy);
  font-family: var(--font-wide);
  font-size: 13px;
  font-weight: 400;
}

.matrix-row div {
  position: relative;
  min-height: 34px;
  border-radius: 8px;
  background: #eef1f6;
  overflow: hidden;
}

.matrix-row div span {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: inherit;
}

.machine-bar {
  background: #007c70;
}

.challenge-bar {
  background: #c59b45;
}

.matrix-row em {
  position: relative;
  z-index: 1;
  display: block;
  padding: 8px 10px;
  color: var(--navy);
  font-style: normal;
  font-size: 12px;
  font-weight: 800;
}

.graph-notes {
  margin-top: 24px;
}

.graph-notes p:not(.eyebrow),
.graph-notes li {
  max-width: 880px;
  color: #5f6674;
  font-size: 16px;
  line-height: 1.68;
}

.graph-notes ul {
  margin: 18px 0 0;
  padding-left: 20px;
}

.collection-hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(14,20,40,.98), rgba(14,20,40,.72)),
    url("../images/covers/machine-lab.png") center / cover;
}

.challenges-hero {
  background:
    linear-gradient(90deg, rgba(14,20,40,.98), rgba(14,20,40,.72)),
    url("../images/covers/web-challenge.png") center / cover;
}

.collection-hero > div {
  max-width: var(--max);
  margin: 0 auto;
  padding: 86px 30px 82px;
}

.collection-hero h1 {
  max-width: 900px;
  margin: 0;
  font-family: var(--font-wide);
  font-size: 54px;
  font-weight: 400;
  line-height: 1.08;
}

.collection-hero p:last-child {
  max-width: 760px;
  margin: 22px 0 0;
  color: #d6dced;
  font-size: 19px;
}

.collection-summary,
.explain-panel,
.collection-groups {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: 30px;
  padding-right: 30px;
}

.collection-summary {
  display: grid;
  grid-template-columns: minmax(220px, 1.2fr) repeat(5, minmax(120px, 1fr));
  gap: 16px;
  padding-top: 44px;
}

.mini-stat {
  padding: 22px;
  border-radius: 10px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.mini-stat strong {
  display: block;
  color: var(--navy);
  font-family: var(--font-wide);
  font-size: 28px;
  font-weight: 400;
}

.mini-stat span {
  color: var(--muted);
  font-family: var(--font-wide);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.explain-panel {
  padding-top: 52px;
}

.explain-panel h2 {
  margin: 0 0 22px;
  color: var(--navy);
  font-family: var(--font-wide);
  font-size: 36px;
  font-weight: 400;
}

.explain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.explain-grid div {
  padding: 24px;
  border-radius: 10px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.explain-grid strong {
  color: var(--navy);
  font-family: var(--font-wide);
  font-weight: 400;
}

.explain-grid p {
  margin: 10px 0 0;
  color: var(--muted);
}

.collection-groups {
  padding-top: 50px;
  padding-bottom: 90px;
}

.difficulty-band + .difficulty-band {
  margin-top: 54px;
}

.difficulty-heading {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 18px;
  margin-bottom: 22px;
}

.difficulty-heading .eyebrow {
  grid-column: 1 / -1;
  margin-bottom: 0;
}

.difficulty-heading h2 {
  margin: 0;
  color: var(--navy);
  font-family: var(--font-wide);
  font-size: 34px;
  font-weight: 400;
}

.difficulty-heading > span {
  color: var(--muted);
  font-family: var(--font-wide);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.collection-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.collection-card {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 22px;
  padding: 18px;
  border-radius: 10px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.collection-thumb {
  overflow: hidden;
  align-self: stretch;
  min-height: 150px;
  border-radius: 8px;
  background: #dfe4ea;
}

.collection-thumb img {
  height: 100%;
  object-fit: cover;
}

.collection-card h3 {
  margin: 12px 0 9px;
  color: var(--navy);
  font-family: var(--font-wide);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.18;
}

.collection-card p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 22px;
  margin-bottom: 34px;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter,
.search input {
  border: 1px solid transparent;
  background: var(--white);
  color: var(--navy);
  font: inherit;
  box-shadow: var(--shadow);
}

.filter {
  min-height: 42px;
  padding: 0 15px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  font-family: var(--font-wide);
}

.filter.active,
.filter:hover {
  background: var(--navy);
  color: var(--white);
}

.search {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  font-family: var(--font-wide);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.search input {
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 14px;
  text-transform: none;
  letter-spacing: 0;
}

.insight-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
}

.insight-card {
  min-width: 0;
  border-radius: 10px;
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow);
}

.insight-card.hidden {
  display: none;
}

.card-image {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #d8dde4;
}

.card-image img {
  height: 100%;
  object-fit: cover;
  transition: transform 0.26s ease;
}

.insight-card:hover .card-image img {
  transform: scale(1.035);
}

.card-body {
  padding: 30px;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.card-meta .status-pill {
  padding: 4px 8px;
  border-radius: 999px;
  background: #eef1f6;
  color: #4d5666;
  letter-spacing: 0.1em;
}

.card-meta .status-pill.complete {
  background: rgba(0, 124, 112, 0.12);
  color: #007c70;
}

.card-meta .status-pill.partial,
.card-meta .status-pill.needs-source-review {
  background: rgba(197, 155, 69, 0.16);
  color: #8b6622;
}

.card-body h3 {
  min-height: 58px;
  margin: 0 0 14px;
  font-size: 20px;
  line-height: 1.3;
  letter-spacing: 0;
  font-family: var(--font-wide);
  font-weight: 400;
}

.card-body p {
  min-height: 88px;
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.find-more,
.back-link {
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  font-family: var(--font-wide);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.find-more::after {
  content: " ->";
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr) auto;
  gap: 28px;
  align-items: center;
  max-width: 1380px;
  margin: 0 auto;
  padding: 38px 30px;
  color: #c7cfdf;
  font-size: 13px;
}

.site-footer strong {
  display: block;
  color: var(--white);
  font-family: var(--font-wide);
  font-size: 18px;
  font-weight: 400;
}

.site-footer span {
  display: block;
  margin-top: 4px;
  color: var(--gold);
  font-family: var(--font-wide);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-footer p {
  margin: 0;
  color: #d4dbea;
  line-height: 1.55;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.site-footer nav a {
  padding: 8px 11px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  color: #dfe7f7;
  font-family: var(--font-wide);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.article-shell {
  display: grid;
  grid-template-columns: 270px minmax(0, 1040px);
  gap: 48px;
  max-width: 1320px;
  margin: 0 auto;
  padding: 46px 30px 90px;
  background: var(--paper);
}

.article-rail {
  position: sticky;
  top: 112px;
  align-self: start;
  max-height: calc(100vh - 130px);
  overflow: auto;
  padding: 22px;
  border-radius: 10px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.rail-title {
  margin: 26px 0 10px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  font-family: var(--font-wide);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.article-rail a:not(.back-link) {
  display: block;
  padding: 9px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.article-rail a.active,
.article-rail a:hover {
  color: var(--navy);
  font-weight: 800;
}

.article {
  min-width: 0;
}

.article-masthead {
  padding: 54px;
  border-radius: 10px;
  background: var(--navy);
  color: var(--white);
  box-shadow: var(--shadow);
}

.article h1 {
  max-width: 860px;
  margin: 16px 0 0;
  font-size: 46px;
  line-height: 1.16;
  letter-spacing: 0;
  font-family: var(--font-wide);
  font-weight: 400;
}

.article-masthead p {
  max-width: 820px;
  margin: 22px 0 0;
  color: #cbd3e4;
  font-size: 19px;
  line-height: 1.55;
}

.article-masthead .article-byline {
  margin-top: 14px;
  color: var(--gold);
  font-family: var(--font-wide);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.meta-row span {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #dfe7f7;
  font-size: 11px;
  font-weight: 900;
  font-family: var(--font-wide);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.article-hero {
  margin: 28px 0 0;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.source-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  gap: 24px;
  align-items: center;
  margin-top: 24px;
  padding: 28px 32px;
  border-radius: 10px;
  background:
    linear-gradient(90deg, rgba(255, 77, 88, 0.08), transparent 42%),
    var(--white);
  box-shadow: var(--shadow);
}

.source-panel h2 {
  margin: 0 0 10px;
  color: var(--navy);
  font-family: var(--font-wide);
  font-size: 25px;
  font-weight: 400;
  line-height: 1.2;
}

.source-panel p:not(.eyebrow) {
  margin: 0;
  color: #626978;
  font-size: 15px;
  line-height: 1.58;
}

.coverage-meter {
  display: grid;
  place-items: center;
  align-content: center;
  width: 132px;
  height: 132px;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, var(--white) 0 56%, transparent 57%),
    conic-gradient(#e22535 calc(var(--score) * 1%), #e7e9ee 0);
  box-shadow: inset 0 8px 20px rgba(14, 20, 40, 0.08), 0 18px 34px rgba(14, 20, 40, 0.12);
}

.coverage-meter strong {
  color: var(--navy);
  font-family: var(--font-wide);
  font-size: 28px;
  font-weight: 400;
  line-height: 1;
}

.coverage-meter span {
  color: #8a909d;
  font-family: var(--font-wide);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.source-panel ul {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 18px;
  margin: 0;
  padding: 18px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.source-panel li {
  overflow: hidden;
  color: #737a88;
  font-family: var(--mono);
  font-size: 12px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.confidence-note {
  grid-column: 1 / -1;
  padding: 18px 20px;
  border: 1px solid #ece0c6;
  border-radius: 8px;
  background: #fffaf0;
}

.confidence-note strong {
  display: block;
  margin-bottom: 6px;
  color: var(--navy);
  font-family: var(--font-wide);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.confidence-note p {
  margin: 0;
  color: #5f6674;
}

.article-hero img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.graph-first {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 22px;
  margin-top: 24px;
}

.brief-card,
.attack-graph,
.walkthrough-steps,
.operator-lessons {
  margin: 0;
  border-radius: 10px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.brief-card {
  padding: 28px 32px;
}

.brief-card h2 {
  margin: 0 0 12px;
  color: var(--navy);
  font-family: var(--font-wide);
  font-size: 28px;
  font-weight: 400;
  line-height: 1.18;
}

.brief-card p:not(.eyebrow) {
  margin: 0;
  color: #626978;
  font-size: 16px;
  line-height: 1.62;
}

.objective-card {
  border-top: 4px solid var(--gold);
}

.attack-graph {
  grid-column: 1 / -1;
  overflow-x: auto;
  overflow-y: hidden;
  background: #fff;
}

.attack-graph img {
  aspect-ratio: 16 / 9;
  min-width: 760px;
  max-width: none;
  object-fit: cover;
}

.walkthrough-steps {
  grid-column: 1 / -1;
  padding: 28px 32px;
}

.step-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.step-card {
  min-height: 132px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfbfc;
}

.step-card span {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-wide);
  font-size: 12px;
}

.step-card p {
  margin: 14px 0 0;
  color: #515967;
  font-size: 14px;
  line-height: 1.45;
}

.operator-lessons {
  grid-column: 1 / -1;
  padding: 26px 32px;
  border-left: 4px solid #e22535;
}

.operator-lessons ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
}

.operator-lessons li {
  color: #5f6674;
}

.source-panel.compact {
  padding: 24px 28px;
}

.source-panel.compact .confidence-note,
.source-panel.compact ul {
  display: none;
}

.content-body {
  margin-top: 28px;
  padding: 50px 54px;
  border-radius: 10px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.content-body h2,
.related h2 {
  margin: 44px 0 18px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--navy);
  font-size: 30px;
  line-height: 1.2;
  font-family: var(--font-wide);
  font-weight: 400;
}

.content-body h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.content-body h3 {
  margin: 32px 0 12px;
  color: var(--navy);
  font-size: 23px;
  font-family: var(--font-wide);
  font-weight: 400;
}

.content-body h4,
.content-body h5 {
  margin: 24px 0 8px;
  color: var(--navy);
}

.content-body p,
.content-body li {
  color: #686d78;
  font-size: 18px;
  line-height: 1.72;
}

.content-body code {
  padding: 0.12em 0.34em;
  border: 1px solid #e0e3e7;
  border-radius: 4px;
  background: #f1f3f5;
  color: #28313b;
  font-family: var(--mono);
  font-size: 0.88em;
}

.code-panel {
  width: calc(100% + 108px);
  margin: 28px -54px;
  background: #111318;
  color: #edf1f7;
}

.code-label {
  padding: 12px 54px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #95a0af;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.code-panel pre {
  margin: 0;
  padding: 22px 54px;
  overflow: auto;
}

.code-panel code {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 13px;
}

.table-wrap {
  width: calc(100% + 20px);
  margin: 26px -10px;
  overflow-x: auto;
}

.table-wrap table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  border: 1px solid var(--line);
  background: #fbfbfc;
  font-size: 14px;
}

.table-wrap th,
.table-wrap td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  border-left: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.table-wrap th:first-child,
.table-wrap td:first-child {
  border-left: 0;
}

.table-wrap th {
  background: #eef1f6;
  color: var(--navy);
  font-family: var(--font-wide);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.table-wrap td {
  color: #5f6674;
}

.analogy-panel {
  position: relative;
  overflow: hidden;
  margin-top: 46px;
  padding: 34px 38px;
  border-radius: 10px;
  background:
    linear-gradient(90deg, rgba(225, 36, 52, 0.18), transparent 46%),
    linear-gradient(145deg, #111827, #070b16 78%);
  color: var(--white);
  box-shadow: 0 26px 54px rgba(14, 20, 40, 0.28);
}

.analogy-panel::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 7px;
  background: linear-gradient(180deg, #ff4d58, #c59b45);
}

.analogy-panel::after {
  content: "";
  position: absolute;
  right: -90px;
  top: -110px;
  width: 260px;
  height: 260px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 77, 88, 0.18), transparent 64%);
}

.analogy-panel .eyebrow {
  margin-bottom: 12px;
  color: #ff6a72;
}

.analogy-panel h2 {
  position: relative;
  margin: 0 0 16px;
  padding: 0;
  border: 0;
  color: var(--white);
  font-size: 28px;
}

.analogy-panel p {
  position: relative;
  max-width: 820px;
  color: #d9dfec;
  font-size: 17px;
  line-height: 1.68;
}

.analogy-panel p:last-child {
  margin-bottom: 0;
}

.analogy-panel strong {
  color: var(--white);
}

.related {
  margin-top: 28px;
  padding: 34px;
  border-radius: 10px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.related h2 {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.related-card {
  min-height: 128px;
  padding: 18px;
  border-radius: 8px;
  background: var(--paper);
}

.related-card span {
  color: var(--gold);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.related-card strong {
  display: block;
  margin-top: 16px;
  line-height: 1.22;
}

@media (max-width: 1100px) {
  .feature-strip,
  .insight-grid,
  .charts,
  .data-visuals,
  .graph-grid,
  .article-shell {
    grid-template-columns: 1fr 1fr;
  }

  .graph-grid,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .graph-summary {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .site-footer nav {
    justify-content: flex-start;
  }

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

  .article-rail {
    display: none;
  }

  .article-shell {
    display: block;
  }

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

@media (max-width: 720px) {
  .site-header {
    position: static;
    flex-direction: column;
    align-items: flex-start;
  }

  .site-header nav {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 8px;
  }

  .site-header nav a {
    padding: 8px 11px;
    font-size: 13px;
  }

  .hero-copy {
    padding: 56px 22px;
  }

  .hero h1 {
    font-size: 34px;
    line-height: 1.16;
  }

  .hero p:last-child,
  .content-body p,
  .content-body li {
    font-size: 15px;
    line-height: 1.65;
  }

  .subnav,
  .author-landing,
  .feature-strip,
  .stats-grid,
  .charts,
  .data-visuals,
  .graph-summary,
  .graph-grid,
  .insight-grid,
  .related-grid,
  .graph-first,
  .step-grid,
  .collection-summary,
  .explain-grid,
  .collection-grid {
    grid-template-columns: 1fr;
  }

  .subnav {
    display: grid;
  }

  .feature-strip,
  .author-landing,
  .graph-dashboard,
  .maps,
  .insights,
  .article-shell,
  .collection-hero > div,
  .collection-summary,
  .explain-panel,
  .collection-groups {
    padding-left: 20px;
    padding-right: 20px;
  }

  .graph-panel,
  .graph-notes {
    padding: 24px;
  }

  .graph-panel-head {
    display: grid;
  }

  .graph-panel-head h2,
  .graph-notes h2 {
    font-size: 25px;
  }

  .graph-row,
  .matrix-row {
    grid-template-columns: 1fr;
  }

  .graph-row-label {
    justify-content: flex-start;
  }

  .timeline-bars {
    display: flex;
    max-width: 100%;
    overflow-x: auto;
    padding-bottom: 12px;
  }

  .timeline-month {
    flex: 0 0 22px;
  }

  .timeline-stack {
    height: 150px;
  }

  .year-cards {
    grid-template-columns: 1fr;
  }

  .author-landing {
    justify-items: start;
    gap: 18px;
    padding-top: 42px;
  }

  .author-copy {
    padding: 28px;
  }

  .author-copy h2 {
    font-size: 34px;
  }

  .author-copy p:not(.eyebrow):not(.author-role) {
    font-size: 15px;
  }

  .author-portrait {
    width: min(220px, 70vw);
    aspect-ratio: 3 / 4;
  }

  .author-portrait img {
    min-height: 0;
  }

  .depth-row,
  .collection-card,
  .source-panel,
  .source-panel ul {
    grid-template-columns: 1fr;
  }

  .depth-label {
    justify-content: flex-start;
  }

  .collection-hero h1 {
    font-size: 34px;
  }

  .section-heading h2 {
    font-size: 32px;
  }

  .article-masthead,
  .source-panel,
  .brief-card,
  .walkthrough-steps,
  .operator-lessons,
  .content-body,
  .related {
    padding: 28px;
  }

  .step-card {
    min-height: auto;
  }

  .analogy-panel {
    padding: 28px;
  }

  .article h1 {
    font-size: 31px;
    line-height: 1.25;
  }

  .article-masthead p {
    font-size: 15px;
  }

  .code-panel {
    width: calc(100% + 56px);
    margin-left: -28px;
    margin-right: -28px;
  }

  .code-label,
  .code-panel pre {
    padding-left: 28px;
    padding-right: 28px;
  }
}
