.reference-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 80% 10%, color-mix(in srgb, var(--ref-accent), transparent 64%), transparent 28rem),
    linear-gradient(180deg, var(--ref-bg), color-mix(in srgb, var(--ref-bg), #000 18%));
  color: var(--ref-ink);
}

.reference-nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.8rem;
  padding-bottom: 0.8rem;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.36), transparent);
}

.reference-nav nav {
  display: flex;
  gap: 0.25rem;
  max-width: 60vw;
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 0.25rem;
  background: rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(16px);
}

.reference-nav nav a {
  display: grid;
  width: 2rem;
  height: 2rem;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.76);
  font-weight: 900;
}

.reference-nav nav a[aria-current="page"] {
  color: #07111f;
  background: var(--ref-accent);
}

.reference-hero {
  min-height: 100vh;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.48fr);
  align-items: end;
  gap: 2rem;
  padding-top: 7rem;
  padding-bottom: 3rem;
  overflow: hidden;
}

.reference-photo,
.reference-glow {
  position: absolute;
  inset: 0;
}

.reference-photo {
  background-size: cover;
  background-position: center;
  opacity: 0.58;
  mix-blend-mode: luminosity;
}

.reference-glow {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.82), transparent 62%),
    linear-gradient(0deg, color-mix(in srgb, var(--ref-bg), #000 20%), transparent 46%);
}

.reference-hero__copy,
.reference-card {
  position: relative;
  z-index: 1;
}

.reference-hero__copy h1 {
  max-width: 13ch;
  margin: 0.9rem 0 1rem;
  font-family: Newsreader, Georgia, serif;
  font-size: 4.8rem;
  line-height: 0.92;
  overflow-wrap: anywhere;
}

.reference-hero__copy p:last-of-type {
  max-width: 45rem;
  color: rgba(255, 255, 255, 0.74);
  font-size: 1.1rem;
  line-height: 1.8;
}

.reference-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.reference-actions a {
  max-width: 100%;
}

.reference-card {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 1.6rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(18px);
}

.reference-card img {
  width: 100%;
  height: 18rem;
  object-fit: cover;
}

.reference-card div {
  padding: 1.2rem;
}

.reference-card span,
.reference-panels span {
  display: block;
  color: var(--ref-accent);
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.reference-card strong {
  display: block;
  margin-top: 0.5rem;
  line-height: 1.5;
}

.reference-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, 0.12);
}

.reference-metrics article {
  min-height: 8rem;
  display: grid;
  align-items: end;
  padding: 1.2rem;
  background: rgba(0, 0, 0, 0.24);
  font-weight: 900;
  text-transform: uppercase;
}

.reference-blueprint,
.reference-discipline {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1fr);
  gap: 2rem;
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.reference-blueprint h2 {
  margin: 0.8rem 0 1rem;
  font-family: Newsreader, Georgia, serif;
  font-size: 3.3rem;
  line-height: 1;
}

.reference-blueprint p,
.reference-discipline p {
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.75;
}

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

.reference-panels article,
.reference-discipline article {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.08);
}

.reference-route {
  display: flex;
  gap: 0.7rem;
  overflow-x: auto;
  padding-top: 2rem;
  padding-bottom: 2rem;
  background: rgba(0, 0, 0, 0.28);
}

.reference-route div {
  min-width: 10rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 1rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.08);
}

.reference-route span {
  color: var(--ref-accent);
  font-weight: 900;
}

.reference-route strong {
  display: block;
  margin-top: 0.35rem;
}

.reference-discipline {
  grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(18rem, 28rem);
}

.reference-discipline .donation-panel {
  grid-column: span 1;
  color: #07111f;
  background: #fff;
}

.reference-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 2rem;
  padding-bottom: 2rem;
  color: rgba(255, 255, 255, 0.68);
}

.reference-footer a {
  color: white;
  font-weight: 900;
}

@media (max-width: 980px) {
  .reference-hero,
  .reference-blueprint,
  .reference-discipline {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 640px) {
  .reference-nav .brand-lockup span {
    display: none;
  }

  .reference-nav nav {
    max-width: calc(100vw - 6.5rem);
  }

  .reference-hero__copy h1 {
    font-size: 2.9rem;
  }

  .reference-hero__copy p:last-of-type {
    max-width: 20rem;
  }

  .reference-actions {
    display: grid;
    grid-template-columns: 1fr;
    max-width: 15rem;
  }

  .reference-actions a {
    width: 100%;
  }

  .reference-metrics,
  .reference-panels {
    grid-template-columns: 1fr;
  }

  .reference-card img {
    height: 12rem;
  }

  .reference-footer {
    flex-direction: column;
  }
}
