/* Ozeeh Visual — desktop composition after the cover.
   The cover/header have their own unchanged width. Widen the actual content,
   not by hiding overflow or stretching the background. */
@media (min-width: 1200px) {
  :root { --section-content-width: 1700px; }
  main > .section-wrap,
  .site-footer {
    padding-inline: max(clamp(34px, 3vw, 60px), calc((100% - var(--section-content-width)) / 2));
  }

  /* The photographic column now has the weight of the text column. */
  .about-layout {
    grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr);
    gap: clamp(58px, 4.3vw, 86px);
    align-items: center;
  }
  .about-portrait {
    max-width: 520px;
    justify-self: center;
  }
  .about-content h2 {
    font-size: clamp(54px, 4.3vw, 76px);
    margin-bottom: clamp(22px, 2.1vw, 35px);
  }
  .about .about-copy {
    padding: clamp(30px, 2.35vw, 43px);
    font-size: clamp(15px, 1vw, 18px);
    line-height: 1.82;
  }
  .about .about-copy p + p { margin-top: clamp(15px, 1.4vw, 24px); }
  .about-signature { margin-top: 28px; }
}

/* Intermediate laptops: keep the two-column composition balanced. */
@media (min-width: 901px) and (max-width: 1199px) {
  .about-layout { grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: clamp(25px, 3vw, 40px); }
  .about-portrait { max-width: min(100%, 425px); }
}

/* Desktop: one identical viewport-anchored fade for every reel.
   Earlier versions layered a 4% track mask over per-card edge masks.
   The cards have different sizes/positions, so one category exposed a
   sharply cropped card while another dissolved before the viewport edge.
   A continuous symmetric track mask makes the sides match during scroll,
   dragging and infinite looping. The slot/card widths are also unified. */
@media (min-width: 901px) {
  .work-groups .work-group .reel .reel-track {
    -webkit-mask-image: linear-gradient(to right,
      transparent 0%, rgba(0,0,0,.15) 4%, rgba(0,0,0,.38) 10%,
      rgba(0,0,0,.70) 16%, #000 25%, #000 75%,
      rgba(0,0,0,.70) 84%, rgba(0,0,0,.38) 90%,
      rgba(0,0,0,.15) 96%, transparent 100%);
    mask-image: linear-gradient(to right,
      transparent 0%, rgba(0,0,0,.15) 4%, rgba(0,0,0,.38) 10%,
      rgba(0,0,0,.70) 16%, #000 25%, #000 75%,
      rgba(0,0,0,.70) 84%, rgba(0,0,0,.38) 90%,
      rgba(0,0,0,.15) 96%, transparent 100%);
  }
  /* Drone used to constrain portrait cards to 290px even when other
     categories filled their grid slot. Equalize the cards, not just the mask. */
  .work-groups .work-group .reel-drone .work-card.portrait {
    max-width: none;
  }
  /* Equalize slot width/gap at all desktop sizes, not only on wide monitors. */
  .work-groups .work-group .reel {
    --reel-width: clamp(295px, 20vw, 354px);
    --reel-gap: clamp(20px, 1.5vw, 28px);
  }
  /* The JS can retain edge classes for compatibility, but individual cards
     must never receive another mask on top of the unified track fade. */
  .work-groups .reel .work-card.reel-edge-left,
  .work-groups .reel .work-card.reel-edge-right {
    -webkit-mask-image: none;
    mask-image: none;
  }
}

/* The middle-width layout formerly used a wide Drone track with a narrow
   portrait card. Align it to the same visible spacing as the other reels. */
@media (min-width: 601px) and (max-width: 900px) {
  .work-groups .work-group .reel {
    --reel-width: clamp(240px, 45vw, 300px);
    --reel-gap: 24px;
  }
  .work-groups .work-group .reel-drone .work-card.portrait {
    max-width: none;
  }
}

/* Mobile uses its existing gentle edge mask, but all portrait categories
   occupy equivalent slots so the adjacent-card sliver remains consistent. */
@media (max-width: 600px) {
  .work-groups .work-group .reel {
    --reel-width: min(68vw, 278px);
    --reel-gap: 16px;
  }
  .work-groups .work-group .reel-drone .work-card.portrait {
    max-width: var(--reel-width);
  }
}
