/* The hero fills tall desktop screens; mobile keeps its compact layout. */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

.hero-layout {
  flex: 1;
}

/* One composed entrance, followed by quiet motion around the SNLNK mark. */
@media (prefers-reduced-motion: no-preference) {
  .site-header {
    animation: header-enter .7s ease-out both;
  }

  .hero-copy {
    animation: copy-enter .95s cubic-bezier(.2, .7, .2, 1) .12s both;
  }

  .hero-art {
    animation: art-enter 1.2s cubic-bezier(.2, .7, .2, 1) .28s both;
  }

  .hero-grid {
    animation: grid-drift 30s linear infinite;
  }

  .art-glow {
    animation: glow-breathe 8s ease-in-out infinite;
  }

  .ring-one {
    animation: orbit-reverse 48s linear infinite;
  }

  .art-ring::after {
    content: '';
    position: absolute;
    top: -4px;
    left: calc(50% - 4px);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #61dfff;
    box-shadow: 0 0 15px #42cfff, 0 0 32px #176bff;
  }

  .ring-two::after {
    width: 5px;
    height: 5px;
    top: calc(50% - 2px);
    left: -3px;
    opacity: .65;
  }

  .art-orbit {
    animation: orbit-float 7s ease-in-out infinite;
    will-change: transform;
  }

  .hero-bottom a span {
    display: inline-block;
    animation: scroll-cue 2.5s ease-in-out infinite;
  }

  .motion-reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .75s ease, transform .75s cubic-bezier(.2, .7, .2, 1);
  }

  .motion-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
  }

  .solution-row:hover .solution-icon svg {
    transform: scale(1.12);
  }

  .solution-icon svg {
    transition: transform .25s ease;
  }

  @keyframes header-enter {
    from { transform: translateY(-12px); }
    to { transform: translateY(0); }
  }

  @keyframes copy-enter {
    from { transform: translateY(20px); }
    to { transform: translateY(0); }
  }

  @keyframes art-enter {
    from { transform: scale(.94); }
    to { transform: scale(1); }
  }

  @keyframes grid-drift {
    to { background-position: 72px 36px; }
  }

  @keyframes glow-breathe {
    50% { opacity: .65; transform: scale(1.06); }
  }

  @keyframes orbit-reverse {
    to { transform: rotate(-360deg); }
  }

  @keyframes orbit-float {
    0%, 100% { transform: translate3d(var(--pointer-x, 0px), var(--pointer-y, 0px), 0); }
    50% { transform: translate3d(var(--pointer-x, 0px), calc(var(--pointer-y, 0px) - 10px), 0); }
  }

  @keyframes scroll-cue {
    50% { transform: translateY(5px); }
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-grid, .art-glow, .art-ring, .art-orbit, .hero-bottom a span,
  .motion-reveal, .solution-icon svg {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
}

:focus-visible {
  outline: 2px solid #57d9f5;
  outline-offset: 4px;
}

@media (min-width: 701px) and (max-width: 900px) {
  .hero-layout {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: space-between;
    min-height: 0;
    padding-top: clamp(100px, 12svh, 140px);
  }

  .hero-copy {
    padding: 28px 0 0;
  }

  .hero h1 {
    font-size: clamp(56px, 7vw, 76px);
  }

  .hero-art {
    width: 100%;
    height: clamp(300px, 42svh, 440px);
  }

  .art-orbit {
    width: min(330px, 45vw);
  }

  .ring-one {
    width: min(380px, 55vw);
  }

  .ring-two {
    width: min(460px, 65vw);
  }
}

@media (max-width: 700px) {
  .hero {
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
  }

  .hero-layout {
    min-height: 0;
    flex: 1;
    justify-content: space-between;
    padding-top: clamp(84px, 12svh, 116px);
  }

  .hero-copy {
    padding-top: clamp(4px, 1svh, 12px);
  }

  .eyebrow {
    margin-bottom: clamp(12px, 2svh, 22px);
  }

  .hero h1 {
    font-size: clamp(38px, min(10.5vw, 7svh), 60px);
    line-height: 1.04;
    margin-bottom: clamp(16px, 2svh, 26px);
  }

  .hero-lead {
    line-height: 1.5;
  }

  .hero-actions {
    margin-top: clamp(18px, 2.8svh, 28px);
    gap: 12px;
  }

  .hero-actions .button {
    padding: 12px 14px;
    gap: 12px;
    font-size: 13px;
  }

  .hero-actions .button-text {
    padding-inline: 0;
  }

  .hero-art {
    height: clamp(210px, min(76vw, 34svh), 340px);
    margin-top: 0;
  }

  .art-orbit {
    width: min(235px, 70vw);
  }

  .ring-one {
    width: min(286px, 84vw);
  }

  .ring-two {
    width: min(350px, 105vw);
  }

  .hero-bottom {
    height: clamp(48px, 7svh, 60px);
  }

  .site-header, .hero-copy, .hero-art, .hero-bottom {
    animation: none !important;
    opacity: 1;
    transform: none;
  }

  .hero-grid {
    animation: none;
  }
}
