:root {
  --night-ink: #101020;
  --deep-panel: #202030;
  --deeper-panel: #171727;
  --strange-purple: #8f4dff;
  --true-cyan: #5fd8ff;
  --idea-gold: #ffd166;
  --help-green: #62f6a5;
  --minjerribah-aqua: #90f0e0;
  --soft-white: #f7f3ff;
  --muted-light: #c9c3de;
  --paper: #f4fbfa;
  --ink-text: #17202a;
  --coral: #ff8b74;
  --line: rgba(144, 240, 224, 0.22);
  --panel-line: rgba(247, 243, 255, 0.14);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
  --heading: "Nunito Sans", "Avenir Next", Arial, sans-serif;
  --body: "Atkinson Hyperlegible", "Source Sans 3", Arial, sans-serif;
  --max-width: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--night-ink);
  scroll-behavior: smooth;
}

:target {
  scroll-margin-top: 6rem;
}

body {
  background:
    radial-gradient(circle at 14% 0, rgba(143, 77, 255, 0.22), transparent 28rem),
    radial-gradient(circle at 88% 16%, rgba(95, 216, 255, 0.14), transparent 31rem),
    linear-gradient(145deg, #101020, #17192b 54%, #102225);
  color: var(--soft-white);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.55;
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  background:
    linear-gradient(90deg, rgba(144, 240, 224, 0.055) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 209, 102, 0.04) 1px, transparent 1px);
  background-size: 88px 88px;
  content: "";
  inset: 0;
  pointer-events: none;
  position: fixed;
  z-index: -1;
}

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

a {
  color: inherit;
}

p {
  margin: 0;
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  font-family: var(--heading);
  letter-spacing: 0;
  line-height: 1.04;
  margin: 0;
  overflow-wrap: anywhere;
}

h1 {
  color: var(--soft-white);
  font-size: clamp(2.75rem, 6.1vw, 5.1rem);
  max-width: min(12ch, 100%);
}

h2 {
  font-size: clamp(2rem, 4.6vw, 3.55rem);
  max-width: min(13ch, 100%);
}

h3 {
  font-size: 1.28rem;
}

.skip-link {
  background: var(--idea-gold);
  color: var(--ink-text);
  left: 1rem;
  padding: 0.6rem 0.8rem;
  position: absolute;
  top: -4rem;
  z-index: 40;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  background: rgba(16, 16, 32, 0.93);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 30;
}

.nav {
  align-items: center;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin: 0 auto;
  max-width: var(--max-width);
  padding: 0.78rem 1.25rem;
}

.brand-mark {
  color: var(--soft-white);
  display: grid;
  flex: 0 0 auto;
  font-family: var(--heading);
  font-weight: 900;
  line-height: 0.92;
  text-decoration: none;
  text-transform: uppercase;
}

.brand-mark .brand-ready,
.brand-ready {
  color: var(--strange-purple);
  text-shadow: 0 0 12px rgba(143, 77, 255, 0.78);
}

.brand-mark .brand-set,
.brand-set {
  color: var(--true-cyan);
  text-shadow: 0 0 12px rgba(95, 216, 255, 0.72);
}

.brand-mark .brand-coop,
.brand-coop {
  color: var(--idea-gold);
  text-shadow: 0 0 12px rgba(255, 209, 102, 0.58);
}

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

.nav-links a {
  color: var(--muted-light);
  font-family: var(--heading);
  font-size: 0.88rem;
  font-weight: 800;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a:focus,
.nav-links a[aria-current="page"] {
  color: var(--minjerribah-aqua);
}

.nav-toggle {
  align-items: center;
  background: transparent;
  border: 1px solid rgba(144, 240, 224, 0.48);
  border-radius: 8px;
  color: var(--soft-white);
  display: none;
  font-family: var(--heading);
  font-weight: 900;
  justify-content: center;
  min-height: 2.6rem;
  padding: 0.45rem 0.75rem;
}

.hero,
.page-hero,
.section,
.site-footer,
.route-nav {
  margin: 0 auto;
  max-width: var(--max-width);
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.hero {
  align-items: center;
  isolation: isolate;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
  margin: 0;
  max-width: none;
  min-height: calc(100vh - 72px);
  overflow: hidden;
  padding: clamp(4rem, 8vw, 7rem) max(1.25rem, calc((100vw - var(--max-width)) / 2 + 1.25rem)) 4rem;
  position: relative;
}

.hero h1 {
  font-size: clamp(3rem, 5.2vw, 5rem);
  max-width: min(16ch, calc(100vw - 2.5rem));
}

.hero-copy {
  max-width: min(720px, calc(100vw - 2.5rem));
  min-width: 0;
  position: relative;
  width: min(100%, calc(100vw - 2.5rem), 720px);
  z-index: 1;
}

.page-hero {
  padding-bottom: 3rem;
  padding-top: 5rem;
}

.hero-copy,
.page-hero-copy {
  max-width: min(670px, calc(100vw - 2.5rem));
  min-width: 0;
  width: min(100%, calc(100vw - 2.5rem), 670px);
}

.hero-image-card,
.page-hero-image {
  background: rgba(247, 243, 255, 0.045);
  border: 1px solid var(--panel-line);
  border-radius: 8px;
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.24);
  margin: 0;
  overflow: hidden;
}

.hero-image-card {
  border: 0;
  border-radius: 0;
  box-shadow: none;
  inset: 0;
  position: absolute;
  z-index: -2;
}

.hero::after,
.page-hero-with-image::after {
  background:
    linear-gradient(90deg, rgba(10, 10, 23, 0.94) 0%, rgba(10, 10, 23, 0.78) 36%, rgba(10, 10, 23, 0.34) 69%, rgba(10, 10, 23, 0.08) 100%),
    linear-gradient(0deg, rgba(10, 10, 23, 0.72) 0%, rgba(10, 10, 23, 0.08) 64%);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: -1;
}

.hero-image-card img,
.page-hero-image img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.hero-image-card figcaption,
.page-hero-image figcaption {
  color: var(--muted-light);
  font-size: 0.88rem;
  padding: 0.75rem 0.95rem 0.9rem;
}

.page-hero-with-image {
  align-items: center;
  isolation: isolate;
  display: flex;
  margin: 0;
  max-width: none;
  min-height: calc(100vh - 72px);
  overflow: hidden;
  padding: clamp(4.4rem, 8vw, 7.2rem) max(1.25rem, calc((100vw - var(--max-width)) / 2 + 1.25rem)) 4rem;
  position: relative;
  width: 100%;
}

.page-hero-with-image .page-hero-copy {
  max-width: min(720px, calc(100vw - 2.5rem));
  position: relative;
  width: min(100%, calc(100vw - 2.5rem), 720px);
  z-index: 1;
}

.page-hero-with-image h1 {
  font-size: clamp(3rem, 6.6vw, 6.1rem);
  max-width: min(13ch, calc(100vw - 2.5rem));
}

.page-hero-with-image .page-hero-image {
  border: 0;
  border-radius: 0;
  box-shadow: none;
  inset: 0;
  position: absolute;
  z-index: -2;
}

.hero-image-card figcaption,
.page-hero-with-image .page-hero-image figcaption {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.hero-stack {
  display: contents;
}

.hero .signal-board {
  display: none;
}

.feature-image {
  margin-top: 2rem;
  max-width: 980px;
}

.eyebrow {
  color: var(--help-green);
  font-family: var(--heading);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0;
  margin: 0 0 0.7rem;
  text-transform: uppercase;
}

.hero-lede,
.page-lede {
  color: var(--muted-light);
  font-size: clamp(1.08rem, 2vw, 1.32rem);
  margin-top: 1.3rem;
  max-width: 38rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.button,
.button-link {
  align-items: center;
  border-radius: 8px;
  display: inline-flex;
  font-family: var(--heading);
  font-weight: 900;
  justify-content: center;
  min-height: 2.9rem;
  min-width: 9.5rem;
  padding: 0.8rem 1rem;
  text-align: center;
  text-decoration: none;
}

.button.primary,
.button-link.primary {
  background: var(--strange-purple);
  box-shadow: 0 0 22px rgba(143, 77, 255, 0.62);
  color: var(--soft-white);
}

.button.secondary,
.button-link.secondary {
  border: 1px solid rgba(95, 216, 255, 0.7);
  color: var(--true-cyan);
}

.hero-visual {
  margin: 0;
}

.hero-visual img {
  background: rgba(247, 243, 255, 0.05);
  border: 1px solid rgba(144, 240, 224, 0.18);
  border-radius: 8px;
  box-shadow: 0 0 38px rgba(95, 216, 255, 0.14), var(--shadow);
  display: block;
  max-height: min(64vh, 650px);
  object-fit: contain;
  object-position: center;
  width: 100%;
}

.signal-board {
  background: linear-gradient(145deg, rgba(32, 32, 48, 0.94), rgba(16, 16, 32, 0.98));
  border: 1px solid rgba(144, 240, 224, 0.23);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 1rem;
}

.board-header {
  align-items: center;
  border-bottom: 1px solid var(--panel-line);
  display: flex;
  gap: 0.45rem;
  padding: 0 0 0.85rem;
}

.board-header span {
  background: var(--true-cyan);
  border-radius: 50%;
  height: 0.58rem;
  opacity: 0.9;
  width: 0.58rem;
}

.board-header span:nth-child(2) {
  background: var(--idea-gold);
}

.board-header span:nth-child(3) {
  background: var(--help-green);
}

.signal-path {
  display: grid;
  gap: 0.8rem;
  margin-top: 1rem;
}

.signal-step {
  background: rgba(247, 243, 255, 0.055);
  border: 1px solid var(--panel-line);
  border-radius: 8px;
  padding: 0.95rem;
}

.signal-step span,
.card-tag,
.mini-label {
  color: var(--minjerribah-aqua);
  display: block;
  font-family: var(--heading);
  font-size: 0.78rem;
  font-weight: 900;
  margin-bottom: 0.35rem;
  text-transform: uppercase;
}

.signal-step strong {
  color: var(--soft-white);
  display: block;
  font-family: var(--heading);
  font-size: 1.2rem;
  line-height: 1.12;
}

.signal-step p {
  color: var(--muted-light);
  font-size: 0.96rem;
  margin-top: 0.35rem;
}

.intro-band {
  background: var(--minjerribah-aqua);
  color: var(--ink-text);
  padding: 1rem 1.25rem;
}

.intro-band div {
  margin: 0 auto;
  max-width: var(--max-width);
}

.section {
  padding-bottom: clamp(3.2rem, 7vw, 5.8rem);
  padding-top: clamp(3.2rem, 7vw, 5.8rem);
}

.section-heading {
  margin-bottom: 1.8rem;
  max-width: 760px;
}

.section-heading h2 {
  max-width: 14ch;
}

.section-heading p:not(.eyebrow) {
  color: var(--muted-light);
  font-size: 1.05rem;
  margin-top: 1rem;
  max-width: 42rem;
}

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

.page-copy {
  color: var(--muted-light);
  margin-top: 1rem;
  max-width: 47rem;
}

.panel,
.callout,
.route-card,
.link-card,
.asset-card,
.video-card,
.boundary-card,
.job-card {
  background: rgba(32, 32, 48, 0.74);
  border: 1px solid var(--panel-line);
  border-radius: 8px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
}

.panel,
.callout {
  padding: 1.2rem;
}

.callout {
  border-color: rgba(255, 209, 102, 0.35);
}

.callout strong {
  color: var(--idea-gold);
  display: block;
  font-family: var(--heading);
  font-size: 1.2rem;
  margin-bottom: 0.45rem;
}

.callout p {
  color: var(--muted-light);
}

.route-grid,
.link-grid,
.asset-grid,
.video-grid,
.boundary-grid,
.job-grid,
.metric-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.route-card,
.link-card,
.asset-card,
.video-card,
.boundary-card,
.job-card,
.metric-card {
  min-height: 100%;
  padding: 1rem;
  text-decoration: none;
}

.route-card:hover,
.route-card:focus,
.link-card:hover,
.link-card:focus {
  border-color: rgba(144, 240, 224, 0.62);
  transform: translateY(-2px);
}

.route-card strong,
.link-card strong,
.asset-card strong,
.video-card strong,
.boundary-card strong,
.job-card strong,
.metric-card strong {
  color: var(--soft-white);
  display: block;
  font-family: var(--heading);
  font-size: 1.14rem;
  line-height: 1.15;
}

.route-card p,
.link-card p,
.asset-card p,
.video-card p,
.boundary-card p,
.job-card p,
.metric-card p {
  color: var(--muted-light);
  font-size: 0.96rem;
  margin-top: 0.55rem;
}

.metric-card {
  background: rgba(144, 240, 224, 0.12);
  border: 1px solid rgba(144, 240, 224, 0.2);
  border-radius: 8px;
  padding: 1rem;
}

.metric-card .number {
  color: var(--idea-gold);
  display: block;
  font-family: var(--heading);
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 900;
  line-height: 1;
  margin-bottom: 0.4rem;
}

.timeline {
  display: grid;
  gap: 0;
}

.timeline-item {
  border-left: 2px solid rgba(144, 240, 224, 0.34);
  padding: 0 0 1.4rem 1.2rem;
  position: relative;
}

.timeline-item::before {
  background: var(--idea-gold);
  border-radius: 50%;
  box-shadow: 0 0 0 7px rgba(255, 209, 102, 0.12);
  content: "";
  height: 0.72rem;
  left: -0.43rem;
  position: absolute;
  top: 0.18rem;
  width: 0.72rem;
}

.timeline-item h3 {
  color: var(--soft-white);
}

.timeline-item p {
  color: var(--muted-light);
  margin-top: 0.45rem;
  max-width: 44rem;
}

.media-frame {
  background: rgba(16, 16, 32, 0.9);
  border: 1px solid rgba(95, 216, 255, 0.24);
  border-radius: 8px;
  margin-top: 1rem;
  overflow: hidden;
  position: relative;
}

.media-frame.landscape {
  aspect-ratio: 16 / 9;
}

.media-frame.portrait {
  aspect-ratio: 9 / 16;
}

.placeholder-slate {
  align-content: center;
  display: grid;
  height: 100%;
  justify-items: center;
  padding: 1rem;
  text-align: center;
}

.placeholder-slate span {
  color: var(--idea-gold);
  font-family: var(--heading);
  font-size: 0.78rem;
  font-weight: 900;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.placeholder-slate strong {
  color: var(--soft-white);
  font-family: var(--heading);
  font-size: 1.24rem;
}

.placeholder-slate p {
  color: var(--muted-light);
  font-size: 0.92rem;
  margin-top: 0.45rem;
  max-width: 24rem;
}

.image-panel {
  background: rgba(247, 243, 255, 0.045);
  border: 1px solid var(--panel-line);
  border-radius: 8px;
  overflow: hidden;
}

.image-panel img {
  aspect-ratio: 4 / 3;
  background: rgba(16, 16, 32, 0.82);
  display: block;
  object-fit: contain;
  object-position: center;
  width: 100%;
}

.image-panel figcaption {
  color: var(--muted-light);
  font-size: 0.92rem;
  padding: 0.85rem 1rem 1rem;
}

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

.photo-card {
  margin: 0;
}

.photo-card img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.photo-card.is-document img {
  background: #f5f4ee;
  object-fit: contain;
}

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

.source-list {
  display: grid;
  gap: 0.7rem;
  margin-top: 1rem;
}

.source-list a {
  border-bottom: 1px solid rgba(144, 240, 224, 0.3);
  color: var(--minjerribah-aqua);
  padding-bottom: 0.15rem;
  text-decoration: none;
  width: fit-content;
}

.status-note {
  background: rgba(255, 209, 102, 0.1);
  border: 1px solid rgba(255, 209, 102, 0.26);
  border-radius: 8px;
  color: var(--muted-light);
  margin-top: 1.4rem;
  padding: 1rem;
}

.site-map-list {
  display: grid;
  gap: 0.8rem;
}

.site-map-list a {
  background: rgba(32, 32, 48, 0.66);
  border: 1px solid var(--panel-line);
  border-radius: 8px;
  color: var(--soft-white);
  display: block;
  font-family: var(--heading);
  font-weight: 900;
  padding: 0.9rem 1rem;
  text-decoration: none;
}

.site-map-list span {
  color: var(--muted-light);
  display: block;
  font-family: var(--body);
  font-size: 0.92rem;
  font-weight: 400;
  margin-top: 0.25rem;
}

.route-nav {
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding-bottom: 3rem;
}

.route-nav a {
  border: 1px solid var(--panel-line);
  border-radius: 8px;
  color: var(--muted-light);
  padding: 0.85rem 1rem;
  text-decoration: none;
}

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted-light);
  display: grid;
  gap: 1rem;
  padding-bottom: 2.2rem;
  padding-top: 2rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.footer-links a,
.site-footer a {
  color: var(--minjerribah-aqua);
  text-decoration: none;
}

.to-top {
  background: var(--strange-purple);
  border: 0;
  border-radius: 8px;
  bottom: 1rem;
  box-shadow: 0 0 18px rgba(143, 77, 255, 0.44);
  color: var(--soft-white);
  cursor: pointer;
  font-family: var(--heading);
  font-weight: 900;
  opacity: 0;
  padding: 0.78rem 0.9rem;
  pointer-events: none;
  position: fixed;
  right: 1rem;
  transition: opacity 160ms ease, transform 160ms ease;
  z-index: 40;
}

.to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
}

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

  .hero {
    min-height: calc(100vh - 72px);
  }

  .route-grid,
  .link-grid,
  .asset-grid,
  .video-grid,
  .boundary-grid,
  .job-grid,
  .concept-grid,
  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nav {
    align-items: flex-start;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    background: rgba(16, 16, 32, 0.98);
    border: 1px solid var(--line);
    border-radius: 8px;
    display: none;
    left: 1rem;
    padding: 1rem;
    position: absolute;
    right: 1rem;
    top: 4.5rem;
  }

  body.nav-open .nav-links {
    display: grid;
    gap: 0.78rem;
    justify-content: stretch;
  }
}

@media (max-width: 620px) {
  body {
    font-size: 17px;
  }

  .hero,
  .page-hero,
  .section,
  .site-footer,
  .route-nav {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .hero,
  .page-hero-with-image {
    margin: 0;
    max-width: none;
    padding: 3.4rem 1rem 3rem;
    width: 100%;
  }

  .hero h1,
  .page-hero-with-image h1 {
    font-size: clamp(2.42rem, 10.6vw, 3.05rem);
    max-width: calc(100vw - 2rem);
  }

  .hero-copy,
  .page-hero-copy,
  .page-hero-with-image .page-hero-copy {
    max-width: calc(100vw - 2rem);
    width: calc(100vw - 2rem);
  }

  .page-hero:not(.page-hero-with-image),
  .section,
  .site-footer,
  .route-nav {
    margin-left: 0;
    margin-right: auto;
    width: min(100%, 390px);
  }

  .hero-lede,
  .page-lede,
  .page-copy {
    max-width: 100%;
  }

  h1 {
    font-size: clamp(2.28rem, 10.6vw, 3.05rem);
  }

  h2 {
    font-size: clamp(1.82rem, 8.6vw, 2.55rem);
  }

  .route-grid,
  .link-grid,
  .asset-grid,
  .video-grid,
  .boundary-grid,
  .job-grid,
  .photo-grid,
  .concept-grid,
  .metric-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .route-nav {
    flex-direction: column;
  }

  .button,
  .button-link,
  .route-nav a {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
