/* Visual QA corrections after desktop, tablet and mobile review. */
html,
body {
  overflow-x: clip;
}

.mobile-menu {
  display: none;
}

.hero-layout {
  isolation: isolate;
}

.hero-copy {
  min-width: 0;
}

.ribbon-stage {
  position: absolute;
  grid-area: 1 / 1 / 2 / -1;
  inset: -80px -320px -80px -180px;
  width: auto;
  height: auto;
  min-height: 0;
  overflow: visible;
  z-index: 4;
  pointer-events: none;
}

.ribbon-stage canvas {
  pointer-events: none;
}

.ribbon-label {
  right: 6.5%;
  bottom: 13%;
  z-index: 5;
}

.hero-copy,
.hero-footer {
  position: relative;
  z-index: 3;
}

.case-card__body {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .92) 18%);
}

/* The portfolio is a distinct gallery chapter, not another neutral content block. */
.work {
  position: relative;
  overflow: hidden;
  color: var(--paper);
  background:
    radial-gradient(circle at 82% 12%, rgba(36, 85, 235, .2), transparent 30%),
    var(--ink);
}

.work::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .2;
  background-image: linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px);
  background-size: 100% 88px;
  mask-image: linear-gradient(to bottom, #000, transparent 54%);
}

.work > * {
  position: relative;
  z-index: 1;
}

.work .section-head {
  align-items: end;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, .22);
}

.work .section-head h2 {
  color: var(--paper);
}

.work .section-head > p,
.work .case-footnote {
  color: #b8c0b7;
}

.work .eyebrow {
  margin: 0;
  color: #9db4ff;
}

.work-kicker {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 20px;
}

.work-kicker span {
  padding: 7px 10px;
  border: 1px solid rgba(157, 180, 255, .45);
  color: #c9d5ff;
  font: 600 10px/1 Onest, sans-serif;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.work .case-grid {
  gap: 18px;
}

.work .case-card {
  border-color: rgba(255, 255, 255, .16);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .16);
}

.work .case-card:not(.case-card--featured) {
  color: var(--ink);
}

.case-card__index {
  position: absolute;
  top: 54px;
  right: 18px;
  z-index: 2;
  color: rgba(255, 255, 255, .3);
  font: 600 58px/.9 Onest, sans-serif;
  letter-spacing: -.07em;
}

.case-card--featured .case-card__index {
  top: 62px;
  right: 27px;
  font-size: 84px;
}

.work .case-footnote {
  margin-top: 38px;
  padding-top: 27px;
  border-color: rgba(255, 255, 255, .2);
}

.work .case-footnote span {
  color: var(--paper);
}

.work + .formats {
  padding-top: 130px;
}

.case-card--featured .case-card__body {
  background: linear-gradient(180deg, rgba(23, 32, 25, 0), rgba(23, 32, 25, .94) 28%);
}

@media (hover: hover) and (pointer: fine) {
  .case-card:hover .case-card__media img {
    transform: scale(1.035);
  }
}

@media (max-width: 900px) and (min-width: 761px) {
  .hero-layout {
    grid-template-columns: minmax(0, 1fr) minmax(330px, .9fr);
  }

  .hero h1 {
    font-size: clamp(50px, 6.8vw, 68px);
  }
}

@media (max-width: 1100px) and (min-width: 761px) {
  .ribbon-stage {
    left: -140px;
    right: -180px;
  }
}

@media (max-width: 760px) {
  .mobile-menu {
    display: block;
  }

  .hero-layout {
    width: 100%;
  }

  .hero-copy {
    width: 100%;
    min-width: 0;
  }

  .hero h1,
  .hero-offer,
  .hero-actions,
  .proof-list {
    width: 100%;
    min-width: 0;
  }

  .ribbon-stage {
    position: relative;
    inset: auto;
    width: calc(100vw + 240px);
    max-width: none;
    height: 340px;
    min-height: 340px;
    margin: -8px calc(50% - 50vw - 120px) 0;
  }

  .ribbon-label {
    right: 10%;
    bottom: 15%;
  }

  .case-card,
  .case-card--featured {
    min-height: 480px;
  }

  .case-card--featured {
    min-height: 540px;
  }

  .case-card__media {
    inset: 0 0 44%;
  }

  .case-card__body,
  .case-card--featured .case-card__body {
    padding: 24px 22px;
  }

  .work {
    padding-top: 88px;
    padding-bottom: 82px;
  }

  .work::before {
    background-size: 100% 72px;
  }

  .work .section-head {
    padding-top: 20px;
  }

  .work-kicker {
    justify-content: space-between;
    margin-bottom: 24px;
  }

  .case-card__index,
  .case-card--featured .case-card__index {
    top: 56px;
    right: 19px;
    font-size: 58px;
  }

  .work + .formats {
    padding-top: 86px;
  }

  .format-card {
    min-height: 265px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ribbon-stage {
    transform: none !important;
  }
}
