:root {
  --ink: #17211d;
  --muted: #53625b;
  --paper: #ffffff;
  --wash: #f5f8f6;
  --line: #dce5df;
  --forest: #184c38;
  --forest-2: #266b4d;
  --teal: #237a78;
  --clay: #c85f3c;
  --sun: #f0c44f;
  --shadow: 0 18px 45px rgba(23, 33, 29, 0.12);
  --wrap: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--wash);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: 0;
}

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

a {
  color: var(--forest-2);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--clay);
}

p {
  margin: 0 0 1rem;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.05;
  letter-spacing: 0;
}

h1 {
  font-size: 3.75rem;
  max-width: 860px;
}

h2 {
  font-size: 2.25rem;
}

h3 {
  font-size: 1.15rem;
}

ul,
ol {
  margin: 0;
  padding-left: 1.25rem;
}

li + li {
  margin-top: 0.5rem;
}

.wrap {
  width: min(100% - 32px, var(--wrap));
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 40;
  padding: 0.75rem 1rem;
  background: var(--ink);
  color: var(--paper);
  border-radius: 8px;
}

.skip-link:focus {
  top: 16px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(220, 229, 223, 0.9);
  backdrop-filter: blur(16px);
}

.nav-wrap {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: inline-block;
  border-radius: 8px;
  background:
    linear-gradient(135deg, transparent 0 50%, rgba(255, 255, 255, 0.34) 51% 100%),
    linear-gradient(160deg, var(--forest), var(--teal) 62%, var(--sun));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0.45rem 0.8rem;
  border-radius: 8px;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: #e8f2eb;
  color: var(--forest);
}

.hero {
  position: relative;
  min-height: 660px;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--paper);
  background: var(--forest);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 14px;
  background: linear-gradient(90deg, var(--sun), var(--teal), var(--clay), var(--forest-2));
}

.hero__background,
.hero__background img,
.hero__shade {
  position: absolute;
  inset: 0;
}

.hero__background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__shade {
  background:
    linear-gradient(90deg, rgba(10, 25, 18, 0.92), rgba(10, 25, 18, 0.72) 47%, rgba(10, 25, 18, 0.3)),
    linear-gradient(0deg, rgba(10, 25, 18, 0.56), rgba(10, 25, 18, 0.08));
}

.hero__inner {
  position: relative;
  z-index: 1;
  padding: 6rem 0 5rem;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--sun);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero__lead {
  max-width: 740px;
  margin-top: 1.35rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.16rem;
}

.hero__actions,
.button-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
}

.hero__actions {
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.72rem 1rem;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--forest);
  color: var(--paper);
  font-weight: 800;
  text-decoration: none;
  line-height: 1.1;
}

.button:hover {
  background: var(--clay);
  color: var(--paper);
}

.button--light {
  background: var(--paper);
  color: var(--forest);
}

.button--ghost {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.34);
  color: var(--paper);
}

.button--quiet {
  background: #e8f2eb;
  color: var(--forest);
}

.button--disabled,
.button--disabled:hover {
  background: #e6ece8;
  color: #6b7870;
  cursor: not-allowed;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
  max-width: 1080px;
  margin-top: 3rem;
}

.stat {
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
}

.stat strong {
  display: block;
  font-size: 1.55rem;
  line-height: 1.1;
}

.stat span {
  display: block;
  margin-top: 0.3rem;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.86rem;
}

.stat--counter strong {
  color: var(--sun);
}

.partner-band {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.partner-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.5rem 0;
}

.partner-grid p {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.partner-logos {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.partner-logos img {
  max-height: 52px;
  width: auto;
}

.section {
  padding: 5rem 0;
}

.section--tight {
  padding: 3.5rem 0;
}

.section--notice {
  padding: 1rem 0 0;
  background: var(--wash);
}

.notice {
  padding: 0.95rem 1rem;
  border: 1px solid #e6c76a;
  border-left: 4px solid var(--sun);
  border-radius: 8px;
  background: #fff8df;
  color: #4b3b10;
}

.notice strong {
  color: #2d250c;
}

.section--paper {
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(260px, 0.55fr);
  gap: 2rem;
  align-items: end;
  margin-bottom: 2rem;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.72fr);
  gap: 3rem;
  align-items: start;
}

.lead {
  color: var(--muted);
  font-size: 1.08rem;
}

.metric-grid,
.feature-grid,
.download-grid,
.sensor-grid,
.class-grid {
  display: grid;
  gap: 1rem;
}

.metric-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.feature-grid,
.download-grid,
.sensor-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.download-grid--compact {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.class-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 8px 26px rgba(23, 33, 29, 0.06);
}

.metric,
.feature,
.download-card,
.sensor-card {
  padding: 1.2rem;
}

.metric strong {
  display: block;
  color: var(--forest);
  font-size: 1.85rem;
  line-height: 1;
}

.metric span,
.feature p,
.sensor-card p,
.download-card p {
  color: var(--muted);
}

.feature h3,
.sensor-card h3,
.download-card h3 {
  margin-bottom: 0.5rem;
}

.feature-accent {
  width: 42px;
  height: 4px;
  margin-bottom: 1rem;
  border-radius: 8px;
  background: var(--teal);
}

.feature:nth-child(2) .feature-accent,
.feature:nth-child(5) .feature-accent {
  background: var(--clay);
}

.feature:nth-child(3) .feature-accent,
.feature:nth-child(6) .feature-accent {
  background: var(--sun);
}

.image-frame {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.image-frame img {
  width: 100%;
}

.caption {
  margin: 0;
  padding: 0.85rem 1rem;
  color: var(--muted);
  font-size: 0.92rem;
}


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

.analytics-card {
  padding: 1.2rem;
}

.analytics-card h3 {
  margin-bottom: 0.65rem;
}

.analytics-card p {
  color: var(--muted);
}

.analytics-card .button {
  margin-top: 0.35rem;
}

.analytics-counter__image {
  width: auto;
  min-height: 42px;
  max-height: 64px;
  margin: 0.4rem 0 0.85rem;
}

.analytics-counter__numbers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0.4rem 0 0.85rem;
}

.analytics-counter__numbers div {
  padding: 0.75rem;
  border-radius: 8px;
  background: #eef5f0;
}

.analytics-counter__numbers strong {
  display: block;
  color: var(--forest);
  font-size: 1.55rem;
  line-height: 1.1;
}

.analytics-counter__numbers span {
  display: block;
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 800;
}

.analytics-placeholder {
  display: block;
  margin: 0.25rem 0 0.8rem;
  color: var(--forest);
  font-size: 1.6rem;
  line-height: 1.1;
}

.analytics-location-list {
  display: grid;
  gap: 0.55rem;
  margin: 0.25rem 0 1rem;
  padding: 0;
  list-style: none;
}

.analytics-location-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.4rem 0.75rem;
  align-items: baseline;
  margin: 0;
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  background: #f5f8f6;
}

.analytics-location-list span {
  color: var(--ink);
  font-weight: 800;
}

.analytics-location-list strong {
  color: var(--forest);
}

.analytics-location-list small {
  grid-column: 1 / -1;
  color: var(--muted);
}

.analytics-note {
  margin-bottom: 0;
  font-size: 0.92rem;
}

.collab-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.collab {
  padding: 1.25rem;
}

.collab h3 {
  margin-bottom: 0.65rem;
}

.collab p {
  margin-bottom: 0;
  color: var(--muted);
}

.license-note {
  margin-top: 1.5rem;
  padding: 1rem 1.2rem;
  border-left: 4px solid var(--forest-2);
  background: #eef5f0;
  color: #34443b;
}

.page-hero {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.page-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(280px, 0.62fr);
  gap: 3rem;
  align-items: center;
  padding: 4.5rem 0;
}

.page-hero h1 {
  color: var(--ink);
  font-size: 3rem;
}

.page-hero p {
  max-width: 740px;
  color: var(--muted);
  font-size: 1.08rem;
}

.callout {
  padding: 1.25rem;
  border-radius: 8px;
  background: var(--forest);
  color: var(--paper);
}

.callout p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.84);
}

.sensor-card {
  min-height: 100%;
}

.sensor-card a {
  font-weight: 800;
}

.media-pair {
  display: grid;
  grid-template-columns: 0.72fr 1fr;
  gap: 1rem;
  align-items: stretch;
}

.media-pair .image-frame {
  display: flex;
  flex-direction: column;
}

.media-pair .image-frame img {
  flex: 1;
  object-fit: cover;
}

.class-grid {
  list-style: none;
  padding: 0;
}

.class-grid li {
  min-height: 44px;
  margin: 0;
  display: flex;
  align-items: center;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--line);
  border-left: 4px solid var(--teal);
  border-radius: 8px;
  background: var(--paper);
  color: #243128;
  font-weight: 700;
}

.class-grid li:nth-child(3n + 2) {
  border-left-color: var(--clay);
}

.class-grid li:nth-child(3n) {
  border-left-color: var(--sun);
}

.figure-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.annotation-panel-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  align-items: stretch;
}

.annotation-panel-grid .image-frame img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.caption-example {
  padding: 1.2rem;
}

.caption-example h3 {
  margin: 0.65rem 0 0.35rem;
}

.caption-example h3:first-of-type {
  margin-top: 0;
}

.caption-example p {
  color: var(--muted);
}

.caption-example p:last-child {
  margin-bottom: 0;
}

.download-card {
  display: flex;
  min-height: 210px;
  flex-direction: column;
}

.download-card p {
  flex: 1;
}

.download-card .button {
  align-self: flex-start;
  margin-top: 1rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin-bottom: 0.8rem;
  padding: 0.25rem 0.55rem;
  border-radius: 8px;
  background: #e8f2eb;
  color: var(--forest);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.tree-card {
  overflow-x: auto;
  padding: 1.2rem;
}

.tree-card pre {
  margin: 0;
  color: #1f2a24;
  font: 0.92rem/1.6 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

.citation-card {
  overflow-x: auto;
  padding: 1.2rem;
}

.citation-card pre {
  margin: 0;
  color: #1f2a24;
  font: 0.9rem/1.55 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  white-space: pre;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 8px 26px rgba(23, 33, 29, 0.06);
}

.trajectory-overview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.36fr);
  gap: 1rem;
  align-items: stretch;
  margin-bottom: 1rem;
}

.trajectory-overview__map {
  margin: 0;
}

.trajectory-overview__stats {
  display: grid;
  gap: 1rem;
  align-content: start;
}

.trajectory-overview__stats .metric {
  min-height: auto;
}

.trajectory-overview__stats .button {
  width: 100%;
}

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

.trajectory-year + .trajectory-year {
  margin-top: 2.5rem;
}

.trajectory-year__head {
  margin: 0 0 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line);
}

.trajectory-year__head h3 {
  color: var(--forest);
  font-size: 1.35rem;
}

.trajectory-year__head p {
  margin: 0.35rem 0 0;
  color: var(--muted);
}

.trajectory-card {
  display: grid;
  grid-template-columns: minmax(180px, 0.45fr) minmax(0, 1fr);
  overflow: hidden;
}

.trajectory-card__map {
  min-height: 100%;
  background: #e8f2eb;
}

.trajectory-card__map img {
  width: 100%;
  height: 100%;
  min-height: 230px;
  object-fit: cover;
}

.trajectory-card__body {
  min-width: 0;
  padding: 1rem;
}

.trajectory-card h3 {
  overflow-wrap: anywhere;
  font-size: 1rem;
  line-height: 1.25;
}

.trajectory-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  margin: 1rem 0;
}

.trajectory-meta div {
  padding: 0.55rem;
  border-radius: 8px;
  background: #f5f8f6;
}

.trajectory-meta dt {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.trajectory-meta dd {
  margin: 0.15rem 0 0;
  color: var(--ink);
  font-weight: 800;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 780px;
}

th,
td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  background: #eef5f0;
  color: #23362b;
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

tr:last-child td {
  border-bottom: 0;
}

td:first-child {
  color: var(--forest);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.92rem;
}

.not-found {
  min-height: 64vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 5rem 1rem;
}

.not-found h1 {
  margin-bottom: 1rem;
  color: var(--forest);
  font-size: 5rem;
}

.site-footer {
  padding: 2.5rem 0;
  background: #14241c;
  color: rgba(255, 255, 255, 0.88);
}

.site-footer p {
  max-width: 520px;
  margin: 0.35rem 0 0;
  color: rgba(255, 255, 255, 0.68);
}

.visitor-counter {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  font-size: 0.92rem;
}

.visitor-counter strong {
  color: var(--paper);
}

.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.footer-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.84);
  font-weight: 700;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--sun);
}

@media (max-width: 920px) {
  h1 {
    font-size: 3rem;
  }

  h2 {
    font-size: 1.95rem;
  }

  .nav-wrap {
    align-items: flex-start;
    flex-direction: column;
    padding: 1rem 0;
  }

  .site-nav {
    width: 100%;
    justify-content: flex-start;
  }

  .hero {
    min-height: 620px;
  }

  .hero__stats,
  .metric-grid,
  .feature-grid,
  .analytics-grid,
  .download-grid,
  .download-grid--compact,
  .sensor-grid,
  .class-grid,
  .collab-list,
  .split,
  .section-head,
  .page-hero__grid,
  .media-pair,
  .annotation-panel-grid {
    grid-template-columns: 1fr 1fr;
  }

  .section-head,
  .split,
  .page-hero__grid,
  .media-pair {
    gap: 1.5rem;
  }
}

@media (max-width: 680px) {
  body {
    font-size: 15px;
  }

  .wrap {
    width: min(100% - 24px, var(--wrap));
  }

  h1,
  .page-hero h1 {
    font-size: 2.25rem;
  }

  h2 {
    font-size: 1.65rem;
  }

  .site-header {
    position: static;
  }

  .brand {
    white-space: normal;
  }

  .site-nav a {
    min-height: 38px;
    padding: 0.4rem 0.55rem;
    font-size: 0.92rem;
  }

  .hero {
    min-height: auto;
  }

  .hero__shade {
    background: linear-gradient(0deg, rgba(10, 25, 18, 0.88), rgba(10, 25, 18, 0.58));
  }

  .hero__inner,
  .page-hero__grid {
    padding: 3.5rem 0;
  }

  .hero__lead,
  .page-hero p,
  .lead {
    font-size: 1rem;
  }

  .hero__stats,
  .metric-grid,
  .feature-grid,
  .analytics-grid,
  .download-grid,
  .download-grid--compact,
  .sensor-grid,
  .class-grid,
  .collab-list,
  .split,
  .section-head,
  .page-hero__grid,
  .media-pair,
  .annotation-panel-grid {
    grid-template-columns: 1fr;
  }

  .partner-grid,
  .footer-grid {
    align-items: flex-start;
    flex-direction: column;
  }

  .partner-logos img {
    max-height: 42px;
  }

  .section {
    padding: 3.5rem 0;
  }

  .footer-links {
    justify-content: flex-start;
  }
}


@media (max-width: 920px) {
  .trajectory-overview,
  .trajectory-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .trajectory-card {
    grid-template-columns: 1fr;
  }

  .trajectory-card__map img {
    min-height: 210px;
  }

  .trajectory-meta {
    grid-template-columns: 1fr;
  }
}
