:root {
  --ground: #f2f5f9;
  --white: #ffffff;
  --ink: #13203b;
  --ink-soft: #3a4763;
  --rule: #d3dbe6;
  --c: #2340a0;
  --a: #0b7a47;
  --s: #b5175c;
  --sun: #f4b400;
  --sun-deep: #d99f00;
  --c-deep: #1a3184;
  --on-c: #dfe6fb;
  --font: "Overpass", "Avenir Next", "Segoe UI", sans-serif;
  --measure: 68ch;
  --wrap: min(1180px, calc(100% - 2.5rem));
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scrollbar-color: var(--c) var(--ground);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
  caret-color: var(--c);
}

::selection {
  background: var(--sun);
  color: var(--ink);
}

::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: var(--ground); }
::-webkit-scrollbar-thumb {
  background: var(--c);
  border: 3px solid var(--ground);
  border-radius: 6px;
}

a {
  color: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.2em;
}

:focus-visible {
  outline: 3px solid var(--c);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--ink);
  color: var(--white);
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  z-index: 10;
  text-decoration: none;
  font-weight: 600;
}

.skip:focus { top: 0.7rem; }

/* Header */

.top {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--ground);
  box-shadow: 0 1px 0 var(--rule);
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem max(1.25rem, calc((100% - 1180px) / 2));
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.roundel {
  width: 1.9rem;
  height: 1.9rem;
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.r-c { stroke: var(--c); }
.r-a { stroke: var(--a); }
.r-s { stroke: var(--s); }

nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem 1.25rem;
  font-weight: 600;
}

nav a { text-decoration: none; }

nav a:not(.nav-cta):hover {
  text-decoration: underline;
  text-decoration-color: var(--c);
  text-decoration-thickness: 3px;
}

.nav-cta {
  background: var(--ink);
  color: var(--white);
  border-radius: 999px;
  padding: 0.45rem 0.95rem 0.35rem;
}

.nav-cta:hover { background: var(--c); }

/* Hero */

.hero {
  width: var(--wrap);
  margin-inline: auto;
  padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(2.5rem, 5vw, 4.5rem);
}

.hero-copy {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 1.5rem 3.5rem;
  align-items: end;
}

h1 {
  margin: 0;
  font-size: clamp(2.6rem, 5.4vw, 4.6rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.lede {
  margin: 0;
  max-width: 46ch;
  font-size: 1.15rem;
  color: var(--ink-soft);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem 1.5rem;
  margin-top: 1.5rem;
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 2.9rem;
  padding: 0.7rem 1.35rem 0.55rem;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s var(--ease);
}

.button:hover { background: var(--c); }

.text-link {
  font-weight: 800;
  text-decoration-color: var(--c);
  text-decoration-thickness: 3px;
}

/* Network map */

.net {
  display: block;
  width: 100%;
  height: auto;
  margin-top: clamp(2rem, 4vw, 3rem);
  overflow: visible;
}

.net-tall { display: none; }

.net .track {
  fill: none;
  stroke-width: 12;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ln-c .track { stroke: var(--c); }
.ln-a .track { stroke: var(--a); }
.ln-s .track { stroke: var(--s); }

.net .stop {
  fill: var(--white);
  stroke-width: 4;
}

.ln-c .stop { stroke: var(--c); }
.ln-a .stop { stroke: var(--a); }
.ln-s .stop { stroke: var(--s); }

.net .person {
  fill: var(--sun);
  stroke: var(--ink);
  stroke-width: 4;
}

.net text {
  fill: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  text-anchor: middle;
}

.net text.side { text-anchor: start; }
.net text.strong { font-weight: 800; }

.net .badge { stroke: none; }
.ln-c .badge { fill: var(--c); }
.ln-a .badge { fill: var(--a); }
.ln-s .badge { fill: var(--s); }

.net .badge-text {
  fill: var(--white);
  font-weight: 800;
}

.net .line-name {
  font-size: 16px;
  font-weight: 800;
  text-anchor: start;
}

.ln-c .line-name { fill: var(--c); }
.ln-a .line-name { fill: var(--a); }
.ln-s .line-name { fill: var(--s); }

.net a { cursor: pointer; }
.net a:focus { outline: none; }
.net a:focus-visible .badge,
.net a:focus-visible .line-name {
  stroke: var(--ink);
  stroke-width: 3;
  paint-order: stroke;
}

.net a:focus-visible .line-name { stroke: var(--sun); stroke-width: 5; }

.net .handover rect {
  fill: var(--white);
  stroke: var(--ink);
  stroke-width: 4;
}

.net .ln { transition: opacity 0.35s var(--ease); }

.net:has(.ln:hover) .ln:not(:hover),
.net:has(.ln:focus-within) .ln:not(:focus-within) {
  opacity: 0.16;
}

/* Sections */

.services,
.approach,
.work {
  width: var(--wrap);
  margin-inline: auto;
  padding: 5.5rem 0;
  scroll-margin-top: 4.5rem;
}

.services { border-top: 2px solid var(--ink); }

h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(2rem, 3.6vw, 3rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

h3 {
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.2;
}

.section-intro {
  max-width: var(--measure);
  margin: 0 0 clamp(2.25rem, 4vw, 3.5rem);
  font-size: 1.15rem;
  color: var(--ink-soft);
}

/* Service lines */

.service { --line: var(--c); scroll-margin-top: 5.5rem; }
.line-a { --line: var(--a); }
.line-s { --line: var(--s); }

.service + .service { margin-top: clamp(2.75rem, 5vw, 4rem); }

.line-row {
  display: grid;
  grid-template-columns: 13rem minmax(0, 1fr);
  align-items: start;
}

.badge-tag {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  min-height: 2.6rem;
  margin-top: -0.4rem;
  padding: 0.35rem 1.1rem 0.2rem;
  border-radius: 999px;
  background: var(--line);
  color: var(--white);
  font-size: 1.1rem;
}

.strip {
  position: relative;
  display: flex;
  margin: 0 0 0 -1.25rem;
  padding: 0;
  list-style: none;
}

.strip::before {
  content: "";
  position: absolute;
  top: 0.5rem;
  left: 0;
  right: 0;
  height: 12px;
  border-radius: 6px;
  background: var(--line);
}

.strip li {
  position: relative;
  flex: 1 1 0;
  padding: 2.1rem 0.4rem 0;
  text-align: center;
  font-weight: 600;
  line-height: 1.25;
}

.strip li::before {
  content: "";
  position: absolute;
  top: calc(14px - 0.55rem);
  left: 50%;
  width: 1.1rem;
  height: 1.1rem;
  margin-left: -0.55rem;
  border-radius: 50%;
  background: var(--white);
  border: 4px solid var(--line);
}

.strip .person-stop strong { font-weight: 800; }

.strip .person-stop::before {
  top: calc(14px - 0.8rem);
  width: 1.6rem;
  height: 1.6rem;
  margin-left: -0.8rem;
  background: var(--sun);
  border-color: var(--ink);
}

.service > p {
  max-width: var(--measure);
  margin: 1.4rem 0 0 13rem;
  color: var(--ink-soft);
}

/* Journey */

.approach { border-top: 2px solid var(--ink); }

.journey {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem 2.5rem;
  margin: 2.25rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}

.journey::before {
  content: "";
  position: absolute;
  top: calc(0.8rem - 6px);
  left: 0.5rem;
  right: 0;
  height: 12px;
  border-radius: 6px;
  background: var(--ink);
}

.journey li {
  position: relative;
  padding-top: 2.6rem;
}

.journey li::before {
  content: "";
  position: absolute;
  top: 0.1rem;
  left: 0;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 50%;
  background: var(--white);
  border: 4px solid var(--ink);
}

.journey li:last-child::before {
  width: 1.6rem;
  height: 2.4rem;
  top: -0.4rem;
  left: -0.1rem;
  border-radius: 999px;
}

.journey h3 { font-size: 1.35rem; margin-bottom: 0.4rem; }

.journey p {
  margin: 0;
  max-width: 34ch;
  color: var(--ink-soft);
}

/* Work */

.work { border-top: 2px solid var(--ink); }

.feature {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 2rem clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  padding: clamp(2rem, 4vw, 3rem) 0;
}

.feature + .feature { border-top: 1px solid var(--rule); }

.feature-flip .feature-text { order: 2; }

.feature h3 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); letter-spacing: -0.025em; }

.feature-text > p:last-child {
  max-width: var(--measure);
  margin: 0;
  color: var(--ink-soft);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.6rem 0 1rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.2rem 0.7rem 0.1rem 0.35rem;
  border: 2px solid currentColor;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 800;
}

.chip::before {
  content: "";
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid currentColor;
}

.chip-a { color: var(--a); }
.chip-s { color: var(--s); }

/* Shuttle route */

.route {
  position: relative;
  padding: 1.75rem 1.75rem 1.75rem 3.6rem;
  background: var(--white);
  border-radius: 1.25rem;
  box-shadow: 0 10px 30px -18px rgba(19, 32, 59, 0.45);
}

.route::before {
  content: "";
  position: absolute;
  top: 2.2rem;
  bottom: 2.2rem;
  left: 1.75rem;
  width: 10px;
  border-radius: 5px;
  background: var(--s);
}

.route p,
.route ul { margin: 0; }

.route-origin,
.route-end {
  position: relative;
  font-weight: 800;
}

.route-origin::before,
.route-end::before {
  content: "";
  position: absolute;
  left: -2.25rem;
  top: 0.1rem;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 999px;
  background: var(--white);
  border: 4px solid var(--ink);
}

.route-stops {
  list-style: none;
  padding: 0.75rem 0;
  display: grid;
  gap: 0.55rem;
}

.route-stops li {
  position: relative;
  font-weight: 600;
}

.route-stops li::before {
  content: "";
  position: absolute;
  left: -2.05rem;
  top: 0.3rem;
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--s);
}

/* Collections desk */

.desk {
  padding: 1.75rem;
  background: var(--ink);
  color: var(--white);
  border-radius: 1.25rem;
  box-shadow: 0 10px 30px -18px rgba(19, 32, 59, 0.6);
}

.desk p { margin: 0; }

.desk-title {
  font-weight: 800;
  font-size: 1.15rem;
}

.desk ul {
  list-style: none;
  margin: 1rem 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}

.desk li {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.75rem 1rem 0.6rem;
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.08);
  font-weight: 600;
}

.desk li::before {
  content: "";
  flex: none;
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 50%;
  background: var(--sun);
}

.desk-note { color: #c9d2e4; }

/* Directory */

.directory {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2.25rem, 4vw, 3.25rem) clamp(2rem, 5vw, 4.5rem);
  margin-top: 3rem;
  padding-top: 3rem;
  border-top: 2px solid var(--ink);
}

.entry h3 { font-size: 1.4rem; }

.entry > p:last-child {
  margin: 0;
  max-width: var(--measure);
  color: var(--ink-soft);
}

.entry a,
.feature a {
  font-weight: 800;
  text-decoration-color: var(--s);
  text-decoration-thickness: 3px;
}

/* Contact terminus */

.contact {
  background: var(--c);
  color: var(--white);
  padding: 5.5rem 1.25rem;
  scroll-margin-top: 4rem;
  caret-color: var(--ink);
}

.contact ::selection { background: var(--sun); color: var(--ink); }

.contact-inner {
  width: min(1180px, 100%);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 2.5rem clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}

.contact h2 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  letter-spacing: -0.035em;
}

.contact-copy p {
  margin: 0;
  max-width: 40ch;
  font-size: 1.15rem;
  color: var(--on-c);
}

form {
  display: grid;
  gap: 1.1rem;
}

.field {
  display: grid;
  gap: 0.35rem;
}

label { font-weight: 800; }

.optional {
  font-weight: 400;
  color: var(--on-c);
}

input,
textarea {
  width: 100%;
  padding: 0.8rem 0.95rem 0.65rem;
  font: inherit;
  color: var(--ink);
  background: var(--white);
  border: 3px solid var(--white);
  border-radius: 0.8rem;
  caret-color: var(--c);
  transition: border-color 0.2s var(--ease);
}

textarea {
  min-height: 9rem;
  resize: vertical;
}

input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--sun);
  outline-offset: 2px;
}

input[aria-invalid="true"],
textarea[aria-invalid="true"] {
  border-color: var(--sun);
}

.error {
  margin: 0;
  font-weight: 800;
  color: #ffe08a;
}

.button-sun {
  justify-self: start;
  background: var(--sun);
  color: var(--ink);
}

.button-sun:hover { background: var(--white); }

.contact :focus-visible:not(input):not(textarea) {
  outline-color: var(--sun);
}

.form-status {
  margin: 0;
  max-width: 52ch;
  padding: 0.85rem 1rem 0.7rem;
  border-radius: 0.8rem;
  background: var(--c-deep);
  color: var(--white);
}

/* Footer */

.colophon {
  width: var(--wrap);
  margin-inline: auto;
  padding: 2.25rem 0 3rem;
  color: var(--ink-soft);
}

.colophon p { margin: 0 0 0.35rem; max-width: var(--measure); }

.colophon-brand {
  color: var(--ink);
  font-weight: 800;
  font-size: 1.15rem;
}

.colophon a {
  color: var(--ink);
  font-weight: 600;
  text-decoration-color: var(--c);
}

/* Map draws in once on load */

@media (prefers-reduced-motion: no-preference) {
  .net .track {
    stroke-dasharray: 1;
    animation: draw 1.5s var(--ease) both;
  }

  .net .ln-c .track { animation-delay: 0.1s; }
  .net .ln-a .track { animation-delay: 0.3s; }
  .net .ln-s .track { animation-delay: 0.5s; }

  .net .person,
  .net .handover {
    animation: arrive 0.6s var(--ease) both;
    animation-delay: 1.2s;
  }

  @keyframes draw {
    from { stroke-dashoffset: 1; }
    to { stroke-dashoffset: 0; }
  }

  @keyframes arrive {
    from { opacity: 0; }
    to { opacity: 1; }
  }
}

/* Narrow layouts */

@media (max-width: 900px) {
  .hero-copy { grid-template-columns: 1fr; }
  .lede { max-width: var(--measure); }

  .feature,
  .contact-inner { grid-template-columns: 1fr; }

  .feature-flip .feature-text { order: 0; }
}

@media (max-width: 760px) {
  .services,
  .approach,
  .work,
  .contact { padding-block: 3.75rem; }

  .directory { margin-top: 2.5rem; padding-top: 2.5rem; }

  .net-wide { display: none; }
  .net-tall { display: block; max-width: 26rem; }

  .line-row { grid-template-columns: 1fr; }

  .badge-tag {
    justify-self: start;
    margin: 0 0 1rem;
  }

  .strip {
    flex-direction: column;
    margin: 0;
  }

  .strip::before {
    top: 0.3rem;
    bottom: 0.3rem;
    left: 4px;
    right: auto;
    width: 12px;
    height: auto;
  }

  .strip li {
    flex: none;
    padding: 0 0 1.05rem 2.25rem;
    text-align: left;
  }

  .strip li:last-child { padding-bottom: 0; }

  .strip li::before {
    top: 0.05rem;
    left: calc(10px - 0.55rem);
    margin-left: 0;
  }

  .strip .person-stop::before {
    top: -0.2rem;
    left: calc(10px - 0.8rem);
    margin-left: 0;
  }

  .service > p { margin-left: 0; }

  .journey {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .journey::before {
    top: 0.5rem;
    bottom: 0.5rem;
    left: calc(0.7rem - 6px);
    right: auto;
    width: 12px;
    height: auto;
  }

  .journey li { padding: 0 0 0 2.6rem; }


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

  .top { padding-inline: 1.25rem; }
  nav { gap: 0.35rem 0.9rem; }
}

@media (max-width: 420px) {
  .top { flex-wrap: wrap; }
  .route { padding-right: 1.25rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .net .ln,
  .button,
  input,
  textarea { transition: none; }
}
