:root {
  color-scheme: dark;
  --ink: #07110f;
  --ink-2: #0b1815;
  --paper: #f0efe2;
  --muted: #9eaa9f;
  --line: rgba(240, 239, 226, 0.16);
  --line-strong: rgba(240, 239, 226, 0.3);
  --acid: #56e39f;
  --accent: #ff7659;
  --species-color: #79dfe8;
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--ink);
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--paper);
  background:
    radial-gradient(circle at 62% 42%, rgba(40, 103, 83, 0.14), transparent 32rem),
    linear-gradient(135deg, #06100e 0%, #0b1613 46%, #06100e 100%);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  content: "";
  opacity: 0.08;
  background-image:
    repeating-radial-gradient(circle at 0 0, transparent 0, rgba(255,255,255,.22) 1px, transparent 1.6px);
  background-size: 5px 5px;
  mix-blend-mode: soft-light;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

button:focus-visible,
input:focus-visible,
canvas:focus-visible,
a:focus-visible {
  outline: 2px solid var(--acid);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 1rem;
  left: 1rem;
  padding: .7rem 1rem;
  transform: translateY(-200%);
  color: var(--ink);
  background: var(--acid);
  text-decoration: none;
  font-weight: 700;
}

.skip-link:focus {
  transform: none;
}

.atlas-shell {
  display: grid;
  grid-template-columns: minmax(248px, 18.4vw) minmax(440px, 1fr) minmax(280px, 21vw);
  grid-template-rows: 72px minmax(0, 1fr);
  min-height: 100svh;
}

.masthead {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(248px, 18.4vw) 1fr auto;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  display: flex;
  align-items: center;
  gap: .8rem;
  height: 100%;
  padding: 0 1.4rem;
  border-right: 1px solid var(--line);
  color: var(--paper);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .72rem;
  font-weight: 700;
}

.wordmark-mark {
  display: flex;
  align-items: center;
  gap: 2px;
  width: 24px;
  height: 24px;
}

.wordmark-mark i {
  display: block;
  width: 6px;
  border-radius: 99px;
  background: var(--acid);
  transform: rotate(22deg);
}

.wordmark-mark i:nth-child(1) { height: 11px; }
.wordmark-mark i:nth-child(2) { height: 22px; }
.wordmark-mark i:nth-child(3) { height: 15px; }

.edition {
  margin: 0 0 0 1.5rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .63rem;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: .2rem;
  padding-right: 1rem;
}

.brand-link {
  margin-left: .35rem;
  border-left: 1px solid var(--line);
  color: var(--acid);
  text-decoration: none;
  white-space: nowrap;
}

.text-button,
.source-link {
  padding: .7rem .65rem;
  border: 0;
  color: var(--muted);
  background: none;
  cursor: pointer;
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.text-button:hover,
.source-link:hover {
  color: var(--paper);
}

.species-rail {
  grid-column: 1;
  grid-row: 2;
  display: flex;
  flex-direction: column;
  min-height: 0;
  border-right: 1px solid var(--line);
}

.intro {
  padding: clamp(1.7rem, 3vh, 3.2rem) 1.4rem 1.3rem;
}

.eyebrow {
  margin: 0 0 1.1rem;
  color: var(--acid);
  font-size: .63rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .18em;
}

.intro h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2rem, 3.2vw, 4.05rem);
  font-weight: 400;
  line-height: .9;
  letter-spacing: -.055em;
}

.intro h1 em {
  color: var(--acid);
  font-weight: 400;
}

.dek {
  max-width: 29ch;
  margin: 1.35rem 0 0;
  color: var(--muted);
  font-family: var(--serif);
  font-size: .86rem;
  line-height: 1.55;
}

.rail-heading {
  display: flex;
  justify-content: space-between;
  margin-top: auto;
  padding: .75rem 1.4rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .58rem;
}

.species-list {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  scrollbar-color: var(--line-strong) transparent;
  scrollbar-width: thin;
}

.species-button {
  position: relative;
  display: grid;
  grid-template-columns: 23px 1fr auto;
  align-items: center;
  gap: .65rem;
  width: 100%;
  padding: .72rem 1.4rem;
  overflow: hidden;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
  text-align: left;
  transition: color 180ms ease, background 180ms ease;
}

.species-button::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 3px;
  content: "";
  background: var(--button-color);
  transform: scaleY(0);
  transition: transform 180ms ease;
}

.species-button:hover {
  background: rgba(255, 255, 255, .025);
}

.species-button[aria-pressed="true"] {
  color: var(--paper);
  background: rgba(255,255,255,.04);
}

.species-button[aria-pressed="true"]::before {
  transform: scaleY(1);
}

.species-index {
  color: var(--muted);
  font-size: .58rem;
  letter-spacing: .1em;
}

.species-button[aria-pressed="true"] .species-index {
  color: var(--button-color);
}

.species-button-name {
  min-width: 0;
  overflow: hidden;
  font-size: .76rem;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.route-dash {
  width: 24px;
  height: 1px;
  background: var(--button-color);
  box-shadow: 8px 0 12px var(--button-color);
}

.all-routes-toggle {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: 1rem 1.4rem;
  color: var(--muted);
  cursor: pointer;
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .11em;
}

.all-routes-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.switch {
  position: relative;
  width: 29px;
  height: 15px;
  border: 1px solid var(--line-strong);
  border-radius: 99px;
  transition: border-color 160ms ease;
}

.switch::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  content: "";
  background: var(--muted);
  transition: transform 160ms ease, background 160ms ease;
}

.all-routes-toggle input:checked + .switch {
  border-color: var(--acid);
}

.all-routes-toggle input:checked + .switch::after {
  background: var(--acid);
  transform: translateX(14px);
}

.globe-stage {
  position: relative;
  grid-column: 2;
  grid-row: 2;
  display: grid;
  grid-template-rows: 46px minmax(0, 1fr) auto;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.stage-meta {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.3rem;
  color: var(--muted);
  font-size: .6rem;
  text-transform: uppercase;
  letter-spacing: .13em;
}

.stage-meta p {
  margin: 0;
  font-variant-numeric: tabular-nums;
}

.live-status {
  display: flex;
  align-items: center;
  gap: .55rem;
}

.pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--species-color);
  box-shadow: 0 0 14px var(--species-color);
  animation: pulse 2.2s ease-in-out infinite;
}

@keyframes pulse {
  50% { opacity: .45; transform: scale(.7); }
}

.canvas-wrap {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  cursor: grab;
  touch-action: none;
}

.canvas-wrap.is-dragging {
  cursor: grabbing;
}

.canvas-wrap.has-route-hover {
  cursor: pointer;
}

.canvas-wrap.is-dragging.has-route-hover {
  cursor: grabbing;
}

#earthCanvas,
#globeCanvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

#earthCanvas {
  pointer-events: none;
}

.globe-caption {
  position: absolute;
  bottom: .4rem;
  left: 50%;
  display: flex;
  align-items: center;
  gap: .55rem;
  color: rgba(240, 239, 226, .45);
  transform: translateX(-50%);
  font-size: .55rem;
  text-transform: uppercase;
  letter-spacing: .11em;
  pointer-events: none;
  white-space: nowrap;
}

.globe-caption i {
  width: 18px;
  height: 1px;
  background: var(--line-strong);
}

.recenter-button {
  position: absolute;
  top: .5rem;
  right: 1.3rem;
  padding: .5rem .65rem;
  border: 1px solid var(--line);
  color: var(--muted);
  background: rgba(7, 17, 15, .58);
  cursor: pointer;
  backdrop-filter: blur(10px);
  font-size: .58rem;
  text-transform: uppercase;
  letter-spacing: .1em;
}

.recenter-button:hover {
  border-color: var(--line-strong);
  color: var(--paper);
}

.route-tooltip {
  position: absolute;
  z-index: 8;
  top: 0;
  left: 0;
  padding: .48rem .62rem;
  border-left: 2px solid var(--tooltip-color, var(--acid));
  color: var(--paper);
  background: rgba(4, 14, 12, .9);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .28);
  backdrop-filter: blur(10px);
  transform: translate(12px, calc(-100% - 10px));
  pointer-events: none;
  font-size: .58rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .11em;
  white-space: nowrap;
}

.timeline {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: 74px 1fr;
  min-height: 108px;
  border-top: 1px solid var(--line);
  background: rgba(7, 17, 15, .74);
  backdrop-filter: blur(18px);
}

.play-button {
  display: grid;
  place-items: center;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
}

.play-button:hover {
  background: rgba(203, 242, 119, .04);
}

.play-icon {
  width: 0;
  height: 0;
  margin-left: 4px;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 11px solid var(--acid);
}

.play-button.is-playing .play-icon {
  width: 10px;
  height: 14px;
  margin: 0;
  border: 0;
  border-right: 3px solid var(--acid);
  border-left: 3px solid var(--acid);
}

.timeline-main {
  min-width: 0;
  padding: 1rem 1.3rem .8rem;
}

.date-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: .55rem;
}

.date-row p {
  margin: 0;
  font-size: .67rem;
  text-transform: uppercase;
  letter-spacing: .13em;
}

.date-row p:first-child {
  color: var(--paper);
  font-weight: 700;
}

.date-row p:last-child {
  color: var(--muted);
  font-size: .56rem;
  font-variant-numeric: tabular-nums;
}

.day-slider {
  width: 100%;
  height: 17px;
  margin: 0;
  appearance: none;
  background: transparent;
  cursor: pointer;
}

.day-slider::-webkit-slider-runnable-track {
  height: 1px;
  background:
    linear-gradient(90deg, var(--species-color) 0 var(--progress, 4%), var(--line-strong) var(--progress, 4%) 100%);
}

.day-slider::-moz-range-track {
  height: 1px;
  background: var(--line-strong);
}

.day-slider::-moz-range-progress {
  height: 1px;
  background: var(--species-color);
}

.day-slider::-webkit-slider-thumb {
  width: 13px;
  height: 13px;
  margin-top: -6px;
  appearance: none;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: var(--species-color);
  box-shadow: 0 0 0 1px var(--species-color), 0 0 18px var(--species-color);
}

.day-slider::-moz-range-thumb {
  width: 8px;
  height: 8px;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: var(--species-color);
  box-shadow: 0 0 0 1px var(--species-color);
}

.month-track {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  margin-top: .48rem;
  color: rgba(240,239,226,.4);
  font-size: .48rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.month-track span {
  position: relative;
}

.month-track span:not(:first-child)::before {
  position: absolute;
  top: -1.05rem;
  left: 0;
  width: 1px;
  height: 5px;
  content: "";
  background: var(--line);
}

.story-panel {
  --panel-pad: clamp(1.2rem, 1.65vw, 2rem);
  grid-column: 3;
  grid-row: 2;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  padding: clamp(1.5rem, 3.2vh, 3.1rem) clamp(1.2rem, 1.65vw, 2rem) 1.1rem;
  overflow-y: auto;
  border-left: 1px solid var(--line);
  background: rgba(5, 14, 12, .32);
  scrollbar-color: var(--line-strong) transparent;
  scrollbar-width: thin;
}

.story-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.season-label {
  margin: 0;
  color: var(--species-color);
  font-size: .62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .17em;
}

.species-code {
  color: var(--muted);
  font-family: var(--serif);
  font-size: .85rem;
  font-style: italic;
}

.species-title {
  display: flex;
  align-items: center;
  gap: .9rem;
  margin-top: clamp(1.1rem, 2.5vh, 2rem);
}

.species-glyph {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border: 1px solid var(--species-color);
  border-radius: 50%;
  color: var(--species-color);
  box-shadow: inset 0 0 18px color-mix(in srgb, var(--species-color) 9%, transparent);
  font-family: var(--serif);
  font-size: 1.45rem;
}

.species-title h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.45rem, 2vw, 2.2rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -.035em;
}

.species-title p {
  margin: .35rem 0 0;
  color: var(--muted);
  font-family: var(--serif);
  font-size: .7rem;
  font-style: italic;
}

.species-image {
  margin: clamp(1.1rem, 2.2vh, 1.8rem) 0 0;
}

.species-image-frame {
  position: relative;
  height: clamp(150px, 20vh, 205px);
  overflow: hidden;
  border-top: 1px solid color-mix(in srgb, var(--species-color) 50%, transparent);
  background: #071712;
}

.species-image-frame::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(180deg, rgba(3, 12, 14, .05) 38%, rgba(3, 12, 14, .72) 100%),
    linear-gradient(90deg, rgba(7, 17, 15, .28), transparent 45%);
}

.species-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 48% 48%;
  filter: saturate(.88) contrast(1.06);
  transform: scale(1.015);
}

.image-field-mark {
  position: absolute;
  z-index: 1;
  top: .65rem;
  left: .7rem;
  padding: .35rem .45rem;
  border-left: 2px solid var(--species-color);
  color: rgba(240, 239, 226, .88);
  background: rgba(4, 14, 13, .48);
  backdrop-filter: blur(7px);
  font-size: .5rem;
  text-transform: uppercase;
  letter-spacing: .14em;
}

.species-image figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .6rem;
  padding: .55rem 0 0;
  color: var(--muted);
  font-size: .5rem;
  text-transform: uppercase;
  letter-spacing: .1em;
}

.species-image figcaption span:first-child {
  color: var(--paper);
}

.story-text {
  margin: clamp(1.2rem, 2.5vh, 2.2rem) 0;
  color: #d7dacf;
  font-family: var(--serif);
  font-size: clamp(.9rem, 1vw, 1.08rem);
  line-height: 1.58;
}

.phase-card {
  position: relative;
  padding: 1rem 0 1rem 1rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.phase-card::before {
  position: absolute;
  top: 1.1rem;
  bottom: 1.1rem;
  left: 0;
  width: 2px;
  content: "";
  background: var(--species-color);
  box-shadow: 0 0 14px var(--species-color);
}

.phase-card > span {
  display: block;
  margin-bottom: .45rem;
  color: var(--muted);
  font-size: .55rem;
  text-transform: uppercase;
  letter-spacing: .15em;
}

.phase-card strong {
  display: block;
  font-family: var(--serif);
  font-size: .98rem;
  font-weight: 400;
}

.phase-card p {
  margin: .28rem 0 0;
  color: var(--muted);
  font-size: .62rem;
}

.species-stats {
  margin: 0;
}

.species-stats > div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  padding: .8rem 0;
  border-bottom: 1px solid var(--line);
}

.species-stats dt {
  color: var(--muted);
  font-size: .57rem;
  text-transform: uppercase;
  letter-spacing: .1em;
}

.species-stats dd {
  margin: 0;
  font-family: var(--serif);
  font-size: .72rem;
}

blockquote {
  margin: clamp(1.2rem, 2.6vh, 2.4rem) 0 1rem;
  padding: 0;
  color: var(--muted);
  font-family: var(--serif);
  font-size: clamp(.84rem, .9vw, .96rem);
  font-style: italic;
  line-height: 1.6;
}

blockquote::before {
  display: block;
  margin-bottom: .35rem;
  color: var(--species-color);
  content: "“";
  font-size: 2rem;
  line-height: .5;
}

.panel-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
  margin-top: auto;
  padding-top: .9rem;
  border-top: 1px solid var(--line);
  color: rgba(240,239,226,.4);
  font-size: .52rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.panel-footer .source-link {
  padding: 0;
  color: var(--species-color);
  font-size: .52rem;
}

.info-dialog {
  width: min(620px, calc(100vw - 2rem));
  max-height: min(720px, calc(100vh - 2rem));
  padding: 0;
  overflow: auto;
  border: 1px solid var(--line-strong);
  color: var(--paper);
  background: rgba(8, 20, 17, .98);
  box-shadow: 0 35px 100px rgba(0,0,0,.6);
}

.info-dialog::backdrop {
  background: rgba(1, 6, 5, .75);
  backdrop-filter: blur(8px);
}

.dialog-header {
  position: sticky;
  z-index: 2;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 1.4rem;
  border-bottom: 1px solid var(--line);
  background: #081411;
}

.dialog-header .eyebrow {
  margin: 0;
}

.close-button {
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: none;
  cursor: pointer;
  font-size: 1.25rem;
}

#dialogContent {
  padding: 1.4rem;
}

#dialogContent h3 {
  margin: 0 0 .75rem;
  font-family: var(--serif);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -.04em;
}

#dialogContent > p {
  color: var(--muted);
  font-family: var(--serif);
  line-height: 1.65;
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 1.5rem;
  background: var(--line);
  border: 1px solid var(--line);
}

.guide-grid div {
  padding: 1rem;
  background: var(--ink-2);
}

.guide-grid strong {
  display: block;
  margin-bottom: .4rem;
  color: var(--acid);
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 400;
}

.guide-grid span {
  color: var(--muted);
  font-size: .64rem;
  line-height: 1.45;
}

.source-list {
  display: grid;
  gap: 0;
  margin-top: 1.3rem;
  border-top: 1px solid var(--line);
}

.source-list a {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: .7rem;
  align-items: center;
  padding: .9rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--paper);
  text-decoration: none;
  font-size: .72rem;
}

.source-list a span:first-child {
  color: var(--muted);
  font-size: .55rem;
}

.source-list a span:last-child {
  color: var(--acid);
}

.source-list a:hover {
  color: var(--acid);
}

.source-note {
  margin-top: 1.25rem;
  padding-left: .8rem;
  border-left: 2px solid var(--acid);
  color: var(--muted);
  font-size: .68rem;
  line-height: 1.5;
}

.noscript {
  position: fixed;
  z-index: 100;
  right: 1rem;
  bottom: 1rem;
  padding: 1rem;
  color: var(--ink);
  background: var(--acid);
}

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

@media (max-width: 1100px) {
  .atlas-shell {
    grid-template-columns: 225px minmax(380px, 1fr) 250px;
  }

  .masthead {
    grid-template-columns: 225px 1fr auto;
  }

  .intro h1 {
    font-size: 2.6rem;
  }

  .story-panel {
    padding-inline: 1.1rem;
  }
}

@media (max-width: 880px) {
  .atlas-shell {
    grid-template-columns: 1fr;
    grid-template-rows: 62px auto minmax(600px, 76svh) auto;
  }

  .masthead {
    position: sticky;
    z-index: 15;
    top: 0;
    grid-column: 1;
    grid-row: 1;
    grid-template-columns: 1fr auto;
    background: rgba(7, 17, 15, .92);
    backdrop-filter: blur(16px);
  }

  .wordmark {
    border-right: 0;
  }

  .edition {
    display: none;
  }

  .header-actions {
    padding-right: .6rem;
  }

  .species-rail {
    grid-column: 1;
    grid-row: 2;
    display: grid;
    grid-template-columns: 1fr;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .intro {
    padding: 1.35rem 1rem 1rem;
  }

  .intro h1 {
    font-size: clamp(2.5rem, 10vw, 4.6rem);
  }

  .dek {
    max-width: 58ch;
  }

  .rail-heading {
    margin-top: 0;
    padding-inline: 1rem;
  }

  .species-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    overflow: visible;
  }

  .species-button {
    grid-template-columns: 18px 1fr;
    padding: .8rem 1rem;
    border-right: 1px solid var(--line);
  }

  .route-dash {
    display: none;
  }

  .all-routes-toggle {
    padding: .85rem 1rem;
  }

  .globe-stage {
    grid-column: 1;
    grid-row: 3;
    min-height: 600px;
  }

  .story-panel {
    grid-column: 1;
    grid-row: 4;
    min-height: 680px;
    border-top: 1px solid var(--line);
    border-left: 0;
    padding: 2rem 1.2rem 1.2rem;
  }

  .story-text {
    max-width: 66ch;
  }

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

@media (max-width: 560px) {
  .header-actions .text-button:first-child {
    display: none;
  }

  .species-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .species-button-name {
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .globe-stage {
    min-height: 560px;
    grid-template-rows: 40px minmax(0, 1fr) 120px;
  }

  .stage-meta {
    padding-inline: .8rem;
  }

  .recenter-button {
    right: .8rem;
  }

  .timeline {
    grid-template-columns: 56px 1fr;
  }

  .timeline-main {
    padding-inline: .8rem;
  }

  .month-track span:nth-child(even) {
    visibility: hidden;
  }

  .globe-caption {
    display: none;
  }
}

@media (max-width: 420px) {
  .wordmark > span:last-child {
    display: none;
  }

  .wordmark {
    padding-inline: .9rem;
  }

  .header-actions {
    gap: 0;
  }

  .brand-link {
    margin-left: 0;
    padding-inline: .5rem;
    font-size: .58rem;
  }
}

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