/* Shared layout: content width, grids and how they collapse on tablets and phones, section rhythm, swipe-to-scroll diagrams. */

@layer components {
  .rv-swipe {
    display: none;
  }
  @media (max-width:1279px) {
    .rv-stack > * {
      min-width: 0;
    }
  }
  @media (max-width:760px) {
    #sec-cyber .rv-stack > :first-child {
      order: 2;
    }
    .rv-x {
      overflow-x: auto;
      -webkit-overflow-scrolling: touch;
    }
    .rv-swipe {
      display: block;
      margin-top: 12px;
      font-family: var(--font-mono);
      font-size: 10.5px;
      letter-spacing: .12em;
      text-transform: uppercase;
      opacity: .6;
    }
  }
}

/* Breakpoint and state overrides: these win over the section styles above. */
@layer overrides {
  @media (max-width:960px) {
    .rv-wrap {
      padding-left: 28px;
      padding-right: 28px;
    }
    .rv-stack {
      grid-template-columns: 1fr;
      gap: 40px;
    }
    .rv h1,
    .rv h2 {
      white-space: normal;
    }
    .rv-g4,
    .rv-g3 {
      grid-template-columns: 1fr 1fr;
    }
  }
  @media (max-width:760px) {
    .rv-wrap {
      padding-left: 20px;
      padding-right: 20px;
    }
    #sec-why,
    #sec-agentic,
    #sec-valuestream,
    #sec-contact,
    .rv-sec {
      padding-top: 56px;
      padding-bottom: 56px;
    }
    #sec-cyber,
    #sec-factory {
      padding-top: 48px;
      padding-bottom: 48px;
    }
    .rv h1 {
      font-size: 32px;
    }
    .rv h2 {
      font-size: 27px;
      line-height: 1.14;
    }
    .rv-cols {
      column-count: 1;
    }
    .rv-g4,
    .rv-g3,
    .rv-g2 {
      grid-template-columns: 1fr;
    }
    .rv-cta {
      white-space: normal;
    }
  }
}
