:root {
  --motion-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --motion-duration: 560ms;
  --motion-duration-fast: 320ms;
  --motion-distance: 16px;
  --motion-shadow-soft: 0 22px 60px rgba(16, 35, 31, 0.14);
  --motion-shadow-warm: 0 26px 72px rgba(16, 35, 31, 0.18);
  --motion-border-warm: rgba(216, 91, 74, 0.28);
}

.site-home .hero {
  isolation: isolate;
}

.hero-visual {
  position: absolute;
  right: clamp(20px, 6vw, 72px);
  bottom: clamp(72px, 12vh, 132px);
  z-index: 1;
  width: min(42vw, 520px);
  min-width: 280px;
  pointer-events: none;
}

.hero-visual-map {
  width: 100%;
  height: auto;
  overflow: visible;
  filter: drop-shadow(0 24px 60px rgba(8, 30, 26, 0.28));
}

.hero-visual-path {
  fill: none;
  stroke: url(#heroPathGlow);
  stroke-linecap: round;
  stroke-width: 4;
  opacity: 0.92;
  stroke-dasharray: 620;
  stroke-dashoffset: 620;
}

.hero-visual-path-secondary {
  stroke-width: 2.5;
  opacity: 0.58;
  stroke-dasharray: 420;
  stroke-dashoffset: 420;
}

.hero-visual-dot {
  fill: rgba(255, 255, 255, 0.92);
  stroke: rgba(16, 35, 31, 0.14);
  stroke-width: 2;
  opacity: 0;
  transform-origin: center;
}

.hero-node {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  padding: 10px 14px;
  background: rgba(10, 34, 29, 0.46);
  box-shadow: 0 18px 40px rgba(8, 30, 26, 0.24);
  color: rgba(255, 255, 255, 0.94);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
  backdrop-filter: blur(8px);
}

.hero-node-conversation {
  left: 0;
  top: 218px;
}

.hero-node-circle {
  left: 176px;
  top: 124px;
}

.hero-node-plan {
  right: 78px;
  top: 124px;
}

.hero-node-friendship {
  right: 0;
  top: 238px;
}

.button[data-arrow],
.button-muted[data-arrow] {
  position: relative;
  padding-right: 46px;
}

.button[data-arrow]::after,
.button-muted[data-arrow]::after {
  content: "\2192";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  transition: transform var(--motion-duration-fast) var(--motion-ease), opacity var(--motion-duration-fast) var(--motion-ease);
}

.utility-panel-settle {
  animation: utility-settle 520ms var(--motion-ease) both;
}

.utility-panel-handoff {
  position: relative;
}

.handoff-pulse {
  display: inline-flex;
  width: 14px;
  height: 14px;
  margin-top: 18px;
  border-radius: 999px;
  background: rgba(31, 107, 87, 0.18);
  box-shadow: 0 0 0 0 rgba(31, 107, 87, 0.22);
  animation: handoff-pulse 1.5s ease-out infinite;
}

.utility-panel-profile .actions {
  margin-top: 26px;
}

@media (hover: hover) {
  .feature,
  .story-card,
  .step-item,
  .media-image {
    transition:
      transform var(--motion-duration-fast) var(--motion-ease),
      box-shadow var(--motion-duration-fast) var(--motion-ease),
      border-color var(--motion-duration-fast) var(--motion-ease);
  }

  .feature:hover,
  .story-card:hover,
  .step-item:hover,
  .media-image:hover {
    transform: translateY(-4px);
    box-shadow: var(--motion-shadow-soft);
  }

  .feature:hover,
  .story-card:hover,
  .step-item:hover {
    border-color: var(--motion-border-warm);
  }

  .button[data-arrow]:hover::after,
  .button-muted[data-arrow]:hover::after {
    transform: translate(3px, -50%);
  }
}

.button[data-arrow]:focus-visible,
.button-muted[data-arrow]:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 3px;
}

.motion-ready [data-motion] {
  opacity: 0;
  transform: translateY(var(--motion-distance));
  transition:
    opacity var(--motion-duration) var(--motion-ease),
    transform var(--motion-duration) var(--motion-ease);
  transition-delay: var(--motion-delay, 0ms);
  will-change: opacity, transform;
}

.motion-ready [data-motion].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.motion-ready .hero-visual-path {
  animation: line-draw 1.15s 160ms var(--motion-ease) forwards;
}

.motion-ready .hero-visual-path-secondary {
  animation-duration: 1.3s;
  animation-delay: 280ms;
}

.motion-ready .hero-visual-dot {
  animation: hero-dot-in 520ms var(--motion-ease) forwards;
}

.motion-ready .hero-visual-dot-one {
  animation-delay: 360ms;
}

.motion-ready .hero-visual-dot-two {
  animation-delay: 520ms;
}

.motion-ready .hero-visual-dot-three {
  animation-delay: 680ms;
}

.motion-ready .hero-visual-dot-four {
  animation-delay: 840ms;
}

@keyframes line-draw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes hero-dot-in {
  from {
    opacity: 0;
    transform: scale(0.72);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes utility-settle {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes handoff-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(31, 107, 87, 0.22);
    opacity: 0.76;
  }

  65% {
    box-shadow: 0 0 0 12px rgba(31, 107, 87, 0);
    opacity: 1;
  }

  100% {
    box-shadow: 0 0 0 0 rgba(31, 107, 87, 0);
    opacity: 0.82;
  }
}

@media (max-width: 1080px) {
  .hero-visual {
    width: min(44vw, 420px);
    min-width: 240px;
    bottom: 56px;
  }

  .hero-node {
    font-size: 13px;
    padding: 8px 12px;
  }
}

@media (max-width: 760px) {
  .hero-visual {
    right: 20px;
    bottom: 148px;
    width: min(72vw, 320px);
    min-width: 0;
  }

  .hero-node-circle {
    left: 112px;
    top: 116px;
  }

  .hero-node-plan {
    right: 30px;
    top: 110px;
  }

  .hero-node-conversation,
  .hero-node-friendship {
    font-size: 12px;
  }

  .hero-node-friendship {
    top: 226px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .motion-ready [data-motion] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .hero-visual-path,
  .hero-visual-dot,
  .utility-panel-settle,
  .handoff-pulse {
    animation: none !important;
  }

  .hero-visual-path,
  .hero-visual-path-secondary {
    stroke-dashoffset: 0;
  }

  .hero-visual-dot {
    opacity: 1;
    transform: none;
  }
}
