:root {
  --bg: #ffffff;
  --ink: #153326;
  --muted: #567869;
  --line: #d7e8de;
  --accent: #2f9d5b;
  --core-color: #0f766e;
  --focus-ring: #226f43;

  --ring-stroke: #abc6b5;
  --axis-stroke: #8eb3a0;
  --ring-label-fill: #255e42;
  --ring-label-stroke: #ffffff;

  --popup-border: #bfd9c8;
  --popup-bg: rgba(251, 255, 253, 0.97);
  --popup-shadow: 0 18px 34px rgba(24, 57, 38, 0.16);
  --popup-meta: #4f7f65;

  --mode-btn-border: rgba(47, 157, 91, 0.36);
  --mode-btn-bg1: rgba(243, 252, 245, 0.98);
  --mode-btn-bg2: rgba(223, 246, 232, 0.95);
  --mode-btn-color: #226f43;
  --mode-btn-hover-color: #1b5f37;
  --mode-btn-shadow: 0 3px 10px rgba(33, 116, 69, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.78);

  --sat-core: #1d8eeb;
  --sat-core-light: #63c8ff;
  --sat-core-shadow: #0c5ea7;
  --sat-panel: #0d5fb0;
  --sat-dish: #a6e2ff;
  --sat-antenna: #0d5fb0;
  --sat-shadow: rgba(24, 77, 126, 0.3);

  --beam-col-start: rgba(56, 189, 248, 0.08);
  --beam-col-mid: rgba(56, 189, 248, 0.86);
  --beam-col-end: rgba(56, 189, 248, 0.08);
  --beam-glow: rgba(56, 189, 248, 0.45);

  --radar-size: min(50vw, 640px);
  --list-gap: clamp(16px, 1.5vw, 24px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

.wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1.3rem 1.25rem 2.6rem;
}

.site-bar {
  background: linear-gradient(180deg, #f3fcf5, #ffffff);
  border-bottom: 1px solid var(--line);
}

.site-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 1280px;
  margin: 0 auto;
  padding: 1.1rem 1.5rem;
}

.site-brand {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}

.site-links {
  display: inline-flex;
  gap: 0.5rem;
}

.site-links a {
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--mode-btn-color);
  text-decoration: none;
}

.site-links a:hover {
  background: var(--mode-btn-bg2);
  color: var(--mode-btn-hover-color);
}

.legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem;
  list-style: none;
  margin: 1.2rem 0 0.4rem;
  padding: 0;
}

.legend li {
  display: flex;
}

.legend-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--dot);
  border-radius: 999px;
  background: #fff;
  color: inherit;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: inherit;
  cursor: help;
}

.legend-trigger:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 3px;
}

.legend-tooltip {
  position: fixed;
  z-index: 30;
  width: 18rem;
  max-width: calc(100vw - 24px);
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--popup-border);
  border-radius: 8px;
  background: var(--popup-bg);
  box-shadow: var(--popup-shadow);
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.45;
  text-align: left;
}

.legend-count {
  min-width: 1.65em;
  padding: 0.02rem 0.35rem;
  border-radius: 999px;
  background: #f0f6f2;
  color: var(--muted);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.site-footer {
  margin-top: 1.5rem;
  background: linear-gradient(120deg, #153326, #1b4634);
  border-top: 1px solid var(--line);
  color: #c2d7cb;
  padding: 3rem 1.5rem;
  font-size: 1rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
  max-width: 1280px;
  margin: 0 auto;
}

.site-footer p {
  margin: 0.4rem 0;
  max-width: 56ch;
}

.footer-title {
  color: #f4fff8;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.footer-head {
  color: #f4fff8;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
}

.site-footer a {
  display: block;
  padding: 0.25rem 0;
  color: #c7ecd7;
  text-decoration: none;
}

.site-footer a:hover {
  color: #ffffff;
  text-decoration: underline;
}

@media (max-width: 700px) {
  .site-bar-inner {
    flex-direction: column;
  }

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

header {
  text-align: center;
  margin-bottom: 0.15rem;
}

#radar-title {
  margin: 0;
  font-size: clamp(1.95rem, 3vw, 3rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.36rem;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.mode-switch {
  display: inline-flex;
  align-items: center;
  gap: 1.12rem;
  margin-right: 0.06rem;
}

.mode-word-toggle {
  position: relative;
  z-index: 2;
  overflow: visible;
  border: 1px solid var(--mode-btn-border);
  border-radius: 999px;
  background: linear-gradient(135deg, var(--mode-btn-bg1), var(--mode-btn-bg2));
  color: var(--mode-btn-color);
  min-width: 6.2ch;
  padding: 0.1em 0.56em 0.14em;
  margin: 0;
  font: inherit;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--mode-btn-shadow);
  transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease,
    transform 0.18s ease;
}

.mode-word-toggle:hover,
.mode-word-toggle:focus-visible {
  color: var(--mode-btn-hover-color);
  border-color: rgba(47, 157, 91, 0.58);
  background: linear-gradient(135deg, rgba(236, 249, 240, 0.98), rgba(205, 238, 217, 0.96));
  box-shadow: 0 6px 15px rgba(33, 116, 69, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.84);
}

.mode-word-toggle:active {
  transform: translateY(1px);
}

.mode-word-toggle.is-space {
  border-color: rgba(37, 99, 235, 0.45);
  color: #0f4ea3;
  background: linear-gradient(135deg, rgba(242, 248, 255, 0.98), rgba(216, 234, 255, 0.96));
  box-shadow: 0 3px 10px rgba(30, 64, 175, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.84);
}

.mode-word-toggle.is-space:hover,
.mode-word-toggle.is-space:focus-visible {
  color: #0b3f85;
  border-color: rgba(37, 99, 235, 0.62);
  background: linear-gradient(135deg, rgba(235, 245, 255, 1), rgba(190, 218, 254, 0.98));
  box-shadow: 0 7px 16px rgba(30, 64, 175, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.mode-word-toggle::before {
  content: "";
  position: absolute;
  pointer-events: none;
}

.mode-word-toggle.is-space::before {
  top: 48%;
  left: 50%;
  width: 0.13rem;
  height: 0.13rem;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255, 241, 164, 0.95);
  box-shadow:
    -2.58rem -0.42rem 0 0 rgba(255, 232, 134, 0.84),
    -2.2rem 0.52rem 0 0 rgba(255, 244, 190, 0.82),
    2.55rem -0.56rem 0 0 rgba(255, 236, 154, 0.84),
    2.08rem 0.5rem 0 0 rgba(255, 226, 108, 0.82);
}

.mode-visual {
  position: relative;
  z-index: 1;
  --beam-x: calc(50% + 0.68rem);
  --beam-y: calc(50% + 0.07rem);
  --beam-rot: 0deg;
  --beam-len: clamp(3.4rem, 4.2vw, 3.9rem);
  width: clamp(5.7rem, 7vw, 7.6rem);
  height: clamp(5.7rem, 7vw, 7.6rem);
  border: 0;
  background: transparent;
  padding: clamp(0.14rem, 0.3vw, 0.24rem);
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.18s ease;
}

.mode-visual .sat-frame {
  width: 100%;
  height: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform-origin: center;
  filter: drop-shadow(0 4px 10px var(--sat-shadow));
  transition: transform 0.2s ease, filter 0.2s ease;
}

.mode-visual .sat-svg {
  width: 88%;
  height: 88%;
  display: block;
  transform: translateY(6%);
}

.mode-visual .sat-core {
  fill: var(--sat-core);
}

.mode-visual .sat-core-light {
  fill: var(--sat-core-light);
}

.mode-visual .sat-core-shadow {
  fill: var(--sat-core-shadow);
}

.mode-visual .sat-panel {
  fill: var(--sat-panel);
}

.mode-visual .sat-dish {
  fill: var(--sat-dish);
  fill-opacity: 0.75;
}

.mode-visual .sat-antenna {
  fill: none;
  stroke: var(--sat-antenna);
  stroke-width: 1.8;
  stroke-linecap: round;
}

.mode-visual .sat-antenna-dot {
  fill: var(--sat-antenna);
}

.mode-visual .beam-track {
  position: absolute;
  top: var(--beam-y);
  left: var(--beam-x);
  width: 0;
  height: 0;
  transform: translateY(-50%) rotate(var(--beam-rot));
  transform-origin: left center;
  pointer-events: none;
  z-index: 0;
  transition: left 0.2s ease, top 0.2s ease, transform 0.2s ease;
}

.mode-visual .beam {
  position: absolute;
  top: 0;
  left: 0;
  width: var(--beam-len);
  height: clamp(2.95rem, 3.65vw, 3.35rem);
  transform: translateY(-50%);
  border-radius: 999px;
  clip-path: polygon(0 28%, 100% 14%, 100% 86%, 0 72%);
  overflow: hidden;
  background: linear-gradient(to right, var(--beam-col-start) 0%, var(--beam-col-mid) 56%, var(--beam-col-end) 100%);
  box-shadow: 0 0 14px var(--beam-glow);
  filter: blur(0.7px);
  opacity: 0.96;
  animation: beam-soft-glimmer 3s ease-in-out infinite;
}

.mode-visual .beam::before,
.mode-visual .beam::after {
  content: "";
  position: absolute;
  left: 0.34rem;
  width: calc(var(--beam-len) - 0.92rem);
  border-radius: 999px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.mode-visual .beam::before {
  top: 50%;
  height: 42%;
  transform: translateY(-50%);
  background:
    radial-gradient(circle at 6% 30%, rgba(255, 242, 178, 1) 0 0.07rem, transparent 0.09rem),
    radial-gradient(circle at 12% 68%, rgba(255, 232, 136, 0.95) 0 0.06rem, transparent 0.08rem),
    radial-gradient(circle at 19% 42%, rgba(255, 248, 206, 0.96) 0 0.06rem, transparent 0.08rem),
    radial-gradient(circle at 27% 70%, rgba(255, 225, 108, 0.98) 0 0.065rem, transparent 0.085rem),
    radial-gradient(circle at 34% 32%, rgba(255, 242, 176, 0.95) 0 0.06rem, transparent 0.08rem),
    radial-gradient(circle at 42% 66%, rgba(255, 232, 128, 0.96) 0 0.065rem, transparent 0.085rem),
    radial-gradient(circle at 50% 44%, rgba(255, 248, 204, 0.94) 0 0.06rem, transparent 0.08rem),
    radial-gradient(circle at 59% 28%, rgba(255, 224, 104, 0.98) 0 0.065rem, transparent 0.085rem),
    radial-gradient(circle at 67% 62%, rgba(255, 238, 164, 0.94) 0 0.06rem, transparent 0.08rem),
    radial-gradient(circle at 75% 40%, rgba(255, 232, 124, 0.96) 0 0.065rem, transparent 0.085rem),
    radial-gradient(circle at 83% 70%, rgba(255, 246, 194, 0.92) 0 0.06rem, transparent 0.08rem),
    radial-gradient(circle at 91% 34%, rgba(255, 222, 102, 0.92) 0 0.06rem, transparent 0.08rem);
}

.mode-visual .beam::after {
  top: 50%;
  height: 30%;
  transform: translateY(-50%);
  background:
    radial-gradient(circle at 10% 38%, rgba(255, 248, 206, 0.88) 0 0.045rem, transparent 0.065rem),
    radial-gradient(circle at 24% 62%, rgba(255, 232, 126, 0.84) 0 0.045rem, transparent 0.065rem),
    radial-gradient(circle at 37% 40%, rgba(255, 242, 178, 0.84) 0 0.045rem, transparent 0.065rem),
    radial-gradient(circle at 51% 60%, rgba(255, 223, 102, 0.86) 0 0.045rem, transparent 0.065rem),
    radial-gradient(circle at 65% 35%, rgba(255, 238, 164, 0.84) 0 0.045rem, transparent 0.065rem),
    radial-gradient(circle at 79% 58%, rgba(255, 231, 124, 0.84) 0 0.045rem, transparent 0.065rem),
    radial-gradient(circle at 92% 42%, rgba(255, 246, 194, 0.8) 0 0.045rem, transparent 0.065rem);
}

.mode-visual .beam-stars {
  position: absolute;
  top: 0;
  left: calc(var(--beam-len) + 0.03rem);
  width: 0;
  height: 0;
  transform: translate(-50%, -50%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.mode-visual .beam-stars::before,
.mode-visual .beam-stars::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  pointer-events: none;
}

.mode-visual .beam-stars::before {
  width: 0.22rem;
  height: 0.22rem;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255, 239, 156, 1);
  box-shadow:
    -0.58rem -0.25rem 0 0 rgba(255, 232, 122, 0.9),
    0.42rem 0.32rem 0 0 rgba(255, 238, 142, 0.9),
    0.18rem -0.52rem 0 0 rgba(255, 246, 178, 0.88),
    0.68rem -0.18rem 0 0 rgba(255, 220, 96, 0.86),
    -0.24rem 0.52rem 0 0 rgba(255, 234, 132, 0.84),
    0.9rem 0.08rem 0 0 rgba(255, 228, 116, 0.82);
}

.mode-visual .beam-stars::after {
  width: 0.76rem;
  height: 0.76rem;
  transform: translate(-50%, -50%) rotate(12deg);
  background:
    linear-gradient(to right, transparent 42%, rgba(255, 231, 116, 0.98) 47%, rgba(255, 231, 116, 0.98) 53%, transparent 58%),
    linear-gradient(to bottom, transparent 42%, rgba(255, 231, 116, 0.98) 47%, rgba(255, 231, 116, 0.98) 53%, transparent 58%);
  filter: drop-shadow(0 0 10px rgba(255, 216, 92, 0.9));
}

.mode-visual.is-space {
  --beam-x: calc(50% + 0.58rem);
  --beam-y: calc(50% - 0.4rem);
  --beam-rot: -38deg;
}

.mode-visual.is-space .sat-frame {
  transform: rotate(-40deg);
}

.mode-visual.is-space .beam-stars {
  opacity: 1;
  animation: star-twinkle-soft 1.8s ease-in-out infinite;
}

.mode-visual.is-space .beam::before {
  opacity: 1;
  animation: beam-star-glimmer 2.2s ease-in-out infinite;
}

.mode-visual.is-space .beam::after {
  opacity: 0.9;
  animation: beam-star-glimmer 2.9s ease-in-out infinite reverse;
}

.mode-switch:hover .mode-visual,
.mode-switch:focus-within .mode-visual {
  transform: translateY(-1px) scale(1.015);
}

.mode-switch:hover .mode-visual .sat-frame,
.mode-switch:focus-within .mode-visual .sat-frame {
  transform: scale(1.08);
  filter: drop-shadow(0 6px 13px rgba(24, 77, 126, 0.34));
}

.mode-switch:hover .mode-visual.is-space .sat-frame,
.mode-switch:focus-within .mode-visual.is-space .sat-frame {
  transform: rotate(-40deg) scale(1.08);
}

.mode-visual:focus-visible,
.mode-word-toggle:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

.mode-visual[disabled],
.mode-word-toggle[disabled] {
  opacity: 0.66;
  cursor: wait;
}

#radar-subtitle {
  margin: 0.48rem 0 0;
  font-size: 1.16rem;
  font-weight: 500;
  color: var(--muted);
}

.stage {
  --radar-top: 28px;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--radar-size) minmax(0, 1fr);
  grid-template-rows: repeat(2, 1fr);
  grid-template-areas:
    "visual radar analytics"
    "data radar standards";
  /* Align each pair of headings independently of the list lengths. */
  align-items: start;
  justify-content: center;
  gap: 2rem var(--list-gap);
  width: 100%;
  margin: 1.05rem auto 0;
  padding: var(--radar-top) 0;
}

.stage::before {
  --bleed: 40rem;
  --at: 50% calc(50% + var(--bleed) / 2);
  --gap: calc(var(--radar-size) * 0.099);
  content: "";
  position: absolute;
  inset: calc(0px - var(--bleed)) calc(50% - 50vw) 0;
  z-index: -1;
  pointer-events: none;
  background: repeating-radial-gradient(circle at var(--at), transparent 0 calc(var(--gap) - 2px), #e0ebe4 0 var(--gap));
  mask-image: radial-gradient(circle at var(--at), transparent calc(var(--radar-size) / 2), #000 calc(var(--radar-size) * 0.6), transparent calc(var(--radar-size) * 1.5)),
    linear-gradient(transparent 25rem, #000 45rem, #000 calc(100% - 8rem), transparent);
  mask-composite: intersect;
}

#radar {
  position: static;
  grid-area: radar;
  align-self: center;
  justify-self: center;
  z-index: 1;
  width: var(--radar-size);
  height: var(--radar-size);
  background: radial-gradient(closest-side, rgba(229, 244, 234, 0.78), rgba(248, 252, 249, 0.92) 98%, transparent 100%);
  filter: drop-shadow(0 8px 20px rgba(24, 57, 38, 0.09));
}

.ring {
  fill: none;
  stroke: var(--ring-stroke);
  stroke-width: 2.4;
}

.axis {
  stroke: var(--axis-stroke);
  stroke-width: 2.4;
}

.ring-label {
  font-size: 20px;
  font-weight: 850;
  letter-spacing: 0.09em;
  fill: var(--ring-label-fill);
  paint-order: stroke;
  stroke: var(--ring-label-stroke);
  stroke-width: 6px;
  stroke-linejoin: round;
  pointer-events: none;
}

.blip {
  cursor: pointer;
  stroke: #ffffff;
  stroke-width: 1.8;
  filter: drop-shadow(0 4px 10px rgba(17, 34, 55, 0.2));
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 0.14s ease, filter 0.14s ease;
}

.blip:hover,
.blip:focus-visible,
.blip.active {
  transform: scale(1.08);
  filter: brightness(1.03) drop-shadow(0 6px 12px rgba(17, 34, 55, 0.25));
}

.blip.quad-hovered:not(.hovered):not(.active) {
  transform: scale(1.12);
  filter: brightness(1.04) drop-shadow(0 7px 13px rgba(17, 34, 55, 0.28));
}

.blip.hovered {
  transform: scale(1.18);
  filter: brightness(1.05) drop-shadow(0 8px 14px rgba(17, 34, 55, 0.3));
}

.core-area {
  fill-opacity: 0.11;
  pointer-events: none;
}

.core-list {
  --core-list-color: var(--core-color);
  width: min(100%, var(--radar-size));
  margin: 0.85rem auto 0;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
  text-align: center;
}

.core-title {
  color: var(--core-list-color);
}

.core-entries {
  display: flex;
  flex-wrap: wrap;
  gap: 0.28rem 0.7rem;
  justify-content: center;
}

.core-list .entry-btn {
  align-items: center;
  padding: 0.08rem 0;
  font-size: 1.06rem;
  line-height: 1.22;
  width: auto;
}

.quad-list {
  position: static;
  min-width: 0;
  padding-top: 2rem;
}

.corner-tl {
  grid-area: visual;
}

.corner-tr {
  grid-area: analytics;
}

.corner-bl {
  grid-area: data;
}

.corner-br {
  grid-area: standards;
}

.corner-tl,
.corner-bl {
  text-align: right;
}

.corner-tl .entry-column,
.corner-bl .entry-column {
  align-items: flex-end;
}

.corner-tl .entry-btn,
.corner-bl .entry-btn {
  flex-direction: row-reverse;
  text-align: right;
}

.corner-tl .entry-btn,
.corner-bl .entry-btn,
.corner-tl .quad-title-link,
.corner-bl .quad-title-link {
  transform-origin: right center;
}

.quad-title {
  margin: 0 0 0.38rem;
  font-size: 1.58rem;
  font-weight: 950;
  line-height: 1;
  letter-spacing: 0.06em;
  display: inline-block;
  padding-bottom: 0.2rem;
  border-bottom: 2.5px solid currentColor;
}

.quad-title-link {
  color: inherit;
  text-decoration: none;
  display: inline-block;
  transform-origin: left center;
  transition: transform 0.14s ease;
}

.quad-title-link:visited {
  color: inherit;
}

.quad-title-link:hover {
  transform: scale(1.04);
}

.quad-title-link:focus-visible {
  text-decoration: none;
  transform: scale(1.04);
  outline: 2px solid currentColor;
  outline-offset: 2px;
  border-radius: 2px;
}

.quad-list .quad-entries {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 0.75rem;
}

.quad-list.is-dense .quad-entries {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.entry-column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  gap: 0.12rem;
}

.entry-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  border: 0;
  background: none;
  border-radius: 4px;
  padding: 0.08rem 0;
  margin: 0;
  color: var(--ink);
  font-size: 1.06rem;
  font-weight: 400;
  line-height: 1.22;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  max-width: 100%;
  transform-origin: left center;
  transition: color 0.14s ease, background 0.14s ease;
}

.quad-list .entry-btn {
  align-items: flex-start;
  gap: 0.3rem;
  padding: 0.04rem 0;
  font-size: 1.08rem;
  line-height: 1.22;
  width: fit-content;
  min-width: 0;
}

.quad-list.is-dense .entry-btn {
  font-size: 1.02rem;
  line-height: 1.2;
}

.quad-list.is-very-dense .entry-btn {
  font-size: 0.98rem;
  line-height: 1.18;
}

.entry-label {
  min-width: 0;
}

.quad-list .entry-label {
  display: block;
  width: auto;
  white-space: normal;
  overflow-wrap: anywhere;
  hyphens: auto;
  text-wrap: pretty;
}

.core-list .entry-label {
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
  width: auto;
}

.quad-list.is-dense .quad-title {
  margin-bottom: 0.38rem;
  font-size: 1.58rem;
}

.quad-list.is-very-dense .quad-title {
  margin-bottom: 0.38rem;
  font-size: 1.58rem;
}

.quad-list .entry-dot {
  width: 0.52rem;
  height: 0.52rem;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.78);
}

.entry-btn:hover,
.entry-btn.active {
  color: var(--accent);
  background: #edf7f0;
}

.entry-btn.hovered {
  color: var(--accent);
  background: #edf7f0;
}

.entry-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.entry-dot {
  width: 0.64rem;
  height: 0.64rem;
  border-radius: 50%;
  border: 1px solid rgba(8, 25, 43, 0.16);
  flex: none;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.85);
}

.popup {
  position: fixed;
  z-index: 20;
  max-width: min(360px, calc(100vw - 24px));
  max-height: min(70vh, 560px);
  border: 1px solid var(--popup-border);
  border-radius: 14px;
  background: var(--popup-bg);
  backdrop-filter: blur(6px);
  box-shadow: var(--popup-shadow);
  padding: 0.86rem 0.94rem;
  overflow: auto;
}

.popup h2 {
  margin: 0;
  font-size: 1.24rem;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}

.popup p {
  margin: 0.44rem 0 0;
  font-size: 1.07rem;
  line-height: 1.42;
  overflow-wrap: anywhere;
}

.popup .meta {
  color: var(--popup-meta);
  font-size: 1rem;
  font-weight: 700;
}

.popup-link {
  display: inline-block;
  margin-top: 0.58rem;
  font-size: 1.04rem;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  overflow-wrap: anywhere;
}

.popup-link:hover {
  text-decoration: underline;
}

.story {
  --report-tint: #f0f8f3;
  --report-accent: #2b7650;
  max-width: 960px;
  margin: 2rem auto 0;
  padding: 1rem 0 2.4rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.2rem;
}

#story-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 70ch) minmax(0, 1fr);
}

#story-body > * {
  grid-column: 2;
  min-width: 0;
}

#story-body > .report-figure {
  grid-column: 1 / -1;
}

.story :is(h1, h2, h3, h4),
.report-contents,
.report-references,
.story .technology-list,
.report-figure {
  font-family: "Inter", "Segoe UI", sans-serif;
}

.story h1,
.story h2 {
  margin: 0 0 0.96rem;
  font-size: clamp(1.45rem, 2.5vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.3;
  scroll-margin-top: 1.5rem;
  overflow-wrap: anywhere;
}

.story h2 {
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
}

.story h2:not(:first-child) {
  margin-top: 2.8rem;
}

.section-number {
  flex: none;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--report-accent);
  font-variant-numeric: tabular-nums;
}

.story h3,
.story h4 {
  margin: 1.28rem 0 0.56rem;
  font-weight: 800;
}

.story h3 {
  font-size: 1.42rem;
}

.story h4 {
  font-size: 1.24rem;
}

.story p {
  margin: 0.8rem 0 0;
  line-height: 1.75;
  color: #214032;
}

.story ul {
  margin: 0.82rem 0 0;
  padding-left: 1.34rem;
}

.story li {
  margin: 0.35rem 0;
  line-height: 1.56;
  color: #214032;
}

.story img {
  display: block;
  max-width: 100%;
  height: auto;
}

.report-contents {
  margin-bottom: 2rem;
  padding: 1.2rem 1rem;
  border-block: 1px solid var(--line);
  background: var(--report-tint);
  font-size: 0.85rem;
}

.contents-label {
  margin-bottom: 0.75rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.report-contents ol {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.report-contents li {
  margin: 0;
}

.report-contents a {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  color: var(--ink);
  text-decoration: none;
  overflow-wrap: anywhere;
}

.report-contents a:hover {
  text-decoration: underline;
}

.contents-number {
  flex: none;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  font-size: 0.72rem;
}

.report-figure {
  min-width: 0;
  margin: 2.2rem 0;
  padding: 1.4rem 0 1.2rem;
  border-block: 1px solid var(--line);
  background: var(--bg);
  font-size: 0.9rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.figure-number {
  margin-bottom: 0.4rem;
  color: var(--report-accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.report-figure .figure-title {
  margin: 0 0 1.2rem;
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.35;
}

.report-figure .figure-unit {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.5;
}

.figure-caption {
  display: block;
  max-width: 90ch;
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.6;
}

.figure-sources {
  display: block;
  margin-top: 0.4rem;
}

.report-figure a,
.story a {
  color: #226f43;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.chart-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 0.35rem 1rem;
  margin-top: 1rem;
  font-variant-numeric: tabular-nums;
}

.chart-label {
  padding-left: 0.6rem;
  border-left: 3px solid var(--category-color, #3b82f6);
  font-weight: 600;
}

.chart-value {
  font-weight: 700;
}

.chart-bar {
  display: block;
  grid-column: 1 / -1;
  width: 100%;
  min-width: 0;
  height: 20px;
}

.figure-data {
  margin-top: 1rem;
  font-size: 0.78rem;
}

.figure-data summary {
  width: fit-content;
  max-width: 100%;
  padding: 0.35rem 0;
  cursor: pointer;
  font-weight: 600;
}

.figure-data summary:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 4px;
}

.report-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 0.82rem;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
}

.report-table caption {
  padding: 0.65rem 0;
  text-align: left;
  color: var(--muted);
  font-size: 0.75rem;
}

.report-table th,
.report-table td {
  padding: 0.75rem 0.65rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  text-align: left;
  overflow-wrap: anywhere;
}

.report-table thead th {
  background: var(--report-tint);
  font-weight: 600;
}

.report-table tbody th {
  font-weight: 600;
}

.report-figure .figure-image-link {
  margin: 0.25rem 0;
  font-size: 0.8rem;
}

.ecosystem-map {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr) minmax(0, 1fr);
  grid-template-rows: repeat(3, minmax(125px, auto));
  gap: 0.7rem 0.8rem;
  padding-block: 0.5rem;
  background: radial-gradient(ellipse at center, #edf7f0 0%, transparent 70%);
}

.ecosystem-wheel {
  grid-column: 2;
  grid-row: 1 / 4;
  align-self: center;
  position: relative;
  width: 100%;
  aspect-ratio: 1;
}

.ecosystem-wheel > svg {
  display: block;
  width: 100%;
  height: auto;
}

.ecosystem-core {
  position: absolute;
  inset: 27%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  text-align: center;
}

.ecosystem-core .project-logo {
  width: 90%;
  height: 45%;
  object-fit: contain;
}

.ecosystem-core > strong {
  font-size: 1.25rem;
}

.ecosystem-core > span {
  color: var(--muted);
  font-size: 0.7rem;
}

.ecosystem-group {
  grid-column: var(--map-column);
  grid-row: var(--map-row);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  min-width: 0;
  gap: 0.35rem;
  padding: 0.6rem;
  border-top: 1px solid var(--sector-color);
}

.ecosystem-role {
  color: var(--sector-color);
  font-size: 0.8rem;
  font-weight: 700;
}

.ecosystem-group .project-logo {
  width: 125px;
  max-width: 100%;
  height: 48px;
  object-fit: contain;
  object-position: left center;
}

.ecosystem-group > a {
  font-size: 0.92rem;
  font-weight: 600;
}

.ecosystem-description {
  color: var(--muted);
  font-size: 0.75rem;
}

.language-grid {
  display: grid;
  grid-template-columns: repeat(var(--language-columns, 3), minmax(0, 1fr));
  gap: 1.5rem;
}

.language-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.65rem;
  min-width: 0;
  padding: 1rem;
  background: linear-gradient(180deg, var(--report-tint), #fff);
}

.language-item .project-logo {
  width: 150px;
  max-width: 100%;
  height: 64px;
  margin-bottom: 0.4rem;
  object-fit: contain;
  object-position: left center;
}

.language-item > span {
  color: var(--muted);
  font-size: 0.85rem;
}

.language-links {
  margin-top: auto;
  font-size: 0.85rem;
}

.exchange-flow {
  display: grid;
  gap: 1rem;
}

.exchange-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 110px minmax(0, 1fr);
  grid-template-areas: "source route target";
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 0.8rem;
  background: linear-gradient(90deg, var(--report-tint), #fff 55%, #fff5ed);
}

.exchange-row.is-return {
  grid-template-areas: "target route source";
  background: linear-gradient(90deg, var(--report-tint), #fff 55%, #f5f2fa);
}

.exchange-node {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 0.4rem 0.7rem;
  min-width: 0;
  align-content: center;
}

.exchange-source { grid-area: source; }
.exchange-target { grid-area: target; }

.exchange-symbol {
  grid-column: 1;
  grid-row: 1 / 4;
  align-self: center;
  width: 72px;
  height: 72px;
}

.exchange-domain,
.exchange-title,
.exchange-description {
  grid-column: 2;
}

.exchange-domain {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.exchange-title {
  font-size: 1.05rem;
  font-weight: 700;
}

.exchange-description {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.55;
}

.exchange-direction {
  grid-area: route;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  color: var(--report-accent);
  font-size: 0.72rem;
  text-align: center;
}

.exchange-arrow {
  display: block;
  width: 100%;
  height: 32px;
}

.exchange-row.is-return .exchange-arrow {
  transform: rotate(180deg);
}

.report-references {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  overflow-wrap: anywhere;
}

.report-references li {
  margin: 0.65rem 0;
}

.quadrant-details {
  margin-top: 1.55rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
}

.quadrant-detail {
  margin-top: 1.15rem;
  scroll-margin-top: 1rem;
}

.story .technology-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.65rem;
  list-style: none;
  padding: 0;
}

.technology-list li {
  min-width: 0;
  max-width: 100%;
  margin: 0;
}

.technology-list .entry-btn {
  padding: 0.35rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
  font-size: 1rem;
  line-height: 1.35;
}

.technology-list .entry-label {
  overflow-wrap: anywhere;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .mode-visual .beam,
  .mode-visual .beam::before,
  .mode-visual .beam::after,
  .mode-visual .beam-stars {
    animation: none !important;
  }
}

@keyframes star-twinkle-soft {
  0%,
  100% {
    opacity: 0.62;
    transform: translate(-50%, -50%) scale(0.92);
  }
  50% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.13);
  }
}

@keyframes beam-star-glimmer {
  0%,
  100% {
    opacity: 0.72;
  }
  50% {
    opacity: 1;
  }
}

@keyframes beam-soft-glimmer {
  0%,
  100% {
    opacity: 0.9;
    box-shadow: 0 0 10px var(--beam-glow);
    filter: blur(0.78px);
  }
  50% {
    opacity: 1;
    box-shadow: 0 0 19px var(--beam-glow);
    filter: blur(0.58px);
  }
}

@media (max-width: 1120px) {
  #radar-title {
    flex-wrap: wrap;
    white-space: normal;
    font-size: clamp(1.74rem, 5.2vw, 2.34rem);
  }

  .stage {
    container-type: inline-size;
    --radar-top: 0px;
    width: auto;
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    grid-template-areas: "radar";
    gap: 1rem;
  }

  .stage::before {
    /* Match the full-width SVG, including the current page padding. */
    --radar-size: 100cqi;
  }

  #radar {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
  }

  .quad-list {
    display: none;
  }

  .core-list {
    display: none;
  }

  .story {
    margin-top: 1.35rem;
  }
}

@media (max-width: 700px) {
  .wrap {
    padding: 1rem 0.9rem 2rem;
  }

  .story {
    padding: 1rem 0;
    font-size: 1.12rem;
  }

  .report-contents ol,
  .language-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .ecosystem-map {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: none;
    gap: 1rem;
  }

  .ecosystem-wheel {
    grid-column: 1 / -1;
    grid-row: auto;
    max-width: 320px;
    margin-inline: auto;
  }

  .ecosystem-group {
    grid-column: auto;
    grid-row: auto;
    justify-content: flex-start;
    padding-inline: 0;
  }

  .language-item + .language-item {
    padding-top: 1.25rem;
    border-top: 1px solid var(--line);
  }

  .exchange-row,
  .exchange-row.is-return {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "source" "route" "target";
  }

  .exchange-arrow,
  .exchange-row.is-return .exchange-arrow {
    width: 60px;
    height: 24px;
    margin-block: 1rem;
    transform: rotate(90deg);
  }

  .report-table {
    font-size: 0.75rem;
  }

  .report-table th,
  .report-table td {
    padding: 0.6rem 0.3rem;
  }

  .figure-data .report-table {
    font-size: 0.7rem;
  }

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

  .quad-list {
    display: none;
  }

  .core-list {
    display: none;
  }

  .mode-switch {
    gap: 0.78rem;
  }

  .mode-word-toggle {
    min-width: 6.95ch;
    padding: 0.14em 0.68em 0.18em;
  }

  .mode-visual {
    width: clamp(5.1rem, 24vw, 6.4rem);
    height: clamp(5.1rem, 24vw, 6.4rem);
  }

  .entry-btn {
    font-size: 1rem;
  }

  .quad-title {
    font-size: 1.5rem;
  }

  .popup h2 {
    font-size: 1.14rem;
  }

  .popup p {
    font-size: 1rem;
  }
}
