:root {
  color-scheme: light;
  --ink: #17202a;
  --muted: #5e6a72;
  --line: #d9e2e3;
  --paper: #f7f4ec;
  --white: #fffdf8;
  --green: #1f7a5f;
  --green-dark: #16543e;
  --yellow: #f4c542;
  --red: #ce4b4b;
  --blue: #3f6fae;
  --charcoal: #263238;
  --shadow: 0 18px 45px rgba(20, 34, 37, 0.11);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(247, 244, 236, 0.93);
  border-bottom: 1px solid rgba(23, 32, 42, 0.1);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 7px;
  color: #fff;
  background: var(--charcoal);
  font-size: 0.82rem;
  letter-spacing: 0;
}

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 18px;
  color: var(--muted);
  font-size: 0.92rem;
}

nav a {
  text-decoration: none;
}

nav a:hover {
  color: var(--ink);
}

.hero {
  min-height: calc(100vh - 64px);
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(340px, 0.78fr);
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
  padding: clamp(42px, 7vw, 92px) clamp(18px, 5vw, 72px) 56px;
}

.hero-copy {
  max-width: 780px;
}

.eyebrow,
.tag {
  margin: 0 0 10px;
  color: var(--green-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 18px;
  font-size: clamp(2.6rem, 6vw, 5.8rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.08rem;
  line-height: 1.2;
}

.lead {
  max-width: 650px;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.7vw, 1.32rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 17px;
  border: 1px solid rgba(23, 32, 42, 0.18);
  border-radius: 7px;
  background: var(--white);
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(20, 34, 37, 0.07);
}

.button.primary {
  color: #fff;
  background: var(--green);
  border-color: var(--green);
}

.field-visual {
  width: min(100%, 520px);
  margin-inline: auto;
}

.field-grid {
  position: relative;
  aspect-ratio: 1;
  border: 12px solid var(--charcoal);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(206, 75, 75, 0.08) 0 50%, rgba(63, 111, 174, 0.08) 50%),
    linear-gradient(rgba(23, 32, 42, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 32, 42, 0.1) 1px, transparent 1px),
    #fffdf8;
  background-size: auto, 25% 25%, 25% 25%, auto;
  box-shadow: var(--shadow);
}

.field-grid::before,
.field-grid::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.field-grid::before {
  border-left: 2px dashed rgba(23, 32, 42, 0.18);
  left: 50%;
}

.field-grid::after {
  border-top: 2px dashed rgba(23, 32, 42, 0.18);
  top: 50%;
}

.station,
.toggle,
.goal,
.midfield,
.pin-cloud {
  position: absolute;
  z-index: 2;
}

.station {
  padding: 4px 8px;
  border-radius: 5px;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
}

.station.red {
  left: 7%;
  top: 7%;
  background: var(--red);
}

.station.blue {
  right: 7%;
  bottom: 7%;
  background: var(--blue);
}

.toggle {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: var(--charcoal);
  background: var(--yellow);
  font-size: 0.85rem;
  font-weight: 900;
  box-shadow: 0 6px 12px rgba(20, 34, 37, 0.15);
}

.toggle.north {
  left: calc(50% - 17px);
  top: -6px;
}

.toggle.east {
  right: -6px;
  top: calc(50% - 17px);
}

.toggle.south {
  left: calc(50% - 17px);
  bottom: -6px;
}

.toggle.west {
  left: -6px;
  top: calc(50% - 17px);
}

.goal {
  width: 38px;
  height: 38px;
  border: 4px solid var(--charcoal);
  border-radius: 50%;
  background: var(--white);
}

.goal.short {
  width: 31px;
  height: 31px;
}

.goal.tall {
  width: 48px;
  height: 48px;
  border-width: 6px;
}

.goal.alliance.red-goal {
  border-color: var(--red);
}

.goal.alliance.blue-goal {
  border-color: var(--blue);
}

.g1 {
  left: 16%;
  top: 30%;
}

.g2 {
  right: 18%;
  top: 18%;
}

.g3 {
  left: calc(50% - 24px);
  top: calc(50% - 24px);
}

.g4 {
  left: 22%;
  bottom: 17%;
}

.g5 {
  right: 18%;
  bottom: 31%;
}

.g6 {
  left: 10%;
  top: 10%;
}

.g7 {
  left: 34%;
  top: 12%;
}

.g8 {
  right: 10%;
  bottom: 10%;
}

.g9 {
  right: 33%;
  bottom: 13%;
}

.midfield {
  left: calc(50% - 64px);
  top: calc(50% + 35px);
  width: 128px;
  padding: 7px 8px;
  border-radius: 6px;
  color: #fff;
  background: rgba(31, 122, 95, 0.92);
  font-size: 0.82rem;
  font-weight: 800;
  text-align: center;
}

.pin-cloud {
  width: 58px;
  height: 28px;
  border-radius: 20px;
  background:
    radial-gradient(circle at 16px 14px, var(--yellow) 0 5px, transparent 6px),
    radial-gradient(circle at 30px 11px, var(--red) 0 5px, transparent 6px),
    radial-gradient(circle at 43px 17px, var(--blue) 0 5px, transparent 6px);
}

.c1 {
  left: 27%;
  top: 38%;
}

.c2 {
  right: 24%;
  top: 35%;
}

.c3 {
  left: 31%;
  bottom: 28%;
}

.c4 {
  right: 30%;
  bottom: 24%;
}

.field-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 12px;
}

.field-stats span {
  min-height: 68px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--white);
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
}

.field-stats strong {
  display: block;
  color: var(--ink);
  font-size: 1.45rem;
  line-height: 1;
}

.section {
  padding: clamp(52px, 8vw, 92px) clamp(18px, 5vw, 72px);
}

.band {
  background: #edf3ef;
  border-block: 1px solid rgba(23, 32, 42, 0.08);
}

.section-heading {
  max-width: 780px;
  margin-bottom: 30px;
}

.grid {
  display: grid;
  gap: 18px;
}

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

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

.panel,
.project-detail,
.timeline article,
.edge-list article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 10px 24px rgba(20, 34, 37, 0.06);
}

.panel {
  padding: 24px;
}

.panel.small p,
.project p,
.edge-list p,
.timeline p,
.note {
  color: var(--muted);
}

.tight-list,
.steps {
  margin: 0;
  padding-left: 1.15rem;
}

.tight-list li,
.steps li {
  margin: 8px 0;
}

.edge-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(180px, 1fr));
  gap: 14px;
}

.edge-list article {
  padding: 20px;
}

.number {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 18px;
  border-radius: 50%;
  color: #fff;
  background: var(--green);
  font-weight: 900;
}

.project-stack {
  display: grid;
  gap: 14px;
}

.project-detail {
  overflow: clip;
}

.project-detail.winner {
  border-color: rgba(31, 122, 95, 0.35);
  background: linear-gradient(90deg, rgba(31, 122, 95, 0.08), var(--white) 42%);
}

.project-detail summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  min-height: 104px;
  padding: 22px 58px 22px 22px;
  cursor: pointer;
  list-style: none;
  position: relative;
}

.project-detail summary::-webkit-details-marker {
  display: none;
}

.project-detail summary::after {
  content: "+";
  position: absolute;
  right: 22px;
  top: 50%;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(23, 32, 42, 0.18);
  border-radius: 50%;
  color: var(--green-dark);
  background: rgba(255, 253, 248, 0.78);
  font-size: 1.25rem;
  font-weight: 850;
  transform: translateY(-50%);
}

.project-detail[open] summary::after {
  content: "-";
}

.summary-copy {
  display: grid;
  gap: 4px;
}

.summary-title {
  color: var(--ink);
  font-size: 1.08rem;
  font-weight: 850;
  line-height: 1.2;
}

.summary-text {
  max-width: 780px;
  color: var(--muted);
}

.rating {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 184px;
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 6px;
  color: var(--green-dark);
  background: rgba(31, 122, 95, 0.11);
  font-size: 0.86rem;
  font-weight: 850;
  text-align: center;
}

.detail-body {
  padding: 0 22px 22px;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding-top: 20px;
  border-top: 1px solid rgba(23, 32, 42, 0.1);
}

.detail-grid > div {
  min-height: 176px;
  padding: 16px;
  border: 1px solid rgba(23, 32, 42, 0.1);
  border-radius: 7px;
  background: rgba(255, 253, 248, 0.7);
}

.detail-grid h4 {
  margin: 0 0 8px;
  color: var(--green-dark);
  font-size: 0.84rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.detail-grid p,
.detail-grid ul,
.detail-note {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.detail-grid ul {
  padding-left: 1rem;
}

.detail-grid li {
  margin: 6px 0;
}

.detail-note {
  margin-top: 14px;
  padding: 13px 16px;
  border-left: 4px solid var(--green);
  border-radius: 6px;
  background: rgba(31, 122, 95, 0.08);
}

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

.timeline article {
  padding: 22px;
}

.timeline span {
  display: block;
  margin-bottom: 12px;
  color: var(--green-dark);
  font-size: 0.8rem;
  font-weight: 850;
}

.source-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.source-grid a {
  display: flex;
  align-items: center;
  min-height: 54px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--white);
  color: var(--green-dark);
  font-weight: 800;
  text-decoration: none;
}

.note {
  max-width: 840px;
  margin: 22px 0 0;
}

@media (max-width: 1120px) {
  .hero {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 760px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    justify-content: flex-start;
  }

  .hero {
    min-height: auto;
    padding-top: 38px;
  }

  h1 {
    font-size: clamp(2.35rem, 13vw, 3.75rem);
  }

  .grid.two,
  .grid.three,
  .edge-list,
  .timeline,
  .source-grid,
  .detail-grid,
  .project-detail summary {
    grid-template-columns: 1fr;
  }

  .project-detail summary {
    padding-right: 52px;
  }

  .detail-grid > div {
    min-height: auto;
  }

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

  .rating {
    width: 100%;
  }
}

@media (max-width: 420px) {
  .field-grid {
    border-width: 8px;
  }

  .pin-cloud,
  .station {
    display: none;
  }

  .midfield {
    width: 112px;
    left: calc(50% - 56px);
    font-size: 0.76rem;
  }
}
