.js-intro [data-intro],
.js-intro [data-header-item],
.js-intro [data-hero-glow] {
  opacity: 0;
}

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: max(100svh, 42rem);
  padding: calc(var(--header-h) + 3rem) var(--margin) 9.5rem;
  overflow: clip;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  height: 7rem;
  background: linear-gradient(rgb(8 8 8 / 0), var(--black));
  pointer-events: none;
}

.hero__backdrop {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.hero__lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
}

.hero__arc,
.hero__vector {
  fill: none;
  stroke: var(--white-a06);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.hero__arc--inner {
  stroke: rgb(245 245 245 / 0.035);
}

.hero__arc--accent {
  stroke: var(--magenta);
  stroke-dasharray: 7 93;
  stroke-dashoffset: -61;
  opacity: 0.55;
}

.hero__grain {
  position: absolute;
  inset: 0;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

.hero__inner {
  position: relative;
  z-index: 2;
  display: flex;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
}

.hero__content {
  flex: 0 1 auto;
  width: 46%;
  min-width: 0;
}

.hero__label {
  margin-bottom: 1.75rem;
}

.hero__title {
  font-size: clamp(2.5rem, 4.5vw, 4.75rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
}

.hero__line {
  display: block;
}

.hero__line--accent {
  color: var(--magenta);
}

.hero__title .word-mask {
  padding-bottom: 0.14em;
  margin-bottom: -0.14em;
}

.hero__lead {
  max-width: 30rem;
  margin-top: 1.75rem;
  color: var(--gray);
  font-size: clamp(1.0625rem, 1.2vw, 1.1875rem);
  line-height: 1.6;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.75rem;
}

.hero__visual {
  position: absolute;
  z-index: 1;
  top: 0;
  right: 0;
  bottom: 0;
  width: 58%;
  pointer-events: none;
}

.hero__glow {
  position: absolute;
  border-radius: 50%;
}

.hero__glow--back {
  left: 18%;
  right: -6%;
  top: 12%;
  height: 58%;
  background: radial-gradient(closest-side, rgb(248 0 88 / 0.26), rgb(248 0 88 / 0.08) 55%, rgb(248 0 88 / 0));
}

.hero__glow--floor {
  left: 0;
  right: -18%;
  top: 46%;
  height: 50%;
  background: radial-gradient(closest-side, rgb(248 0 88 / 0.3), rgb(248 0 88 / 0.1) 50%, rgb(248 0 88 / 0));
}

.hero__cue {
  position: absolute;
  z-index: 2;
  left: max(var(--margin), calc((100% - var(--max)) / 2));
  bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 1.25rem;
  min-height: 2.75rem;
  color: var(--gray);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  transition: color 300ms var(--ease-out);
}

.scroll-cue__mouse {
  position: relative;
  flex: none;
  width: 1.5rem;
  height: 2.25rem;
  border-radius: 1rem;
  box-shadow: inset 0 0 0 1.5px var(--white-a28);
}

.scroll-cue__wheel {
  position: absolute;
  left: 50%;
  top: 0.5rem;
  width: 2px;
  height: 0.45rem;
  margin-left: -1px;
  border-radius: 2px;
  background: var(--white);
  animation: cue-wheel 1.8s var(--ease-out) 1.4s 2 both;
}

.scroll-cue__line {
  position: relative;
  width: 1px;
  height: 2.75rem;
  margin-left: calc(0.75rem - 0.5px);
  overflow: hidden;
  background: var(--white-a10);
}

.scroll-cue__line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgb(248 0 88 / 0), var(--magenta));
  transform: translateY(-100%);
  animation: cue-line 2.4s var(--ease-in-out) 1.4s 2 both;
}

@media (hover: hover) and (pointer: fine) {
  .scroll-cue:hover {
    color: var(--white);
  }
}

@keyframes cue-wheel {
  0% {
    opacity: 0;
    transform: translateY(0);
  }

  25% {
    opacity: 1;
  }

  70%,
  100% {
    opacity: 0;
    transform: translateY(0.5rem);
  }
}

@keyframes cue-line {
  0% {
    transform: translateY(-100%);
  }

  65%,
  100% {
    transform: translateY(100%);
  }
}

.scene {
  --unit: min(0.7vw, 1.16svh);
  position: absolute;
  inset: 0;
  font-size: var(--unit);
  perspective: 150em;
  perspective-origin: 57% 54%;
}

.scene__spin,
.scene__tilt,
.scene__rig,
.floor,
.device,
.device__base,
.device__lid,
.device__shadow,
.panel-slot,
.panel {
  position: absolute;
  left: 0;
  top: 0;
  transform-style: preserve-3d;
}

.scene__spin {
  left: 57%;
  top: 65%;
}

.scene__rig {
  --floor-y: 1.6em;
  transform: rotateX(-7deg) rotateY(-27deg);
}

.floor {
  left: -66em;
  top: -48em;
  width: 132em;
  height: 96em;
  transform: translateY(var(--floor-y)) rotateX(90deg);
  background: radial-gradient(ellipse 18% 9% at 60% 47%, rgb(248 0 88 / 0.55), rgb(248 0 88 / 0)),
    radial-gradient(ellipse 42% 34% at 58% 42%, rgb(248 0 88 / 0.42), rgb(248 0 88 / 0.14) 45%, rgb(248 0 88 / 0.03) 72%, rgb(248 0 88 / 0));
}

.device {
  --w: 52em;
  --h: 33.5em;
  --d: 34em;
  --t: 1.25em;
  --e: 0.6em;
  --r: 1.5em;
  --tilt: 10deg;
  --lid-z: calc(var(--d) / -2);
}

.device__shadow {
  left: calc(var(--w) * -0.62);
  top: calc(var(--d) * -0.68);
  width: calc(var(--w) * 1.24);
  height: calc(var(--d) * 1.36);
  transform: translateY(calc(var(--t) + 0.1em)) rotateX(90deg);
  background: radial-gradient(closest-side, rgb(8 8 8 / 0.95) 58%, rgb(8 8 8 / 0));
}

.device__deck,
.device__lip,
.device__flank,
.device__face,
.device__edge {
  position: absolute;
  backface-visibility: hidden;
}

.device__deck {
  left: calc(var(--w) / -2);
  top: calc(var(--d) / -2);
  width: var(--w);
  height: var(--d);
  border-radius: 1.2em;
  background:
    linear-gradient(180deg, rgb(245 245 245 / 0.07), rgb(245 245 245 / 0.02) 60%, rgb(248 0 88 / 0.06)),
    var(--black-2);
  box-shadow: inset 0 0 0 0.12em rgb(245 245 245 / 0.14);
  transform: rotateX(90deg);
}

.device__keys {
  position: absolute;
  top: 3.4em;
  left: 4.4em;
  right: 4.4em;
  height: 14.5em;
  border-radius: 0.6em;
  background:
    linear-gradient(var(--black) 0.32em, rgb(8 8 8 / 0) 0.32em) 0 0 / 2.9em 2.9em,
    linear-gradient(90deg, var(--black) 0.32em, rgb(245 245 245 / 0.06) 0.32em) 0 0 / 2.9em 2.9em,
    var(--black);
}

.device__trackpad {
  position: absolute;
  bottom: 2.6em;
  left: 50%;
  width: 18em;
  height: 10.5em;
  margin-left: -9em;
  border-radius: 0.8em;
  box-shadow: inset 0 0 0 0.1em rgb(245 245 245 / 0.1);
}

.device__lip {
  left: calc(var(--w) / -2);
  top: 0;
  width: var(--w);
  height: var(--t);
  border-radius: 0 0 1em 1em;
  background: linear-gradient(180deg, rgb(245 245 245 / 0.42), rgb(245 245 245 / 0.12) 45%, var(--black-2));
  transform: translateZ(calc(var(--d) / 2));
}

.device__lip::after {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 7em;
  height: 0.42em;
  margin-left: -3.5em;
  border-radius: 0 0 0.5em 0.5em;
  background: var(--black);
}

.device__flank {
  left: calc(var(--w) / 2 - var(--d) / 2);
  top: 0;
  width: var(--d);
  height: var(--t);
  border-radius: 0 0 0.6em 0.6em;
  background: linear-gradient(90deg, rgb(245 245 245 / 0.2), rgb(248 0 88 / 0.35) 55%, rgb(248 0 88 / 0.9));
  transform: rotateY(90deg);
}

.device__lid {
  left: calc(var(--w) / -2);
  top: calc(var(--h) * -1);
  width: var(--w);
  height: var(--h);
  transform-origin: 50% 100%;
  transform: translateZ(var(--lid-z)) rotateX(var(--tilt));
}

.device__face {
  inset: 0;
  border-radius: var(--r) var(--r) 0.8em 0.8em;
  background: linear-gradient(160deg, var(--black-2), var(--black));
  box-shadow:
    inset 0 0 0 0.14em rgb(245 245 245 / 0.26),
    inset 0 0 0 0.5em var(--black);
}

.device__screen {
  position: absolute;
  inset: 1.15em 1.15em 2em;
  overflow: hidden;
  border-radius: 0.5em;
  background: var(--black);
}

.device__camera {
  position: absolute;
  top: 0.42em;
  left: 50%;
  width: 0.36em;
  height: 0.36em;
  margin-left: -0.18em;
  border-radius: 50%;
  background: rgb(245 245 245 / 0.16);
}

.device__edge--right {
  top: var(--r);
  bottom: 0.5em;
  left: calc(100% - var(--e) / 2);
  width: var(--e);
  border-radius: var(--e);
  background: linear-gradient(180deg, rgb(248 0 88 / 0.95), rgb(248 0 88 / 0.45) 60%, rgb(248 0 88 / 0.2));
  transform: translateZ(calc(var(--e) / -2)) rotateY(90deg);
}

.device__edge--top {
  top: calc(var(--e) / -2);
  left: var(--r);
  right: var(--r);
  height: var(--e);
  border-radius: var(--e);
  background: linear-gradient(90deg, rgb(245 245 245 / 0.14), rgb(248 0 88 / 0.75));
  transform: translateZ(calc(var(--e) / -2)) rotateX(90deg);
}

.screen {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: 1.7em 2.2em 1.5em;
  background:
    radial-gradient(ellipse 60% 70% at 85% 100%, rgb(248 0 88 / 0.16), rgb(248 0 88 / 0)),
    var(--black);
  color: var(--white);
}

.screen__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2em;
}

.screen__logo {
  width: 6.2em;
  color: var(--white);
}

.screen__nav {
  display: flex;
  gap: 2em;
  color: var(--gray);
  font-size: 0.78em;
  font-weight: 500;
}

.screen__menu {
  display: none;
}

.screen__body {
  flex: 1;
  display: flex;
  align-items: stretch;
  gap: 2.4em;
  min-height: 0;
  margin-top: 1.8em;
}

.screen__copy {
  flex: 0 0 42%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 1.3em;
}

.screen__kicker {
  color: var(--gray);
  font-family: var(--font-mono);
  font-size: 0.68em;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.screen__title {
  font-size: 2.7em;
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.screen__title em {
  color: var(--magenta);
  font-style: normal;
}

.screen__button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.8em;
  height: 2.8em;
  border-radius: 50%;
  background: var(--magenta);
  color: var(--black);
}

.screen__button svg {
  width: 1.3em;
  height: 1.3em;
}

.screen__art {
  position: relative;
  flex: 1;
  overflow: hidden;
  border-radius: 0.6em;
}

.screen__arcs {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  fill: none;
  stroke: rgb(245 245 245 / 0.14);
  stroke-width: 0.6;
}

.screen__mark {
  position: absolute;
  right: -34%;
  bottom: -18%;
  width: 130%;
  max-width: none;
  color: var(--magenta);
}

.screen__foot {
  display: flex;
  align-items: center;
  gap: 1em;
  margin-top: 1.4em;
  color: var(--gray);
  font-family: var(--font-mono);
  font-size: 0.62em;
  letter-spacing: 0.12em;
}

.screen__progress {
  position: relative;
  width: 8em;
  height: 1px;
  background: var(--white-a16);
}

.screen__progress i {
  position: absolute;
  inset: 0 66% 0 0;
  background: var(--magenta);
}

.screen__sweep {
  position: absolute;
  inset: -30% -60%;
  background: linear-gradient(59deg, rgb(248 0 88 / 0) 44%, rgb(248 0 88 / 0.5) 49.4%, rgb(245 245 245 / 0.5) 50%, rgb(248 0 88 / 0.45) 50.6%, rgb(248 0 88 / 0) 56%);
  opacity: 0;
  pointer-events: none;
}

.screen__glare {
  position: absolute;
  inset: 0;
  background: linear-gradient(59deg, rgb(245 245 245 / 0) 58%, rgb(245 245 245 / 0.055) 58.2%, rgb(245 245 245 / 0) 86%);
  pointer-events: none;
}

.panel-slot {
  transform: translate3d(var(--x), var(--y), var(--z)) rotateY(var(--ry, 0deg));
}

.panel-slot--strategy {
  --x: -42em;
  --y: -35em;
  --z: 4em;
  --ry: 8deg;
}

.panel-slot--creation {
  --x: -40em;
  --y: -17em;
  --z: 12em;
  --ry: 6deg;
}

.panel-slot--tech {
  --x: 20em;
  --y: -24em;
  --z: 12em;
  --ry: -6deg;
}

.panel {
  width: 15.5em;
}

.panel__body {
  display: flex;
  flex-direction: column;
  gap: 1em;
  padding: 1.5em 1.5em 1.6em;
  border-radius: 1.3em;
  background:
    linear-gradient(155deg, rgb(245 245 245 / 0.09), rgb(245 245 245 / 0.015) 52%),
    rgb(13 13 13 / 0.97);
  box-shadow:
    inset 0 1px 0 rgb(245 245 245 / 0.16),
    inset 0 0 0 1px rgb(245 245 245 / 0.08),
    0 2.4em 4.4em -1.2em rgb(8 8 8 / 0.9);
  backface-visibility: hidden;
}

.panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.panel__icon {
  width: 2em;
  height: 2em;
  fill: none;
  stroke: var(--magenta);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.panel__index {
  color: var(--gray);
  font-family: var(--font-mono);
  font-size: 0.85em;
  letter-spacing: 0.12em;
}

.panel__title {
  margin-top: 0.3em;
  font-size: 1.75em;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.panel__meta {
  color: var(--gray);
  font-family: var(--font-mono);
  font-size: 0.72em;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.panel__direction {
  width: 100%;
  height: auto;
  overflow: visible;
}

.panel__direction-in {
  fill: none;
  stroke: rgb(245 245 245 / 0.32);
  stroke-width: 1.2;
}

.panel__direction-out {
  fill: none;
  stroke: var(--magenta);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.panel__direction circle {
  fill: var(--magenta);
}

.panel__specimen {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1em;
}

.panel__aa {
  font-size: 3.6em;
  font-weight: 500;
  line-height: 0.9;
  letter-spacing: -0.04em;
}

.panel__swatches {
  display: flex;
  gap: 0.4em;
  padding-bottom: 0.3em;
}

.panel__swatches i {
  width: 1.3em;
  height: 1.3em;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgb(245 245 245 / 0.16);
}

.panel__swatches i:nth-child(1) {
  background: var(--magenta);
  box-shadow: none;
}

.panel__swatches i:nth-child(2) {
  background: var(--white);
}

.panel__swatches i:nth-child(3) {
  background: var(--gray);
}

.panel__swatches i:nth-child(4) {
  background: var(--black);
}

.panel__code {
  margin: 0;
  color: var(--gray);
  font-family: var(--font-mono);
  font-size: 0.82em;
  line-height: 1.7;
  white-space: pre;
}

.panel__code code {
  font: inherit;
}

.panel__code b,
.panel__code s,
.panel__code i {
  font-weight: 400;
  font-style: normal;
  text-decoration: none;
}

.panel__code b {
  color: var(--magenta);
}

.panel__code i {
  color: var(--white);
}

.panel__code s {
  color: var(--white);
}

@media (max-width: 1024px) {
  .hero__content {
    width: 50%;
  }

  .hero__visual {
    width: 58%;
  }

  .scene {
    --unit: min(0.7vw, 1.2svh);
  }

  .scene__spin {
    left: 60%;
  }

  .hero__actions {
    gap: 0.75rem;
  }

  .hero__actions .button {
    padding: 0 1.5rem;
  }

  .hero__lead {
    max-width: 26rem;
  }

  .panel-slot--strategy {
    --x: -37em;
  }

  .panel-slot--creation {
    --x: -35em;
  }
}

@media (max-width: 860px) {
  .hero {
    justify-content: flex-start;
    min-height: 0;
    padding: calc(var(--header-h) + 2.5rem) var(--margin) 0;
  }

  .hero__content {
    width: 100%;
  }

  html:not(.js) .hero {
    padding-top: calc(var(--header-h) + 5rem);
  }

  .hero__label {
    margin-bottom: 1.25rem;
  }

  .hero__title {
    font-size: clamp(1.875rem, 10.2vw, 3.5rem);
    line-height: 1.06;
  }

  .hero__lead {
    max-width: 34rem;
    margin-top: 1.25rem;
    font-size: 1.0625rem;
  }

  .hero__actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    margin-top: 2rem;
  }

  .hero__actions .button {
    --button-h: 3.25rem;
    justify-content: space-between;
    min-width: 14.5rem;
  }

  .hero__visual {
    position: relative;
    width: auto;
    height: clamp(26rem, 124vw, 44rem);
    margin: 0.5rem calc(var(--margin) * -1) 0;
  }

  .hero__glow--back {
    left: 10%;
    right: 0;
    top: 0;
    height: 80%;
  }

  .hero__glow--floor {
    left: -10%;
    right: -10%;
    top: 62%;
    height: 50%;
  }

  .hero__cue {
    position: relative;
    left: auto;
    bottom: auto;
    margin-top: -1.5rem;
    padding-bottom: 2.5rem;
  }

  .hero__vector {
    display: none;
  }

  .hero__label {
    gap: 0.4em 0.6em;
    font-size: 0.75rem;
    letter-spacing: 0.16em;
  }

  .scene {
    --unit: min(1.9vw, 9px);
    perspective: 110em;
    perspective-origin: 50% 45%;
  }

  .scene__spin {
    left: 58%;
    top: 80%;
  }

  .scene__rig {
    --floor-y: 0.3em;
    transform: rotateX(-8deg) rotateY(-26deg);
  }

  .device {
    --w: 22em;
    --h: 45em;
    --d: 9em;
    --t: 0em;
    --e: 1em;
    --r: 3.3em;
    --tilt: 0deg;
    --lid-z: 0em;
  }

  .device__base {
    display: none;
  }

  .device__face {
    border-radius: var(--r);
    box-shadow:
      inset 0 0 0 0.16em rgb(245 245 245 / 0.3),
      inset 0 0 0 0.75em var(--black);
  }

  .device__screen {
    inset: 0.85em;
    border-radius: 2.5em;
  }

  .device__camera {
    top: 1.55em;
    width: 6em;
    height: 1.75em;
    margin-left: -3em;
    border-radius: 1em;
    background: var(--black);
  }

  .device__edge--right {
    top: var(--r);
    bottom: var(--r);
  }

  .screen {
    padding: 4em 1.8em 2em;
  }

  .screen__logo {
    width: 5.6em;
  }

  .screen__nav {
    display: none;
  }

  .screen__menu {
    display: flex;
    flex-direction: column;
    gap: 0.4em;
  }

  .screen__menu i {
    display: block;
    width: 1.5em;
    height: 1px;
    background: var(--white);
  }

  .screen__body {
    flex-direction: column;
    gap: 1.8em;
    margin-top: 2.6em;
  }

  .screen__copy {
    flex: none;
    gap: 1.1em;
  }

  .screen__title {
    font-size: 2.6em;
  }

  .screen__art {
    flex: 1;
  }

  .screen__mark {
    right: -40%;
    bottom: -12%;
    width: 150%;
  }

  .screen__foot {
    margin-top: 1.4em;
  }

  .panel {
    width: 13.5em;
  }

  .panel-slot--strategy {
    --x: -26.5em;
    --y: -42em;
    --z: 2em;
    --ry: 10deg;
  }

  .panel-slot--creation {
    --x: -25.5em;
    --y: -24em;
    --z: 8em;
    --ry: 8deg;
  }

  .panel-slot--tech {
    --x: 3em;
    --y: -20em;
    --z: 9em;
    --ry: -4deg;
  }
}

@media (min-width: 861px) and (max-height: 760px) {
  .hero {
    padding-bottom: 6.5rem;
  }

  .hero__cue {
    bottom: 1.25rem;
  }

  .scroll-cue__line {
    display: none;
  }
}

@media (max-width: 359px) {
  .hero__label {
    gap: 0.4em 0.45em;
    letter-spacing: 0.1em;
  }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-cue__wheel,
  .scroll-cue__line::after {
    animation: none;
  }

  .scroll-cue__line::after {
    transform: none;
  }
}
