@font-face {
  font-family: "absans";
  src: url("Absans-Regular.woff2");
}

:root {
  --ink: rgb(53, 42, 125);
  --quid: rgb(221, 32, 30);
  --header-h: 0px;
  --footer-h: 0px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box
}

html {
  height: 100%;
  overflow-x: hidden;
}

body {
  height: 100%;
  max-width: 100vw;
  color: var(--ink);
  font-family: absans;
}

canvas {
  display: block;
  position: fixed;
  top: 0;
  right: 0;
  z-index: -1;
  transition: right .6s ease, scale .6s ease;
  scale: 1.3;
}

canvas.shift {
  right: -18%;
  scale: 1.4;
}

header {
  border-bottom: solid 1px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: white;
  z-index: 2;
}

footer {
  border-top: solid 1px;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: white;
  z-index: 2;
  display: flex;
  align-items: center;
}

nav.mainnav {
  display: flex;
  align-items: center;
  gap: 1.4em;
  padding: .7em 1.2em;
  border-bottom: solid 1px;
}

nav.mainnav .brand {
  margin-right: auto;
  font-size: 1.15em;
  font-weight: bold;
  color: var(--quid);
  text-decoration: none;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: .3em;
  width: 1.6em;
  height: 1.6em;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--ink);
  transition: transform .25s ease, opacity .25s ease;
}

.nav-toggle.active span:nth-child(1) { transform: translateY(.46em) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-.46em) rotate(-45deg); }

.nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.4em;
}

.nav-links a {
  color: var(--ink);
  text-decoration: none;
  font-size: .92em;
  letter-spacing: .03em;
  text-transform: uppercase;
}

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

.marquee {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  padding: 1em 0;
}

.footer-logos {
  display: flex;
  align-items: center;
  gap: .6em;
  flex-shrink: 0;
  padding: 0 1.2em;
}

.logo-mock-sm {
  border: dashed 1px;
  border-radius: .4em;
  padding: .3em .6em;
  font-size: .7em;
  letter-spacing: .03em;
  opacity: .55;
  white-space: nowrap;
}

.marquee-track {
  display: flex;
  width: max-content;
  gap: 2em;
  animation: marquee 38s linear infinite;
}

.marquee-track span {
  white-space: nowrap;
  font-size: 1.6em;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

main {
  padding-top: var(--header-h);
  padding-bottom: var(--footer-h);
}

.title {
  width: 100%;
  height: calc(100vh - var(--header-h) - var(--footer-h));
  display: flex;
  align-items: center;
  justify-content: center;
}

.title h1 {
  font-size: 12em;
  color: transparent;
  -webkit-text-stroke: var(--quid) 2px;
}

.boxes {
  display: flex;
  flex-direction: column;
  gap: 2vh;
  left: 3vw;
  position: relative;
  margin-bottom: 15vh;
  padding-right: 5vw;
  border-right: solid 2px;
  width: 35%;
}

.box:nth-child(even) {
  margin-left: 2vw;
  color: var(--quid);
}

.box {
  border: solid 1px;
  padding: 1em;
  border-radius: 1em;
  width: 100%;
}

.page {
  padding: 6vh 5vw;
  max-width: 1000px;
  margin: 0 auto;
}

.page h1 {
  font-size: 2.8em;
  margin-bottom: .6em;
}

.page .lead {
  font-size: 1.1em;
  max-width: 65ch;
  line-height: 1.5;
  margin-bottom: 1em;
}

.page p {
  line-height: 1.5;
  max-width: 65ch;
  margin-bottom: 1em;
}

.quote {
  border-left: solid 2px var(--quid);
  padding-left: 1.2em;
  max-width: 65ch;
  margin: 1.4em 0;
  font-style: italic;
  line-height: 1.5;
}

.people-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2em;
  margin-top: 2em;
}

.person {
  border: solid 1px;
  border-radius: 1em;
  padding: 1.2em;
}

.person .photo {
  width: 100%;
  aspect-ratio: 1;
  border-radius: .6em;
  background: var(--ink);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2em;
  margin-bottom: .8em;
}

.person h3 {
  margin-bottom: .2em;
}

.person .role {
  font-size: .85em;
  color: var(--quid);
  margin-bottom: .5em;
  display: block;
}

.person p {
  font-size: .92em;
}

.list {
  list-style: none;
  margin-top: 2em;
  display: flex;
  flex-direction: column;
  gap: 1em;
}

.list li {
  border: solid 1px;
  border-radius: 1em;
  padding: 1em 1.2em;
}

.list a {
  color: var(--ink);
  font-size: 1.05em;
}

.list a:hover {
  color: var(--quid);
}

.list .meta {
  font-size: .85em;
  opacity: .7;
  display: block;
  margin-top: .3em;
}

.section-label {
  text-transform: uppercase;
  letter-spacing: .05em;
  font-size: .85em;
  opacity: .65;
  margin: 2em 0 .5em;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5em;
  margin-top: 2em;
}

.media-card {
  border: solid 1px;
  border-radius: 1em;
  overflow: hidden;
}

.media-card .caption {
  padding: .8em 1em;
}

.video-mock {
  aspect-ratio: 16 / 9;
  background: var(--ink);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.play-btn-lg {
  width: 3.2em;
  height: 3.2em;
  border-radius: 50%;
  background: rgba(255, 255, 255, .18);
  border: solid 1px rgba(255, 255, 255, .5);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}

.play-btn-lg:hover {
  background: rgba(255, 255, 255, .3);
  transform: scale(1.06);
}

.play-btn-lg svg {
  margin-left: .15em;
}

.video-mock .duration {
  position: absolute;
  right: .7em;
  bottom: .6em;
  font-size: .75em;
  color: white;
  background: rgba(0, 0, 0, .35);
  padding: .15em .5em;
  border-radius: .4em;
}

.audio-list {
  display: flex;
  flex-direction: column;
  gap: 1em;
  margin-top: 1.2em;
}

.audio-mock {
  display: flex;
  align-items: center;
  gap: 1em;
  border: solid 1px;
  border-radius: 2em;
  padding: .6em .7em .6em 1.2em;
}

.play-btn {
  flex-shrink: 0;
  width: 2.4em;
  height: 2.4em;
  border-radius: 50%;
  background: var(--ink);
  border: none;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .2s ease;
}

.play-btn:hover {
  background: var(--quid);
}

.play-btn svg {
  margin-left: .1em;
}

.audio-mock .track {
  flex: 1;
  min-width: 0;
}

.audio-mock .track-title {
  font-size: .92em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.audio-mock .bar {
  height: 3px;
  background: rgba(53, 42, 125, .18);
  border-radius: 2px;
  margin-top: .5em;
  position: relative;
}

.audio-mock .bar span {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 28%;
  background: var(--quid);
  border-radius: 2px;
}

.audio-mock .time {
  font-size: .8em;
  opacity: .65;
  flex-shrink: 0;
}

.map-placeholder {
  margin-top: 2em;
  border: solid 1px;
  border-radius: 1em;
  height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2em;
  opacity: .65;
}

#map {
  margin-top: 2em;
  height: 60vh;
  border: solid 1px;
  border-radius: 1em;
  overflow: hidden;
  background: white;
}

#map .leaflet-tile-pane {
  filter: grayscale(1) contrast(1.05) brightness(1.03);
}

#map .leaflet-control-zoom a {
  color: var(--ink);
}

#map .leaflet-bar,
#map .leaflet-bar a {
  border-color: rgba(53, 42, 125, .3) !important;
  box-shadow: none !important;
}

#map .leaflet-control-attribution {
  background: rgba(255, 255, 255, .8);
  font-size: .7em;
  color: var(--ink);
  opacity: .7;
}

@media(max-width:640px) {
  canvas{
    scale: .8
  }
  .title h1 {
    text-align: center;
    font-size: 5em;
  }

  canvas.shift {
    right: 0;
    scale: 1.3;
  }

  .boxes {
    width: 90%;
    border-right: none;
    padding-right: 0;
    left: 5%;
  }

  .box:nth-child(even) {
    margin-left: 0;
  }

  .people-grid,
  .media-grid {
    grid-template-columns: 1fr;
  }

  .marquee-track span {
    font-size: 1.15em;
  }
}

@media(max-width:700px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    flex-basis: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: .9em;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height .35s ease, opacity .25s ease;
  }

  .nav-links.open {
    max-height: 22em;
    opacity: 1;
    padding-top: .6em;
  }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track {
    animation: none;
  }

  * {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}
