/* Reference sequence: pinned words, independent images, then supporting copy.
   The original flowing collage remains the fallback and reduced-motion layout. */
.community{padding-inline:0}
.community .collage{max-width:none}
.community .collage h2{left:24%;width:52%;font-size:clamp(32px,5.1vw,100px);font-weight:700;line-height:1;letter-spacing:-.035em}
.community .collage h2 span{white-space:nowrap}
.community .collage h2{z-index:1;pointer-events:none}
.glass-copy{display:none}
.community .collage-top{left:28%;top:0;width:20%;height:17%}
.community .collage-left{width:24%;top:23%;height:36%}
.community .collage-right{right:-2%;width:23%;top:20%;height:36%}
.community .collage-bottom{left:32%;width:42%;top:70%;height:25%}
@media(max-width:760px){.community .collage h2{left:2%;top:39%;width:96%;font-size:clamp(28px,8vw,60px)}.community .collage-left{width:30%;height:20%;top:17%}.community .collage-right{width:30%;height:20%;top:18%}}
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .community {
      height: 260svh;
      padding-block: 0;
      view-timeline: --community-sequence block;
      view-timeline-inset: 0;
    }
    .community-stage {
      position: sticky;
      top: 0;
      height: 100svh;
      overflow: clip;
      isolation: isolate;
      container-type:inline-size;
    }
    .community .collage { height: 100%; min-height: 0; }
    .community .collage h2 {
      left: 24%; top: 43%; width: 52%;
      font-size: clamp(36px, min(5.1vw, 8.5svh), 100px);
      z-index: 1;
    }
    .community .collage-image {
      z-index: 2;
      animation: community-float linear both;
      animation-timeline: --community-sequence;
      animation-range: contain 0% contain 100%;
    }
    .community .collage-image img {
      animation: none;
      translate: none;
      scale: 1;
    }
    .community .collage-top {
      left: 28%; top: 2%; width: 20%; height: 22%;
      --travel: -82svh;
    }
    .community .collage-left {
      left: 0; top: 27%; width: 24%; height: 46%;
      --travel: -110svh;
    }
    .community .collage-right {
      right: -2%; top: 21%; width: 23%; height: 44%;
      --travel: -100svh;
    }
    .community .collage-bottom {
      left: 32%; top: 82%; width: 42%; height: 35%;
      --travel: -138svh;
    }
    /* A counter-moving text copy is clipped to the photo. Only overlapping
       letters blend with the photo; the surrounding headline keeps its color. */
    .glass-copy{
      display:block;position:absolute;left:-8cqw;top:-39svh;width:52cqw;
      color:#fff;font-size:clamp(36px,min(5.1vw,8.5svh),100px);font-weight:700;
      line-height:1;letter-spacing:-.035em;text-align:center;white-space:nowrap;
      pointer-events:none;mix-blend-mode:difference;
      animation:glass-counter linear both;animation-timeline:--community-sequence;
      animation-range:contain 0% contain 100%;
    }
    .glass-copy span{display:block}
    @keyframes glass-counter{from{translate:0 0}to{translate:0 calc(-1 * var(--travel))}}
    .community .community-copy {
      position: absolute;
      top: 65%; left: 50%; width: min(42%, 610px);
      margin: 0;
      transform: translateX(-50%);
      font-size: clamp(17px, 1.6vw, 27px);
      z-index: 1;
      animation: community-copy-in linear both;
      animation-timeline: --community-sequence;
      animation-range: contain 0% contain 100%;
    }
    @keyframes community-float {
      from { translate: 0 0; }
      to { translate: 0 var(--travel); }
    }
    @keyframes community-copy-in {
      0%, 28% { opacity: 0; translate: 0 18px; }
      60%, 100% { opacity: 1; translate: 0 0; }
    }
    @media (max-width: 760px) {
      .community { height: 210svh; }
      .community .collage h2 { left: 2%; top: 43%; width: 96%; font-size: clamp(28px, 8vw, 60px); }
      .community .collage-top { left: 38%; top: 6%; width: 25%; height: 13%; --travel: -65svh; }
      .community .collage-left { top: 24%; width: 32%; height: 17%; --travel: -90svh; }
      .community .collage-right { right:0;top: 21%; width: 32%; height: 17%; --travel: -82svh; }
      .community .collage-bottom { left: 28%; top: 73%; width: 44%; height: 20%; --travel: -115svh; }
      .glass-copy{left:-26cqw;top:-30svh;width:96cqw;font-size:clamp(28px,8vw,60px)}
      .community .community-copy { top: 65%; width: 90%; max-width: 340px; font-size: 18px; line-height: 1.3; }
    }
    @media (max-height: 500px) and (min-width: 761px) {
      .community .collage h2 { top: 34%; font-size: 32px; }
      .glass-copy{top:-48svh;font-size:32px}
      .community .community-copy { font-size: 14px; top: 65%; }
    }
  }
}
