.home-hero {
  padding: 100px 0 0;
  overflow: hidden;
  background: #fff;
}

.home-hero__inner {
  position: relative;
  max-width: 1800px;
  margin: 0 auto;
}

.home-hero__copy {
  position: absolute;
  z-index: 1;
  top: 6.5%;
  left: 3.6%;
  width: 36.5%;
}

@media (min-width: 1101px) {
  .home-hero__scene {
    transform: translateX(2.5%);
  }
}

.home-hero__copy h1 {
  margin: 0 0 24px;
  color: #080b11;
  font-family: Montserrat, Raleway, sans-serif;
  font-size: clamp(60px, 5.8vw, 104px);
  font-weight: 800;
  line-height: .94;
  letter-spacing: -0.035em;
}

.home-hero__eyebrow {
  display: block;
  margin-bottom: .12em;
  color: #0565ff;
  font-size: .28em;
  line-height: 1;
  letter-spacing: -0.035em;
}

.home-hero__copy h1 .home-hero__question {
  margin-inline-start: 0.06em;
  color: #0565ff;
}

.home-hero__copy p {
  margin: 0 0 32px;
  color: #62708e;
  font-size: clamp(17px, 1.45vw, 27px);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.025em;
}

.home-project-actions {
  justify-content: flex-start;
  align-items: center;
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.home-project-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
}

.home-project-actions .btn svg {
  width: 14px;
  height: 14px;
}

@media (min-width: 901px) and (max-width: 1200px) {
  .home-project-actions .btn {
    padding-inline: 8px;
    font-size: 11px;
  }
}

.home-project-actions__explore {
  color: #fff;
  background: #0565ff;
  border: 1px solid #0565ff;
  box-shadow: 0 5px 12px #0565ff12;
}

.home-project-actions .home-project-actions__explore:hover,
.home-project-actions .home-project-actions__explore:focus-visible {
  color: #fff;
  background: #004ed1;
  border-color: #004ed1;
}

.home-project-actions__start {
  color: #080b11;
  background: #fff;
  border: 1px solid #d7e0ef;
  box-shadow: 0 4px 8px #19467e0a;
}

.home-project-actions .home-project-actions__start:hover,
.home-project-actions .home-project-actions__start:focus-visible {
  color: #0565ff;
  background: #f7faff;
  border-color: #0565ff;
}

.home-project-actions .btn:focus-visible {
  outline: 3px solid #0565ff;
  outline-offset: 5px;
}

/* Reuse the existing button treatment without adding another primary action. */
.home-hero__motion {
  margin-top: 14px;
  padding: 5px 0;
  border: 0;
  background: transparent;
  color: #62708e;
  font-size: 14px;
}

.home-hero__motion[hidden] {
  display: none;
}

.home-hero__scene {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  pointer-events: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
  /* SVG groups do not consistently establish touch-action on mobile browsers. */
  touch-action: none;
  -webkit-touch-callout: none;
}

.home-hero__scene * {
  -webkit-user-drag: none;
  -webkit-user-select: none;
  user-select: none;
}

.home-hero__label text {
  fill: #10131b;
  font: 600 14px Raleway, sans-serif;
}

.home-hero__idea {
  fill: #33415b;
  font: 500 18px Raleway, sans-serif;
}

.home-hero__pointer text {
  fill: #fff;
  font: 700 18px Raleway, sans-serif;
}

/* Compact Chat-style replies share the mascot's physics wrapper. Their own
   entrance motion is nested so it never replaces the spring transform. */
.home-hero__replies,
.home-hero__replies * {
  pointer-events: none;
}

.home-hero__reply {
  animation: hero-reply 3.8s ease both;
}

.home-hero__reply-surface {
  fill: #fff;
  filter: drop-shadow(0 5px 9px #253d6652);
}

.home-hero__reply text {
  fill: #10131b;
  font: 700 17px Raleway, sans-serif;
}

@keyframes hero-reply {
  0% { opacity: 0; transform: translateY(9px); }
  8%, 85% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-6px); }
}

/* Keep the slow cursor drift inside the elastic drag wrapper. */
.home-hero__pointer {
  animation: hero-pointer 14s ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}

/* Only the artwork catches drags; surrounding copy remains selectable. */
.home-hero [data-hero-grab] {
  pointer-events: auto;
  touch-action: none;
  cursor: grab;
}

.home-hero[data-hero-dragging] [data-hero-grab] {
  cursor: grabbing;
}

.home-hero .home-hero__tentacle-hit {
  pointer-events: stroke;
}

.home-hero[data-reduced-motion] [data-hero-grab] {
  pointer-events: none;
  cursor: default;
}

.home-hero__stars use {
  animation: hero-sparkle 11s ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}

.home-hero[data-motion-paused] .home-hero__pointer,
.home-hero[data-hero-dragging] .home-hero__pointer,
.home-hero[data-motion-paused] .home-hero__stars use {
  animation-play-state: paused;
}

@keyframes hero-pointer {
  0%, 15%, 100% { transform: translate(0, 0); }
  26%, 43% { transform: translate(26px, 16px); }
  54%, 68% { transform: translate(12px, 36px); }
  81%, 91% { transform: translate(-14px, 10px); }
}

@keyframes hero-sparkle {
  0%, 100% { opacity: .32; }
  50% { opacity: .9; }
}

@media (max-width: 1100px) {
  .home-hero {
    padding-top: 145px;
  }

  .home-hero__copy {
    position: relative;
    left: 0;
    width: calc(100% - 40px);
    max-width: 690px;
    margin: 0 auto 40px;
    text-align: center;
  }

  .home-hero__copy h1 {
    font-size: clamp(38px, 6.5vw, 68px);
  }

  .home-hero__copy p {
    font-size: clamp(18px, 2.5vw, 24px);
  }
}

@media (max-width: 600px) {
  .home-hero {
    padding: 130px 20px 0;
  }

  .home-hero__copy {
    width: 100%;
  }

  .home-hero__copy h1 {
    font-size: clamp(29px, 7.7vw, 46px);
    margin-bottom: 20px;
  }

  .home-hero__copy p br {
    display: none;
  }

  .home-hero__scene {
    width: calc(100% + 24px);
    max-width: none;
    margin-left: -12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-hero__reply,
  .home-hero__pointer,
  .home-hero__stars use {
    animation: none;
  }
}
