.hero-preview-page {
  min-height: 1120px;
  overflow-x: hidden;
}

.hero-preview-main {
  position: relative;
  z-index: 1;
}

.hero-prototype {
  --outfit-height: clamp(340px, calc(100vh - 460px), 493px);
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(772px, calc(100% - 120px));
  min-height: 0;
  margin: 3px auto 0;
  padding: 60px 124px 20px;
  gap: 20px;
  overflow: hidden;
  background: linear-gradient(360deg, #e5e5e5 0%, #fff 100%);
  border-radius: 20px;
}

.hero-prototype__intro {
  width: min(499.75px, 100%);
  min-height: 186px;
  color: #838e98;
  font-family: "Geist", sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.1;
}

.hero-prototype__intro p {
  margin: 0 0 12px;
}

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

.hero-accent {
  font-weight: 500;
}

.hero-accent--blue {
  color: #2f23f2;
}

.hero-accent--green {
  color: #00c247;
}

.hero-accent--orange {
  color: #ff6500;
}

.outfit-carousel {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 501.14px;
  height: var(--outfit-height);
  gap: 20px;
}

.outfit-arrow {
  display: grid;
  flex: 0 0 32.07px;
  width: 32.07px;
  height: 29.11px;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  transition: transform 180ms cubic-bezier(0.2, 0.75, 0.25, 1);
  transform: scale(1);
}

.outfit-arrow img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@media (hover: hover) and (pointer: fine) {
  .outfit-arrow:hover {
    transform: scale(1.1);
  }

  .outfit-arrow:hover:active {
    transform: scale(1);
  }
}

.outfit-arrow:focus-visible {
  outline: 2px solid #2f23f2;
  outline-offset: 6px;
}

.outfit-stage {
  --outfit-parallax-x: 0px;
  --outfit-parallax-y: 0px;
  display: grid;
  flex: 0 0 auto;
  width: auto;
  height: var(--outfit-height);
  aspect-ratio: 397 / 493;
  min-width: 0;
  place-items: center;
  perspective: 1000px;
  transform: translate3d(var(--outfit-parallax-x), var(--outfit-parallax-y), 0);
  transition: transform 420ms cubic-bezier(.22, 1, .36, 1);
  will-change: transform;
}

.outfit-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform-origin: 50% 58%;
  will-change: transform, opacity, filter, clip-path;
}

.inspiration-entry {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 320px;
  min-width: min(320px, 100%);
  max-width: 100%;
  min-height: 50px;
  padding: 8px 20px;
  gap: 16px;
  background: #fcfcfc;
  border-radius: 16px;
  transition: width 260ms cubic-bezier(0.2, 0.75, 0.25, 1), min-height 260ms cubic-bezier(0.2, 0.75, 0.25, 1);
}

.inspiration-entry textarea {
  display: block;
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  height: 18px;
  min-height: 18px;
  max-height: 180px;
  padding: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: rgba(131, 142, 152, 0.46) transparent;
  scrollbar-width: thin;
  resize: none;
  border: 0;
  outline: 0;
  background: transparent;
  color: #2e4150;
  font-family: "Geist", sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.1;
}

.inspiration-entry textarea::placeholder {
  color: #bec5cb;
  opacity: 1;
}

.inspiration-entry__send {
  position: relative;
  display: grid;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #bec5cb;
  cursor: pointer;
  overflow: hidden;
  transition: background-color 220ms ease-in-out, transform 180ms ease-in-out;
}

.inspiration-entry__send:disabled {
  cursor: default;
}

.inspiration-entry__send img {
  position: relative;
  z-index: 2;
  display: block;
  width: 18px;
  height: 17px;
}

.inspiration-entry[data-state="typing"] .inspiration-entry__send {
  background: #2f23f2;
}

.inspiration-entry[data-state="typing"] .inspiration-entry__send:hover {
  transform: scale(1.06);
}

.inspiration-entry[data-state="typing"] .inspiration-entry__send:active {
  transform: scale(0.96);
}

.inspiration-entry[data-state="sent"] .inspiration-entry__send {
  background-image: linear-gradient(90deg, #00cb59 0%, #00cb59 48%, #2f23f2 52%, #2f23f2 100%);
  background-size: 220% 100%;
  animation: send-color-sweep 2000ms ease-in-out forwards;
}

.inspiration-entry[data-state="sent"] textarea {
  height: 34px !important;
  min-height: 34px;
  color: transparent;
  cursor: text;
  line-height: 34px;
  text-align: center;
  white-space: nowrap;
  background-image: linear-gradient(90deg, #bec5cb 0%, #bec5cb 48%, #00cb59 52%, #00cb59 100%);
  background-position: 100% 50%;
  background-size: 220% 100%;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: sent-text-sweep 2000ms ease-in-out forwards;
}

.hero-prototype + .projects {
  margin-top: 94px;
}

@keyframes send-color-sweep {
  0% {
    background-image: linear-gradient(90deg, #00cb59 0%, #00cb59 48%, #2f23f2 52%, #2f23f2 100%);
    background-position: 100% 50%;
    transform: scale(1);
  }

  49% {
    background-image: linear-gradient(90deg, #00cb59 0%, #00cb59 48%, #2f23f2 52%, #2f23f2 100%);
    background-position: 0% 50%;
    transform: scale(1.1);
  }

  50% {
    background-image: linear-gradient(90deg, #bec5cb 0%, #bec5cb 48%, #00cb59 52%, #00cb59 100%);
    background-position: 100% 50%;
    transform: scale(1.1);
  }

  100% {
    background-image: linear-gradient(90deg, #bec5cb 0%, #bec5cb 48%, #00cb59 52%, #00cb59 100%);
    background-position: 0% 50%;
    transform: scale(1);
  }
}

@keyframes sent-text-sweep {
  from {
    background-position: 100% 50%;
  }

  to {
    background-position: 0% 50%;
  }
}

.motion-lab {
  position: fixed;
  z-index: 10;
  right: 20px;
  bottom: 20px;
  width: 268px;
  padding: 18px;
  border: 1px solid rgba(190, 197, 203, 0.8);
  background: rgba(252, 252, 252, 0.96);
  box-shadow: 0 18px 55px rgba(46, 65, 80, 0.12);
  backdrop-filter: blur(14px);
}

.motion-lab__eyebrow {
  margin: 0 0 8px;
  color: #838e98;
  font-family: "Geist Mono", monospace;
  font-size: 12px;
  font-weight: 500;
}

.motion-lab h2 {
  margin: 0 0 12px;
  color: #2e4150;
  font-size: 16px;
  font-weight: 600;
}

.motion-lab__options {
  display: grid;
  gap: 6px;
}

.motion-lab__options button {
  padding: 8px 10px;
  border: 1px solid #bec5cb;
  background: #fff;
  color: #2e4150;
  font: 500 13px/1.2 "Geist", sans-serif;
  text-align: left;
  cursor: pointer;
}

.motion-lab__options button:hover,
.motion-lab__options button.is-selected {
  border-color: #2f23f2;
  color: #2f23f2;
}

.motion-lab > p:last-child {
  margin: 12px 0 0;
  color: #838e98;
  font-size: 12px;
  line-height: 1.35;
}

@media (max-width: 1100px) {
  .motion-lab {
    position: relative;
    right: auto;
    bottom: auto;
    width: min(772px, calc(100% - 120px));
    margin: 32px auto 60px;
  }

  .motion-lab__options {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .hero-preview-page {
    min-height: 100vh;
  }

  .hero-prototype {
    --outfit-height: auto;
    width: calc(100% - 48px);
    min-height: 0;
    padding: 60px 24px 24px;
  }

  .hero-prototype__intro {
    min-height: 0;
  }

  .outfit-carousel {
    height: auto;
    gap: 14px;
  }

  .outfit-arrow {
    flex-basis: 26px;
    width: 26px;
    height: 24px;
  }

  .outfit-stage {
    flex-basis: 397px;
    width: auto;
    height: auto;
    aspect-ratio: 397 / 493;
  }

  .inspiration-entry {
    width: min(320px, 100%);
    padding-inline: 14px;
    gap: 10px;
  }

  .motion-lab {
    width: calc(100% - 48px);
  }
}

@media (max-width: 520px) {
  .hero-prototype {
    padding-inline: 12px;
  }

  .hero-prototype__intro {
    padding-inline: 8px;
  }

  .outfit-carousel {
    gap: 10px;
  }

  .outfit-arrow {
    flex-basis: 23px;
    width: 23px;
    height: 21px;
  }

  .motion-lab__options {
    grid-template-columns: 1fr;
  }

  .inspiration-entry[data-state="sent"] textarea {
    line-height: 1.1;
    white-space: normal;
  }
}

@media (prefers-reduced-motion: reduce) {
  .outfit-arrow,
  .inspiration-entry,
  .inspiration-entry__send {
    transition-duration: 0.01ms;
  }

  .inspiration-entry[data-state="sent"] .inspiration-entry__send {
    animation: none;
    background: #bec5cb;
  }

  .inspiration-entry[data-state="sent"] textarea {
    animation: none;
    color: #bec5cb;
    background: none;
    -webkit-text-fill-color: #bec5cb;
  }
}
