/* Keep the opening scene in motion without holding the next section back. */
.hero-v2 { height: 120svh; min-height: 850px; }
.client-track { animation-duration: 56s; }

@media (max-height: 700px) and (min-width: 701px) {
  .hero-v2 { height: calc(100svh + 90px); min-height: 0; }
}

@media (max-width: 700px) {
  .hero-v2 { height: auto; min-height: 0; }
  .hero-v2__stage { position: relative; height: max(100svh, 840px); min-height: 0; }

  .technology { padding-bottom: 42px; }
  .tech-layout { display: block; background: inherit; }
  .tech-visual {
    position: sticky;
    top: calc(var(--header) + 8px);
    z-index: 3;
    height: clamp(300px, 44svh, 370px);
    min-height: 0;
    max-height: 370px;
    margin-inline: -22px;
    padding: 0;
    background: inherit;
    box-shadow: 0 12px 22px rgb(0 0 0 / 5%);
  }
  #tech-canvas, .tech-fallback {
    inset: 0 0 auto;
    width: 100%;
    height: calc(100% - 72px);
    object-fit: contain;
  }
  .tech-callouts {
    position: absolute;
    inset: auto 15px 9px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    height: auto;
    z-index: 4;
  }
  .tech-callouts span,
  .tech-visual[data-step='3'] .tech-callouts span {
    position: relative;
    inset: auto;
    display: grid;
    place-items: center;
    min-height: 54px;
    padding: 7px 9px;
    border-radius: 12px;
    font: 600 12px/1.3 Inter, sans-serif;
    text-align: center;
    opacity: 1;
    transform: none;
  }
  .diagram-note { display: none; }
  .tech-steps {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 0;
    padding: 18px 0 0;
  }
  .tech-step, .tech-step:last-child {
    display: block;
    min-height: 0;
    padding: 19px 20px 21px;
    border: 1px solid rgb(255 255 255 / 78%);
    border-radius: 18px;
    background: rgb(255 255 255 / 70%);
    transition: border-color .35s, background-color .35s;
  }
  .tech-step.is-active {
    border-color: var(--blue);
    background: rgb(255 255 255 / 90%);
  }
  .tech-step .step-number {
    float: right;
    margin: 0 0 3px 12px;
    font-size: 36px;
    line-height: 1;
  }
  .tech-step .eyebrow { margin-bottom: 9px; font-size: 11px; }
  .tech-step h3 { max-width: none; font-size: clamp(28px, 7.4vw, 37px); line-height: 1.08; }
  .tech-step p { max-width: none; margin-top: 11px; font-size: 15px; line-height: 1.5; }
  .tech-step p + p { font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-v2 { height: auto; min-height: 0; }
  .hero-v2__stage { position: relative; }
  .tech-visual { position: relative; top: auto; }
  .client-track { animation: none; }
  .tech-step { transition: none; }
}
[data-motion='reduce'] .hero-v2 { height: auto; min-height: 0; }
[data-motion='reduce'] .hero-v2__stage { position: relative; }
[data-motion='reduce'] .tech-visual { position: relative; top: auto; }
[data-motion='reduce'] .client-track { animation: none; }
