/* qa-e-rwd-wide — responsive fixes for 1024–1440px (tablet landscape / laptops) */

/* Projects section is pinned (sticky, bottom:0). On short laptop screens the
   heading + card track was taller than the viewport, so the top was clipped.
   Scale heading, gaps and card width against viewport height. */
@media screen and (min-width: 992px) and (max-height: 1000px) {
  .work-sticky {
    padding-top: 2vw;
    padding-bottom: 2vw;
  }
  .work-sticky .h2-style-white {
    font-size: clamp(2.2rem, min(4.6vw, 6.2vh), 4.2rem);
    line-height: 1.12;
  }
  .work-top-layout {
    margin-bottom: 2.2vw;
  }
  .work-card {
    width: clamp(15rem, min(27vw, calc((100vh - 18rem) / 1.6)), 30rem);
  }
  .cta_heading {
    font-size: clamp(4.5rem, min(7.64vw, 11vh), 8.5rem);
  }
}

/* Narrow laptops / tablet landscape: heading no wider than the content column */
@media screen and (min-width: 992px) and (max-width: 1180px) {
  .work-top-layout {
    grid-template-columns: 1.3fr 1fr;
  }
}

/* ---- Hero nav row: glass pill + single-label CTAs (desktop/tablet) ---- */
@media screen and (min-width: 768px) {
  /* Translucent glass pill behind the whole hero nav row. Purely a
     pseudo-element on the pinned ghost row (z-index:-1 => behind the links
     and logo), so it never moves them. Shown only while html.at-hero. */
  .hero-navigation-wrap::before {
    content: "";
    position: absolute;
    z-index: -1;
    pointer-events: none;
    top: calc(clamp(18px, 2.2vw, 32px) - 10px);
    bottom: calc(clamp(18px, 2.2vw, 32px) - 10px);
    left: calc(clamp(24px, 4.6vw, 64px) - 22px);
    right: calc(clamp(24px, 4.6vw, 64px) - 22px);
    border-radius: 999px;
    /* Dark smoked glass: keeps the white links readable where the pill
       crosses the bright yellow diagonal and the pale building. */
    background: linear-gradient(90deg, rgba(12, 12, 14, .42) 0%, rgba(12, 12, 14, .5) 55%, rgba(12, 12, 14, .72) 100%);
    -webkit-backdrop-filter: blur(16px) saturate(120%) brightness(.8);
    backdrop-filter: blur(16px) saturate(120%) brightness(.8);
    border: 1px solid rgba(255, 255, 255, .12);
    box-shadow: 0 8px 30px rgba(0, 0, 0, .25);
    opacity: 0;
    transition: opacity .3s ease;
  }
  html.at-hero .hero-navigation-wrap::before { opacity: 1; }
  html.at-hero .hero-navigation-link,
  html.at-hero .hero-nav-brand-text { text-shadow: 0 1px 2px rgba(0, 0, 0, .55); }
  html.at-hero .hero-navigation-sep { background-color: rgba(255, 255, 255, .55) !important; }

  /* Text-roll hover disabled on the two sidebar CTAs: the GSAP roll left a
     clipped second "ABOUT US" peeking in the button. Only the original label
     is ever shown; hover feedback is the background/lift instead. */
  .nav-button .clone-p,
  .nav-button-secondary .clone-p { display: none !important; }
  .nav-button .nav-button-mask .word,
  .nav-button-secondary .nav-button-mask .word { transform: none !important; }
}
@media screen and (min-width: 768px) and (max-width: 991px) {
  .hero-navigation-wrap::before {
    border-radius: 18px;
    left: 8px;
    right: 8px;
    top: calc(clamp(18px, 2.2vw, 32px) - 6px);
    bottom: calc(clamp(18px, 2.2vw, 32px) - 6px);
  }
}
