@font-face {
  font-family: "DejaVu Sans Mono";
  src: url("fonts/DejaVuSansMono.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "DejaVu Sans Mono";
  src: url("fonts/DejaVuSansMono-Bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: dark;
  scrollbar-width: none;
  /* --green: #002711; */
  /* --green: #0c0014; */
  --green: #000000;
  --ivory: #fffce9;
  --teal: #269c9b;
  --pink: #f34491;
  --bright-pink: #f352ff;
  --grid-grey: #353535;
  --hot-red: #ff2e88;
  --neon-green: #39ff14;
  --electric-blue: #007fff;

  --bug-1a: #eb001b;
  --bug-1b: #f79e1b;

  --bug-2a: #1434cb;
  --bug-2b: #ffffff;
  --bug-2c: #fcc015;

  --bug-3a: #ffffff;

  --glint-colour: #7dff67;

  --shield-person-colour: #007fff;
  --forcefield-colour: #48a3fd;

  /* Display type, benchmarked on the brand mark. */
  --display-font: "Instrument Serif", Georgia, serif;
  --display-weight: 400;
  --display-line-height: .95;
  --display-tracking: -.035em;
  font-family: "DejaVu Sans Mono", monospace;
  background: var(--green);
  color: var(--ivory);
}

h1,
.road-reveal h2 {
  font-family: var(--display-font);
  font-weight: var(--display-weight);
  line-height: var(--display-line-height);
  letter-spacing: var(--display-tracking);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

::selection {
  background: var(--pink);
  color: var(--green);
}

.road-scene {
  overflow: hidden;
}

.road-scene::after {
  content: "";
  position: relative;
  display: block;
  height: var(--scroll-runway, 1300vh);
  height: var(--scroll-runway, 1300svh);
  background: #000;
}

.road-reveal {
  position: relative;
  z-index: 1;
  isolation: isolate;
  display: grid;
  place-items: center;
  height: 100vh;
  height: 100svh;
  padding: 1.5rem;
}

.road-reveal::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to bottom, transparent, #000 45%);
}

.road-reveal h2 {
  margin: 0;
  font-size: clamp(3rem, 8vw, 7rem);
  text-align: center;
}

.road-reveal.enhanced h2 {
  position: fixed;
  z-index: 1;
  top: calc(50% - var(--scene-lift, 0px));
  left: 50%;
  transform: translate(-50%, -50%);
  width: calc(100% - 3rem);
  opacity: var(--tagline-opacity, 0);
  pointer-events: none;
}

.trace-artwork {
  display: none;
}

.trace-grid {
  display: none;
}

.enhanced .trace-grid {
  display: block;
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, var(--grid-grey) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-grey) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image:
    linear-gradient(to bottom,
      transparent calc(40% - var(--grid-lift, 0px)),
      #000 calc(100% - var(--grid-lift, 0px))),
    /* Subtle vignette: full grid in the centre, dimmer towards the corners. */
    radial-gradient(ellipse at center, #000 45%, rgb(0 0 0 / .35) 100%);
  mask-composite: intersect;
  opacity: var(--grid-opacity, 0);
}

.trace-terminal {
  position: relative;
  width: min(20rem, 100%);
  border: 2px solid var(--box-colour, var(--pink));
  padding: 1.5rem;
  background: #000;
}

.trace-terminal b {
  color: var(--box-colour, var(--pink));
}

.terminal-item {
  display: grid;
  justify-items: center;
  gap: 1.5rem;
  width: 100%;
}

.terminal-hero {
  width: min(20rem, 70%);
  aspect-ratio: 1;
  position: relative;
}

.terminal-hero[data-terminal-animation="network-cloud"] {
  --interact-color: var(--box-colour, var(--electric-blue));
  --hero-scale: 1.35;
}

.enhanced .terminal-hero {
  position: fixed;
  z-index: 1;
  left: var(--hero-left, 0px);
  top: var(--terminal-top, 75%);
  width: var(--hero-width, 0px);
  height: var(--terminal-height, 0px);
  object-fit: contain;
  transform: scale(var(--hero-scale, 1.2));
  transform-origin: center;
  opacity: var(--terminal-opacity, 0);
  pointer-events: none;
}

.trace-terminal::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 10px;
  height: 40px;
  background: var(--box-colour, var(--pink));
}

.enhanced .trace-terminal::before {
  display: none;
}

.trace-terminal p {
  margin: 0;
  font-family: "DejaVu Sans Mono", monospace;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.trace-terminal .terminal-copy {
  margin-top: .75rem;
  font-size: 1rem;
  line-height: 1.35;
}

.trace-terminal .terminal-title {
  margin-top: 0;
  font-size: 1.25rem;
}

.enhanced .trace-artwork {
  display: block;
  position: fixed;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  color: var(--pink);
}

.node-trace,
.connecting-trace,
.terminal-outline {
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  opacity: 0;
}

.terminal-box {
  color: var(--box-colour, var(--pink));
}

.terminal-outline {
  stroke-linecap: butt;
  stroke-linejoin: miter;
}

.terminal-surface {
  fill: #000;
  opacity: var(--box-progress, 0);
}

.terminal-tab {
  fill: currentColor;
}

.trace-node {
  fill: currentColor;
  transform: scale(0);
}

.enhanced .trace-terminal {
  position: fixed;
  z-index: 1;
  left: var(--terminal-left, 50%);
  top: var(--terminal-top, 75%);
  width: var(--terminal-width, 0px);
  height: var(--terminal-height, 0px);
  border: 0;
  padding: clamp(1rem, 2.5vw, 1.75rem);
  opacity: var(--terminal-opacity, 0);
  pointer-events: none;
  background: transparent;
}

.trace-terminal.team-terminal {
  width: min(1120px, 100%);
  height: auto;
  padding: clamp(12px, 3vw, 40px);
}

.enhanced .team-terminal {
  width: var(--terminal-width);
}

.team-terminal h3 {
  margin: 0 0 2rem;
  font-size: clamp(1.25rem, 3vw, 2rem);
  font-weight: 400;
}

.team-profiles {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px;
}

.team-profile {
  flex: 0 0 180px;
  max-width: 100%;
  min-width: 0;
  text-align: center;
  container-type: inline-size;
}

.team-photo {
  display: block;
  width: 140px;
  max-width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border: 0;
  border-radius: 50%;
  margin: 0 auto 1rem;
}

.team-profile h4 {
  margin: 0 0 .5rem;
  font-size: min(1rem, 9cqi);
  font-weight: 400;
  overflow-wrap: anywhere;
}

.team-profile .team-role {
  font-size: min(.875rem, 8cqi);
  overflow-wrap: anywhere;
}

.company-logos {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: .05rem .5rem;
  margin-top: 1rem;
}

.company-logo {
  width: 80px;
  height: 32px;
  max-width: 100%;
  object-fit: contain;
  padding: 4px;
}

.contact-item {
  width: min(640px, 90%);
}

.contact-box {
  position: relative;
  border: 2px solid var(--pink);
  background: #000;
  padding: clamp(16px, 3vw, 40px);
}

.contact-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 10px;
  height: 40px;
  background: var(--pink);
}

.contact-box h3 {
  margin: 0 0 1.5rem;
  font-size: clamp(1.25rem, 3vw, 2rem);
  font-weight: 400;
}

.contact-box form {
  display: grid;
  gap: .75rem;
}

.contact-box input,
.contact-box textarea,
.contact-box button {
  min-width: 0;
  width: 100%;
  padding: .75rem;
  border: 1px solid var(--teal);
  border-radius: 0;
  background: #000;
  color: var(--ivory);
  font: inherit;
}

.contact-box textarea {
  resize: vertical;
}

.contact-box button {
  margin-top: .5rem;
  color: var(--pink);
  border-color: var(--pink);
  cursor: pointer;
}

.contact-box button:hover {
  color: var(--ivory);
}

.contact-success {
  display: block;
  width: 100%;
  margin-top: .5rem;
  padding: .75rem;
  border: 1px solid var(--pink);
  color: var(--pink);
  text-align: center;
}

.form-status:empty {
  display: none;
}

.form-status:not(:empty) {
  margin: .75rem 0 0;
  color: var(--pink);
}

.contact-reveal-status:empty {
  display: none;
}

.enhanced .contact-item {
  position: fixed;
  z-index: 2;
  left: 50%;
  top: var(--contact-top, 100vh);
  transform: translateX(-50%);
  visibility: hidden;
}

.enhanced .contact-item.revealed {
  visibility: visible;
}

.site-footer {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  padding: clamp(2rem, 5vw, 4rem);
  background: #000;
  color: var(--ivory);
  font-size: .75rem;
}

.site-footer nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .75rem;
}

.site-footer a {
  color: inherit;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

.site-footer p {
  margin: 2rem 0 0;
  line-height: 1.6;
}

.site-footer-funding {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1rem;
  flex: 0 1 240px;
  min-width: 0;
}

.site-footer-funding img {
  display: block;
  width: 100%;
  max-width: 240px;
  height: auto;
}

@media (max-width: 480px) {
  .site-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .site-footer-funding {
    flex-basis: auto;
  }
}

.landing {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: 5rem 1.5rem 8rem;
}

.road {
  position: absolute;
  z-index: -1;
  top: 49%;
  left: -15%;
  width: 130%;
  height: 65%;
  overflow: visible;
  pointer-events: none;
}

#road-fade stop:first-child {
  stop-color: #01220a;
  stop-opacity: 1;
}

#road-fade stop:nth-child(2) {
  stop-color: #3e2e47;
  stop-opacity: 1;
}

#road-fade stop:nth-child(3) {
  stop-color: #7a3a85;
  stop-opacity: 1;
}

#road-fade stop:nth-child(4) {
  stop-color: #b746c2;
  stop-opacity: 1;
}

#road-fade stop:last-child {
  stop-color: var(--bright-pink);
  stop-opacity: 1;
}

.stage {
  width: 100%;
}

.stage.enhanced {
  display: grid;
  place-items: center;
}

.stage.enhanced > * {
  grid-area: 1 / 1;
}

[hidden] {
  display: none !important;
}

.identity {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  text-align: center;
}

.brand-mark {
  width: 126px;
  height: auto;
  margin-bottom: -.35rem;
  color: var(--teal);
}

h1 {
  margin: 0;
  font-size: clamp(6rem, 11vw, 10.5rem);
}

.access {
  display: inline-flex;
  align-items: center;
  gap: 1em;
  margin-top: clamp(3.5rem, 8vh, 6rem);
  font-size: 1rem;
  color: #54bfbc;
  text-decoration: none;
  transition: color 160ms ease;
}

.access:hover {
  color: var(--ivory);
}

:focus-visible {
  outline: 2px solid var(--ivory);
  outline-offset: 6px;
}

.waitlist {
  position: relative;
  width: min(100%, 26rem);
  margin: 3rem auto 0;
}

.waitlist .form-status {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
}

.waitlist-success {
  width: min(100%, 26rem);
  margin: 0;
  color: var(--teal);
  text-align: center;
}

.enhanced .waitlist {
  margin: 0;
}

.waitlist h2 {
  margin: 0 0 2rem;
  font-size: 1.5rem;
  font-weight: 400;
}

.waitlist label {
  display: block;
  margin-bottom: .75rem;
  font-size: .8rem;
}

.email-entry {
  display: flex;
  border-bottom: 1px solid var(--teal);
}

.email-entry input,
.email-entry button {
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ivory);
  font: inherit;
  padding: .9rem .5rem;
}

.email-entry input {
  width: 100%;
  min-width: 0;
}

.email-entry button {
  flex: 0 0 3rem;
  color: #54bfbc;
  cursor: pointer;
}

.email-entry button:hover {
  color: var(--ivory);
}

.footer {
  position: absolute;
  right: 2.5rem;
  bottom: 1.8rem;
  left: 2.5rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--ivory);
  font-size: .625rem;
  line-height: 1.6;
  letter-spacing: .14em;
  text-transform: uppercase;
}

@media (max-width: 600px) {
  .landing {
    padding: 4rem 1.25rem 7rem;
  }

  .road {
    left: -70%;
    width: 240%;
    top: 46%;
  }

  .brand-mark {
    width: 100px;
  }

  .access {
    margin-top: 3.5rem;
  }

  .footer {
    right: 1.25rem;
    bottom: 1.25rem;
    left: 1.25rem;
    font-size: .55rem;
  }

  .footer-name {
    display: none;
  }
}

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

/* Text page template (about, leadership, press, ...) */

.text-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  background: #000;
  color: var(--ivory);
}

.text-page-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  padding: 1rem clamp(1.5rem, 5vw, 4rem);
  background: #000;
}

.text-page-nav a {
  color: var(--ivory);
  text-decoration: none;
}

.text-page-nav nav a:hover {
  text-decoration: underline;
}

.text-page-brand {
  display: inline-flex;
  align-items: flex-start;
  align-self: stretch;
  /* Extend through the bar's bottom padding so the logo sits on the bar's bottom edge. */
  margin-bottom: -1rem;
  gap: .75rem;
  font-family: var(--display-font);
  font-weight: var(--display-weight);
  letter-spacing: var(--display-tracking);
  font-size: 2rem;
  line-height: 1;
}

.text-page-brand img {
  display: block;
  align-self: flex-end;
  width: auto;
  height: 3rem;
}

.text-page-nav nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: .5rem 1.5rem;
  font-size: .8rem;
}

.text-page-main {
  position: relative;
  isolation: isolate;
  flex: 1;
  display: grid;
  place-items: start center;
  padding: clamp(2rem, 6vw, 5rem) clamp(1.5rem, 5vw, 4rem);
  background: #000;
}

.text-page-backdrop,
.text-page-gradient {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.text-page-backdrop {
  z-index: -2;
  overflow: hidden;
}

.text-page-backdrop canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.text-page-gradient {
  z-index: -1;
  background: linear-gradient(to bottom right, #b746c2, #7a3a85 15%, #3e2e47 30%, #01220a 55%);
  opacity: .6;
}

.text-page-box {
  width: min(48rem, 100%);
  padding: clamp(1.5rem, 4vw, 3rem);
  background: color-mix(in srgb, var(--grid-grey) 55%, transparent);
  color: var(--ivory);
  text-align: left;
  line-height: 1.6;
  font-size: .9rem;
}

.text-page-box h1,
.text-page-box h2,
.text-page-box h3 {
  font-family: var(--display-font);
  font-weight: var(--display-weight);
  line-height: var(--display-line-height);
  letter-spacing: var(--display-tracking);
  text-align: left;
  margin: 2rem 0 1rem;
}

.text-page-box h1 {
  margin-top: 0;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
}

.text-page-box h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
}

.text-page-box h3 {
  font-size: 1.5rem;
}

.text-page-box .contact-box h3 {
  margin: 0 0 1.5rem;
  font-family: inherit;
  font-size: clamp(1.25rem, 3vw, 2rem);
  line-height: normal;
  letter-spacing: normal;
}

.text-page-box > .contact-item {
  margin-inline: auto;
}

.text-page-box p {
  margin: 0 0 1rem;
}

.text-page-box a {
  color: inherit;
}

.leadership-profile {
  display: grid;
  grid-template-columns: clamp(5.5rem, 18vw, 9rem) minmax(0, 1fr);
  align-items: start;
  gap: clamp(1rem, 3vw, 2rem);
  margin-top: 2.5rem;
}

.leadership-photo {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
}

.leadership-copy h2 {
  margin: 0 0 .75rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

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