/* SeaPower — editorial scientific scrollytelling */
:root {
  --paper: #f1ece0;
  --paper-2: #e8e0cf;
  --ink: #0c1a26;
  --ink-2: #2a3744;
  --ink-mute: #5a6773;
  --sea-deep: #03192b;
  --sea-mid: #0a3148;
  --sea: #1a4d6b;
  --foam: #b8d4d8;
  --rust: #c97a3a;
  --rust-deep: #9c5a24;
  --line: #0c1a2620;
  --line-strong: #0c1a2640;
  --line-sea: #ffffff15;
  --line-sea-strong: #ffffff30;

  --serif: "Newsreader", "Source Serif 4", Georgia, serif;
  --sans: "IBM Plex Sans", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}

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

html, body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body { overflow-x: hidden; }

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

/* ——— Skip link & focus ——— */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  padding: 12px 16px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
}
.skip-link:focus { left: 16px; top: 16px; }

:focus-visible {
  outline: 2px solid var(--rust);
  outline-offset: 3px;
  border-radius: 1px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* ——— Mono labels ——— */
.label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 500;
}
.label .num {
  color: var(--rust);
  font-weight: 600;
  margin-right: 0.6em;
}

/* ——— Layout ——— */
.wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 48px;
}
.wrap-narrow {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 48px;
}

/* ——— Nav ——— */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 48px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--ink);
  background: rgba(241, 236, 224, 0.78);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.nav .brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 600; letter-spacing: 0.04em;
  color: var(--ink);
}
.nav .brand-mark { width: 32px; height: 32px; display: block; }
.nav-links { display: flex; gap: 28px; }
.nav-links a { opacity: 0.7; transition: opacity .2s; }
.nav-links a:hover { opacity: 1; }
.nav-cta { padding: 6px 14px; border: 1px solid currentColor; border-radius: 999px; opacity: 0.9; transition: opacity .2s; }
.nav-cta:hover { opacity: 1; }

/* mobile nav toggle */
.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  padding: 8px;
  cursor: pointer;
  flex-direction: column;
  gap: 4px;
  color: inherit;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: currentColor;
  transition: transform .25s, opacity .25s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* ——— Hero ——— */
.hero {
  min-height: auto;
  padding: 140px 0 0;
  display: flex;
  flex-direction: column;
  position: relative;
  border-bottom: 1px solid var(--line);
}
.hero-eyebrow {
  display: flex; gap: 24px; align-items: baseline; flex-wrap: wrap;
  margin-bottom: 80px;
}
.thesis-pill {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 6px 12px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: transparent;
  display: inline-flex;
  align-items: center;
  font-weight: 500;
}
.thesis-pill::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--rust);
  margin-right: 8px;
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.4); }
}
@media (prefers-reduced-motion: reduce) {
  .thesis-pill::before { animation: none; }
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(48px, 7vw, 104px);
  line-height: 0.98;
  letter-spacing: -0.03em;
  max-width: 14ch;
  text-wrap: balance;
}
.hero h1 em {
  font-style: italic;
  font-weight: 400;
  font-feature-settings: "lnum";
}
.hero h1 em:last-of-type { color: var(--rust); }
.hero-meta {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-top: 48px;
  border-top: 1px solid var(--line);
  margin-top: 80px;
}
.hero-meta .lede {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.35;
  font-weight: 300;
  max-width: 38ch;
  color: var(--ink-2);
}
.hero-meta .meta-cell .label { display: block; margin-bottom: 8px; }
.hero-meta .meta-cell .val {
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1.2;
  font-weight: 400;
}

/* Hero ocean strip */
.hero-strip {
  height: 160px;
  background: linear-gradient(180deg, transparent 0%, var(--sea-deep) 100%);
  position: relative;
  overflow: hidden;
  margin-top: 96px;
}
.hero-strip svg { position: absolute; bottom: 0; left: 0; width: 100%; height: 100%; }
.hero-wave { transform-origin: center; will-change: transform; }
.hero-field {
  fill: none;
  stroke: var(--foam);
  stroke-width: 1;
  opacity: 0.28;
}
.hero-field circle {
  fill: var(--rust);
  stroke: none;
  opacity: 0.85;
}
.hero-field path { stroke: var(--rust); stroke-dasharray: 4 6; opacity: 0.55; }

/* ——— Section chrome ——— */
.section {
  padding: 120px 0;
  border-bottom: 1px solid var(--line);
}
.section.dark {
  background: var(--sea-deep);
  color: var(--paper);
  border-bottom-color: var(--line-sea);
}
.section.dark .label { color: var(--foam); opacity: 0.7; }
.section.dark .label .num { color: var(--rust); }

.section-head {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
  padding-bottom: 64px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 64px;
}
.section.dark .section-head { border-bottom-color: var(--line-sea); }
.section-head h2 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(32px, 4.4vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.section-head .deck {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.45;
  font-weight: 300;
  color: var(--ink-2);
  max-width: 50ch;
}
.section.dark .section-head .deck { color: #d8cfba; }

/* ——— Big number / resource scale ——— */
.scale {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 56px;
  align-items: end;
}
.scale .big {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(72px, 11vw, 168px);
  line-height: 0.88;
  letter-spacing: -0.045em;
}
.scale .big .unit {
  display: block;
  font-size: 0.26em;
  color: var(--foam);
  letter-spacing: 0.04em;
  margin-top: 0.08em;
  line-height: 1;
}
.scale .big .range {
  display: block;
  font-size: 0.3em;
  color: var(--rust);
  line-height: 1.2;
  margin-top: 0.55em;
  letter-spacing: -0.01em;
}
.scale-text p {
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.5;
  font-weight: 300;
  margin-bottom: 16px;
  max-width: 56ch;
}
.scale-text p .hi { color: var(--rust); }

.scale-bars { margin-top: 80px; padding-top: 48px; border-top: 1px solid var(--line-sea); }
.scale-bars .bar-row {
  display: grid;
  grid-template-columns: 220px 1fr 120px;
  align-items: center;
  gap: 24px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-sea);
  font-family: var(--mono);
  font-size: 12px;
}
.scale-bars .bar-row .name { font-weight: 500; }
.scale-bars .bar-track { height: 14px; background: #ffffff10; position: relative; }
.scale-bars .bar-fill {
  height: 100%;
  background: var(--foam);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 0.8s cubic-bezier(.22,1,.36,1);
  transition-delay: var(--delay, 0ms);
}
.scale-bars .bar-row.now .bar-fill { background: var(--rust); }
.scale-bars .bar-row.demand .bar-fill {
  background: repeating-linear-gradient(
    -45deg,
    rgba(95,179,196,0.18) 0,
    rgba(95,179,196,0.18) 3px,
    transparent 3px,
    transparent 8px
  );
  border-top: 1px dashed rgba(184,212,216,0.7);
  border-bottom: 1px dashed rgba(184,212,216,0.7);
}
.scale-bars .bar-row.demand .name { color: var(--foam); font-style: italic; }
.scale-bars .bar-row.demand { border-top: 1px solid var(--line-sea-strong); border-bottom-color: var(--line-sea-strong); }
.scale-bars .bar-row.visible .bar-fill { transform: scaleX(var(--scale, 1)); }
.scale-bars .val { transition: opacity .4s; }
.scale-bars-footnote {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line-sea);
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.5;
  font-weight: 300;
  font-style: italic;
  color: #c8bfaa;
  max-width: 60ch;
}
.scale-bars-footnote em { font-style: normal; color: var(--rust); font-weight: 500; }
.scale-bars-footnote .ar { color: var(--rust); margin-right: 6px; font-style: normal; }
.scale-bars .val { text-align: right; font-variant-numeric: tabular-nums; }

/* ——— Paradox (pinned) ——— */
.paradox {
  position: relative;
}
.paradox-stage {
  position: sticky;
  top: 80px;
  height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 48px;
}
.paradox-text { padding-right: 48px; }
.paradox-text h3 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.0;
  letter-spacing: -0.02em;
  margin: 16px 0 24px;
}
.paradox-text p {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.5;
  font-weight: 300;
  color: var(--ink-2);
  max-width: 40ch;
}
.paradox-stage svg { width: 100%; height: auto; max-height: 70vh; }
.paradox-viz svg {
  background: linear-gradient(180deg, rgba(255,255,255,0.18), rgba(255,255,255,0.03));
  border: 1px solid var(--line);
  box-shadow: 0 20px 60px -48px rgba(12,26,38,0.45);
}
.paradox-viz path,
.paradox-viz line { vector-effect: non-scaling-stroke; }
#paradox-curve { filter: drop-shadow(0 1px 0 rgba(255,255,255,0.5)); }
#paradox-marker { filter: drop-shadow(0 0 8px rgba(95,179,196,0.55)); }
.paradox-spacer { height: 200vh; }

/* ——— Converter types — sticky panels ——— */
.converters {
  position: relative;
  background: var(--paper);
}
.converters-pin {
  position: sticky;
  top: 0;
  height: 100vh;
  display: grid;
  grid-template-columns: 380px 1fr;
  align-items: stretch;
  border-bottom: 1px solid var(--line);
}
.conv-side {
  padding: 80px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid var(--line);
  background: var(--paper-2);
}
.conv-counter {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--ink-mute);
  margin-bottom: 24px;
}
.conv-counter .cur { color: var(--rust); font-weight: 600; }
.conv-name {
  font-family: var(--serif);
  font-size: 44px;
  line-height: 1.0;
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  min-height: 2.2em;
}
.conv-desc {
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.5;
  font-weight: 300;
  color: var(--ink-2);
  margin-bottom: 32px;
  min-height: 6em;
}
.conv-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.conv-stat .label { display: block; margin-bottom: 4px; }
.conv-stat .v { font-family: var(--serif); font-size: 22px; line-height: 1.1; }
.conv-stage {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #e9e1cd 0%, #b8c4c7 60%, #5b7882 100%);
}
.conv-stage::before,
.conv-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}
.conv-stage::before {
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,0.04) 0 1px, transparent 1px 16px),
    linear-gradient(180deg, transparent 0 45%, rgba(3,25,43,0.18) 45% 100%);
  mix-blend-mode: soft-light;
}
.conv-stage::after {
  background: radial-gradient(ellipse at 62% 34%, rgba(255,255,255,0.22), transparent 34%),
              linear-gradient(90deg, rgba(3,25,43,0.04), transparent 25%, transparent 70%, rgba(3,25,43,0.08));
}
.conv-stage svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.conv-frame {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.01);
  transition: opacity .55s cubic-bezier(.22,1,.36,1), transform .8s cubic-bezier(.22,1,.36,1);
}
.conv-frame.active { opacity: 1; transform: scale(1); }

/* progress dots */
.conv-progress {
  position: absolute;
  right: 32px; top: 50%;
  transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 12px;
  z-index: 5;
}
.conv-progress .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #ffffff40;
  transition: all .3s;
}
.conv-progress .dot.active { background: var(--rust); transform: scale(1.4); }

.converters-spacer > div { height: 100vh; }
.converter-mobile-list { display: none; }
.converter-mobile-card {
  border-top: 1px solid var(--line);
  padding: 22px 0;
}
.converter-mobile-top {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 14px;
  align-items: baseline;
  margin-bottom: 10px;
}
.converter-mobile-top .site-num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--rust);
  letter-spacing: 0.1em;
}
.converter-mobile-card h3 {
  font-family: var(--serif);
  font-size: 28px;
  line-height: 1.08;
  font-weight: 400;
}
.converter-mobile-card p {
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.45;
  font-weight: 300;
  color: var(--ink-2);
}
.converter-mobile-card dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.converter-mobile-card dt {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 4px;
}
.converter-mobile-card dd {
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.15;
}

/* ——— Architecture diagram ——— */
.arch {
  background: var(--sea-deep);
  color: var(--paper);
}
.arch-mode-panel {
  margin-top: 42px;
  padding: 22px 0;
  border-top: 1px solid var(--line-sea);
  border-bottom: 1px solid var(--line-sea);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: 32px;
  align-items: center;
}
.arch-mode-copy h3 {
  margin: 8px 0 8px;
  font-family: var(--serif);
  font-size: 28px;
  line-height: 1.08;
  font-weight: 400;
  color: #fff;
  max-width: 18ch;
}
.arch-mode-copy p {
  max-width: 66ch;
  color: #c8bfaa;
  font-size: 14px;
  line-height: 1.55;
}
.arch-mode-controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line-sea-strong);
}
.arch-mode-button {
  appearance: none;
  border: 0;
  border-right: 1px solid var(--line-sea-strong);
  background: rgba(10,49,72,0.42);
  color: #c8bfaa;
  padding: 16px;
  text-align: left;
  cursor: pointer;
  transition: background .22s ease, color .22s ease, box-shadow .22s ease;
}
.arch-mode-button:last-child { border-right: 0; }
.arch-mode-button span {
  display: block;
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.1;
  color: #fff;
}
.arch-mode-button small {
  display: block;
  margin-top: 5px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8fb6bd;
}
.arch-mode-button:hover,
.arch-mode-button:focus-visible {
  background: rgba(95,179,196,0.12);
}
.arch-mode-button.active {
  background: linear-gradient(135deg, rgba(201,122,58,0.22), rgba(95,179,196,0.10));
  box-shadow: inset 0 0 0 1px rgba(201,122,58,0.55);
}
.arch-mode-button.active small { color: var(--rust); }
.arch-diagram {
  margin-top: 64px;
  position: relative;
  height: 520px;
  border: 1px solid var(--line-sea);
  border-radius: 2px;
  overflow: hidden;
  background: radial-gradient(ellipse at 30% 40%, rgba(95,179,196,0.10), transparent 34%), var(--sea-deep);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), 0 24px 80px -64px rgba(95,179,196,0.42);
}
.arch-diagram svg { width: 100%; height: 100%; display: block; }
.arch-diagram::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,0.035), transparent 30%),
              repeating-linear-gradient(90deg, rgba(255,255,255,0.018) 0 1px, transparent 1px 80px);
}
.arch-satellite {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .5s ease, transform .5s cubic-bezier(.22,1,.36,1);
}
.arch[data-arch-mode="satellite"] .arch-satellite {
  opacity: 1;
  transform: translateY(0);
}
.arch[data-arch-mode="satellite"] .arch-diagram {
  background: radial-gradient(ellipse at 82% 16%, rgba(201,122,58,0.12), transparent 24%),
              radial-gradient(ellipse at 30% 40%, rgba(95,179,196,0.10), transparent 34%),
              var(--sea-deep);
}
.sat-node { transform-box: fill-box; transform-origin: center; animation: sat-float 6s ease-in-out infinite; }
.sat-beam { animation: sat-dash 2.2s linear infinite; }
.sat-ping { animation: sat-ping 1.8s ease-out infinite; transform-box: fill-box; transform-origin: center; }
.sat-module-rail {
  filter: drop-shadow(0 12px 18px rgba(0,0,0,0.24));
}
.arch-module-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 34px;
}
.arch-module-card {
  border-top: 1px solid var(--line-sea);
  padding-top: 16px;
  opacity: 0.62;
  transition: opacity .22s ease, border-color .22s ease, transform .22s ease;
}
.arch-module-card h4 {
  margin: 8px 0 6px;
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.12;
  font-weight: 400;
  color: #fff;
}
.arch-module-card p {
  color: #c8bfaa;
  font-size: 13px;
  line-height: 1.5;
}
.arch[data-arch-mode="core"] .arch-module-card[data-module-mode="core"],
.arch[data-arch-mode="satellite"] .arch-module-card[data-module-mode="satellite"] {
  opacity: 1;
  border-top-color: var(--rust);
  transform: translateY(-2px);
}
.arch-legend {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: 48px;
}
.arch-legend .item {
  border-top: 1px solid var(--line-sea);
  padding-top: 16px;
}
.arch-legend h4 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  margin: 8px 0 8px;
}
.arch-legend p {
  font-size: 13px;
  line-height: 1.5;
  color: #c8bfaa;
}

/* ——— DC concept ——— */
.dc-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 64px;
  align-items: start;
}
.dc-spec-block {
  background: var(--paper-2);
  border: 1px solid var(--line);
  padding: 48px;
  box-shadow: 0 1px 0 var(--line), 0 16px 40px -28px rgba(12,26,38,0.18);
}
.dc-spec-block h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 40px;
  margin-bottom: 32px;
  line-height: 1.05;
  letter-spacing: -0.01em;
}
.dc-spec-row {
  display: grid;
  grid-template-columns: 1fr auto;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 13px;
  align-items: baseline;
  gap: 16px;
}
.dc-spec-row .k { color: var(--ink-mute); }
.dc-spec-row .v { font-family: var(--serif); font-size: 20px; }
.dc-spec-row .v.hi { color: var(--rust); font-weight: 500; }
.dc-spec-note {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px dashed var(--line-strong);
  font-family: var(--serif);
  font-size: 14px;
  line-height: 1.6;
  font-weight: 300;
  color: var(--ink-mute);
}
.dc-spec-note .label { display: block; margin-bottom: 6px; color: var(--rust); }
.dc-spec-note a { color: var(--ink); border-bottom: 1px solid var(--line-strong); }
.dc-spec-note a:hover { border-bottom-color: var(--rust); }

/* ——— What we are / aren't ——— */
.is-isnot {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  padding-top: 8px;
}
.is-isnot ul { list-style: none; padding: 0; }
.is-isnot li {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.45;
  font-weight: 300;
  color: var(--ink);
  padding: 18px 0 18px 32px;
  position: relative;
  border-bottom: 1px solid var(--line);
}
.is-isnot li:last-child { border-bottom: 0; }
.is-isnot li::before {
  position: absolute;
  left: 0;
  top: 22px;
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
}
.is-col.is { border-top: 1px solid var(--sea); padding-top: 4px; }
.is-col.is .is-label { display: block; color: var(--sea); margin-bottom: 4px; font-weight: 600; }
.is-col.is li::before { content: "+"; color: var(--sea); }
.is-col.isnot { border-top: 1px solid var(--ink-mute); padding-top: 4px; }
.is-col.isnot .isnot-label { display: block; color: var(--ink-mute); margin-bottom: 4px; font-weight: 600; }
.is-col.isnot li { color: var(--ink-mute); }
.is-col.isnot li::before { content: "−"; color: var(--ink-mute); }
.is-status {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.5;
  font-weight: 300;
  color: var(--ink-2);
  max-width: 72ch;
}

/* ——— Footer segmented CTAs ——— */
.footer-cta-list li { padding: 6px 0; }
.footer-cta-list a {
  display: inline-block;
  color: var(--paper);
  font-family: var(--serif);
  font-size: 14px;
  line-height: 1.4;
  padding: 4px 0;
  border-bottom: 1px solid transparent;
  transition: border-color .2s, color .2s;
}
.footer-cta-list a:hover { border-bottom-color: var(--rust); color: #fff; }
.dc-cards { display: flex; flex-direction: column; gap: 12px; }
.dc-card {
  border: 1px solid var(--line);
  padding: 22px 24px;
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 20px;
  background: var(--paper);
}
.dc-card .ico {
  width: 36px; height: 36px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.dc-card .ico svg { width: 18px; height: 18px; }
.dc-card h4 {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 400;
  margin-bottom: 6px;
  line-height: 1.2;
}
.dc-card p {
  font-size: 13px; line-height: 1.5;
  color: var(--ink-2);
}

/* ——— Site map ——— */
.sites {
  background: var(--sea-deep);
  color: var(--paper);
}
.world {
  margin-top: 48px;
  border-top: 1px solid var(--line-sea);
  border-bottom: 1px solid var(--line-sea);
  padding: 32px 0;
}
.world svg { width: 100%; height: auto; max-height: 500px; display: block; }

.site-list {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.site-list .site {
  padding: 24px 24px 24px 0;
  border-right: 1px solid var(--line-sea);
}
.site-list .site:last-child { border-right: 0; }
.site-list .site:not(:first-child) { padding-left: 24px; }
.site .site-num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--rust);
  letter-spacing: 0.1em;
}
.site .site-title {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  margin: 8px 0 8px;
  letter-spacing: -0.005em;
}
.site p {
  font-size: 13px; line-height: 1.5; color: #c8bfaa; margin-bottom: 12px;
}
.site .site-meta {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--foam);
}

/* ——— LCOE chart ——— */
.chart-scroll { min-width: 0; }
.cost-mobile-list { display: none; }
.chart-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: end;
}
.chart {
  position: relative;
  height: 480px;
  border-left: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  padding: 0 16px 0 0;
}
.chart-y-axis {
  position: absolute;
  left: -56px; top: 0; bottom: 0;
  width: 48px;
}
.chart-y-axis .y-tick {
  position: absolute;
  right: 8px;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-mute);
  text-align: right;
  transform: translateY(50%);
}
.chart-grid {
  position: absolute;
  left: 0; right: 0; top: 0; bottom: 0;
  pointer-events: none;
}
.chart-grid .gline {
  position: absolute; left: 0; right: 0;
  border-top: 1px dashed var(--line);
}
.chart-bars {
  position: absolute;
  inset: 0 16px 0 0;
  display: flex;
  align-items: flex-end;
  gap: 24px;
  padding: 16px 24px 0;
}
.chart-col {
  flex: 1;
  display: flex; flex-direction: column;
  align-items: stretch;
  position: relative;
  height: 100%;
  justify-content: flex-end;
}
.chart-bar {
  position: relative;
  background: #d7cbb1;
  border: 1px solid var(--line-strong);
  transform-origin: bottom;
  transform: scaleY(0);
  transition: transform 0.8s cubic-bezier(.22,1,.36,1), box-shadow .8s ease-out;
}
.chart-col:nth-child(1) .chart-bar { transition-delay: 0ms; }
.chart-col:nth-child(2) .chart-bar { transition-delay: 80ms; }
.chart-col:nth-child(3) .chart-bar { transition-delay: 160ms; }
.chart-col:nth-child(4) .chart-bar { transition-delay: 240ms; }
.chart-col:nth-child(5) .chart-bar { transition-delay: 320ms; }
.chart-col:nth-child(6) .chart-bar { transition-delay: 480ms; transition-duration: 1s; }
.chart-col.visible .chart-bar { transform: scaleY(1); }
.chart-col.hi.visible .chart-bar {
  box-shadow: 0 0 0 1px rgba(201,122,58,0.4), 0 8px 24px -4px rgba(201,122,58,0.45);
}
.chart-col .label-row {
  position: absolute;
  bottom: -56px;
  left: 0; right: 0;
  text-align: center;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-mute);
}
.chart-col .label-row .name {
  display: block;
  color: var(--ink);
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 4px;
}
.chart-col.hi .chart-bar { background: var(--rust); border-color: var(--rust-deep); }
.chart-col .midline {
  position: absolute;
  left: -3px; right: -3px;
  border-top: 1px solid var(--ink);
  pointer-events: none;
}
.chart-col .top-label {
  position: absolute;
  top: -28px; left: 0; right: 0;
  text-align: center;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink);
}

.chart-text h4 {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 16px;
}
.chart-text p {
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.55;
  font-weight: 300;
  color: var(--ink-2);
  margin-bottom: 16px;
}
.lcoe-quote {
  margin: 28px 0 8px;
  padding: 20px 0 0 22px;
  border-top: 1px solid var(--line);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.5;
  font-style: italic;
  font-weight: 300;
  color: var(--ink-2);
  position: relative;
}
.lcoe-quote::before {
  content: "";
  position: absolute;
  left: 0;
  top: 22px;
  bottom: 14px;
  width: 2px;
  background: var(--rust);
}
.lcoe-quote cite {
  display: block;
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 11px;
  font-style: normal;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

/* ——— Roadmap ——— */
.roadmap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 48px;
  border-top: 1px solid var(--line);
}
.phase {
  padding: 32px 24px;
  border-right: 1px solid var(--line);
  position: relative;
}
.phase:last-child { border-right: 0; }
.phase .yr {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--rust);
  letter-spacing: 0.1em;
  font-weight: 600;
}
.phase h4 {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 400;
  margin: 12px 0 16px;
  line-height: 1.1;
}
.phase ul {
  list-style: none;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-2);
}
.phase ul li {
  padding-left: 16px;
  position: relative;
  margin-bottom: 6px;
}
.phase ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.65em;
  width: 6px; height: 1px;
  background: var(--rust);
}

/* ——— Footer ——— */
.footer {
  background: var(--sea-deep);
  color: var(--paper);
  padding: 120px 0 48px;
}
.footer-cta {
  font-family: var(--serif);
  font-size: clamp(40px, 6vw, 80px);
  line-height: 1.0;
  font-weight: 300;
  letter-spacing: -0.02em;
  max-width: 18ch;
  margin-bottom: 80px;
  text-wrap: balance;
}
.footer-cta em { font-style: italic; color: var(--foam); }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-top: 48px;
  border-top: 1px solid var(--line-sea);
}
.footer-grid .brand-block { display: flex; flex-direction: column; gap: 16px; }
.footer-grid .brand-block .tag { font-family: var(--serif); font-style: italic; font-size: 18px; color: #c8bfaa; max-width: 28ch; }
.footer-col-h { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--foam); margin-bottom: 16px; }
.footer-col ul { list-style: none; font-size: 14px; line-height: 1.9; }
.footer-bottom {
  margin-top: 80px;
  padding-top: 24px;
  border-top: 1px solid var(--line-sea);
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 11px;
  color: #8a8270;
  letter-spacing: 0.06em;
}

/* ——— Reveal ——— */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .8s, transform .8s; }
.reveal.in { opacity: 1; transform: none; }

/* ——— Animations ——— */
@keyframes wave-shift {
  0%, 100% { transform: translateX(-28px); }
  50% { transform: translateX(28px); }
}
@keyframes hero-drift-a {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(-54px); }
}
@keyframes hero-drift-b {
  0%, 100% { transform: translateX(-26px); }
  50% { transform: translateX(42px); }
}
@keyframes field-pulse {
  0%, 100% { opacity: 0.18; }
  50% { opacity: 0.38; }
}
@keyframes bob-anim {
  0%,100% { transform: translateY(-4px); }
  50% { transform: translateY(8px); }
}
@keyframes flap-anim {
  0%,100% { transform: rotate(-12deg); }
  50% { transform: rotate(8deg); }
}
@keyframes snake-anim {
  0%,100% { transform: translateY(-3px); }
  50% { transform: translateY(3px); }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-wave-a { animation: hero-drift-a 12s ease-in-out infinite; }
  .hero-wave-b { animation: hero-drift-b 14s ease-in-out infinite; }
  .hero-wave-c { animation: hero-drift-a 16s ease-in-out infinite reverse; }
  .hero-field { animation: field-pulse 5s ease-in-out infinite; }
  .wave-anim { animation: wave-shift 5.6s ease-in-out infinite; transform-origin: center; }
  .bob       { animation: bob-anim 2.6s ease-in-out infinite; transform-origin: center; }
  .flap      { animation: flap-anim 2.4s ease-in-out infinite; transform-origin: 400px 490px; }
  .snake     { animation: snake-anim 3s ease-in-out infinite; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ——— Architecture schematic path-trace ——— */
.arch-trace {
  stroke-dasharray: var(--len, 600);
  stroke-dashoffset: var(--len, 600);
  stroke-linecap: round;
  filter: drop-shadow(0 0 5px rgba(201,122,58,0.22));
}
.arch-trace.draw {
  transition: stroke-dashoffset 0.5s cubic-bezier(.22,1,.36,1);
  stroke-dashoffset: 0;
}
.arch-step {
  opacity: 0;
  transition: opacity .45s ease-out;
}
.arch-step.shown { opacity: 1; }
#arch-replay:hover rect, #arch-replay:focus rect { opacity: 1; }
#arch-replay:focus { outline: none; }

@keyframes sat-float {
  0%, 100% { translate: 0 0; }
  50% { translate: 8px -4px; }
}
@keyframes sat-dash {
  to { stroke-dashoffset: -28; }
}
@keyframes sat-ping {
  0% { opacity: 0; scale: .82; }
  30% { opacity: 1; }
  100% { opacity: 0; scale: 1.28; }
}

/* ——— Responsive ——— */
@media (max-width: 900px) {
  .wrap, .wrap-narrow { padding: 0 24px; }
  .nav { padding: 14px 24px; }
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: fixed;
    top: 60px; right: 0;
    width: min(82vw, 320px);
    background: var(--ink);
    color: var(--paper);
    flex-direction: column;
    padding: 24px;
    gap: 18px;
    border-left: 1px solid var(--line-sea);
    transform: translateX(110%);
    transition: transform .35s cubic-bezier(.2,.7,.1,1);
    z-index: 99;
    box-shadow: -8px 0 32px rgba(0,0,0,0.25);
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { opacity: 0.9; font-size: 14px; padding: 6px 0; }
  .nav-cta { display: none; }
  .nav { padding: 12px 24px; }
  .hero-meta, .scale, .dc-grid, .chart-wrap, .arch-legend, .footer-grid, .roadmap, .site-list, .section-head, .is-isnot { grid-template-columns: 1fr; gap: 32px; }
  .arch-mode-panel {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-top: 34px;
    padding: 20px 0;
  }
  .arch-mode-copy h3 {
    max-width: none;
    font-size: 24px;
  }
  .arch-mode-controls {
    grid-template-columns: 1fr;
  }
  .arch-mode-button {
    border-right: 0;
    border-bottom: 1px solid var(--line-sea-strong);
  }
  .arch-mode-button:last-child { border-bottom: 0; }
  .arch-module-grid {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-top: 26px;
  }
  .paradox-stage { grid-template-columns: 1fr; height: auto; position: static; }
  .paradox-spacer { height: auto; }
  .converters-pin { grid-template-columns: 1fr; height: auto; position: static; }
  .conv-stage { height: 60vh; }
  .converters-spacer { display: none; }
  .converter-mobile-list {
    display: grid;
    gap: 12px;
    padding-top: 0;
    padding-bottom: 80px;
  }
  .arch-diagram {
    height: 360px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
  }
  .arch-diagram svg {
    width: 860px;
    max-width: none;
    margin-left: 0;
    transition: margin-left .45s cubic-bezier(.22,1,.36,1);
  }
  .arch[data-arch-mode="satellite"] .arch-diagram svg {
    margin-left: calc(100vw - 908px);
  }
  .chart-scroll {
    display: none;
  }
  .cost-mobile-list {
    display: grid;
    gap: 12px;
  }
  .cost-mobile-row {
    border-top: 1px solid var(--line);
    padding: 14px 0 12px;
  }
  .cost-mobile-row:last-child { border-bottom: 1px solid var(--line); }
  .cost-mobile-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: baseline;
    font-family: var(--serif);
    font-size: 18px;
    line-height: 1.2;
  }
  .cost-mobile-head strong {
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
  }
  .cost-mobile-row small {
    display: block;
    margin-top: 6px;
    font-family: var(--mono);
    font-size: 10px;
    color: var(--ink-mute);
    letter-spacing: 0.06em;
  }
  .cost-mobile-range {
    position: relative;
    height: 12px;
    margin-top: 12px;
    background: #d7cbb166;
    border: 1px solid var(--line);
  }
  .cost-mobile-range i {
    position: absolute;
    top: -1px;
    bottom: -1px;
    left: var(--lo);
    width: calc(var(--hi) - var(--lo));
    background: #d7cbb1;
    border: 1px solid var(--line-strong);
  }
  .cost-mobile-row.hi .cost-mobile-head,
  .cost-mobile-row.hi .cost-mobile-head strong {
    color: var(--rust-deep);
  }
  .cost-mobile-row.hi .cost-mobile-range i {
    background: var(--rust);
    border-color: var(--rust-deep);
  }
  .scale-bars .bar-row { grid-template-columns: 1fr; gap: 8px; }
  .roadmap .phase { border-right: 0; border-bottom: 1px solid var(--line); }
  .site-list .site { border-right: 0; border-bottom: 1px solid var(--line-sea); padding: 24px 0 !important; }
}
