/* style.css — Style A: minimal / clean */

:root {
  --bg: #fafafa;
  --ink: #1a1a2e;
  --ink-soft: #55586b;
  --line: #d0d2da;
  --land: #e8e9ed;
  --land-line: #d0d2da;
  --accent: #2563eb;
  --accent-dark: #1d4ed8;
  --accent-soft: #eef2ff;
  --danger: #b91c1c;
  --danger-soft: rgba(185, 28, 28, 0.18);
  --max-width: 1100px;
  --radius: 10px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
}

a {
  color: var(--accent-dark);
}

img {
  max-width: 100%;
}

/* ---------- Nav ---------- */

.site-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 5;
  background: var(--bg);
}

.site-nav__brand {
  font-weight: 700;
  font-size: 17px;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.01em;
}

.site-nav__links {
  display: flex;
  gap: 28px;
}

.site-nav__links a {
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  opacity: 0.65;
  transition: opacity 0.15s ease;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
}

.site-nav__links a:hover {
  opacity: 1;
}

.site-nav__links a.active {
  opacity: 1;
  border-bottom-color: var(--accent);
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 24px 40px;
  text-align: center;
  color: var(--ink-soft);
  font-size: 13px;
}

/* ---------- Layout containers ---------- */

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 48px 40px;
}

main.wide {
  max-width: none;
  padding: 0;
}

h1 {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}

h2 {
  font-size: 24px;
  font-weight: 700;
  margin: 40px 0 12px;
}

p {
  color: var(--ink-soft);
  margin: 0 0 16px;
}

.lede {
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 640px;
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 20px;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 17px;
}

.card .meta {
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 12px;
}

.tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-dark);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 3px 10px;
  margin-right: 6px;
}

/* ---------- Project sub-navigation ---------- */

.sub-nav {
  border-bottom: 1px solid var(--line);
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 4;
}

.sub-nav__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  gap: 26px;
  overflow-x: auto;
}

.sub-nav__inner a {
  color: var(--ink);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  opacity: 0.55;
  padding: 12px 0 10px;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: opacity 0.15s ease;
}

.sub-nav__inner a:hover {
  opacity: 1;
}

.sub-nav__inner a.active {
  opacity: 1;
  color: var(--accent-dark);
  border-bottom-color: var(--accent);
}

/* ---------- Scrollable proposal deck ---------- */

.deck {
  padding: 56px 0 64px;
  border-bottom: 1px solid var(--line);
}

.deck:last-of-type {
  border-bottom: none;
}

.deck__label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 10px;
}

.deck h2 {
  margin-top: 0;
  max-width: 760px;
}

.deck > p {
  max-width: 720px;
}

/* The bolded research question */

.deck--question {
  padding: 56px 0 60px;
}

.question {
  font-size: 25px;
  line-height: 1.45;
  font-weight: 700;
  color: var(--ink);
  max-width: 820px;
  margin: 0;
  border-left: 4px solid var(--accent);
  padding: 4px 0 4px 22px;
}

.question em {
  font-style: italic;
  color: var(--accent-dark);
}

/* ---------- Figures ---------- */

.fig {
  margin: 26px 0 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}

.fig__svg {
  width: 100%;
  height: auto;
  display: block;
}

.fig figcaption {
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.5;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.fig__sub {
  font-size: 10px;
  fill: var(--ink-soft);
  text-anchor: middle;
}

.fig__foot {
  font-size: 12px;
  fill: var(--ink-soft);
  text-anchor: middle;
  font-style: italic;
}

/* ---------- Fig 1: US demand map ---------- */

.us-land {
  fill: var(--land);
  stroke: var(--land-line);
  stroke-width: 1;
}

/* Fig 1 plane animation, injected by js/us-plane.js */

.us-plane-route {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.3;
  stroke-linecap: round;
  opacity: 0.55;
}

.us-plane-icon {
  fill: var(--accent-dark);
}

.us-plane-city-dot {
  fill: var(--accent-dark);
  opacity: 0.7;
}

/* ---------- Fig 2 extra: one route, two ways ---------- */

.example-edge {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.2;
}

.example-edge--hub {
  stroke-dasharray: 5 4;
  opacity: 0.85;
}

.example-edge--p2p {
  opacity: 0.9;
}

.example-emit {
  fill: var(--danger);
  opacity: 0.32;
}

.example-emit--lg {
  opacity: 0.5;
}

.example-node {
  fill: #fff;
  stroke: var(--accent-dark);
  stroke-width: 2;
}

.example-node--hub {
  fill: var(--accent-dark);
}

.example-node--skip {
  fill: #fff;
  stroke: var(--line);
  stroke-dasharray: 2 2;
  opacity: 0.6;
}

.example-label {
  font-size: 11px;
  font-weight: 700;
  fill: var(--ink);
  text-anchor: middle;
}

.example-label--skip {
  fill: var(--ink-soft);
  font-weight: 500;
  font-style: italic;
}

.example-route-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  fill: var(--ink-soft);
  text-transform: uppercase;
}

.example-caption {
  font-size: 11px;
  fill: var(--ink-soft);
  text-anchor: middle;
}

.example-caption strong {
  fill: var(--ink);
}

.demand circle {
  fill: var(--accent);
  fill-opacity: 0.22;
  stroke: var(--accent);
  stroke-width: 1.2;
}

.demand-dot circle {
  fill: var(--accent-dark);
}

.fig__code text {
  font-size: 9px;
  font-weight: 700;
  fill: var(--ink);
  text-anchor: middle;
  dominant-baseline: middle;
  paint-order: stroke;
  stroke: #fff;
  stroke-width: 2.5px;
  stroke-linejoin: round;
}

.demand-legend {
  fill: var(--accent);
  fill-opacity: 0.22;
  stroke: var(--accent);
  stroke-width: 1.2;
}

.fig__legend text {
  font-size: 11px;
  fill: var(--ink-soft);
}

.fig__legend .fig__legend-sub {
  font-size: 9.5px;
  opacity: 0.8;
}

/* ---------- Split figures ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.split__half {
  padding: 4px 22px;
}

.split__half:first-child {
  border-right: 1px solid var(--line);
}

.split--tight .split__half {
  padding: 4px 10px;
}

.split__title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--ink);
  text-align: center;
  margin-bottom: 8px;
}

.split__notes {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
}

.split__notes li {
  font-size: 12.5px;
  color: var(--ink-soft);
  padding-left: 15px;
  position: relative;
  margin-bottom: 5px;
}

.split__notes li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.split__notes--warn li::before {
  background: var(--danger);
}

.verdict-box {
  margin-top: 16px;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 12.5px;
  font-weight: 700;
}

.verdict-box__sub {
  display: block;
  font-size: 10.5px;
  font-weight: 500;
  margin-top: 3px;
}

.verdict-box--ok {
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  color: var(--accent-dark);
}

.verdict-box--warn {
  background: var(--danger-soft);
  border: 1px solid var(--danger);
  color: var(--danger);
}

.verdict-box--warn .verdict-box__sub {
  color: var(--ink-soft);
}

.verdict-box--ok .verdict-box__sub {
  color: var(--ink-soft);
}

/* ---------- Fig 2: network diagrams ---------- */

.net-edge line {
  stroke: var(--accent);
  fill: none;
}

.net-edge--hub line {
  stroke-width: 2.6;
  opacity: 0.85;
}

.net-edge--p2p line {
  stroke-width: 1.1;
  opacity: 0.45;
}

.net-node circle {
  fill: #fff;
  stroke: var(--accent-dark);
  stroke-width: 2;
}

.net-hub {
  fill: var(--accent-dark);
}

.net-hub-label {
  font-size: 9px;
  font-weight: 700;
  fill: #fff;
  text-anchor: middle;
}

/* ---------- Fig 3: fuel vs air quality ---------- */

.icon-fill {
  fill: var(--accent);
  fill-opacity: 0.85;
}

.icon-fill--warn {
  fill: var(--danger);
  fill-opacity: 0.5;
  stroke: var(--danger);
  stroke-width: 1.5;
}

.icon-in {
  font-size: 11px;
  font-weight: 700;
  fill: #fff;
  text-anchor: middle;
}

.icon-cap {
  font-size: 10.5px;
  font-weight: 600;
  fill: var(--ink);
  text-anchor: middle;
}

/* refinery icon (climate side) */

.refinery-fill {
  fill: var(--accent);
  fill-opacity: 0.85;
}

.refinery-stroke {
  fill: none;
  stroke: var(--accent-dark);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.refinery-flame {
  fill: var(--danger);
  opacity: 0.75;
}

/* coughing person icon (air quality side) */

.person-fill {
  fill: var(--danger);
  fill-opacity: 0.55;
  stroke: var(--danger);
  stroke-width: 1.4;
}

.person-stroke {
  fill: none;
  stroke: var(--danger);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cough-mark path {
  fill: none;
  stroke: var(--danger);
  stroke-width: 1.8;
  stroke-linecap: round;
  opacity: 0.8;
}

.cough-dot {
  fill: var(--danger);
  opacity: 0.55;
}

.flow-arrow {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
}

.flow-arrow--warn {
  stroke: var(--danger);
  stroke-width: 1.4;
  opacity: 0.6;
}

.arrow-head {
  fill: var(--accent);
}

.arrow-head--warn {
  fill: var(--danger);
  opacity: 0.75;
}

/* ---------- Four method panels ---------- */

.panels {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 24px;
}

.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  position: relative;
}

.panel__num {
  position: absolute;
  top: 16px;
  right: 18px;
  font-size: 26px;
  font-weight: 800;
  color: var(--line);
  letter-spacing: -0.03em;
}

.panel__icon {
  width: 64px;
  height: 64px;
  display: block;
  margin-bottom: 12px;
}

.panel h3 {
  font-size: 16px;
  margin: 0 0 8px;
  max-width: 88%;
}

.panel p {
  font-size: 13.5px;
  margin: 0;
}

.p-stroke {
  fill: none;
  stroke: var(--accent-dark);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.p-fill {
  fill: var(--accent);
  fill-opacity: 0.6;
}

.p-accent {
  fill: var(--accent-dark);
}

/* ---------- Fig: data restrictions ---------- */

.datacol rect {
  fill: #fff;
  stroke-width: 1.5;
}

.datacol--open rect {
  stroke: var(--accent);
  fill: var(--accent-soft);
}

.datacol--locked rect {
  stroke: var(--danger);
  fill: var(--danger-soft);
}

.datacol__head {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-anchor: middle;
  fill: var(--ink);
}

.datacol__icon {
  font-size: 22px;
  text-anchor: middle;
}

.datacol__item text {
  font-size: 10.5px;
  fill: var(--ink-soft);
}

.datacol--locked .datacol__item text {
  fill: #7a2020;
}

.bridge rect {
  fill: #fff;
  stroke: var(--ink-soft);
  stroke-width: 1.5;
  stroke-dasharray: 5 4;
}

.bridge__arrow {
  fill: none;
  stroke: var(--ink-soft);
  stroke-width: 2;
}

.bridge__head {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-anchor: middle;
  fill: var(--ink);
}

.bridge__sub {
  font-size: 9.5px;
  text-anchor: middle;
  fill: var(--ink-soft);
}

/* ---------- Pipeline diagram status indicators ---------- */

.status--done {
  fill: #16a34a;
  stroke: #15803d;
}

.status--in-progress {
  fill: #d97706;
  stroke: #b45309;
}

.status--not-started {
  fill: #94a3b8;
  stroke: #64748b;
}

/* Pipeline diagram layout */

.pipeline-diagram {
  overflow-x: auto;
  margin: 20px 0;
}

.pipeline-stage-label {
  font-size: 10px;
  font-weight: 600;
  fill: var(--ink);
  text-anchor: middle;
}

.pipeline-check-label {
  font-size: 8.5px;
  fill: var(--ink-soft);
  text-anchor: middle;
  font-style: italic;
}

.pipeline-arrow {
  fill: none;
  stroke: var(--ink-soft);
  stroke-width: 1.5;
  marker-end: url(#arrow);
}

.pipeline-legend-item text {
  font-size: 11px;
  fill: var(--ink);
}

/* ---------- "Next" link at page bottom ---------- */

.next-up {
  margin-top: 44px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--ink-soft);
}

.next-up span {
  margin-right: 8px;
}

.next-up a {
  font-weight: 700;
  text-decoration: none;
}

.next-up a:hover {
  text-decoration: underline;
}

/* ---------- Dev log two-column layout ---------- */

.devlog-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 8px;
}

.devlog-col__label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  margin-bottom: 6px;
}

.devlog-col p {
  margin: 0;
}

.devlog-col:first-child {
  border-right: 1px solid var(--line);
  padding-right: 24px;
}

@media (max-width: 720px) {
  .devlog-columns {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .devlog-col:first-child {
    border-right: none;
    border-bottom: 1px solid var(--line);
    padding-right: 0;
    padding-bottom: 16px;
  }
}

/* ---------- Hero / Map (home page) ---------- */

.hero {
  position: relative;
  overflow: hidden;
}

.hero-text {
  text-align: center;
  padding: 8px 20px 40px;
}

.hero-text h1 {
  font-size: 40px;
}

.hero-text p {
  font-size: 16px;
}

.map-wrap {
  padding: 8px 40px 0;
}

.map-svg {
  width: 100%;
  height: auto;
  display: block;
}

.land {
  fill: var(--land);
  stroke: var(--land-line);
  stroke-width: 0.5;
}

.route-line {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.4;
  stroke-linecap: round;
  opacity: 0.85;
  pointer-events: none;
}

.route-line-hit {
  fill: none;
  stroke: transparent;
  stroke-width: 14;
  stroke-linecap: round;
  cursor: pointer;
  pointer-events: stroke;
}

.city-dot {
  fill: var(--accent);
  pointer-events: none;
}

.plane {
  cursor: pointer;
}

.plane-icon {
  fill: var(--accent-dark);
}

.plane:hover .plane-icon {
  fill: #0f172a;
}

.plane-hit {
  fill: transparent;
  pointer-events: all;
}

/* Emissions easter egg */

.emission-trail {
  fill: none;
  stroke: #3a3a3a;
  stroke-width: 2.5;
  stroke-linecap: round;
  opacity: 0;
}

.emission-particle {
  fill: #3a3a3a;
  pointer-events: none;
}

.emission-tooltip {
  position: absolute;
  max-width: 220px;
  background: #1a1a2e;
  color: #fff;
  font-size: 12.5px;
  line-height: 1.4;
  padding: 8px 10px;
  border-radius: 6px;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -8px);
  transition: opacity 0.3s ease;
  z-index: 10;
}

.emission-tooltip::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -5px;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: #1a1a2e;
}

@media (max-width: 860px) {
  .split {
    grid-template-columns: 1fr;
  }
  .split__half:first-child {
    border-right: none;
    border-bottom: 1px solid var(--line);
    padding-bottom: 20px;
    margin-bottom: 20px;
  }
  .panels {
    grid-template-columns: 1fr;
  }
  .question {
    font-size: 21px;
  }
}

@media (max-width: 720px) {
  .sub-nav__inner {
    padding: 0 20px;
    gap: 18px;
  }
  .fig {
    padding: 14px;
  }
  .site-nav {
    flex-direction: column;
    gap: 12px;
    padding: 16px 20px;
  }
  .site-nav__links {
    gap: 18px;
    flex-wrap: wrap;
    justify-content: center;
  }
  main {
    padding: 32px 20px;
  }
  .map-wrap {
    padding: 8px 16px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
