:root {
  --paper: #f4f4f2;
  --paper-2: #ffffff;
  --shade: #e2e2e2;
  --ink: #0d0d0d;
  --prussian: #2a2a2a;
  --graphite: #5a5a5a;
  --intro-line: var(--shade);
}

body {
  background: var(--color-field);
  -webkit-font-smoothing: antialiased;
}

#gl {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
}

#track {
  height: 2600vh;
}

@media (max-width: 720px) {
  #track {
    height: 2100vh;
  }
}

#portal {
  position: fixed;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  overflow: hidden;
  opacity: 0;
}

#portal .hole {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  transform: translate(-50%, -50%);
  border-radius: 47% 53% 56% 44% / 52% 45% 55% 48%;
  box-shadow: 0 0 0 260vmax var(--ink);
}

.intro-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: calc(16px + env(safe-area-inset-top, 0px)) var(--page-pad) 16px;
  color: var(--ink);
  text-shadow: 0 0 14px rgb(244 244 242 / 0.9);
  mix-blend-mode: multiply;
  transition: color 0.6s, background-color 0.4s;
}

.intro-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 1.75rem;
  pointer-events: none;
  background: linear-gradient(to bottom, var(--color-field), transparent);
  opacity: 0;
  transition: opacity 0.4s;
}

.intro-header .mark {
  display: block;
  line-height: 0;
  margin-right: auto;
}

.intro-header .mark img {
  display: block;
  width: 5.5rem;
  height: auto;
  transition: filter 0.6s;
}

.intro-header nav {
  display: flex;
  align-items: center;
  gap: var(--space-5);
}

.intro-header nav a {
  font-size: var(--text-micro);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  text-decoration: none;
  text-underline-offset: 0.28em;
}

.intro-header nav a:hover {
  text-decoration: underline;
  text-decoration-thickness: 1px;
}

body.dark-zone .intro-header,
body.dark-zone #rail {
  color: var(--paper);
  text-shadow: 0 0 14px rgb(0 0 0 / 0.9);
}

body.dark-zone .intro-header {
  mix-blend-mode: screen;
}

body.dark-zone .intro-header .mark img {
  filter: invert(1);
}

body.static-zone .intro-header {
  color: var(--color-ink);
  background: var(--color-field);
  text-shadow: none;
  mix-blend-mode: normal;
}

body.static-zone .intro-header::after {
  opacity: 1;
}

body.static-zone .intro-header .mark img {
  filter: none;
}

#rail {
  position: fixed;
  left: var(--page-pad);
  bottom: calc(28px + env(safe-area-inset-bottom, 0px));
  z-index: 10;
  display: flex;
  align-items: flex-end;
  gap: 12px;
  color: var(--ink);
  text-shadow: 0 0 14px rgb(244 244 242 / 0.9);
  transition: color 0.6s, opacity 0.3s;
}

body.static-near #rail {
  opacity: 0;
}

#rail .bar {
  width: 1px;
  height: 120px;
  background: currentColor;
  opacity: 0.25;
  position: relative;
}

#rail .fill {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 0;
  background: currentColor;
}

#rail .name {
  font-family: var(--font-body);
  font-size: var(--text-micro);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.panel {
  position: fixed;
  z-index: 6;
  max-width: 430px;
  /* heavy uncoated card stock: fine fibre grain, a soft mottle in the pulp, light falling from the upper left */
  background-color: #fbfaf7;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .42 0 0 0 0 .4 0 0 0 0 .37 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='600'%3E%3Cfilter id='m'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.012' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .48 0 0 0 0 .45 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23m)'/%3E%3C/svg%3E"),
    linear-gradient(155deg, rgb(255 255 255 / 0.7) 0%, rgb(255 255 255 / 0) 45%, rgb(0 0 0 / 0.035) 100%);
  color: var(--ink);
  padding: 26px 28px 24px;
  border-radius: 2px;
  border: 0;
  /* a few tenths of a millimetre of board: lit top edge, shaded bottom edge, a tight contact shadow and a soft cast one */
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.95),
    inset 0 -1px 0 rgb(0 0 0 / 0.05),
    0 1px 0 #e2e0db,
    0 2px 0 #d3d0ca,
    0 3px 2px -1px rgb(0 0 0 / 0.22),
    0 14px 22px -10px rgb(0 0 0 / 0.28),
    0 38px 60px -28px rgb(0 0 0 / 0.32);
  /* laid down by hand, never quite square */
  rotate: -0.25deg;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  opacity: 0;
  visibility: hidden;
  will-change: opacity;
}

.panel.left {
  left: max(76px, 6vw);
  top: 50%;
  transform: translateY(-50%);
}

.panel.right {
  right: max(28px, 6vw);
  top: 50%;
  transform: translateY(-50%);
}

/* team cards: wide enough for the longest role on one line */
.panel.person {
  max-width: 440px;
}

.panel.center {
  left: 50%;
  bottom: calc(9vh + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  text-align: center;
  max-width: 640px;
}

.panel:nth-of-type(even) {
  rotate: 0.3deg;
}

.panel:nth-of-type(3n) {
  rotate: -0.4deg;
}

.panel.bare {
  background: none;
  box-shadow: none;
  padding: 0;
  border: 0;
  rotate: none;
}

.panel .label {
  margin: 0 0 10px;
  font-size: var(--text-micro);
  font-weight: 500;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: #3a3a3a;
}

.panel h1,
.panel h2,
.panel h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: var(--tracking-display);
  margin: 0 0 12px;
  line-height: 0.98;
}

.panel h1 {
  font-size: clamp(40px, 6.2vw, 84px);
  max-width: 14ch;
}

.panel h2 {
  font-size: clamp(28px, 3.1vw, 40px);
}

.panel h3 {
  font-size: 22px;
  margin: 18px 0 8px;
}

.panel p {
  margin: 0 0 12px;
  max-width: 60ch;
}

.panel p:last-child {
  margin-bottom: 0;
}

#hero {
  left: max(28px, 7vw);
  bottom: calc(13vh + env(safe-area-inset-bottom, 0px));
  max-width: 760px;
}

#hero h1,
#hero p {
  text-shadow: 0 1px 0 rgb(255 255 255 / 0.6), 0 0 24px rgb(244 244 242 / 0.85);
}

#hero p {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.1rem, 1.8vw, 1.45rem);
  letter-spacing: -0.02em;
  line-height: 1.2;
  max-width: 44ch;
}

.panel .items {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 18px;
  font-size: 14px;
  line-height: 1.35;
}

.panel .items li {
  border-top: 1px solid var(--intro-line);
  padding: 7px 0;
}

.panel .role {
  font-size: var(--text-micro);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--graphite);
  margin: -2px 0 12px !important;
}

#a-logos {
  max-width: 860px;
  width: calc(100% - 56px);
}

.logos {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}

.logos a,
.logos span {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 64px;
  padding: 8px 10px;
  background: #fff;
  border: 1px solid #e6e6e6;
  transition: border-color 0.2s;
}

.logos a:hover {
  border-color: var(--ink);
}

.logos img {
  display: block;
  max-width: 100%;
  max-height: 44px;
  object-fit: contain;
}

#loader {
  position: fixed;
  inset: 0;
  z-index: 20;
  background: var(--paper);
  display: grid;
  place-items: center;
  transition: opacity 0.8s;
}

#loader img {
  display: block;
  width: 88px;
  height: auto;
  mix-blend-mode: multiply;
}

#loader.gone {
  opacity: 0;
  pointer-events: none;
}

.static-site {
  position: relative;
  z-index: 7;
  background: var(--color-field);
  color: var(--color-ink);
}

.static-site::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  height: 60vh;
  pointer-events: none;
  background: linear-gradient(to bottom, transparent, var(--color-field));
}

.static-site > .band:first-child {
  border-top: 0;
}

body.no-intro .static-site::before {
  display: none;
}

body.no-intro #gl,
body.no-intro #portal,
body.no-intro #rail,
body.no-intro #track,
body.no-intro #loader,
body.no-intro .panel:not(#hero) {
  display: none;
}

body.no-intro #hero {
  position: static;
  opacity: 1;
  visibility: visible;
  max-width: none;
  padding: 10rem var(--page-pad) var(--space-8);
  background: var(--color-field);
  color: var(--color-ink);
}

body.no-intro #hero h1,
body.no-intro #hero p {
  text-shadow: none;
}

body.no-intro .intro-header {
  color: var(--color-ink);
  background: var(--color-field);
  text-shadow: none;
  mix-blend-mode: normal;
}

@media (max-width: 720px) {
  .intro-header {
    gap: 14px;
  }

  .intro-header nav {
    gap: var(--space-3);
  }

  .intro-header .mark img {
    width: 3.6rem;
  }

  #rail {
    display: none;
  }

  .panel.left,
  .panel.right,
  .panel.center {
    left: 14px;
    right: 14px;
    top: auto;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    transform: none;
    max-width: none;
    max-height: 50vh;
    overflow: auto;
    padding: 20px;
  }

  .panel.center.bare {
    bottom: calc(12vh + env(safe-area-inset-bottom, 0px));
  }

  #hero {
    left: 18px;
    right: 18px;
    bottom: calc(8vh + env(safe-area-inset-bottom, 0px));
  }

  #a-logos {
    width: auto;
  }

  .logos {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
  }

  .logos a,
  .logos span {
    height: 48px;
    padding: 6px;
  }

  .logos img {
    max-height: 32px;
  }

  .panel .items {
    grid-template-columns: 1fr;
  }
}
