/* Mobile-only refinements for the homepage hero and the two case galleries. */
@media (max-width: 980px) {
  .home-page .mobile-hero {
    isolation: isolate;
    background: #101418;
    color: #fff;
  }

  .home-page .mobile-hero__copy {
    padding: 32px 20px;
  }

  .home-page .mobile-hero__visual {
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    background: #101418;
    transform: none;
    container-type: size;
    pointer-events: none;
  }

  /* Crop the photo region of the existing FV asset, excluding its baked UI.
     Source: 1672 x 941; photo-only region: x1060, y98, 612 x 734. */
  .home-page .mobile-hero__visual img {
    top: 0;
    right: auto;
    left: 50%;
    width: max(273.203cqw, 227.793cqh);
    max-width: none;
    height: auto;
    transform: translate(-81.6986%, -10.4145%);
  }

  .home-page .mobile-hero__visual::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
      linear-gradient(0deg, rgba(12, 16, 20, .82), transparent 75%),
      linear-gradient(90deg, rgba(12, 16, 20, .84), rgba(12, 16, 20, .64) 55%, rgba(12, 16, 20, .38));
  }

  .home-page .mobile-hero .eyebrow.black {
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, .45);
    background: rgba(12, 16, 20, .5);
    line-height: 1.5;
  }

  .home-page .mobile-hero h1 {
    color: #fff;
    font-size: clamp(2.5rem, 13vw, 4.5rem);
    line-height: 1.1;
    letter-spacing: -.06em;
  }

  .home-page .mobile-hero .lead {
    margin: 20px 0 16px;
    color: #fff;
    font-size: 1.0625rem;
    line-height: 1.65;
  }

  .home-page .mobile-hero .quick-points {
    gap: 8px 12px;
    margin-bottom: 18px;
    color: #fff;
  }

  .home-page .mobile-hero .button {
    min-height: 56px;
    padding-block: 13px;
    margin-top: 10px;
  }

  .home-page .mobile-hero .button.outline {
    border-color: #fff;
    background: #fff;
    color: var(--ink);
  }

  .home-page .mobile-hero .button.outline:hover {
    background: #e8edf2;
    border-color: #e8edf2;
  }

  .home-page .mobile-hero .button:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 4px;
  }
}

@media (max-width: 700px) {
  #home-case-list {
    grid-auto-columns: minmax(0, calc(100% - 28px));
    gap: 14px;
  }

  :is(#home-case-list, #all-case-list) > article {
    position: relative;
  }

  :is(#home-case-list, #all-case-list) .case-card-image img {
    height: clamp(100px, 30vw, 128px);
    aspect-ratio: auto;
    object-fit: cover;
  }

  :is(#home-case-list, #all-case-list) .case-card-body {
    gap: 12px;
    min-width: 0;
    padding: 16px;
  }

  :is(#home-case-list, #all-case-list) .case-tags {
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    gap: 6px;
  }

  :is(#home-case-list, #all-case-list) .case-tags span {
    padding: 4px 9px;
    font-size: .875rem;
    line-height: 1.5;
  }

  :is(#home-case-list, #all-case-list) h3 {
    font-size: 1.125rem;
    line-height: 1.5;
    letter-spacing: -.02em;
    overflow-wrap: anywhere;
  }

  :is(#home-case-list, #all-case-list) .case-card-body > p {
    font-size: 1rem;
    line-height: 1.65;
    overflow-wrap: anywhere;
  }

  :is(#home-case-list, #all-case-list) dl {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: auto 0 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    overflow: visible;
  }

  :is(#home-case-list, #all-case-list) dl > div {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    min-width: 0;
    padding: 8px 10px;
    border: 0;
    border-radius: 4px;
    background: var(--warm);
  }

  :is(#home-case-list, #all-case-list) dl > div:first-child {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 0 0;
    border-top: 1px solid var(--line);
    border-radius: 0;
    background: transparent;
  }

  :is(#home-case-list, #all-case-list) dl > div:last-child {
    padding-bottom: 8px;
  }

  :is(#home-case-list, #all-case-list) dt {
    display: block;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--gray);
    font-size: .875rem;
    font-weight: 500;
    line-height: 1.5;
    text-align: left;
  }

  :is(#home-case-list, #all-case-list) dd,
  :is(#home-case-list, #all-case-list) dl > div:last-child dd {
    display: block;
    min-height: 0;
    margin: 0;
    padding: 0;
    color: var(--ink);
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.5;
    text-align: left;
    overflow-wrap: anywhere;
  }

  :is(#home-case-list, #all-case-list) dl > div:first-child dd {
    color: var(--orange-deep);
    font-size: 1.5rem;
    text-align: right;
  }
}
