@media (min-width: 981px) and (max-width: 1100px) {
  .nav-shell { gap: 1rem; }
  .nav-links { gap: 0; }
}

@media (max-width: 980px) {
  .hero h1 {
    font-size: clamp(25px, 5.9vw, 34px);
  }

  .site-header {
    top: 14px;
    width: min(calc(100% - 24px), 720px);
    max-width: none;
  }

  .nav-shell {
    min-height: 62px;
    padding: .5rem 1rem;
  }

  .brand img {
    width: 112px;
  }

  .nav-toggle {
    position: relative;
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    display: grid;
    max-height: 0;
    padding: 0 12px;
    border: 1px solid transparent;
    border-radius: 20px;
    background: #080808e6;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    transition: max-height 220ms ease, padding 220ms ease, opacity 180ms ease, border-color 180ms ease;
  }

  .nav-links.is-open {
    max-height: 380px;
    padding: 12px;
    opacity: 1;
    border-color: var(--line);
    pointer-events: auto;
  }

  .nav-links a {
    padding: 13px 14px;
  }

  .nav-links .nav-cta {
    margin: 5px 0 0;
    text-align: center;
  }

  .side-pattern {
    width: 26vw;
    opacity: 0.38;
  }

  .side-pattern.left {
    left: 0;
  }

  .side-pattern.right {
    right: 0;
  }

  .section {
    padding: 82px 20px;
  }

  .core-system {
    display: grid;
    min-height: auto;
    padding: 42px 22px;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

  .core-system::before,
  .core-connectors {
    display: none;
  }

  .core-center {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    grid-column: 1 / -1;
    transform: none;
    order: -1;
  }

  .core-node {
    position: relative;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    width: 100%;
    animation: none;
  }

  .feature-card {
    padding: 38px;
    grid-template-columns: 1fr 0.8fr;
  }

  .mini-grid,
  .changes-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .bento-grid {
    grid-template-columns: 1fr;
  }

  .bento-card.large {
    min-height: 540px;
  }
}

@media (max-width: 680px) {
  .hero {
    min-height: 860px;
    padding: 112px 18px 70px;
  }

  .hero-video,
  .hero-video-poster {
    object-position: 50% 50%;
  }

  .hero-content {
    width: 100%;
  }

  .hero-kicker {
    margin-bottom: 22px;
  }

  .hero-logo {
    width: min(434px, 100%);
  }

  .hero-logo .hero-logo-desktop {
    display: none;
  }

  .hero-logo .hero-logo-mobile {
    display: block;
  }

  .hero-logo .hero-logo-lettermark {
    width: 59%;
    margin: 0 auto clamp(20px, 6vw, 40px);
  }

  .hero h1 {
    margin-top: 24px;
  }

  .hero-lead {
    max-width: 390px;
  }

  .hero-actions {
    width: 100%;
  }

  .button {
    border-color: rgba(107, 208, 255, 0.8);
    border-radius: 1.5rem;
    background: rgba(47, 128, 237, 0.2);
  }

  .side-pattern {
    width: 32vw;
    opacity: 0.29;
  }

  .side-pattern.left {
    left: 0;
  }

  .side-pattern.right {
    right: 0;
  }

  .section {
    padding: 72px 16px;
  }

  .section-heading,
  .section-heading.center {
    margin-bottom: 32px;
    align-items: flex-start;
    flex-direction: column;
    text-align: left;
  }

  .section-heading h2 {
    font-size: clamp(34px, 12vw, 50px);
  }

  .rail-actions {
    align-self: flex-end;
  }

  .core-system {
    padding: 28px 14px 14px;
    border-radius: 30px;
    grid-template-columns: 1fr;
  }

  .core-center,
  .core-node {
    grid-column: 1;
  }

  .core-center {
    padding-bottom: 15px;
  }

  .core-node {
    min-height: 106px;
    padding: 18px;
  }

  .tech-card {
    min-height: 370px;
  }

  .feature-card {
    min-height: auto;
    padding: 28px 20px;
    border-radius: 30px;
    grid-template-columns: 1fr;
  }

  .feature-visual {
    min-height: 300px;
    grid-row: 1;
  }

  .feature-visual::before {
    width: 250px;
    height: 250px;
  }

  .feature-copy h3 {
    font-size: 38px;
  }

  .mini-grid,
  .changes-grid {
    grid-template-columns: 1fr;
  }

  .mini-card {
    min-height: 170px;
  }

  .bento-card {
    padding: 26px 20px;
    border-radius: 28px;
  }

  .bento-card.large {
    min-height: 480px;
  }

  .bento-small {
    min-height: 230px;
    grid-template-columns: 1fr 110px;
  }

  .bento-small img {
    width: 110px;
  }

  .cta-panel {
    min-height: 310px;
    padding: 36px 20px;
    border-radius: 30px;
  }

  .footer {
    gap: 12px;
    padding-bottom: 28px;
    flex-direction: column;
    text-align: center;
  }
}

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

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

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

.mobile-hero-circuit, .mobile-promo-circuit { display: none; }
@media (max-width: 680px) {
  .hero > .side-pattern, .promo-card .promo-circuit { display: none; }
  .mobile-hero-circuit, .mobile-promo-circuit {
    display: block;
    position: absolute;
    left: 0;
    width: 100%;
    pointer-events: none;
    color: #257bb6;
    overflow: hidden;
  }
  .mobile-hero-circuit {
    top: var(--mobile-gear-top);
    height: var(--mobile-gear-height);
    z-index: -1;
  }
  .mobile-promo-circuit {
    height: 80px;
    color: var(--card-accent);
  }
  .mobile-promo-circuit.top { top: 0; }
  .mobile-promo-circuit.bottom { bottom: 0; }
  .mobile-hero-circuit .pattern-lines, .mobile-promo-circuit .pattern-lines { opacity: .5; }
  .mobile-hero-circuit .pattern-signal, .mobile-promo-circuit .pattern-signal {
    stroke: currentColor;
    filter: drop-shadow(0 0 3px currentColor);
  }
  .mobile-hero-circuit .pattern-pulse, .mobile-promo-circuit .pattern-pulse { fill: currentColor; }
}
.hero.is-quiet > .mobile-hero-circuit * { animation-play-state: paused !important; }

@media (min-width: 681px) {
  .mobile-hero-circuit *, .mobile-promo-circuit * { animation-play-state: paused !important; }
}
