/* Performance Initiatives — homepage mobile polish.
   Scoped to phone widths so the established desktop composition stays intact. */
@media (max-width: 760px) {
  /* Allow the entire team to read in the first frame without excessive crop. */
  .hero {
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
  }

  .hero-media {
    order: -1;
    position: relative;
    inset: auto;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    flex: none;
    overflow: hidden;
    background: var(--ink);
  }

  .hero-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 61% 44%;
  }

  /* Bridge the photograph and the ink panel without masking athletes. */
  .hero-media::before {
    content: "";
    position: absolute;
    inset: auto 0 0;
    z-index: 1;
    height: 15%;
    background: linear-gradient(to bottom, transparent, rgb(21 23 27 / 42%));
    pointer-events: none;
  }

  /* Full-height white / blue / gold stripes, gently angled on the open
     left edge of the photo. The entire group remains in-frame on 320–760px. */
  .hero-media::after {
    content: "";
    position: absolute;
    z-index: 2;
    top: 0;
    bottom: 0;
    left: clamp(26px, 7vw, 46px);
    width: 52px;
    height: auto;
    transform: skewX(-10deg);
    transform-origin: center center;
    background: linear-gradient(
      90deg,
      #fff 0 7px,
      transparent 7px 18px,
      var(--performance-blue) 18px 25px,
      transparent 25px 36px,
      var(--mission-gold) 36px 43px,
      transparent 43px 100%
    );
    filter: drop-shadow(0 0 1px rgb(0 0 0 / 28%));
    pointer-events: none;
  }

  .hero-copy {
    position: relative;
    z-index: 2;
    width: 100%;
    flex: none;
    clip-path: none;
  }

  .hero-copy__inner {
    box-sizing: border-box;
    width: 100%;
    max-width: 540px;
    margin: 0 auto;
    padding: 1.5rem 1.15rem 1.9rem;
  }

  .hero .eyebrow {
    max-width: 100%;
    margin: 0 0 .65rem;
    font-size: clamp(.8rem, 3.1vw, .93rem);
    line-height: 1.18;
    letter-spacing: .055em;
  }

  .hero h1 {
    max-width: 18ch;
    margin: 0;
    font-size: clamp(2.4rem, 10.3vw, 3.45rem);
    font-weight: 900;
    line-height: .96;
    letter-spacing: -.008em;
    text-wrap: balance;
    overflow-wrap: normal;
  }

  .hero-summary {
    max-width: 47ch;
    margin: 1rem 0 0;
    font-size: clamp(.91rem, 3.7vw, 1rem);
    line-height: 1.47;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .65rem;
    margin-top: 1.25rem;
  }

  .hero-actions .action-button {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    min-height: 48px;
    padding: .65rem .5rem;
    font-size: .95rem;
    line-height: 1.1;
    text-align: center;
  }

  /* Keep the four program pillars readable without four tall rows. */
  .value-strip__inner {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    padding: .75rem .8rem;
  }

  .value-item,
  .value-item:nth-child(2) {
    min-width: 0;
    padding: .7rem .75rem;
    border: 0;
    border-bottom: 1px solid rgb(21 23 27 / 28%);
  }

  .value-item:nth-child(odd) {
    border-right: 1px solid rgb(21 23 27 / 28%);
  }

  .value-item:nth-last-child(-n+2) {
    border-bottom: 0;
  }

  .value-item h2 {
    font-size: .94rem;
    line-height: 1.12;
    letter-spacing: .025em;
  }

  .value-item p {
    margin-top: .2rem;
    font-size: .79rem;
    line-height: 1.28;
  }

  /* Make the rest of the landing page faster to scan on narrow phones. */
  .pillars.section-pad {
    padding: 2.75rem 1.15rem;
  }

  .pillars__grid {
    gap: 1.5rem;
  }

  .pillar,
  .pillar:first-child,
  .pillar:nth-child(3) {
    padding-bottom: 1.5rem;
  }

  .pillar h3 {
    font-size: clamp(1.8rem, 7vw, 2.25rem);
  }

  .pillar p {
    margin-top: .6rem;
    font-size: .96rem;
  }

  .home-row {
    border-top-width: .75rem;
  }

  .home-marquee {
    min-height: 156px;
    padding: 1.55rem 1.15rem 1.7rem;
  }

  .home-marquee h2 {
    font-size: clamp(2.55rem, 12.5vw, 4rem);
    line-height: .85;
  }

  .program-band--youth .program-band__intro {
    padding: 2.2rem 1.15rem;
  }

  /* Preserve the entire approved photograph rather than cutting off
     faces and torsos in a fixed-height, cover-cropped strip. */
  .program-band--youth .program-card img {
    display: block;
    width: 100%;
    height: auto;
    max-height: none;
    aspect-ratio: auto;
    object-fit: contain;
    object-position: center;
  }

  /* The homepage video should also retain its full 16:9 composition. */
  .home-story-section .story-card__video {
    display: block;
    width: 100%;
    min-height: 0;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: contain;
  }

  .program-band--youth .program-card__content {
    min-height: 0;
    padding: 1.5rem 1.15rem;
  }

  .home-story-section,
  .home-events,
  .community-support-row .home-events {
    padding: 2.55rem 1.15rem;
  }
}

@media (max-width: 359px) {
  .hero-copy__inner {
    padding-inline: 1rem;
  }

  .hero h1 {
    font-size: clamp(2.3rem, 10vw, 2.6rem);
  }

  .hero-actions .action-button {
    font-size: .86rem;
    padding-inline: .25rem;
  }

  .value-strip__inner {
    padding-inline: .45rem;
  }

  .value-item,
  .value-item:nth-child(2) {
    padding-inline: .55rem;
  }

  .value-item h2 {
    font-size: .83rem;
  }
}
