:root {
  color-scheme: dark;
  --ink: #f6f6f3;
  --muted: #d3d7d7;
  --subtle: #abb2b4;
  --panel: rgba(35, 38, 39, 0.95);
  --panel-raised: #252829;
  --line: rgba(255, 255, 255, 0.11);
  --line-strong: rgba(255, 255, 255, 0.2);
  --accent: #f4aa52;
  --accent-ink: #2a1908;
  --brand: #268fc4;
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.38), 0 2px 10px rgba(0, 0, 0, 0.24);
  --panel-radius: 14px;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #1d2224;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

button:focus-visible,
a:focus-visible,
.layer-checkbox:focus-visible ~ .scenario-control {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.app-shell,
#map {
  position: absolute;
  inset: 0;
}

#map {
  background: #1d2224;
}

.control-panel,
.map-style-toolbar,
.info-launch,
.language-switcher-map,
.map-tour-caption,
.about-panel,
.cell-comparison-panel,
.map-interaction-note,
.mobile-center-target,
.mobile-map-actions,
.map-loading {
  z-index: 4;
}

.control-panel {
  position: absolute;
  top: 18px;
  left: 18px;
  width: min(360px, calc(100vw - 36px));
  max-height: calc(100vh - 36px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--panel-radius);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px) saturate(115%);
  -webkit-backdrop-filter: blur(16px) saturate(115%);
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}

.panel-header {
  padding: 19px 19px 17px;
}

.brand-row {
  display: flex;
  align-items: flex-start;
  gap: 13px;
}

.brand-mark {
  display: grid;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  background: radial-gradient(circle at 50% 46%, rgba(38, 143, 196, 0.16), transparent 64%), #1c2021;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.025), 0 7px 18px rgba(0, 0, 0, 0.22);
}

.brand-mark svg {
  width: 38px;
  height: 38px;
}

.brand-ring {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.brand-ring-reference {
  stroke: #cbd5e1;
  stroke-dasharray: 2.4 3.2;
  opacity: 0.66;
}

.brand-ring-flat {
  stroke: #36d681;
}

.brand-ring-slope {
  stroke: #55a7ff;
}

.brand-ring-high {
  stroke: #ffb84d;
}

.brand-origin {
  fill: #f4aa52;
  stroke: #1c2021;
  stroke-width: 1.4;
}

.eyebrow,
.section-kicker,
.footer-label {
  color: var(--subtle);
  font-size: 11.5px;
  font-weight: 750;
  letter-spacing: 0.13em;
  line-height: 1.2;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 270px;
  margin-bottom: 0;
  font-size: clamp(22px, 2vw, 26px);
  font-weight: 670;
  letter-spacing: -0.035em;
  line-height: 1.1;
}

.eyebrow {
  margin: 1px 0 6px;
}

.lede {
  margin: 17px 0 15px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.55;
}

.main-paper-link {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 9px 10px;
  border: 1px solid rgba(141, 207, 240, 0.3);
  border-radius: 9px;
  background: linear-gradient(100deg, rgba(38, 143, 196, 0.13), rgba(38, 143, 196, 0.035));
  color: inherit;
  text-decoration: none;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.main-paper-link:hover {
  border-color: rgba(141, 207, 240, 0.58);
  background: linear-gradient(100deg, rgba(38, 143, 196, 0.2), rgba(38, 143, 196, 0.065));
  transform: translateY(-1px);
}

.main-paper-icon {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 8px;
  background: rgba(141, 207, 240, 0.1);
  color: #8dcff0;
}

.main-paper-icon svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.main-paper-copy {
  min-width: 0;
}

.main-paper-copy small,
.main-paper-copy strong {
  display: block;
}

.main-paper-copy small {
  color: #8dcff0;
  font-size: 10px;
  font-weight: 780;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.main-paper-copy strong {
  margin-top: 3px;
  overflow: hidden;
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 660;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.main-paper-arrow {
  color: #8dcff0;
  font-size: 16px;
}

.text-button,
.icon-button,
.basemap-button,
.map-tilt-button {
  border: 0;
  cursor: pointer;
}

.text-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.text-button svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.8;
}

.text-button:hover {
  border-color: rgba(244, 170, 82, 0.45);
  color: var(--accent);
}

.text-button.is-active {
  border-color: rgba(244, 170, 82, 0.48);
  background: rgba(244, 170, 82, 0.1);
  color: var(--accent);
}

.control-section {
  padding: 15px 17px 5px;
}

.comparison-section {
  margin-top: 10px;
  padding-top: 14px;
  padding-bottom: 17px;
  border-top: 1px solid var(--line);
}

.section-heading {
  display: flex;
  min-height: 26px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 4px;
}

.section-heading h2,
.about-header h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 720;
  letter-spacing: -0.01em;
}

.section-kicker + h2 {
  margin-top: 4px;
}

.selection-count {
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.section-description {
  margin: 7px 4px 0;
  color: var(--subtle);
  font-size: 13px;
  line-height: 1.45;
}

.section-description strong {
  color: var(--ink);
  font-weight: 720;
}

.scenario-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

#group-15 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.reference-layer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.reference-layer-grid .scenario-list {
  margin-top: 0;
}

.scenario-option {
  position: relative;
  display: grid;
  grid-template-columns: 3px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 7px;
  min-height: 52px;
  padding: 7px 8px 7px 7px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.018);
  color: var(--muted);
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease, color 180ms ease, transform 180ms ease;
}

.scenario-option:hover {
  border-color: color-mix(in srgb, var(--scenario-color) 38%, var(--line));
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  transform: translateY(-1px);
}

.scenario-option.is-active {
  border-color: color-mix(in srgb, var(--scenario-color) 45%, transparent);
  background: linear-gradient(90deg, color-mix(in srgb, var(--scenario-color) 10%, transparent), rgba(255, 255, 255, 0.035) 68%);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--scenario-color) 8%, transparent);
  color: var(--ink);
}

.layer-checkbox {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.scenario-control {
  display: inline-flex;
  min-width: 24px;
  min-height: 24px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--subtle);
  font-size: 10.5px;
  font-weight: 760;
  letter-spacing: 0.045em;
  text-transform: uppercase;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.scenario-state-indicator {
  position: relative;
  width: 22px;
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: background 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}

.scenario-state-indicator::after {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  content: "";
  opacity: 0.72;
  transition: transform 160ms ease, opacity 160ms ease;
}

.scenario-state-text {
  display: none;
}

.scenario-option.is-active .scenario-control {
  background: transparent;
  color: var(--scenario-color);
}

.scenario-option.is-active .scenario-state-indicator {
  background: color-mix(in srgb, var(--scenario-color) 30%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--scenario-color) 54%, transparent),
    0 0 0 3px color-mix(in srgb, var(--scenario-color) 9%, transparent);
}

.scenario-option.is-active .scenario-state-indicator::after {
  background: var(--scenario-color);
  opacity: 1;
  transform: translateX(10px);
}

.legend-swatch {
  display: block;
  align-self: stretch;
  width: 3px;
  min-height: 34px;
  border-radius: 999px;
  opacity: 0.42;
  transition: box-shadow 180ms ease, opacity 180ms ease;
}

.scenario-option.is-active .legend-swatch {
  box-shadow: 0 0 12px color-mix(in srgb, var(--scenario-color) 50%, transparent);
  opacity: 1;
}

.layer-code {
  display: none;
  width: 27px;
  height: 27px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--subtle);
  font-size: 11px;
  font-weight: 780;
  font-variant-numeric: tabular-nums;
  transition: border-color 180ms ease, color 180ms ease;
}

.scenario-option.is-active .layer-code {
  border-color: color-mix(in srgb, var(--scenario-color) 55%, transparent);
  color: var(--scenario-color);
}

.scenario-copy {
  min-width: 0;
}

.layer-label {
  display: block;
  color: inherit;
  font-size: 13.5px;
  font-weight: 680;
  line-height: 1.2;
  white-space: normal;
}

.layer-tooltip {
  position: fixed;
  z-index: 8;
  width: min(230px, calc(100vw - 24px));
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-left: 3px solid var(--scenario-color);
  border-radius: 9px;
  background: rgba(30, 33, 34, 0.97);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.38);
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 620;
  line-height: 1.45;
  pointer-events: none;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.layer-tooltip[hidden] {
  display: none;
}

.grid-toggle-row {
  position: relative;
  display: grid;
  min-height: 52px;
  grid-template-columns: minmax(0, 1fr) 36px;
  align-items: center;
  gap: 9px;
  margin-top: 0;
  padding: 7px 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.018);
  color: var(--muted);
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease;
}

.grid-toggle-row:hover {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.035);
}

.grid-toggle-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.grid-toggle-input:focus-visible ~ .grid-toggle-switch {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.grid-toggle-icon {
  display: none;
  width: 30px;
  height: 30px;
  place-items: center;
  color: var(--subtle);
}

.grid-toggle-icon svg {
  width: 27px;
  height: 27px;
  fill: rgba(244, 170, 82, 0.035);
  stroke: currentColor;
  stroke-width: 1.1;
}

.grid-toggle-copy strong,
.grid-toggle-copy small {
  display: block;
}

.grid-toggle-copy strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 680;
}

.grid-toggle-copy small {
  margin-top: 2px;
  color: var(--subtle);
  font-size: 11.5px;
}

.grid-toggle-switch {
  position: relative;
  width: 36px;
  height: 20px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.18);
  transition: background 160ms ease, border-color 160ms ease;
}

.grid-toggle-switch i {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--subtle);
  transition: background 160ms ease, transform 160ms ease;
}

.grid-toggle-input:checked ~ .grid-toggle-icon {
  color: var(--accent);
}

.grid-toggle-input:checked ~ .grid-toggle-switch {
  border-color: rgba(244, 170, 82, 0.5);
  background: rgba(244, 170, 82, 0.17);
}

.grid-toggle-input:checked ~ .grid-toggle-switch i {
  background: var(--accent);
  transform: translateX(16px);
}

.map-style-toolbar {
  position: absolute;
  top: 18px;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(35, 38, 39, 0.93);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.28);
  transform: translateX(-50%);
  backdrop-filter: blur(15px) saturate(115%);
  -webkit-backdrop-filter: blur(15px) saturate(115%);
}

.basemap-switcher {
  display: flex;
  flex-wrap: nowrap;
  gap: 3px;
}

.basemap-button {
  display: flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 11px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--subtle);
  font-size: 12.5px;
  font-weight: 680;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.basemap-button:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink);
}

.basemap-button.is-active {
  border-color: rgba(244, 170, 82, 0.38);
  background: rgba(244, 170, 82, 0.12);
  color: var(--accent);
}

.basemap-button svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.65;
}

.map-style-divider {
  width: 1px;
  height: 22px;
  margin: 0 2px;
  background: var(--line-strong);
}

.map-tilt-button {
  display: flex;
  min-width: 88px;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 10px;
  border: 1px solid rgba(141, 207, 240, 0.24);
  border-radius: 999px;
  background: rgba(38, 143, 196, 0.07);
  color: var(--muted);
  font-size: 12px;
  font-weight: 720;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.map-tilt-button:hover {
  border-color: rgba(141, 207, 240, 0.52);
  background: rgba(38, 143, 196, 0.13);
  color: var(--ink);
}

.map-tilt-button.is-active {
  border-color: rgba(244, 170, 82, 0.48);
  background: rgba(244, 170, 82, 0.12);
  color: var(--accent);
}

.map-tilt-button svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.65;
}

.map-tour-button {
  display: flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 11px;
  border: 1px solid rgba(244, 170, 82, 0.3);
  border-radius: 999px;
  background: rgba(244, 170, 82, 0.08);
  color: var(--accent);
  font-size: 12px;
  font-weight: 760;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.map-tour-button:hover {
  border-color: rgba(244, 170, 82, 0.62);
  background: rgba(244, 170, 82, 0.15);
  transform: translateY(-1px);
}

.map-tour-button.is-running {
  border-color: rgba(255, 133, 105, 0.62);
  background: rgba(255, 133, 105, 0.14);
  color: #ffad98;
}

.map-tour-button svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.map-tour-button .tour-stop-icon,
.map-tour-button.is-running .tour-play-icon {
  display: none;
}

.map-tour-button.is-running .tour-stop-icon {
  display: block;
}

.map-style-toolbar button:disabled:not(.map-tour-button) {
  opacity: 0.38;
  pointer-events: none;
}

.map-tour-caption {
  --tour-accent: var(--accent);
  position: absolute;
  bottom: 72px;
  left: 50%;
  width: min(420px, calc(100vw - 32px));
  padding: 11px 14px 10px;
  overflow: hidden;
  border: 1px solid rgba(244, 170, 82, 0.32);
  border-left: 3px solid var(--tour-accent);
  border-radius: 11px;
  background: rgba(27, 30, 31, 0.93);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.34);
  color: var(--ink);
  text-align: center;
  transform: translateX(-50%);
  transition: opacity 420ms ease, transform 420ms ease;
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
}

.map-tour-caption.is-finishing {
  opacity: 0;
  transform: translate(-50%, 8px);
}

.map-tour-caption[hidden] {
  display: none;
}

.map-tour-caption > span {
  display: block;
  color: var(--tour-accent);
  font-size: 9.5px;
  font-weight: 780;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.map-tour-caption > strong {
  display: block;
  margin-top: 3px;
  font-size: 14px;
  font-weight: 680;
  line-height: 1.35;
}

.map-tour-caption > i {
  display: block;
  height: 2px;
  margin-top: 9px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
}

.map-tour-caption > i > b {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--brand), var(--tour-accent));
  transition: width 650ms ease;
}

.map-tour-playback {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 34px;
  gap: 9px;
  align-items: center;
  margin-top: 9px;
}

.map-tour-playback button {
  display: grid;
  width: 28px;
  height: 28px;
  padding: 0;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--tour-accent) 48%, transparent);
  border-radius: 50%;
  background: color-mix(in srgb, var(--tour-accent) 12%, transparent);
  color: var(--tour-accent);
  cursor: pointer;
  transition: background 160ms ease, transform 160ms ease;
}

.map-tour-playback button:hover {
  background: color-mix(in srgb, var(--tour-accent) 22%, transparent);
  transform: scale(1.04);
}

.map-tour-playback button svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.map-tour-playback .tour-resume-icon,
.map-tour-playback button.is-paused .tour-pause-icon {
  display: none;
}

.map-tour-playback button.is-paused .tour-resume-icon {
  display: block;
}

.map-tour-playback input[type='range'] {
  width: 100%;
  height: 18px;
  margin: 0;
  accent-color: var(--tour-accent);
  cursor: pointer;
}

.map-tour-playback output {
  color: var(--muted);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  font-weight: 720;
  text-align: right;
}

.map-tour-hover-marker {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid rgba(255, 221, 169, 0.88);
  border-radius: 50%;
  background: rgba(244, 170, 82, 0.08);
  box-shadow: 0 0 0 5px rgba(244, 170, 82, 0.1), 0 5px 18px rgba(0, 0, 0, 0.34);
  pointer-events: none;
  transition: transform 380ms ease, box-shadow 180ms ease;
  will-change: transform;
}

.map-tour-hover-marker i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(244, 170, 82, 0.16);
  animation: tour-origin-pulse 1.4s ease-in-out infinite;
}

.map-tour-hover-marker.is-clicking {
  animation: tour-marker-click 520ms ease;
}

@keyframes tour-marker-click {
  0%, 100% { transform: scale(1); }
  45% { transform: scale(0.62); box-shadow: 0 0 0 12px rgba(244, 170, 82, 0.18); }
}

@keyframes tour-origin-pulse {
  0%, 100% { transform: scale(0.82); }
  50% { transform: scale(1.18); }
}

.app-shell.tour-is-running .control-panel,
.app-shell.tour-is-running .info-launch,
.app-shell.tour-is-running .language-switcher-map,
.app-shell.tour-is-running .map-interaction-note,
.app-shell.tour-is-running .mobile-map-actions,
.app-shell.tour-is-running .mobile-center-target {
  opacity: 0;
  pointer-events: none;
}

.info-launch {
  position: absolute;
  top: 18px;
  right: 18px;
  display: flex;
  min-height: 48px;
  align-items: center;
  gap: 9px;
  padding: 6px 12px 6px 7px;
  border: 1px solid rgba(244, 170, 82, 0.34);
  border-radius: 999px;
  background: rgba(35, 38, 39, 0.94);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.3);
  color: var(--ink);
  cursor: pointer;
  backdrop-filter: blur(15px) saturate(115%);
  -webkit-backdrop-filter: blur(15px) saturate(115%);
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.info-launch:hover {
  border-color: rgba(244, 170, 82, 0.68);
  background: rgba(45, 42, 37, 0.96);
  transform: translateY(-1px);
}

.info-launch-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 0 0 4px rgba(244, 170, 82, 0.09);
}

.info-launch-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.9;
}

.info-launch-copy {
  text-align: left;
}

.info-launch-copy small,
.info-launch-copy strong {
  display: block;
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(35, 38, 39, 0.94);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(14px) saturate(115%);
  -webkit-backdrop-filter: blur(14px) saturate(115%);
}

.language-switcher-map {
  position: absolute;
  top: 76px;
  right: 18px;
}

.language-switcher-story {
  box-shadow: none;
}

.language-button {
  display: grid;
  min-width: 31px;
  height: 27px;
  padding: 0 7px;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--subtle);
  font-size: 10.5px;
  font-weight: 780;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease;
}

.language-button:hover {
  color: var(--ink);
}

.language-button.is-active {
  border-color: rgba(244, 170, 82, 0.38);
  background: rgba(244, 170, 82, 0.14);
  color: var(--accent);
}

.info-launch-copy small {
  color: var(--accent);
  font-size: 10px;
  font-weight: 780;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.info-launch-copy strong {
  margin-top: 2px;
  font-size: 12.5px;
  font-weight: 680;
}

.map-interaction-note {
  position: absolute;
  bottom: 22px;
  left: 50%;
  margin: 0;
  padding: 9px 13px;
  border: 1px solid rgba(244, 170, 82, 0.38);
  border-radius: 999px;
  background: rgba(35, 38, 39, 0.95);
  box-shadow: 0 9px 28px rgba(0, 0, 0, 0.3), 0 0 0 3px rgba(244, 170, 82, 0.055);
  color: var(--ink);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.2;
  pointer-events: none;
  transform: translateX(-50%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.desktop-interaction-note {
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.desktop-interaction-note strong {
  color: var(--accent);
  font-weight: 780;
}

.desktop-interaction-note i {
  width: 4px;
  height: 4px;
  margin: 0 5px;
  border-radius: 50%;
  background: rgba(244, 170, 82, 0.75);
}

.mobile-interaction-note,
.mobile-center-target,
.mobile-map-actions,
.mobile-sheet-close {
  display: none;
}

.mobile-sheet-close svg,
.mobile-map-action svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.about-backdrop {
  position: absolute;
  inset: 0;
  z-index: 5;
  background: rgba(7, 10, 11, 0.52);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.about-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.about-panel {
  --story-title-size: clamp(27px, calc(10px + 4.2dvh), 43px);
  --story-body-size: clamp(13px, calc(8px + 1.05dvh), 16px);
  --story-slide-gap: clamp(18px, 4dvh, 46px);
  --story-slide-padding: clamp(18px, 4dvh, 40px);
  --story-visual-height: clamp(238px, 47dvh, 350px);
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 6;
  display: flex;
  width: min(940px, calc(100vw - 40px));
  height: min(740px, calc(100dvh - 40px));
  max-height: calc(100dvh - 40px);
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: var(--panel-raised);
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.56);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -48%) scale(0.985);
  transition: opacity 200ms ease, transform 220ms ease;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}

.about-panel.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

.about-header {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: clamp(10px, 1.9dvh, 15px) 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(37, 40, 41, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.about-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 9px;
}

.paper-button {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 7px;
  padding: 0 11px;
  border: 1px solid rgba(141, 207, 240, 0.42);
  border-radius: 999px;
  background: rgba(38, 143, 196, 0.1);
  color: #8dcff0;
  font-size: 12.5px;
  font-weight: 680;
  text-decoration: none;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.paper-button:hover {
  border-color: rgba(141, 207, 240, 0.72);
  background: rgba(38, 143, 196, 0.17);
  color: #b5e4fb;
}

.paper-button svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.about-brand {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 11px;
}

.about-brand-mark {
  display: grid;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: radial-gradient(circle at 50% 46%, rgba(38, 143, 196, 0.16), transparent 64%), #1c2021;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.025);
}

.about-brand-mark svg {
  width: 30px;
  height: 30px;
}

.about-header h2 {
  overflow: hidden;
  color: var(--ink);
  font-size: 16px;
  font-weight: 660;
  letter-spacing: -0.018em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.icon-button {
  display: grid;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.icon-button:hover {
  border-color: rgba(244, 170, 82, 0.5);
  background: rgba(244, 170, 82, 0.08);
  color: var(--accent);
}

.icon-button svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.8;
}

.about-hero {
  padding: 25px 25px 22px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(38, 143, 196, 0.12), transparent 48%);
}

.about-tag {
  display: inline-flex;
  padding: 5px 8px;
  border: 1px solid rgba(244, 170, 82, 0.3);
  border-radius: 999px;
  color: var(--accent);
  font-size: 8.5px;
  font-weight: 760;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.about-hero h3 {
  max-width: 620px;
  margin: 13px 0 9px;
  color: var(--ink);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 620;
  letter-spacing: -0.04em;
  line-height: 1.12;
}

.about-hero p {
  max-width: 640px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.about-content-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  padding: 22px 25px 18px;
}

.info-section-heading {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 9px;
  align-items: start;
  margin-bottom: 11px;
}

.info-section-heading > span {
  color: var(--accent);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.5;
}

.info-section-heading small {
  display: block;
  color: var(--subtle);
  font-size: 8px;
  font-weight: 730;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.info-section-heading h3 {
  margin: 3px 0 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 680;
  letter-spacing: -0.015em;
}

.bias-list {
  display: grid;
  gap: 6px;
}

.bias-item {
  display: grid;
  grid-template-columns: 23px 1fr;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
}

.bias-index {
  color: var(--brand);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.6;
}

.bias-item strong,
.model-note strong {
  display: block;
  color: var(--ink);
  font-size: 11px;
  font-weight: 670;
}

.bias-item p {
  margin: 3px 0 0;
  color: var(--subtle);
  font-size: 9.5px;
  line-height: 1.45;
}

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

.finding-item {
  min-width: 0;
  min-height: 104px;
  padding: 13px 11px;
  border: 1px solid rgba(244, 170, 82, 0.2);
  border-radius: 8px;
  background: rgba(244, 170, 82, 0.055);
}

.finding-item strong {
  display: block;
  color: var(--accent);
  font-size: 19px;
  font-weight: 680;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.finding-item span {
  display: block;
  margin-top: 8px;
  color: var(--subtle);
  font-size: 8.8px;
  line-height: 1.45;
}

.model-note {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  margin: 0 25px 14px;
  padding: 12px;
  border-left: 2px solid var(--brand);
  background: rgba(38, 143, 196, 0.07);
}

.model-note svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--brand);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.model-note span {
  display: block;
  margin-top: 3px;
  color: var(--subtle);
  font-size: 9.5px;
  line-height: 1.45;
}

.method-details {
  margin: 0 25px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.method-details summary {
  padding: 12px 1px;
  color: var(--muted);
  cursor: pointer;
  font-size: 10.5px;
  font-weight: 680;
}

.method-details summary:hover {
  color: var(--accent);
}

.method-details ul {
  display: grid;
  gap: 7px;
  margin: -1px 0 13px;
  padding-left: 18px;
  color: var(--subtle);
  font-size: 9.5px;
  line-height: 1.5;
}

.method-details li::marker {
  color: var(--accent);
}

.method-details strong,
.scope-note strong {
  color: var(--muted);
  font-weight: 680;
}

.reference-card {
  position: relative;
  display: block;
  margin: 14px 25px 20px;
  padding: 12px 38px 12px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
  color: inherit;
  text-decoration: none;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.reference-card:hover {
  border-color: rgba(38, 143, 196, 0.5);
  background: rgba(38, 143, 196, 0.07);
  transform: translateY(-1px);
}

.reference-card > span {
  display: block;
  color: var(--brand);
  font-size: 8px;
  font-weight: 780;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.reference-card > strong {
  display: block;
  margin-top: 5px;
  color: var(--ink);
  font-size: 10.5px;
  font-weight: 650;
  line-height: 1.4;
}

.reference-card small {
  display: block;
  margin-top: 6px;
  color: var(--subtle);
  font-size: 8.5px;
  line-height: 1.45;
}

.reference-card svg {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 15px;
  height: 15px;
  fill: none;
  stroke: var(--brand);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.about-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 15px 18px;
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.12);
}

.scope-note {
  max-width: 470px;
  margin: 0;
  color: var(--subtle);
  font-size: 8.8px;
  line-height: 1.45;
}

.explore-button {
  display: inline-flex;
  flex: 0 0 auto;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  cursor: pointer;
  font-size: 10.5px;
  font-weight: 750;
  transition: filter 160ms ease, transform 160ms ease;
}

.explore-button:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.explore-button svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.story-progress {
  display: grid;
  flex: 0 0 auto;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: clamp(5px, 1dvh, 8px) 18px clamp(4px, 0.9dvh, 7px);
  border-bottom: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.12);
  color: var(--subtle);
  font-size: 10px;
  font-weight: 780;
  letter-spacing: 0.12em;
}

.story-progress-label,
.story-step-count {
  white-space: nowrap;
  text-transform: uppercase;
}

.story-chapters {
  position: relative;
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  isolation: isolate;
}

.story-progress-track {
  position: absolute;
  z-index: 0;
  top: 4px;
  right: 6.25%;
  left: 6.25%;
  height: 2px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.11);
}

.story-progress-track i {
  display: block;
  width: 0;
  height: 100%;
  background: var(--accent);
  transition: width 280ms ease;
}

.story-chapter {
  position: relative;
  z-index: 1;
  display: grid;
  min-width: 0;
  justify-items: center;
  gap: 5px;
  padding: 0 2px;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.15;
  transition: color 160ms ease;
}

.story-chapter i {
  display: block;
  width: 10px;
  height: 10px;
  border: 2px solid #252829;
  border-radius: 50%;
  background: #929a96;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1);
  transition: background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.story-chapter span {
  width: 100%;
  overflow: hidden;
  font-size: 11px;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.story-chapter:hover {
  color: var(--ink);
}

.story-chapter:hover i {
  background: var(--muted);
  transform: scale(1.08);
}

.story-chapter.is-active {
  color: var(--accent);
}

.story-chapter.is-active i {
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(244, 170, 82, 0.13), 0 0 11px rgba(244, 170, 82, 0.35);
  transform: scale(1.12);
}

.story-chapter:focus-visible {
  border-radius: 4px;
  outline-offset: 3px;
}

.story-slides {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

.story-slide {
  display: grid;
  width: 100%;
  height: 100%;
  grid-template-columns: minmax(0, 1.03fr) minmax(300px, 0.97fr);
  gap: var(--story-slide-gap);
  align-items: center;
  padding: var(--story-slide-padding);
  overflow: hidden;
  animation: story-in 280ms ease both;
}

.story-slide[hidden] {
  display: none;
}

.story-copy {
  min-height: 0;
  max-width: 470px;
}

.story-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 780;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.story-kicker::before {
  content: "";
  width: 16px;
  height: 1px;
  background: currentColor;
}

.story-copy h3 {
  margin: clamp(8px, 1.65dvh, 13px) 0 clamp(10px, 2dvh, 16px);
  color: var(--ink);
  font-size: var(--story-title-size);
  font-weight: 590;
  letter-spacing: -0.045em;
  line-height: 1.06;
}

.story-copy p {
  margin: 0 0 clamp(7px, 1.35dvh, 11px);
  color: var(--muted);
  font-size: var(--story-body-size);
  line-height: 1.52;
}

.story-copy p strong {
  color: var(--ink);
  font-weight: 680;
}

.inline-source {
  color: #8dcff0;
  text-decoration-color: rgba(141, 207, 240, 0.4);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 160ms ease, text-decoration-color 160ms ease;
}

.inline-source:hover {
  color: var(--accent);
  text-decoration-color: rgba(244, 170, 82, 0.65);
}

.story-emphasis {
  margin-top: clamp(8px, 2dvh, 16px) !important;
  padding: clamp(8px, 1.4dvh, 11px) 13px;
  border-left: 2px solid var(--brand);
  background: rgba(38, 143, 196, 0.07);
  color: var(--ink) !important;
  font-size: calc(var(--story-body-size) - 1px) !important;
}

.story-paper-link {
  display: block;
  margin-top: clamp(9px, 2.2dvh, 18px);
  padding: clamp(8px, 1.5dvh, 12px) 14px;
  border: 1px solid rgba(38, 143, 196, 0.3);
  border-radius: 8px;
  background: rgba(38, 143, 196, 0.06);
  color: #8dcff0;
  font-size: 12px;
  line-height: 1.45;
  text-decoration: none;
  transition: background 160ms ease, border-color 160ms ease;
}

.story-paper-link:hover {
  border-color: rgba(38, 143, 196, 0.58);
  background: rgba(38, 143, 196, 0.1);
}

.story-paper-link span {
  margin-left: 4px;
  color: var(--accent);
}

.story-paper-primary {
  position: relative;
  padding: clamp(9px, 1.65dvh, 13px) 42px clamp(9px, 1.65dvh, 13px) 14px;
  border-color: rgba(141, 207, 240, 0.5);
  background: linear-gradient(100deg, rgba(38, 143, 196, 0.17), rgba(38, 143, 196, 0.05));
  color: var(--ink);
  font-size: 13px;
  font-weight: 690;
}

.story-paper-primary::after {
  content: "↗";
  position: absolute;
  top: 50%;
  right: 15px;
  color: #8dcff0;
  font-size: 17px;
  transform: translateY(-50%);
}

.story-data-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: clamp(5px, 1.1dvh, 9px);
  padding: clamp(7px, 1.25dvh, 10px) 12px;
  border: 1px solid rgba(54, 214, 129, 0.34);
  border-radius: 8px;
  background: linear-gradient(100deg, rgba(54, 214, 129, 0.13), rgba(54, 214, 129, 0.045));
  box-shadow: inset 3px 0 0 rgba(54, 214, 129, 0.72);
  color: #c8f3dc;
  font-size: 12px;
  font-weight: 720;
  text-decoration: none;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.story-data-link:hover {
  border-color: rgba(54, 214, 129, 0.58);
  background: linear-gradient(100deg, rgba(54, 214, 129, 0.19), rgba(54, 214, 129, 0.07));
  color: #e5faee;
  transform: translateY(-1px);
}

.story-data-link span {
  color: var(--subtle);
  font-size: 10.5px;
  font-weight: 560;
}

.story-paper-primary span {
  display: block;
  margin: 3px 0 0;
  color: #8dcff0;
  font-size: 10px;
  font-weight: 620;
  letter-spacing: 0.035em;
}

.story-fact {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: clamp(10px, 2.3dvh, 19px);
  padding-top: clamp(8px, 1.8dvh, 15px);
  border-top: 1px solid var(--line);
}

.story-fact strong {
  color: var(--accent);
  font-size: 26px;
  font-weight: 650;
  letter-spacing: -0.04em;
}

.story-fact span {
  max-width: 190px;
  color: var(--subtle);
  font-size: 12.5px;
  line-height: 1.45;
}

.story-visual {
  position: relative;
  min-height: var(--story-visual-height);
  max-height: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #1d2021;
}

.terrain-comparison {
  display: grid;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}

.terrain-card {
  position: relative;
  min-height: 0;
  padding: 17px 18px 0;
  background: #1d2021;
}

.terrain-card > span,
.model-label span,
.visual-caption span,
.propensity-row > div:nth-child(2) span {
  display: block;
  color: var(--subtle);
  font-size: 10.5px;
  font-weight: 740;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.terrain-card > strong {
  display: block;
  margin-top: 3px;
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 650;
}

.terrain-card svg {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 72%;
}

.terrain-line {
  fill: none;
  stroke-width: 2;
}

.terrain-flat .terrain-line,
.terrain-flat circle {
  stroke: var(--brand);
}

.terrain-flat .terrain-fill {
  fill: rgba(38, 143, 196, 0.1);
}

.terrain-hilly .terrain-line,
.terrain-hilly circle {
  stroke: var(--accent);
}

.terrain-hilly .terrain-fill {
  fill: rgba(244, 170, 82, 0.11);
}

.terrain-card circle {
  fill: #1d2021;
  stroke-width: 2;
}

.athens-visual,
.model-visual,
.comparison-visual {
  display: grid;
  place-items: center;
}

.athens-visual svg,
.model-visual > svg,
.comparison-visual > svg {
  width: 94%;
  height: auto;
}

.contour {
  stroke-width: 1.5;
}

.contour-one {
  fill: rgba(38, 143, 196, 0.08);
  stroke: rgba(38, 143, 196, 0.5);
}

.contour-two {
  fill: rgba(244, 170, 82, 0.06);
  stroke: rgba(244, 170, 82, 0.65);
}

.network,
.route-grid {
  fill: none;
  stroke: rgba(255, 255, 255, 0.15);
  stroke-width: 1;
}

.network {
  stroke-linecap: round;
  stroke-linejoin: round;
}

.network-primary {
  stroke: rgba(255, 255, 255, 0.22);
  stroke-width: 1.35;
}

.network-secondary {
  stroke: rgba(255, 255, 255, 0.11);
  stroke-width: 0.8;
}

.origin-ring,
.model-origin-ring {
  fill: rgba(244, 170, 82, 0.08);
  stroke: var(--accent);
  stroke-width: 1.5;
}

.origin,
.model-origin {
  fill: var(--accent);
}

.visual-caption,
.model-label {
  position: absolute;
  right: 16px;
  bottom: 15px;
  left: 16px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.visual-caption strong,
.model-label strong,
.visual-source {
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 650;
}

.visual-source {
  text-decoration: none;
  transition: color 160ms ease;
}

.visual-source:hover {
  color: var(--accent);
}

.visual-caption span {
  max-width: 170px;
  text-align: right;
}

.athens-visual .visual-caption {
  bottom: 6px;
  justify-content: center;
  text-align: center;
}

.visual-caption .visual-question {
  max-width: 280px;
  font-size: 14px;
  line-height: 1.4;
}

.model-number {
  position: absolute;
  top: 14px;
  left: 16px;
  color: rgba(255, 255, 255, 0.05);
  font-size: 74px;
  font-weight: 800;
  letter-spacing: -0.07em;
}

.route-arrow,
.slope-route,
.speed-arrow {
  fill: none;
  stroke: var(--accent);
  stroke-linecap: round;
  stroke-width: 2.5;
}

.route-arrow {
  stroke-dasharray: 5 5;
}

.slope-visual {
  background:
    radial-gradient(circle at 50% 34%, rgba(244, 170, 82, 0.07), transparent 44%),
    #1d2021;
}

.tobler-formula {
  position: absolute;
  top: 16px;
  right: 17px;
  z-index: 1;
  padding: 6px 9px;
  border: 1px solid rgba(244, 170, 82, 0.2);
  border-radius: 999px;
  background: rgba(244, 170, 82, 0.055);
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 11px;
  letter-spacing: 0.01em;
}

.tobler-formula span {
  color: var(--accent);
  font-style: italic;
}

.tobler-formula sup {
  margin-left: 1px;
  font-size: 8px;
}

.tobler-chart {
  overflow: visible;
}

.tobler-grid path {
  fill: none;
  stroke: rgba(255, 255, 255, 0.07);
  stroke-width: 1;
}

.tobler-axis path {
  fill: none;
  stroke: rgba(255, 255, 255, 0.18);
  stroke-linecap: round;
  stroke-width: 1;
}

.tobler-axis text {
  fill: var(--subtle);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 9.5px;
  font-weight: 620;
  text-anchor: middle;
}

.tobler-axis text:nth-of-type(-n + 4) {
  text-anchor: end;
}

.tobler-axis .tobler-y-label,
.tobler-axis .tobler-x-label {
  fill: var(--muted);
  font-size: 9.5px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-anchor: middle;
}

.tobler-area {
  fill: url(#tobler-area-gradient);
}

.tobler-curve {
  fill: none;
  filter: url(#tobler-glow);
  stroke: var(--accent);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.6;
}

.tobler-peak-guide {
  stroke: rgba(244, 170, 82, 0.35);
  stroke-dasharray: 3 4;
  stroke-width: 1;
}

.tobler-peak-halo {
  fill: rgba(244, 170, 82, 0.13);
}

.tobler-point {
  fill: #1d2021;
  stroke: var(--accent);
  stroke-width: 2.2;
}

.tobler-point-flat {
  stroke: #8dcff0;
}

.tobler-peak-label,
.tobler-flat-label {
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 9.5px;
  font-weight: 760;
  letter-spacing: 0.045em;
}

.tobler-peak-label {
  fill: var(--accent);
}

.tobler-flat-label {
  fill: #8dcff0;
}

.slope-ground {
  fill: none;
  stroke: rgba(255, 255, 255, 0.15);
  stroke-width: 14;
}

.slope-route {
  stroke-width: 3;
}

.speed-arrow {
  stroke-width: 5;
}

.arrow-fast { opacity: 1; }
.arrow-mid { opacity: 0.72; }
.arrow-slow { opacity: 0.38; }

.speed-scale {
  position: absolute;
  right: 18px;
  top: 18px;
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--subtle);
  font-size: 10.5px;
}

.speed-scale i {
  width: 44px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), rgba(244, 170, 82, 0.25));
}

.propensity-visual {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 21px;
  padding: 30px 25px;
}

.propensity-row {
  display: grid;
  grid-template-columns: 38px minmax(110px, 1fr) minmax(80px, 0.8fr);
  align-items: center;
  gap: 12px;
}

.person-icon {
  position: relative;
  width: 34px;
  height: 38px;
}

.person-icon span {
  position: absolute;
  top: 0;
  left: 12px;
  width: 11px;
  height: 11px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.person-icon i {
  position: absolute;
  bottom: 0;
  left: 5px;
  width: 25px;
  height: 22px;
  border: 2px solid currentColor;
  border-bottom: 0;
  border-radius: 15px 15px 0 0;
}

.propensity-high .person-icon,
.propensity-high strong {
  color: var(--accent);
}

.propensity-low .person-icon,
.propensity-low strong {
  color: #e879f9;
}

.propensity-row > div:nth-child(2) strong {
  display: block;
  margin-top: 3px;
  font-size: 13.5px;
}

.propensity-row > div:nth-child(2) small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
}

.propensity-bar {
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.propensity-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
}

.propensity-high .propensity-bar i {
  width: 86%;
  background: var(--accent);
}

.propensity-low .propensity-bar i {
  width: 34%;
  background: #e879f9;
}

.propensity-divider {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
  color: var(--subtle);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.propensity-divider i {
  height: 1px;
  background: var(--line);
}

.probability-note {
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--muted);
  font-size: 11.5px;
  text-align: center;
}

.impact-visual {
  display: grid;
  align-content: center;
  gap: 12px;
  min-height: min(380px, calc(var(--story-visual-height) + 30px));
  padding: clamp(13px, 2.4dvh, 20px);
  background:
    radial-gradient(circle at 15% 18%, rgba(244, 170, 82, 0.09), transparent 36%),
    radial-gradient(circle at 88% 82%, rgba(38, 143, 196, 0.1), transparent 36%),
    #1d2021;
}

.impact-overview {
  position: relative;
  padding: 15px 138px 15px 16px;
  border: 1px solid rgba(244, 170, 82, 0.23);
  border-radius: 10px;
  background: rgba(244, 170, 82, 0.055);
}

.impact-overview > span,
.impact-break span,
.impact-card > span {
  color: var(--subtle);
  font-size: 10px;
  font-weight: 760;
  letter-spacing: 0.085em;
  text-transform: uppercase;
}

.impact-overview > strong {
  display: block;
  margin-top: 5px;
  color: var(--accent);
  font-size: 37px;
  font-weight: 620;
  letter-spacing: -0.055em;
  line-height: 1;
}

.impact-overview > strong small {
  color: var(--subtle);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0;
}

.impact-overview > p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 11.5px;
}

.impact-tail {
  position: absolute;
  top: 14px;
  right: 14px;
  bottom: 14px;
  display: flex;
  width: 112px;
  flex-direction: column;
  justify-content: center;
  padding-left: 13px;
  border-left: 1px solid var(--line);
}

.impact-tail strong,
.impact-tail span {
  display: block;
}

.impact-tail strong {
  color: #8dcff0;
  font-size: 23px;
  font-weight: 650;
  letter-spacing: -0.04em;
}

.impact-tail span {
  margin-top: 3px;
  color: var(--subtle);
  font-size: 10px;
  line-height: 1.3;
}

.impact-break {
  display: flex;
  align-items: center;
  gap: 10px;
}

.impact-break span {
  flex: 0 0 auto;
  color: var(--muted);
}

.impact-break i {
  width: 100%;
  height: 1px;
  background: var(--line);
}

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

.impact-card {
  min-width: 0;
  padding: 11px 10px 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.025);
}

.impact-card > span,
.impact-card > strong,
.impact-card > small {
  display: block;
}

.impact-card > strong {
  margin-top: 7px;
  font-size: 24px;
  font-weight: 640;
  letter-spacing: -0.045em;
}

.impact-card > small {
  margin-top: 5px;
  color: var(--subtle);
  font-size: 10px;
  line-height: 1.35;
}

.impact-pharmacy > strong { color: #55a7ff; }
.impact-playground > strong { color: #ffb84d; }
.impact-metro > strong { color: #e879f9; }

.impact-source {
  justify-self: end;
  color: #8dcff0;
  font-size: 10.5px;
  font-weight: 630;
  text-decoration: none;
  transition: color 160ms ease;
}

.impact-source span {
  margin-left: 3px;
  color: var(--accent);
}

.impact-source:hover {
  color: var(--accent);
}

.scope-pill {
  margin-top: 17px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--subtle);
  font-size: 12px;
  line-height: 1.45;
}

.euclidean-ring {
  fill: rgba(203, 213, 225, 0.025);
  stroke: #cbd5e1;
  stroke-dasharray: 5 5;
  stroke-width: 1.5;
}

.walkshed-shape {
  fill: none;
  stroke-linejoin: round;
  stroke-width: 2.3;
}

.shape-one { stroke: #36d681; }
.shape-two { stroke: #55a7ff; }
.shape-three { stroke: #ffb84d; }
.shape-four { stroke: #e879f9; }

.comparison-key {
  position: absolute;
  right: 16px;
  bottom: 14px;
  left: 16px;
  display: flex;
  justify-content: space-between;
  color: var(--subtle);
  font-size: 10.5px;
  text-transform: uppercase;
}

.key-circle::before,
.comparison-key span:last-child::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 2px;
  margin-right: 6px;
  vertical-align: middle;
  background: var(--accent);
}

.key-circle::before {
  height: 0;
  border-top: 1px dashed #cbd5e1;
  background: transparent;
}

.projects-visual {
  display: grid;
  align-content: center;
  gap: 10px;
  padding: 14px 16px;
  background:
    radial-gradient(circle at 82% 12%, rgba(38, 143, 196, 0.11), transparent 34%),
    #1d2021;
}

.project-family {
  display: grid;
  gap: 7px;
}

.project-card {
  --project-color: var(--accent);
  position: relative;
  display: grid;
  min-height: 60px;
  grid-template-columns: 38px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 12px;
  padding: 8px 11px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.025);
  color: inherit;
  text-decoration: none;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.project-card::before {
  content: "";
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 0;
  width: 2px;
  border-radius: 0 999px 999px 0;
  background: var(--project-color);
  box-shadow: 0 0 10px color-mix(in srgb, var(--project-color) 42%, transparent);
}

.project-card:hover {
  border-color: color-mix(in srgb, var(--project-color) 42%, transparent);
  background: color-mix(in srgb, var(--project-color) 8%, rgba(255, 255, 255, 0.025));
  transform: translateX(3px);
}

.project-card:focus-visible {
  outline-color: var(--project-color);
}

.project-cthood { --project-color: #36d681; }
.project-ctwalk { --project-color: #55a7ff; }
.project-ctstreets { --project-color: #ffb84d; }

.project-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--project-color) 38%, transparent);
  border-radius: 9px;
  background: color-mix(in srgb, var(--project-color) 7%, transparent);
  color: var(--project-color);
}

.project-mark svg {
  width: 29px;
  height: 29px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.project-mark svg circle:last-child {
  fill: currentColor;
}

.project-card-copy {
  min-width: 0;
}

.project-card-copy > span,
.project-card-copy > strong,
.project-card-copy > small {
  display: block;
}

.project-card-copy > span {
  color: var(--project-color);
  font-size: 10px;
  font-weight: 760;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.project-card-copy > strong {
  margin-top: 2px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 690;
  letter-spacing: -0.015em;
}

.project-card-copy > small {
  margin-top: 2px;
  overflow: hidden;
  color: var(--subtle);
  font-size: 11.5px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-arrow {
  color: var(--subtle);
  font-size: 17px;
  transition: color 180ms ease, transform 180ms ease;
}

.project-card:hover .project-arrow {
  color: var(--project-color);
  transform: translate(2px, -2px);
}

.projects-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #e879f9;
}

.projects-divider span {
  flex: 0 0 auto;
  font-size: 10px;
  font-weight: 780;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.projects-divider i {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, rgba(232, 121, 249, 0.42), transparent);
}

.author-card {
  padding: 12px;
  border: 1px solid rgba(232, 121, 249, 0.22);
  border-radius: 10px;
  background:
    radial-gradient(circle at 100% 0%, rgba(232, 121, 249, 0.09), transparent 40%),
    rgba(255, 255, 255, 0.025);
}

.author-identity {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  align-items: center;
  gap: 13px;
}

.author-portrait {
  display: block;
  width: 56px;
  height: 56px;
  border: 2px solid rgba(232, 121, 249, 0.58);
  border-radius: 50%;
  background: #f4f3f1;
  box-shadow: 0 0 0 4px rgba(232, 121, 249, 0.08), 0 7px 18px rgba(0, 0, 0, 0.24);
  object-fit: cover;
  object-position: 50% 42%;
}

.author-identity strong {
  display: block;
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.author-identity p {
  max-width: 270px;
  margin: 3px 0 0;
  color: var(--subtle);
  font-size: 12px;
  line-height: 1.45;
}

.author-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.author-links a {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted);
  font-size: 11px;
  font-weight: 660;
  text-decoration: none;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.author-links a:hover {
  border-color: rgba(232, 121, 249, 0.46);
  background: rgba(232, 121, 249, 0.08);
  color: var(--ink);
  transform: translateY(-1px);
}

.author-links a:focus-visible {
  outline-color: #e879f9;
}

.author-links span {
  color: #e879f9;
}

.story-footer {
  display: flex;
  flex: 0 0 auto;
  min-height: clamp(50px, 8dvh, 62px);
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: clamp(7px, 1.4dvh, 11px) 18px;
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.15);
}

.story-dots {
  display: flex;
  align-items: center;
  gap: 7px;
}

.story-dots button {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: width 180ms ease, border-radius 180ms ease, background 180ms ease;
}

.story-dots button.is-active {
  width: 22px;
  border-radius: 999px;
  background: var(--accent);
}

.story-navigation {
  display: flex;
  align-items: center;
  gap: 7px;
}

.story-nav-button {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 12.5px;
  font-weight: 680;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.story-nav-button:hover:not(:disabled) {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink);
}

.story-nav-button:disabled {
  opacity: 0.34;
  cursor: default;
}

.story-next {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
}

.story-next:hover:not(:disabled) {
  border-color: #ffc46f;
  background: #ffc46f;
  color: var(--accent-ink);
}

.story-explore-row {
  display: flex;
  flex: 0 0 auto;
  justify-content: flex-end;
  padding: 0 18px clamp(8px, 1.7dvh, 13px);
  background: rgba(0, 0, 0, 0.15);
}

.story-explore-row .explore-button {
  min-height: 34px;
  border-color: var(--line);
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease,
    filter 160ms ease, transform 160ms ease;
}

.story-explore-row .explore-button:hover {
  border-color: rgba(244, 170, 82, 0.5);
  background: rgba(244, 170, 82, 0.08);
  color: var(--accent);
  filter: none;
}

.story-explore-row.is-ready .explore-button {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
}

.story-explore-row.is-ready .explore-button:hover {
  border-color: #ffc46f;
  background: #ffc46f;
  color: var(--accent-ink);
}

.story-nav-button svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

@keyframes story-in {
  from { opacity: 0; transform: translateX(10px); }
  to { opacity: 1; transform: translateX(0); }
}

.cell-comparison-panel {
  position: absolute;
  top: 84px;
  right: 18px;
  width: min(470px, calc(100vw - 36px));
  max-height: calc(100vh - 104px);
  overflow-y: auto;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: rgba(35, 38, 39, 0.97);
  box-shadow: var(--shadow);
  color: var(--ink);
  opacity: 0;
  pointer-events: none;
  transform: translateX(14px);
  transition: opacity 180ms ease, transform 180ms ease;
  backdrop-filter: blur(18px) saturate(115%);
  -webkit-backdrop-filter: blur(18px) saturate(115%);
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}

.cell-comparison-panel[hidden] {
  display: none;
}

.cell-comparison-panel.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

.cell-comparison-close {
  position: absolute;
  z-index: 2;
  top: 12px;
  right: 12px;
  display: grid;
  width: 30px;
  height: 30px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted);
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.cell-comparison-close:hover {
  border-color: rgba(244, 170, 82, 0.45);
  background: rgba(244, 170, 82, 0.09);
  color: var(--accent);
}

.cell-comparison-close svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.8;
}

.cell-comparison {
  padding: 17px;
}

.cell-comparison-header {
  padding: 1px 40px 13px 1px;
}

.cell-comparison-header > span {
  color: var(--accent);
  font-size: 10.5px;
  font-weight: 780;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.cell-comparison-header h3 {
  margin: 5px 0 4px;
  color: var(--ink);
  font-size: 21px;
  font-weight: 650;
  letter-spacing: -0.025em;
}

.cell-comparison-header p {
  margin: 0;
  color: var(--subtle);
  font-size: 12.5px;
  line-height: 1.45;
}

.cell-chart-legend {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 10px;
  margin-bottom: 9px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.022);
}

.cell-chart-legend > span {
  display: grid;
  min-width: 0;
  grid-template-columns: 7px 18px minmax(0, 1fr);
  align-items: center;
  gap: 5px;
}

.cell-chart-legend i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--scenario-color);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--scenario-color) 13%, transparent);
}

.cell-chart-legend strong {
  color: var(--scenario-color);
  font-size: 10px;
  font-weight: 750;
}

.cell-chart-legend small {
  overflow: hidden;
  color: var(--muted);
  font-size: 10.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.cell-metric-card {
  min-width: 0;
  padding: 10px 11px 9px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.025);
}

.cell-metric-card header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.cell-metric-card h4 {
  margin: 0;
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 680;
}

.cell-metric-card header > span {
  color: var(--subtle);
  font-size: 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.cell-bar-chart {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px;
  margin-top: 8px;
}

.cell-bar-entry {
  display: grid;
  min-width: 0;
  grid-template-rows: 15px 56px 12px;
  justify-items: center;
  gap: 2px;
}

.cell-bar-entry > strong {
  max-width: 100%;
  overflow: hidden;
  color: var(--ink);
  font-size: 11px;
  font-weight: 680;
  letter-spacing: -0.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cell-bar-track {
  display: flex;
  width: 100%;
  height: 56px;
  align-items: flex-end;
  border-bottom: 1px solid var(--line-strong);
  background: linear-gradient(to top, transparent 49%, rgba(255, 255, 255, 0.045) 50%, transparent 51%);
}

.cell-bar-track i {
  display: block;
  width: 100%;
  min-height: 2px;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(to top, color-mix(in srgb, var(--scenario-color) 72%, #111), var(--scenario-color));
  box-shadow: 0 0 10px color-mix(in srgb, var(--scenario-color) 15%, transparent);
  transition: height 240ms ease;
}

.cell-bar-entry.is-zero .cell-bar-track i {
  min-height: 0;
}

.cell-bar-entry > small {
  color: var(--scenario-color);
  font-size: 10px;
  font-weight: 760;
}

.cell-comparison-footer,
.cell-comparison-status {
  margin: 11px 1px 0;
  color: var(--subtle);
  font-size: 10.5px;
  line-height: 1.45;
}

.cell-comparison-status {
  min-height: 76px;
  display: grid;
  place-items: center;
  margin-top: 0;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.02);
  text-align: center;
}

.map-loading {
  position: absolute;
  right: 22px;
  bottom: 22px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--panel);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  color: var(--muted);
  font-size: 12.5px;
  transition: opacity 200ms ease, transform 200ms ease;
}

.map-loading span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(244, 170, 82, 0.1);
  animation: pulse 1.4s ease-in-out infinite;
}

.map-loading.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(5px);
}

.mapboxgl-ctrl-bottom-right {
  right: 12px;
}

.mapboxgl-ctrl-bottom-right .mapboxgl-ctrl-group {
  margin-bottom: 34px;
}

.mapboxgl-ctrl-group {
  overflow: hidden;
  border: 1px solid var(--line) !important;
  border-radius: 9px !important;
  background: rgba(35, 38, 39, 0.92) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22) !important;
  backdrop-filter: blur(12px);
}

.mapboxgl-ctrl-group button {
  width: 36px;
  height: 36px;
}

.mapboxgl-ctrl-group.cthood-navigation-control {
  display: grid;
  grid-template-columns: repeat(2, 36px);
  grid-template-rows: repeat(2, 36px);
}

.cthood-navigation-control > button {
  border: 0 !important;
}

.cthood-navigation-control > button:nth-child(odd) {
  border-right: 1px solid var(--line) !important;
}

.cthood-navigation-control > button:nth-child(-n + 2) {
  border-bottom: 1px solid var(--line) !important;
}

.cthood-navigation-control > button + button {
  border-top: 0 !important;
}

.cthood-tilt-toggle {
  display: grid;
  place-items: center;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.cthood-tilt-toggle span {
  font-size: 10px;
  font-weight: 820;
  letter-spacing: -0.04em;
}

.cthood-tilt-toggle:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  color: var(--ink);
}

.cthood-tilt-toggle.is-active {
  background: rgba(244, 170, 82, 0.14) !important;
  color: var(--accent);
}

.mapboxgl-ctrl-group button + button {
  border-top-color: var(--line) !important;
}

.mapboxgl-ctrl-group button:hover {
  background-color: rgba(255, 255, 255, 0.08) !important;
}

.mapboxgl-ctrl-group button .mapboxgl-ctrl-icon {
  filter: invert(1) opacity(0.74);
}

.mapboxgl-ctrl-attrib {
  border-radius: 8px 0 0 0;
  background: rgba(35, 38, 39, 0.78) !important;
  color: #c4cec6;
}

.mapboxgl-ctrl-attrib a {
  color: inherit;
}

@keyframes pulse {
  0%, 100% { opacity: 0.45; transform: scale(0.85); }
  50% { opacity: 1; transform: scale(1); }
}

@media (max-width: 1100px) {
  .app-shell.has-cell-comparison .control-panel {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
  }
}

@media (max-width: 840px) {
  .map-style-toolbar {
    top: 12px;
  }

  .map-tour-caption {
    top: 66px;
    bottom: auto;
  }

  .info-launch {
    top: 12px;
    right: 12px;
  }

  .language-switcher-map {
    top: 64px;
    right: 12px;
  }

  .control-panel {
    top: auto;
    right: 12px;
    bottom: 68px;
    left: 12px;
    width: auto;
    max-height: min(72dvh, 650px);
    border-radius: 12px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(18px);
    visibility: hidden;
    transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
  }

  .control-panel.is-mobile-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    visibility: visible;
  }

  .control-panel .panel-header {
    display: none;
  }

  .control-panel .control-section:first-of-type {
    padding-top: 58px;
  }

  .cell-comparison-panel {
    top: auto;
    right: 12px;
    bottom: 68px;
    left: 12px;
    width: auto;
    max-height: min(42dvh, 360px);
    transform: translateY(16px);
  }

  .cell-comparison-panel.is-open {
    transform: translateY(0);
  }

  .mobile-sheet-close {
    position: absolute;
    z-index: 3;
    top: 11px;
    right: 11px;
    display: grid;
    width: 36px;
    height: 36px;
    padding: 0;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.035);
    color: var(--muted);
  }

  .mobile-sheet-close svg {
    width: 15px;
    height: 15px;
  }

  .map-interaction-note {
    top: 104px;
    bottom: auto;
    max-width: calc(100vw - 32px);
    padding: 7px 10px;
    text-align: center;
    white-space: nowrap;
  }

  .desktop-interaction-note {
    display: none;
  }

  .mobile-interaction-note {
    display: inline;
  }

  .mobile-center-target {
    position: absolute;
    top: 50%;
    left: 50%;
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 1px solid rgba(244, 170, 82, 0.72);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(244, 170, 82, 0.1), 0 3px 14px rgba(0, 0, 0, 0.32);
    pointer-events: none;
    transform: translate(-50%, -50%);
  }

  .app-shell.has-cell-comparison .mobile-center-target {
    top: 30%;
  }

  .mobile-center-target::before,
  .mobile-center-target::after {
    position: absolute;
    content: "";
    background: rgba(255, 236, 209, 0.9);
  }

  .mobile-center-target::before {
    width: 10px;
    height: 1px;
  }

  .mobile-center-target::after {
    width: 1px;
    height: 10px;
  }

  .mobile-center-target i {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent);
  }

  .mobile-map-actions {
    position: absolute;
    right: 12px;
    bottom: max(12px, env(safe-area-inset-bottom));
    left: 12px;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
  }

  .mobile-map-action {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 13px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: rgba(35, 38, 39, 0.95);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
    color: var(--ink);
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    pointer-events: auto;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }

  .mobile-map-action svg {
    width: 17px;
    height: 17px;
  }

  .mobile-map-action[aria-expanded="true"],
  .mobile-map-action[aria-pressed="true"] {
    border-color: rgba(244, 170, 82, 0.58);
    background: rgba(53, 44, 34, 0.97);
    color: var(--accent);
  }

  .mobile-map-action:disabled {
    opacity: 0.5;
    cursor: default;
  }

  .panel-header {
    padding: 18px 58px 15px 18px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }

  h1 {
    font-size: 20px;
  }

  .lede {
    margin: 12px 0;
  }

  .control-section {
    padding-right: 16px;
    padding-left: 16px;
  }

  .about-panel {
    --story-title-size: clamp(22px, calc(9px + 2.7dvh), 34px);
    --story-body-size: clamp(12px, calc(8px + 0.85dvh), 15px);
    --story-slide-gap: clamp(8px, 1.8dvh, 18px);
    --story-slide-padding: clamp(10px, 2.4dvh, 20px);
    --story-visual-height: 0px;
    top: auto;
    right: 12px;
    bottom: 12px;
    left: 12px;
    width: auto;
    height: calc(100dvh - 24px);
    max-height: calc(100dvh - 24px);
    overflow: hidden;
    transform: translateY(12px) scale(0.98);
  }

  .about-panel.is-open {
    transform: translateY(0) scale(1);
  }

  .about-header {
    padding: clamp(9px, 1.65dvh, 13px) 14px;
  }

  .about-header h2 {
    max-width: 220px;
  }

  .story-progress {
    gap: 9px;
    min-height: clamp(32px, 5dvh, 40px);
    padding-top: clamp(4px, 0.8dvh, 7px);
    padding-bottom: clamp(4px, 0.8dvh, 7px);
    padding-right: 15px;
    padding-left: 15px;
  }

  .story-progress-label {
    display: none;
  }

  .story-chapters {
    display: flex;
    gap: 0;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .story-chapters::-webkit-scrollbar {
    display: none;
  }

  .story-progress-track {
    display: none;
  }

  .story-chapter {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 5px;
    padding: 3px 8px;
    border-right: 1px solid var(--line);
  }

  .story-chapter:first-of-type {
    padding-left: 2px;
  }

  .story-chapter:last-child {
    border-right: 0;
  }

  .story-chapter i {
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
    border-width: 1px;
  }

  .story-chapter span {
    width: auto;
    overflow: visible;
    font-size: 10.5px;
    text-overflow: clip;
  }

  .story-slide {
    height: 100%;
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(118px, 1fr);
    gap: var(--story-slide-gap);
    align-items: start;
    padding: var(--story-slide-padding) 18px;
    overflow: hidden;
    overscroll-behavior: contain;
  }

  .story-copy {
    max-width: none;
  }

  .story-copy h3 {
    margin-top: clamp(6px, 1.3dvh, 10px);
    margin-bottom: clamp(7px, 1.7dvh, 13px);
    font-size: var(--story-title-size);
  }

  .story-copy p {
    font-size: var(--story-body-size);
    line-height: 1.46;
  }

  .story-visual {
    width: 100%;
    height: 100%;
    min-height: 0;
  }

  .athens-visual svg,
  .model-visual > svg,
  .comparison-visual > svg {
    width: 100%;
    height: 100%;
    min-height: 0;
  }

  .terrain-comparison {
    min-height: 0;
  }

  .story-footer {
    min-height: clamp(46px, 7.2dvh, 58px);
    padding: clamp(6px, 1.2dvh, 10px) 13px;
  }

  .story-explore-row {
    padding: 0 13px clamp(7px, 1.4dvh, 11px);
  }

  .story-explore-row .explore-button {
    width: 100%;
  }

  .story-nav-button,
  .explore-button {
    min-height: 36px;
  }

  .map-loading {
    top: 70px;
    right: 12px;
    bottom: auto;
  }

  .mapboxgl-ctrl-bottom-right .mapboxgl-ctrl-group {
    display: none;
  }

}

@media (max-width: 560px) {
  .map-style-toolbar .basemap-button {
    width: 34px;
    padding: 0;
  }

  .map-style-toolbar .basemap-button span {
    display: none;
  }

  .map-tour-button {
    width: 36px;
    padding: 0;
  }

  .map-tour-button span {
    display: none;
  }

  .info-launch {
    width: 44px;
    min-height: 44px;
    justify-content: center;
    padding: 4px;
  }

  .info-launch-icon {
    width: 34px;
    height: 34px;
  }

  .info-launch-copy {
    display: none;
  }

  .language-switcher-story {
    padding: 2px;
  }

  .language-switcher-story .language-button {
    min-width: 28px;
    height: 26px;
    padding: 0 5px;
  }

  .cell-comparison {
    padding: 14px;
  }

  .cell-comparison-header {
    padding-right: 38px;
  }

  .cell-comparison-header h3 {
    font-size: 19px;
  }

  .cell-chart-legend {
    gap: 6px;
    padding: 8px;
  }

  .cell-chart-legend small {
    font-size: 10px;
  }

  .cell-metric-grid {
    gap: 6px;
  }

  .cell-metric-card {
    padding: 9px 8px 8px;
  }

  .cell-bar-entry {
    grid-template-rows: 14px 48px 12px;
    gap: 2px;
  }

  .cell-bar-track {
    height: 48px;
  }

  .about-header h2 {
    display: none;
  }

  .about-panel {
    --story-title-size: clamp(20px, calc(8px + 2.5dvh), 30px);
    --story-body-size: clamp(11.5px, calc(7.5px + 0.9dvh), 14px);
    --story-slide-gap: clamp(6px, 1.35dvh, 13px);
    --story-slide-padding: clamp(8px, 1.8dvh, 15px);
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100dvh;
    max-height: 100dvh;
    border: 0;
    border-radius: 0;
  }

  .about-header {
    padding: clamp(7px, 1.35dvh, 10px) 11px;
  }

  .about-brand-mark {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
  }

  .about-brand-mark svg {
    width: 28px;
    height: 28px;
  }

  .story-progress {
    min-height: clamp(30px, 5dvh, 36px);
    padding: clamp(4px, 0.8dvh, 6px) 10px;
  }

  .story-slide {
    grid-template-rows: auto minmax(105px, 1fr);
    gap: var(--story-slide-gap);
    padding: var(--story-slide-padding) 14px;
  }

  .story-copy h3 {
    margin: clamp(5px, 1dvh, 8px) 0 clamp(6px, 1.35dvh, 11px);
    font-size: var(--story-title-size);
    line-height: 1.08;
  }

  .story-copy p {
    margin-bottom: clamp(5px, 1.1dvh, 9px);
    font-size: var(--story-body-size);
    line-height: 1.42;
  }

  .story-kicker {
    gap: 5px;
    font-size: clamp(9px, calc(6px + 0.65dvh), 11px);
  }

  .story-emphasis {
    margin-top: clamp(5px, 1dvh, 8px) !important;
    padding: clamp(6px, 1.1dvh, 8px) 10px;
  }

  .story-paper-link {
    margin-top: clamp(5px, 1dvh, 8px);
    padding: clamp(6px, 1.15dvh, 9px) 10px;
    font-size: clamp(10px, calc(7px + 0.65dvh), 12px);
    line-height: 1.32;
  }

  .story-paper-primary {
    padding-right: 34px;
  }

  .story-data-link {
    margin-top: clamp(4px, 0.8dvh, 7px);
    padding: clamp(5px, 1dvh, 8px) 10px;
    font-size: clamp(10px, calc(7px + 0.65dvh), 12px);
  }

  .story-data-link span,
  .story-paper-primary span {
    font-size: clamp(8px, calc(5px + 0.6dvh), 10px);
  }

  .story-fact {
    gap: 9px;
    margin-top: clamp(6px, 1.2dvh, 10px);
    padding-top: clamp(5px, 1dvh, 8px);
  }

  .story-fact strong {
    font-size: clamp(20px, calc(11px + 2dvh), 26px);
  }

  .story-fact span,
  .scope-pill {
    font-size: clamp(10px, calc(7px + 0.65dvh), 12px);
    line-height: 1.35;
  }

  .scope-pill {
    margin-top: clamp(6px, 1.2dvh, 10px);
    padding: clamp(6px, 1.1dvh, 8px) 9px;
  }

  .story-visual {
    min-height: 0;
  }

  .terrain-comparison {
    min-height: 0;
  }

  .story-footer {
    min-height: clamp(44px, 6.8dvh, 52px);
    padding: clamp(5px, 1dvh, 8px) 11px;
  }

  .story-explore-row {
    padding: 0 11px max(clamp(6px, 1.15dvh, 9px), env(safe-area-inset-bottom));
  }

  .paper-button {
    width: 34px;
    padding: 0;
    justify-content: center;
    font-size: 0;
  }

  .story-dots {
    gap: 5px;
  }

  .story-dots button {
    width: 6px;
    height: 6px;
  }

  .story-dots button.is-active {
    width: 17px;
  }

  .story-nav-button {
    width: 36px;
    padding: 0;
    font-size: 0;
  }

  .story-nav-button svg {
    width: 16px;
    height: 16px;
  }

  .projects-visual {
    min-height: 0;
    padding: clamp(6px, 1.2dvh, 10px);
    gap: clamp(4px, 0.8dvh, 7px);
  }

  .project-card {
    min-height: clamp(42px, 7.5dvh, 56px);
    grid-template-columns: clamp(28px, 5dvh, 36px) minmax(0, 1fr) 16px;
    gap: 7px;
    padding: clamp(4px, 0.8dvh, 7px) 8px;
  }

  .project-mark {
    width: clamp(28px, 5dvh, 36px);
    height: clamp(28px, 5dvh, 36px);
  }

  .project-card-copy > small {
    font-size: clamp(9px, calc(6px + 0.65dvh), 11px);
  }

  .project-card-copy > span {
    font-size: 8.5px;
  }

  .project-card-copy > strong {
    margin-top: 1px;
    font-size: clamp(12px, calc(8px + 0.8dvh), 14px);
  }

  .project-mark svg {
    width: 75%;
    height: 75%;
  }

  .projects-divider {
    gap: 6px;
  }

  .projects-divider span {
    font-size: 8.5px;
  }

  .author-card {
    padding: clamp(5px, 1dvh, 8px);
  }

  .author-identity {
    grid-template-columns: clamp(36px, 6dvh, 48px) minmax(0, 1fr);
    gap: 8px;
  }

  .author-portrait {
    width: clamp(36px, 6dvh, 48px);
    height: clamp(36px, 6dvh, 48px);
  }

  .author-identity strong {
    font-size: clamp(12px, calc(8px + 0.8dvh), 15px);
  }

  .author-identity p {
    margin-top: 2px;
    font-size: clamp(9px, calc(6px + 0.65dvh), 11px);
    line-height: 1.3;
  }

  .author-links {
    gap: 4px;
    margin-top: clamp(4px, 0.8dvh, 7px);
  }

  .author-links a {
    min-height: clamp(23px, 3.8dvh, 28px);
    padding: 3px 7px;
    font-size: clamp(9px, calc(6px + 0.6dvh), 10.5px);
  }

  .impact-visual {
    min-height: 0;
    padding: clamp(8px, 1.5dvh, 13px);
    gap: clamp(5px, 1dvh, 10px);
  }

  .impact-overview {
    padding-right: 14px;
  }

  .impact-tail {
    position: static;
    width: auto;
    margin-top: 11px;
    padding: 9px 0 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .impact-tail span {
    max-width: 190px;
  }

  .impact-card {
    padding-right: 7px;
    padding-left: 7px;
  }

  .impact-card > strong {
    font-size: clamp(16px, calc(8px + 1.9dvh), 21px);
  }

  .impact-overview {
    padding: clamp(7px, 1.2dvh, 11px);
  }

  .impact-overview > strong {
    font-size: clamp(25px, calc(12px + 3dvh), 34px);
  }

  .impact-overview > p,
  .impact-card > small,
  .impact-tail span {
    font-size: clamp(8.5px, calc(5px + 0.7dvh), 10.5px);
  }

  .impact-tail {
    margin-top: clamp(4px, 0.8dvh, 8px);
    padding-top: clamp(4px, 0.8dvh, 7px);
  }

  .impact-tail strong {
    font-size: clamp(18px, calc(10px + 1.7dvh), 22px);
  }

  .impact-card {
    padding-top: clamp(5px, 1dvh, 8px);
    padding-bottom: clamp(5px, 1dvh, 8px);
  }

  .impact-card > span,
  .impact-break span,
  .impact-overview > span {
    font-size: clamp(8px, calc(5px + 0.55dvh), 9.5px);
  }

  .propensity-row {
    grid-template-columns: clamp(27px, 4.8dvh, 34px) minmax(105px, 1fr);
  }

  .propensity-bar {
    grid-column: 2;
  }

  .propensity-visual {
    gap: clamp(7px, 1.5dvh, 14px);
    padding: clamp(10px, 2dvh, 20px) 16px;
  }

  .propensity-row > div:nth-child(2) strong {
    font-size: clamp(11px, calc(7px + 0.8dvh), 13px);
  }

  .propensity-row > div:nth-child(2) small,
  .probability-note {
    font-size: clamp(9px, calc(6px + 0.6dvh), 10.5px);
  }
}

@media (max-width: 420px) {
  .map-style-toolbar .basemap-button {
    width: 34px;
    padding: 0;
  }

  .map-style-toolbar .basemap-button span {
    display: none;
  }

  .map-tilt-button {
    min-width: 62px;
    padding: 0 7px;
    font-size: 10.5px;
  }

  .map-tilt-button svg {
    display: none;
  }
}

@media (max-height: 760px) and (min-width: 841px) {
  .control-panel {
    top: 12px;
    left: 12px;
    max-height: calc(100vh - 24px);
  }

  .panel-header {
    padding-top: 19px;
    padding-bottom: 15px;
  }

  .lede {
    margin: 12px 0;
  }

  .control-section {
    padding-top: 16px;
  }

  .scenario-option {
    min-height: 48px;
  }

  .about-panel {
    --story-title-size: clamp(27px, calc(9px + 4dvh), 37px);
    --story-body-size: clamp(13px, calc(8px + 1dvh), 15px);
    --story-slide-gap: clamp(18px, 3.5dvh, 30px);
    --story-slide-padding: clamp(16px, 3dvh, 25px);
    --story-visual-height: clamp(235px, 43dvh, 320px);
  }

  .story-copy p {
    line-height: 1.48;
  }

  .impact-visual {
    gap: 9px;
  }

}

@media (max-height: 640px) and (min-width: 841px) {
  .about-panel {
    --story-title-size: clamp(23px, calc(9px + 3.6dvh), 31px);
    --story-body-size: clamp(12px, calc(7px + 1dvh), 13.5px);
    --story-slide-gap: 18px;
    --story-slide-padding: clamp(12px, 2.5dvh, 16px);
    --story-visual-height: clamp(215px, 40dvh, 255px);
  }

  .story-slide {
    align-items: center;
  }

  .story-emphasis {
    margin-top: 7px !important;
    padding-top: 7px;
    padding-bottom: 7px;
  }

  .story-paper-link {
    margin-top: 7px;
    padding-top: 7px;
    padding-bottom: 7px;
  }

  .story-data-link {
    margin-top: 5px;
    padding-top: 6px;
    padding-bottom: 6px;
  }

  .story-fact {
    margin-top: 8px;
    padding-top: 7px;
  }

  .impact-visual,
  .projects-visual {
    gap: 6px;
    padding: 10px;
  }

  .project-card {
    min-height: 48px;
    padding-top: 5px;
    padding-bottom: 5px;
  }

  .author-card {
    padding: 8px;
  }

  .author-portrait {
    width: 44px;
    height: 44px;
  }

  .author-identity {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .author-links {
    margin-top: 5px;
  }

  .author-links a {
    min-height: 25px;
    padding-top: 3px;
    padding-bottom: 3px;
  }
}

@media (max-width: 560px) and (max-height: 700px) {
  .about-panel {
    --story-title-size: clamp(20px, 3.6dvh, 24px);
    --story-body-size: clamp(11px, 1.9dvh, 12.5px);
    --story-slide-gap: 7px;
    --story-slide-padding: 9px;
  }

  .story-slide {
    grid-template-rows: auto minmax(88px, 1fr);
    padding-right: 12px;
    padding-left: 12px;
  }

  .story-copy p {
    line-height: 1.36;
  }

  .story-paper-link,
  .story-data-link {
    padding-top: 5px;
    padding-bottom: 5px;
  }

  .terrain-card {
    padding: 8px 11px 0;
  }

  .terrain-card svg {
    height: 64%;
  }

  .visual-caption,
  .model-label {
    right: 10px;
    bottom: 7px;
    left: 10px;
  }

  .visual-caption strong,
  .model-label strong,
  .visual-source,
  .visual-caption .visual-question {
    font-size: 10.5px;
  }

  .model-number {
    top: 7px;
    left: 10px;
    font-size: 50px;
  }

  .tobler-formula {
    top: 7px;
    right: 9px;
    padding: 4px 6px;
    font-size: 9px;
  }

  .projects-visual {
    gap: 4px;
    padding: 5px;
  }

  .project-family {
    gap: 3px;
  }

  .project-card {
    min-height: 37px;
    grid-template-columns: 27px minmax(0, 1fr) 13px;
    padding: 3px 6px;
  }

  .project-mark {
    width: 27px;
    height: 27px;
  }

  .project-card-copy > span {
    font-size: 7.5px;
  }

  .project-card-copy > strong {
    font-size: 11px;
  }

  .project-card-copy > small {
    font-size: 8.5px;
  }

  .author-card {
    padding: 4px 6px;
  }

  .author-identity {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .author-portrait {
    width: 34px;
    height: 34px;
  }

  .author-links {
    margin-top: 3px;
  }

  .author-links a {
    min-height: 21px;
    padding: 2px 6px;
    font-size: 8.5px;
  }

  .impact-visual {
    padding: 6px;
  }

  .impact-destinations {
    gap: 4px;
  }

  .impact-card {
    padding: 4px;
  }

  .propensity-visual {
    gap: 5px;
    padding: 7px 12px;
  }

  .probability-note {
    padding: 5px 7px;
  }
}

@media (max-width: 560px) and (max-height: 600px) {
  .about-panel {
    --story-title-size: 19px;
    --story-body-size: 10.5px;
    --story-slide-padding: 6px;
  }

  .about-header {
    padding-top: 5px;
    padding-bottom: 5px;
  }

  .about-brand-mark,
  .about-brand-mark svg {
    width: 27px;
    height: 27px;
  }

  .about-brand-mark {
    flex-basis: 27px;
  }

  .language-switcher-story .language-button {
    height: 23px;
  }

  .story-progress {
    min-height: 27px;
    padding-top: 3px;
    padding-bottom: 3px;
  }

  .story-slide {
    grid-template-rows: auto minmax(72px, 1fr);
  }

  .story-kicker {
    font-size: 8.5px;
  }

  .story-copy h3 {
    margin-top: 4px;
    margin-bottom: 5px;
  }

  .story-copy p {
    margin-bottom: 4px;
    line-height: 1.3;
  }

  .story-emphasis {
    margin-top: 4px !important;
    padding-top: 4px;
    padding-bottom: 4px;
  }

  .story-footer {
    min-height: 39px;
    padding-top: 3px;
    padding-bottom: 3px;
  }

  .story-explore-row {
    padding-bottom: max(4px, env(safe-area-inset-bottom));
  }

  .story-nav-button,
  .explore-button {
    min-height: 31px;
  }
}

@media (min-width: 561px) and (max-width: 840px) and (max-height: 620px) {
  .about-panel {
    --story-title-size: clamp(21px, 4.7dvh, 27px);
    --story-body-size: clamp(11px, 2.25dvh, 13px);
    --story-slide-gap: 16px;
    --story-slide-padding: clamp(10px, 2.5dvh, 15px);
  }

  .about-header {
    padding-top: 7px;
    padding-bottom: 7px;
  }

  .story-progress {
    min-height: 30px;
    padding-top: 4px;
    padding-bottom: 4px;
  }

  .story-slide {
    grid-template-columns: minmax(0, 1.08fr) minmax(220px, 0.92fr);
    grid-template-rows: minmax(0, 1fr);
    align-items: center;
  }

  .story-copy p {
    margin-bottom: 5px;
    line-height: 1.35;
  }

  .story-emphasis,
  .story-paper-link,
  .story-data-link,
  .story-fact,
  .scope-pill {
    margin-top: 6px !important;
  }

  .story-emphasis,
  .story-paper-link,
  .story-data-link,
  .scope-pill {
    padding-top: 6px;
    padding-bottom: 6px;
  }

  .story-visual {
    min-height: 0;
  }

  .impact-visual,
  .projects-visual {
    gap: 5px;
    padding: 8px;
  }

  .project-family {
    gap: 4px;
  }

  .project-card {
    min-height: 42px;
    grid-template-columns: 30px minmax(0, 1fr) 15px;
    gap: 7px;
    padding: 4px 7px;
  }

  .project-mark {
    width: 30px;
    height: 30px;
  }

  .author-card {
    padding: 6px;
  }

  .author-identity {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 8px;
  }

  .author-portrait {
    width: 38px;
    height: 38px;
  }

  .author-identity p {
    font-size: 9.5px;
    line-height: 1.25;
  }

  .author-links {
    margin-top: 4px;
  }

  .author-links a {
    min-height: 23px;
    padding: 2px 6px;
    font-size: 9px;
  }

  .story-footer {
    min-height: 44px;
    padding-top: 5px;
    padding-bottom: 5px;
  }

  .story-explore-row {
    padding-bottom: 6px;
  }
}

/* Greek copy is naturally longer, so give it more line width and a denser rhythm. */
html[lang="el"] .about-panel {
  --story-title-size: clamp(24px, calc(8px + 3.8dvh), 38px);
  --story-body-size: clamp(12px, calc(7px + 1dvh), 14.5px);
  --story-slide-gap: clamp(14px, 3dvh, 30px);
  --story-slide-padding: clamp(14px, 3dvh, 30px);
}

html[lang="el"] .story-slide {
  grid-template-columns: minmax(0, 1.14fr) minmax(280px, 0.86fr);
}

html[lang="el"] .story-copy {
  max-width: 520px;
  hyphens: auto;
  overflow-wrap: break-word;
}

html[lang="el"] .story-copy h3 {
  margin-top: clamp(6px, 1.25dvh, 10px);
  margin-bottom: clamp(7px, 1.4dvh, 11px);
  letter-spacing: -0.035em;
  line-height: 1.04;
}

html[lang="el"] .story-copy p {
  margin-bottom: clamp(5px, 1dvh, 8px);
  line-height: 1.4;
}

html[lang="el"] .story-emphasis,
html[lang="el"] .story-paper-link,
html[lang="el"] .story-data-link,
html[lang="el"] .story-fact,
html[lang="el"] .scope-pill {
  margin-top: clamp(5px, 1dvh, 8px) !important;
}

html[lang="el"] .story-emphasis,
html[lang="el"] .story-paper-link,
html[lang="el"] .story-data-link,
html[lang="el"] .scope-pill {
  padding-top: clamp(6px, 1dvh, 8px);
  padding-bottom: clamp(6px, 1dvh, 8px);
}

html[lang="el"] .story-fact {
  padding-top: clamp(5px, 1dvh, 8px);
}

@media (max-width: 840px) {
  html[lang="el"] .about-panel {
    --story-title-size: clamp(20px, calc(8px + 2.35dvh), 29px);
    --story-body-size: clamp(11px, calc(7px + 0.78dvh), 13.5px);
    --story-slide-gap: clamp(6px, 1.25dvh, 11px);
    --story-slide-padding: clamp(7px, 1.5dvh, 12px);
  }

  html[lang="el"] .story-slide {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(90px, 1fr);
    padding-right: 14px;
    padding-left: 14px;
  }

  html[lang="el"] .story-copy h3 {
    line-height: 1.05;
  }

  html[lang="el"] .story-copy p {
    line-height: 1.34;
  }

  html[lang="el"] .story-slide[data-story-slide="3"],
  html[lang="el"] .story-slide[data-story-slide="4"],
  html[lang="el"] .story-slide[data-story-slide="5"],
  html[lang="el"] .story-slide[data-story-slide="7"] {
    grid-template-rows: auto minmax(76px, 1fr);
  }

  html[lang="el"] .story-slide[data-story-slide="4"] .story-fact {
    margin-top: 4px !important;
    padding-top: 4px;
  }

  html[lang="el"] .story-slide[data-story-slide="5"] .story-emphasis,
  html[lang="el"] .story-slide[data-story-slide="7"] .story-emphasis {
    margin-top: 4px !important;
    padding-top: 5px;
    padding-bottom: 5px;
  }
}

@media (max-width: 560px) {
  html[lang="el"] .about-panel {
    --story-title-size: clamp(19px, calc(7px + 2.25dvh), 26px);
    --story-body-size: clamp(10.5px, calc(6.5px + 0.78dvh), 12.5px);
    --story-slide-gap: clamp(5px, 1dvh, 8px);
    --story-slide-padding: clamp(6px, 1.15dvh, 9px);
  }

  html[lang="el"] .story-slide {
    grid-template-rows: auto minmax(76px, 1fr);
    padding-right: 11px;
    padding-left: 11px;
  }

  html[lang="el"] .story-slide[data-story-slide="3"],
  html[lang="el"] .story-slide[data-story-slide="4"],
  html[lang="el"] .story-slide[data-story-slide="5"],
  html[lang="el"] .story-slide[data-story-slide="7"] {
    grid-template-rows: auto minmax(62px, 1fr);
  }

  html[lang="el"] .story-kicker {
    font-size: clamp(8px, calc(5px + 0.6dvh), 9.5px);
  }

  html[lang="el"] .story-copy h3 {
    margin-top: 4px;
    margin-bottom: 5px;
  }

  html[lang="el"] .story-copy p {
    margin-bottom: 4px;
    line-height: 1.3;
  }

  html[lang="el"] .story-emphasis,
  html[lang="el"] .story-paper-link,
  html[lang="el"] .story-data-link,
  html[lang="el"] .scope-pill {
    padding-top: 4px;
    padding-bottom: 4px;
  }

  html[lang="el"] .story-paper-link,
  html[lang="el"] .story-data-link,
  html[lang="el"] .story-fact span,
  html[lang="el"] .scope-pill {
    font-size: clamp(9px, calc(6px + 0.58dvh), 10.5px);
  }

  html[lang="el"] .impact-visual,
  html[lang="el"] .projects-visual,
  html[lang="el"] .propensity-visual {
    padding-top: 5px;
    padding-bottom: 5px;
  }

  html[lang="el"] .story-slide[data-story-slide="4"] .propensity-visual {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 4px 7px;
    padding-right: 8px;
    padding-left: 8px;
  }

  html[lang="el"] .story-slide[data-story-slide="4"] .propensity-row {
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 5px;
  }

  html[lang="el"] .story-slide[data-story-slide="4"] .propensity-high {
    grid-row: 1;
    grid-column: 1;
  }

  html[lang="el"] .story-slide[data-story-slide="4"] .propensity-low {
    grid-row: 1;
    grid-column: 2;
  }

  html[lang="el"] .story-slide[data-story-slide="4"] .person-icon {
    width: 24px;
    height: 28px;
    transform: scale(0.72);
    transform-origin: center;
  }

  html[lang="el"] .story-slide[data-story-slide="4"] .propensity-bar {
    grid-column: 1 / -1;
  }

  html[lang="el"] .story-slide[data-story-slide="4"] .propensity-divider {
    grid-row: 2;
    grid-column: 1 / -1;
    font-size: 7.5px;
  }

  html[lang="el"] .story-slide[data-story-slide="4"] .probability-note {
    grid-row: 3;
    grid-column: 1 / -1;
    padding: 3px 5px;
  }

  html[lang="el"] .story-slide[data-story-slide="7"] .project-family {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
  }

  html[lang="el"] .story-slide[data-story-slide="7"] .project-card {
    display: block;
    min-height: 0;
    padding: 5px;
  }

  html[lang="el"] .story-slide[data-story-slide="7"] .project-mark,
  html[lang="el"] .story-slide[data-story-slide="7"] .project-arrow {
    display: none;
  }

  html[lang="el"] .story-slide[data-story-slide="7"] .project-card-copy > small {
    margin-top: 2px;
    overflow: visible;
    font-size: 8px;
    line-height: 1.15;
    text-overflow: clip;
    white-space: normal;
  }
}

@media (min-width: 561px) and (max-width: 840px) and (max-height: 620px) {
  html[lang="el"] .story-slide {
    grid-template-columns: minmax(0, 1.16fr) minmax(210px, 0.84fr);
    grid-template-rows: minmax(0, 1fr);
  }
}

@media (max-width: 560px) and (max-height: 700px) {
  html[lang="el"] .about-panel {
    --story-title-size: clamp(18px, 3.25dvh, 21px);
    --story-body-size: clamp(10px, 1.75dvh, 11.5px);
    --story-slide-padding: 5px;
  }

  html[lang="el"] .story-slide {
    grid-template-rows: auto minmax(58px, 1fr);
  }

  html[lang="el"] .story-slide[data-story-slide="3"],
  html[lang="el"] .story-slide[data-story-slide="4"],
  html[lang="el"] .story-slide[data-story-slide="5"],
  html[lang="el"] .story-slide[data-story-slide="7"] {
    grid-template-rows: auto minmax(48px, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
