@font-face {
  font-family: "Gellix";
  src: url("./fonts/Gellix-Regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Gellix";
  src: url("./fonts/Gellix-Medium.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

:root {
  color-scheme: light;
  --page: #d1dddf;
  --panel: #123741;
  --panel-soft: #16444b;
  --white: #fefefe;
  --muted: #d1dddf;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-width: 320px;
  background: var(--page);
  font-family: "Gellix", Arial, sans-serif;
}

button,
video {
  font: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
}

.composed-scene {
  width: 100%;
  min-height: 812px;
  padding: 21px 20px 26px;
  background: var(--page);
}

.scene-card {
  position: relative;
  width: 100%;
  min-height: 765px;
  overflow: hidden;
  border-radius: 20px;
  background: var(--panel);
  box-shadow:
    inset 0 0 0 3px rgba(241, 240, 238, 0.3),
    inset 0 0 0 6px rgba(255, 255, 255, 0.2);
  color: var(--white);
}

.scene-title {
  position: absolute;
  z-index: 2;
  top: 95px;
  left: 106px;
  width: 408px;
  margin: 0;
  color: var(--white);
  font-size: 45px;
  font-weight: 400;
  letter-spacing: -0.9px;
  line-height: 1.1;
}

.media-frame {
  position: absolute;
  z-index: 1;
  top: 144px;
  left: 528px;
  width: min(820px, calc(100% - 580px));
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--panel);
}

@media (min-width: 601px) {
  .media-frame {
    -webkit-mask-image:
      linear-gradient(to right, transparent 0, #000 5%, #000 95%, transparent 100%),
      linear-gradient(to bottom, transparent 0, #000 7%, #000 93%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-image:
      linear-gradient(to right, transparent 0, #000 5%, #000 95%, transparent 100%),
      linear-gradient(to bottom, transparent 0, #000 7%, #000 93%, transparent 100%);
    mask-composite: intersect;
  }
}

.media-frame video,
.media-fallback {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: 50% 50%;
  background: var(--panel);
  mix-blend-mode: lighten;
}

.media-fallback {
  z-index: 0;
  display: none;
}

.media-frame video {
  z-index: 1;
}

.media-frame .scene-video {
  display: none;
}

.media-frame .scene-video.is-active {
  display: block;
}

.media-frame.has-video-error video,
.media-frame.show-fallback video {
  display: none;
}

.media-frame.has-video-error .media-fallback,
.media-frame.show-fallback .media-fallback {
  display: block;
}

.steps {
  position: absolute;
  z-index: 3;
  top: 267px;
  left: 106px;
  display: flex;
  width: 380px;
  height: 277px;
  flex-direction: column;
  gap: 24px;
}

.step {
  position: relative;
  display: block;
  width: 100%;
  height: 38px;
  flex: 0 0 auto;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-left: 1px solid transparent;
  background: transparent;
  color: rgba(255, 255, 255, 0.4);
  text-align: left;
  cursor: pointer;
  transition:
    height 520ms var(--ease),
    color 320ms ease;
}

.step::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  border-radius: 999px;
  background: #fff;
  content: "";
  opacity: 0;
  transform: scaleY(0.2);
  transform-origin: 50% 0;
  transition:
    opacity 220ms ease,
    transform 520ms var(--ease);
}

.step.is-active {
  height: 153px;
  color: #fff;
}

.step.is-active::before {
  opacity: 1;
  transform: scaleY(1);
}

.step-inner {
  display: grid;
  width: 354px;
  margin-left: 17px;
  grid-template-rows: 0 38px 0;
  row-gap: 0;
  transition:
    grid-template-rows 520ms var(--ease),
    row-gap 520ms var(--ease);
}

.step.is-active .step-inner {
  grid-template-rows: 24px 38px 81px;
  row-gap: 5px;
}

.step-badge,
.step-description {
  overflow: hidden;
  opacity: 0;
  transition: opacity 240ms ease;
}

.step.is-active .step-badge,
.step.is-active .step-description {
  opacity: 1;
  transition-delay: 150ms;
}

.step-badge {
  display: block;
  justify-self: start;
  min-width: 90px;
  padding: 0 15px;
  border-radius: 58px;
  background: var(--panel-soft);
  color: #fff;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 2.72px;
  line-height: 24px;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
}

.step-title {
  display: block;
  overflow: hidden;
  font-size: 25px;
  font-weight: 400;
  letter-spacing: -0.5px;
  line-height: 37.5px;
  white-space: nowrap;
}

.step-description {
  display: block;
  width: 354px;
  color: var(--muted);
  font-size: 18px;
  font-weight: 400;
  letter-spacing: -0.36px;
  line-height: 27px;
}

.step:focus-visible,
.cta:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 5px;
}

.cta {
  position: absolute;
  z-index: 3;
  top: 622px;
  left: 106px;
  display: inline-flex;
  width: 184.6792px;
  height: 47px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 15px;
  border: 0;
  border-radius: 300px;
  background: #fff;
  color: var(--panel);
  font-size: 18px;
  font-weight: 500;
  line-height: 18px;
  cursor: default;
  transition: transform 180ms var(--ease);
}

.cta img {
  width: 17.6792px;
  height: 17.6792px;
}

.cta:active {
  transform: translateY(1px);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  margin: -1px;
  padding: 0;
  border: 0;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

@media (max-width: 1023px) {
  .composed-scene {
    min-height: 0;
    padding: 18px 10px;
  }

  .scene-card {
    display: flex;
    min-height: 909px;
    flex-direction: column;
    padding: 40px 22px 76px;
  }

  .scene-title,
  .media-frame,
  .steps,
  .cta {
    position: relative;
    inset: auto;
  }

  .scene-title {
    width: auto;
    flex: 0 0 auto;
    font-size: 35px;
    letter-spacing: -0.7px;
    line-height: 38px;
  }

  .media-frame {
    width: min(100%, 620px);
    margin: 78px auto 0;
    aspect-ratio: 16 / 9;
    flex: 0 0 auto;
  }

  .steps {
    width: min(100%, 620px);
    height: 278px;
    margin: 96px 0 0;
    gap: 0;
    flex: 0 0 auto;
  }

  .step {
    height: 62px;
    border-left-color: rgba(255, 255, 255, 0.25);
  }

  .step::before {
    width: 3px;
    border-radius: 0;
  }

  .step.is-active {
    height: 154px;
  }

  .step-inner {
    width: calc(100% - 22px);
    margin-left: 21px;
    grid-template-rows: 0 62px 0;
  }

  .step.is-active .step-inner {
    grid-template-rows: 29px 39px 69px;
    row-gap: 5px;
  }

  .step-badge {
    min-width: 72px;
    padding: 0 12px;
    font-size: 13.3px;
    letter-spacing: 1.867px;
    line-height: 29px;
  }

  .step-title {
    font-size: 22px;
    letter-spacing: -0.44px;
    line-height: 39px;
  }

  .step-description {
    width: 100%;
    font-size: 15px;
    letter-spacing: -0.3px;
    line-height: 23px;
  }

  .cta {
    width: 189px;
    height: 47px;
    margin-top: 24px;
    align-self: flex-start;
    flex: 0 0 auto;
    font-size: 16px;
    line-height: 18px;
  }
}

@media (max-width: 600px) {
  .media-frame {
    width: min(380px, 100%);
    max-width: 100%;
    height: auto;
    margin-right: auto;
    margin-left: auto;
    aspect-ratio: 16 / 9;
  }

  .steps {
    margin-top: 76px;
  }

  .media-frame video,
  .media-fallback {
    inset: 0;
    width: 100%;
    max-width: none;
    height: 100%;
    aspect-ratio: auto;
    object-fit: contain;
    object-position: 50% 50%;
    transform: none;
  }
}

@media (min-width: 601px) and (max-width: 1023px) {
  .scene-card {
    padding-right: clamp(32px, 6vw, 64px);
    padding-left: clamp(32px, 6vw, 64px);
  }
}

@media (max-width: 420px) {
  .scene-card {
    padding-right: 18px;
    padding-left: 18px;
  }

  .scene-title {
    font-size: 33px;
    line-height: 36px;
  }

  .media-frame {
    width: min(300px, 100%);
  }

  .step-title {
    font-size: 20px;
  }

  .step-description {
    font-size: 14px;
    line-height: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
  }
}
