/* MakingFlow v2: the same scroll journey, with an optional automatic pilot. */
.journey-toggle {
  position: fixed;
  z-index: 70;
  bottom: 17px;
  left: 50%;
  transform: translateX(-50%);
  border: 1px solid var(--border);
  background: #08131e;
  color: var(--cyan);
  padding: 11px 18px;
  font: 10px var(--pixel);
  cursor: pointer;
  min-height: 42px;
}
.journey-toggle[aria-pressed="true"] {
  border-color: var(--orange);
  color: var(--orange);
}
.static-mode .journey-toggle {
  display: none;
}
.start-link {
  cursor: pointer;
}
.space-details {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.asteroid {
  position: absolute;
  width: 70px;
  height: 70px;
  left: -15%;
  top: 22%;
  animation: asteroid-drift 37s linear infinite;
  animation-play-state: paused;
}
.asteroid-1 {
  width: 28px;
  height: 28px;
  top: 65%;
  animation-duration: 53s;
  animation-delay: -27s;
}
.asteroid-2 {
  width: 110px;
  height: 110px;
  top: 82%;
  animation-duration: 61s;
  animation-delay: -45s;
  opacity: 0.5;
}
.asteroid-3 {
  width: 40px;
  height: 40px;
  top: 9%;
  animation-duration: 44s;
  animation-delay: -20s;
}
.shooting-star {
  position: absolute;
  top: 11%;
  left: 55%;
  width: 160px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #20ddf5, #fff);
  transform: rotate(27deg);
  opacity: 0;
  animation: shoot 12s ease-out infinite;
  animation-play-state: paused;
}
.shooting-two {
  top: 29%;
  left: 12%;
  animation-delay: 6s;
  animation-duration: 17s;
  width: 95px;
}
.orbit-ring {
  position: absolute;
  width: 450px;
  height: 450px;
  border: 1px dashed #16404b;
  border-radius: 50%;
  left: calc(50% - 225px);
  top: 7%;
  transform: rotateX(67deg) rotate(-25deg);
  opacity: 0.5;
}
.level[data-active="true"] .asteroid,
.level[data-active="true"] .shooting-star {
  animation-play-state: running;
}
@keyframes asteroid-drift {
  from {
    transform: translate(-5vw, 0) rotate(0);
  }
  to {
    transform: translate(130vw, 40px) rotate(270deg);
  }
}
@keyframes shoot {
  0%,
  86% {
    opacity: 0;
    transform: translate(0, 0) rotate(27deg);
  }
  88% {
    opacity: 1;
  }
  95%,
  100% {
    opacity: 0;
    transform: translate(45vw, 25vh) rotate(27deg);
  }
}
.dungeon .world {
  background: #0b1116;
}
.dungeon-flat {
  opacity: 1;
}
.dungeon-canvas {
  opacity: 0.48;
  mix-blend-mode: screen;
}
.flow-layer[data-level="dungeon"] .flow-vehicle {
  filter: drop-shadow(0 4px 4px #000);
}
.flow-layer[data-level="dungeon"] .flow-track {
  stroke: #e99f58 !important;
  opacity: 0.14;
  stroke-width: 24px !important;
}
.flow-layer[data-level="dungeon"] .flow-line {
  stroke-width: 3px !important;
  stroke-dasharray: 3 10 !important;
  opacity: 0.8;
}
.cave-monster[data-attacking="true"] .monster-size {
  filter: drop-shadow(0 0 8px #ff861a);
}
.dungeon .class-card {
  background: #0c141af2;
  border-color: #555641;
  box-shadow: 0 16px 60px #0008;
}
.dungeon .section-heading {
  text-shadow: 0 2px 15px #000;
}
.race-label {
  position: relative;
  z-index: 5;
}
.race-label h2 {
  font: 24px/1.3 var(--pixel);
  letter-spacing: -1px;
  max-width: 230px;
  margin-top: 14px;
}
.race-legend {
  display: flex;
  gap: 8px;
  flex-direction: column;
  margin-top: 24px;
}
.pitstop-number {
  font: 11px var(--sans);
  border: 0;
  border-left: 2px solid #314c56;
  background: #081722d9;
  color: #b3c4ce;
  padding: 10px 12px;
  text-align: left;
  cursor: pointer;
  min-height: 42px;
}
.pitstop-number span {
  font: 10px var(--pixel);
  margin-right: 12px;
}
.pitstop-number[data-active="true"] {
  color: var(--white);
  border-color: var(--cyan);
  background: #163745;
}
.products .world {
  background: radial-gradient(ellipse at 90% 20%, #122734, #060c13 60%);
}
.animated .race-label {
  position: absolute;
  top: 14%;
  left: 3%;
  width: 24%;
}
.animated .race-label h2 {
  font-size: clamp(16px, 1.7vw, 25px);
}
.animated .race-legend {
  margin-top: 22px;
  max-width: 180px;
}
.animated .product-stack {
  left: 30%;
  border-left: 1px solid #28505b;
  background: linear-gradient(130deg, #0b1720d9, #060b12e8);
  overflow: hidden;
}
.animated .product-stop {
  inset: 13% 4.5% 9%;
  display: flex;
  flex-direction: column;
  gap: 17px;
}
.animated .product-copy {
  position: relative;
  inset: auto;
  width: auto;
  max-width: none;
  padding: 0;
  margin: 0;
  background: none;
}
.product-copy h3 {
  font-size: clamp(28px, 3.6vw, 52px);
  letter-spacing: -1.8px;
  margin: 8px 0;
}
.product-copy p {
  font-size: 14px;
  line-height: 1.5;
  max-width: 690px;
}
.product-copy .tag {
  font-size: 9px;
  letter-spacing: 0.8px;
}
.product-evidence {
  position: relative;
  min-height: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.products .screen-pair {
  position: relative;
  inset: auto;
  width: 100%;
  height: auto;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 15px;
  align-items: start;
  flex: 1;
}
.products .screen {
  position: relative;
  inset: auto;
  width: 100%;
  transform: none;
  border-radius: 8px;
  box-shadow: 0 15px 40px #0004;
  min-width: 0;
}
.products .screen.secondary {
  align-self: end;
  margin-bottom: 14px;
}
.products .app-layout {
  grid-template-columns: 63px 1fr;
  min-height: 230px;
}
.products .app-layout aside {
  font-size: 8px;
  padding: 15px 8px;
  gap: 18px;
}
.products .app-main {
  padding: 19px 13px;
}
.products .app-heading {
  font-size: 12px;
  margin-bottom: 18px;
  gap: 5px;
}
.products .kanban {
  gap: 7px;
}
.products .kanban article {
  padding: 9px 7px;
}
.products .kanban b {
  font-size: 9px;
}
.products .kanban small {
  font-size: 7px;
}
.products .screen-bar {
  font-size: 8px;
  height: 27px;
}
.products .mini-main {
  padding: 17px;
}
.products .mini-main h4 {
  font-size: 21px;
}
.enlarge-product {
  align-self: flex-start;
  border: 0;
  background: none;
  color: var(--cyan);
  font-size: 11px;
  padding: 10px 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.product-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  align-items: center;
}
.product-details {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 12px;
  line-height: 1.5;
  color: #b9c9d0;
}
.product-details li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.product-details li:before {
  content: "+";
  color: var(--cyan);
  margin-right: 8px;
}
.product-video {
  display: flex;
  align-items: center;
  gap: 15px;
  background: #12212b;
  border: 1px dashed #45616c;
  padding: 17px;
  min-height: 88px;
  font-size: 12px;
}
.product-video small {
  display: block;
  font: 9px/1.7 var(--pixel);
  color: #acbbc5;
  margin-top: 8px;
}
.video-frame {
  font-size: 34px;
  color: #6c8793;
}
.product-video video {
  width: 100%;
  max-height: 140px;
}
.products .demo-caption {
  position: static;
  margin: 0;
  padding: 0;
  background: none;
  font-size: 9px;
  color: #a8b8c6;
}
.product-dialog {
  max-width: min(1200px, 95vw);
  width: 95vw;
  max-height: 90svh;
  border: 1px solid #376272;
  background: #0a1720;
  color: white;
  padding: 24px;
}
.product-dialog::backdrop {
  background: #000b;
  backdrop-filter: blur(8px);
}
.dialog-close {
  display: block;
  margin: 0 0 20px auto;
  background: #143542;
  color: var(--white);
  padding: 12px 18px;
  border: 1px solid var(--cyan);
  cursor: pointer;
}
.dialog-screens {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 25px;
  align-items: start;
}
.dialog-screens .screen {
  position: relative;
  inset: auto;
  width: 100%;
  transform: none;
}
.contact-layout {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 7%;
  text-align: left;
}
.animated .contact-layout {
  position: absolute;
  inset: 14% 7% 17%;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #365563 #07131d;
  padding-right: 10px;
}
.finale .world {
  opacity: 0.3;
}
.finale .grid-floor,
.finale .orange-trail {
  display: none;
}
.flow-layer[data-level="finale"] {
  opacity: 0.1;
  z-index: 1;
}
.team-side h2 {
  font: clamp(24px, 3vw, 43px) / 1.12 var(--pixel);
  letter-spacing: -1.8px;
  margin-top: 18px;
}
.team-side .intro {
  margin-top: 13px;
  max-width: 410px;
  font-size: 14px;
}
.team-label {
  font: 10px var(--pixel);
  color: var(--cyan);
  margin: 25px 0 14px;
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}
.team-person img,
.photo-pending {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center top;
  border: 1px solid #36515c;
  filter: saturate(0.65);
  background: #102634;
}
.photo-pending {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
}
.photo-pending b {
  font: 26px var(--pixel);
  color: var(--cyan);
}
.photo-pending small {
  font: 7px/1.5 var(--pixel);
  text-align: center;
  color: #b7c8d3;
}
.team-person h3 {
  font-size: 14px;
  letter-spacing: 0;
  margin: 10px 0 5px;
}
.team-person p {
  font-size: 10px;
  line-height: 1.5;
  color: #a8b8c6;
}
.investor {
  border-top: 1px solid var(--border);
  margin-top: 26px;
  padding-top: 15px;
}
.investor p {
  font: 9px var(--pixel);
  color: #a8b8c6;
  margin-bottom: 12px;
}
.investor strong {
  font-size: 30px;
  letter-spacing: -1.3px;
  font-weight: 600;
}
.investor strong span {
  color: var(--orange);
  margin-left: 18px;
  font-size: 21px;
}
.contact-side {
  border: 1px solid #283f4d;
  background: #0b1722;
  padding: 26px;
  height: fit-content;
}
.contact-side h3 {
  font-size: 26px;
  line-height: 1.2;
  max-width: 340px;
  margin-bottom: 22px;
}
.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.contact-form label {
  font-size: 11px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #c5d2db;
  min-width: 0;
}
.contact-form label .copy-marker {
  display: none;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid #38505e;
  background: #061019;
  border-radius: 0;
  color: #f7f8f6;
  padding: 12px;
  font: 13px var(--sans);
  min-height: 43px;
}
.contact-form select {
  cursor: pointer;
  color-scheme: dark;
}
.contact-form textarea {
  resize: vertical;
  min-height: 80px;
  max-height: 180px;
}
.contact-form :is(input, select, textarea):focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}
.message-field {
  grid-column: 1/-1;
}
.contact-submit {
  grid-column: 1/-1;
  color: #05111b;
  background: var(--cyan);
  border: 0;
  min-height: 47px;
  padding: 13px 18px;
  font: 11px var(--pixel);
  cursor: pointer;
  text-align: left;
}
.contact-submit .copy-marker {
  color: #25373b;
}
.form-note {
  grid-column: 1/-1;
  font-size: 11px;
  line-height: 1.4;
  color: #b6c8d2;
}
.contact-email {
  display: inline-block;
  margin-top: 16px;
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.animated .footer-content {
  bottom: 8%;
  left: 7%;
  right: 7%;
  padding-top: 14px;
}
.static-mode .race-label {
  margin-bottom: 36px;
}
.static-mode .race-legend {
  flex-direction: row;
  flex-wrap: wrap;
}
.static-mode .products .world {
  opacity: 0.25;
}
.static-mode .products .product-stop {
  padding: 25px;
  background: #07121eeb;
}
.static-mode .product-copy {
  max-width: none;
}
.static-mode .product-evidence {
  margin-bottom: 20px;
}
.static-mode .products .screen-pair {
  min-height: 0;
  margin-bottom: 12px;
}
.static-mode .products .demo-caption {
  margin-top: 20px;
}
.static-mode .space-details * {
  animation: none;
}
@media (min-width: 768px) and (max-height: 800px) {
  .animated .product-stop {
    gap: 10px;
    inset: 13% 4% 10%;
  }
  .product-copy h3 {
    font-size: 32px;
    margin: 4px 0;
  }
  .product-copy p {
    font-size: 12px;
  }
  .products .app-layout {
    min-height: 195px;
  }
  .products .app-main {
    padding: 12px;
  }
  .products .kanban article {
    padding: 7px 5px;
  }
  .products .kanban b {
    margin: 5px 0;
  }
  .product-bottom {
    gap: 16px;
  }
  .product-details {
    font-size: 10px;
  }
  .product-video {
    padding: 10px;
    min-height: 70px;
  }
  .contact-side {
    padding: 20px;
  }
  .contact-form {
    gap: 10px;
  }
  .contact-side h3 {
    font-size: 22px;
    margin-bottom: 16px;
  }
  .team-label {
    margin-top: 18px;
  }
  .investor {
    margin-top: 20px;
  }
}
@media (max-width: 1000px) and (min-width: 768px) {
  .animated .contact-layout {
    inset: 15% 4% 17%;
    gap: 4%;
  }
  .team-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .team-person img,
  .photo-pending {
    max-height: 90px;
    aspect-ratio: 1;
  }
  .team-side h2 {
    font-size: 25px;
  }
  .products .screen-pair {
    grid-template-columns: 1fr;
  }
  .products .screen.secondary {
    display: none;
  }
  .dialog-screens {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 767px) {
  .journey-toggle {
    bottom: 16px;
    font-size: 8px;
    padding: 9px 12px;
    max-width: 165px;
  }
  #hud {
    bottom: 69px;
    font-size: 8px;
  }
  .animated .race-label {
    left: 3%;
    width: 24%;
    top: 15%;
  }
  .race-label .eyebrow {
    font-size: 8px;
    letter-spacing: 0;
    overflow-wrap: anywhere;
  }
  .animated .race-label h2 {
    font-size: 12px;
    letter-spacing: -0.4px;
    margin-top: 12px;
    overflow-wrap: anywhere;
  }
  .race-label h2 .copy-marker {
    font-size: 6px;
  }
  .animated .race-legend {
    margin-top: 22px;
    gap: 10px;
  }
  .pitstop-number {
    padding: 9px 5px;
    font-size: 8px;
    overflow-wrap: anywhere;
    line-height: 1.5;
  }
  .pitstop-number span {
    display: block;
    font-size: 10px;
    margin: 0 0 6px;
  }
  .animated .product-stop {
    inset: 14% 7% 14%;
    gap: 13px;
  }
  .animated .product-copy {
    width: auto;
    padding: 0;
    margin: 0;
  }
  .product-copy h3 {
    font-size: clamp(23px, 6vw, 34px);
    letter-spacing: -1px;
    overflow-wrap: anywhere;
  }
  .product-copy .tag {
    font-size: 7px;
    line-height: 1.6;
    letter-spacing: 0;
  }
  .product-copy p {
    font-size: 11px;
    line-height: 1.5;
  }
  .products .screen-pair {
    display: block;
    flex: none;
  }
  .products .screen.secondary {
    display: none;
  }
  .products .screen-bar {
    font-size: 6px;
    padding: 0 5px;
    height: 22px;
  }
  .products .screen-bar span {
    margin-left: 2px;
  }
  .products .screen-bar small {
    font-size: 5px;
  }
  .products .app-layout {
    grid-template-columns: 34px 1fr;
    min-height: 165px;
  }
  .products .app-layout aside {
    font-size: 5px;
    padding: 9px 4px;
    gap: 12px;
  }
  .products .app-layout aside b {
    font-size: 16px;
  }
  .products .app-main {
    padding: 12px 7px;
  }
  .products .app-heading {
    font-size: 8px;
    margin-bottom: 12px;
  }
  .products .pill {
    font-size: 5px;
    padding: 3px;
  }
  .products .kanban {
    gap: 4px;
  }
  .products .kanban article {
    padding: 5px 3px;
  }
  .products .kanban b {
    font-size: 6px;
    margin: 5px 0;
  }
  .products .kanban small {
    font-size: 5px;
  }
  .products .mini-main {
    padding: 10px;
  }
  .product-evidence {
    flex: none;
  }
  .enlarge-product {
    font-size: 10px;
    padding: 12px 0 0;
  }
  .product-bottom {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .product-details {
    font-size: 10px;
    line-height: 1.4;
  }
  .product-details li {
    padding: 6px 0;
  }
  .product-video {
    min-height: 64px;
    padding: 10px;
    gap: 9px;
    font-size: 10px;
  }
  .product-video small {
    font-size: 7px;
  }
  .video-frame {
    font-size: 25px;
  }
  .products .demo-caption {
    font-size: 7px;
    line-height: 1.4;
    max-width: none;
  }
  .products .copy-marker {
    font-size: 7px;
  }
  .product-dialog {
    padding: 15px;
  }
  .dialog-screens {
    grid-template-columns: 1fr;
  }
  .dialog-screens .screen {
    min-width: 520px;
  }
  .dialog-screens {
    overflow: auto;
  }
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .animated .contact-layout {
    inset: 13% 24px 18%;
    padding: 0 7px 16px 0;
    display: block;
  }
  .team-side h2 {
    font-size: 25px;
    letter-spacing: -1px;
    margin-top: 13px;
  }
  .team-side .intro {
    font-size: 12px;
  }
  .team-grid {
    gap: 8px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .team-person img,
  .photo-pending {
    max-height: 85px;
  }
  .team-person h3 {
    font-size: 12px;
    margin-top: 7px;
  }
  .team-person p {
    font-size: 9px;
  }
  .team-label {
    margin: 22px 0 12px;
  }
  .investor {
    margin-top: 20px;
    padding-top: 14px;
  }
  .investor strong {
    font-size: 28px;
  }
  .contact-side {
    padding: 19px;
    margin-top: 28px;
  }
  .contact-side h3 {
    font-size: 23px;
  }
  .contact-form {
    grid-template-columns: 1fr;
    gap: 13px;
  }
  .contact-form input,
  .contact-form select,
  .contact-form textarea {
    font-size: 16px;
  }
  .contact-form label {
    font-size: 12px;
  }
  .animated .footer-content {
    left: 24px;
    right: 24px;
    bottom: 11%;
    font-size: 8px;
    padding-top: 10px;
  }
  .footer-content img {
    width: 22px;
    height: 27px;
  }
  .static-mode .products .product-stop {
    padding: 20px 0;
  }
  .static-mode .race-label h2 {
    font-size: 25px;
    max-width: none;
  }
  .static-mode .race-legend {
    display: none;
  }
  .static-mode .products .screen.secondary {
    display: block;
    margin-top: 15px;
    width: 85%;
    margin-left: auto;
  }
  .static-mode .contact-side {
    margin-top: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .space-details * {
    animation: none !important;
  }
}
/* Pitstop labels sit beside the lane so the car never passes over their text. */
.animated .race-label {
  inset: 0 auto 0 0;
  width: 30%;
  pointer-events: none;
}
.animated .race-label > .eyebrow {
  position: absolute;
  top: 14%;
  left: 10%;
}
.animated .race-label h2 {
  display: none;
}
.animated .race-legend {
  position: absolute;
  left: 8%;
  top: 28%;
  height: 49%;
  width: 27%;
  max-width: none;
  margin: 0;
  justify-content: space-between;
  pointer-events: auto;
}
.animated .pitstop-number {
  background: #081722e8;
  padding: 10px 8px;
  font-size: 10px;
}
.animated .pitstop-number span {
  display: block;
  margin: 0 0 8px;
}
@media (max-width: 767px) {
  .animated .race-label > .eyebrow {
    left: 8%;
    top: 14%;
    font-size: 7px;
  }
  .animated .race-legend {
    left: 5%;
    width: 26%;
    top: 28%;
  }
  .animated .pitstop-number {
    font-size: 0;
    padding: 10px 3px;
    border-left-width: 1px;
    background: #081722;
  }
  .animated .pitstop-number span {
    font-size: 9px;
    margin: 0;
  }
}
.level:not([data-active="true"]) :is(.star-layer, .start-link) {
  animation-play-state: paused;
}
body.dialog-open {
  overflow: hidden;
}
.product-dialog {
  overscroll-behavior: contain;
}
@media (max-width: 767px) and (max-height: 740px) {
  .animated .product-stop {
    gap: 9px;
  }
  .animated .products .product-copy h3 {
    font-size: 22px;
    margin: 4px 0;
  }
  .animated .products .product-copy p {
    font-size: 10px;
    line-height: 1.4;
  }
  .animated .products .screen-pair {
    max-height: 150px;
    overflow: hidden;
    border-radius: 8px;
  }
  .animated .products .product-details {
    font-size: 9px;
  }
  .animated .products .product-bottom {
    gap: 8px;
  }
  .animated .products .product-video {
    padding: 8px;
    min-height: 56px;
  }
  .animated .products .enlarge-product {
    padding-top: 9px;
  }
}
/* A bounded preview leaves room for details on shorter desktop windows too. */
.animated .products .screen-pair {
  grid-template-rows: minmax(0, 1fr);
  overflow: hidden;
}
.animated .products .screen {
  max-height: 100%;
}
.animated .products .enlarge-product {
  flex-shrink: 0;
}
