/* v13: the existing layered animations inhabit the page. Preserve each rig's
   coordinate space, including white uniform logos and the HTML tablet overlay. */
.flow .cqf-chapter-one .act-board {
  position:relative; isolation:isolate; display:flex; align-items:center;
  width:100%; max-width:none; min-height:min(51vw,1040px); margin:0; overflow:hidden;
}
.flow .cqf-chapter-one .act-board .person-scene {
  position:absolute; z-index:-1; left:max(0px,calc((100% - 2200px) / 2)); top:50%;
  transform:translateY(-50%); width:min(72%,1536px); height:auto; aspect-ratio:3/2;
  border:0; border-radius:0; box-shadow:none; margin:0;
  mask-image:linear-gradient(90deg,#000 0%,#000 79%,transparent 94%,transparent 100%),linear-gradient(180deg,transparent 0%,#000 6%,#000 88%,transparent 100%);
  mask-composite:intersect;
}
.flow .cqf-chapter-one .act-board .board-detail {
  width:27%; max-width:420px; margin:0 max(var(--page-gutter),calc((100% - 1800px) / 2)) 0 auto;
  position:relative; padding:40px 0;
}
.flow .cqf-chapter-one .act-board .board-detail h3 { font-size:clamp(27px,2.2vw,38px); }
.flow .cqf-chapter-one .act-board .board-photo { max-width:320px; margin-top:32px; }
.flow .cqf-chapter-one .act-board .board-photo img { height:auto; }
.flow .cqf-chapter-one .chapter-close {
  position:relative; isolation:isolate; display:flex; align-items:center;
  width:100%; max-width:none; height:min(66.6667vw,1133.334px); min-height:560px;
  margin-top:90px; padding:0; overflow:hidden;
}
.flow .cqf-chapter-one .chapter-close .person-scene {
  position:absolute; z-index:-1; right:max(0px,calc((100% - 2000px) / 2)); top:50%;
  transform:translateY(-50%); width:min(100%,1700px); height:auto; aspect-ratio:3/2;
  margin:0; border:0; border-radius:0; box-shadow:none;
  mask-image:linear-gradient(90deg,transparent 0%,#000 34%,#000 100%),linear-gradient(180deg,transparent 0%,#000 7%,#000 86%,transparent 100%);
  mask-composite:intersect;
}
.flow .cqf-chapter-one .chapter-close .store-copy {
  width:28%; margin-left:max(var(--page-gutter),calc((100% - 1800px) / 2));
  display:block; padding:0; align-self:center;
}
.flow .cqf-chapter-one .chapter-close .store-proof { font-size:clamp(22px,2.2vw,34px); line-height:1.45; }
.flow .cqf-chapter-one .chapter-close .store-proof strong { font-size:clamp(100px,10vw,170px); }
/* The counter keeps its native aspect ratio. Its two people leave no safe area
   for a headline over their faces, so the copy merges into the scene from above. */
.flow .process { padding-top:64px; }
.flow .process-opening > .section-intro { margin-bottom:30px; position:relative; z-index:2; }
.flow .consultation-reference { width:100%; margin:0; }
.flow .consultation-art {
  width:100vw; max-width:none; margin-left:calc(50% - 50vw); margin-right:calc(50% - 50vw);
  border:0; border-radius:0; box-shadow:none;
  mask-image:linear-gradient(180deg,transparent 0%,#000 6%,#000 88%,transparent 100%);
}
.flow .consultation-art .story-picture,.flow .consultation-art .story-picture img { display:block; width:100%; height:auto; }
.flow .consultation-reference .story-motion-controls { margin-top:-18px; position:relative; z-index:3; }
/* Harbor: typography sits in the empty sky/water; the walker stays unobscured. */
.flow .brand-closing { position:relative; isolation:isolate; padding:0; margin-top:70px; overflow:hidden; }
.flow .brand-closing > .container { width:100%; max-width:none; position:relative; }
.flow .brand-closing .section-intro {
  position:absolute; z-index:2; left:max(var(--page-gutter),calc((100% - 1800px) / 2)); top:18%;
  width:35%; max-width:530px; text-align:left; margin:0;
}
.flow .brand-closing .section-body { margin-left:0; max-width:410px; }
.flow .street-storyboard { width:100%; margin:0; }
.flow .closing-art {
  width:100%; border:0; border-radius:0; box-shadow:none;
  mask-image:linear-gradient(180deg,transparent 0%,#000 5%,#000 90%,transparent 100%);
}
.flow .closing-art::after {
  content:""; position:absolute; inset:0; pointer-events:none; z-index:2;
  background:linear-gradient(90deg,rgba(250,248,240,.94),rgba(250,248,240,.75) 26%,rgba(250,248,240,0) 58%);
}
.flow .street-storyboard .story-motion-controls { position:relative; margin-top:-18px; padding-inline:var(--page-gutter); z-index:3; }
@media (min-width:701px) and (max-width:1099px) {
  .flow .cqf-chapter-one .act-board { min-height:620px; }
  .flow .cqf-chapter-one .act-board .person-scene { width:74%; left:-3%; }
  .flow .cqf-chapter-one .act-board .board-detail { width:28%; }
  .flow .cqf-chapter-one .act-board .board-detail h3 { font-size:25px; }
  .flow .cqf-chapter-one .act-board .board-photo { margin-top:24px; }
  .flow .brand-closing .section-intro { top:13%; width:39%; }
  .flow .brand-closing .section-body { font-size:15px; max-width:290px; }
}
@media (max-width:700px) {
  .flow .cqf-chapter-one .act-board { display:flex; flex-direction:column; min-height:0; padding-top:0; gap:0; }
  .flow .cqf-chapter-one .act-board .person-scene {
    position:relative; left:auto; top:auto; transform:none; width:134%; max-width:none;
    flex:none; align-self:center; z-index:0;
    mask-image:linear-gradient(180deg,transparent 0%,#000 5%,#000 87%,transparent 100%);
  }
  .flow .cqf-chapter-one .act-board .board-detail {
    width:calc(100% - 2 * var(--page-gutter)); max-width:none; margin:-8px auto 0; padding:0; z-index:1;
  }
  .flow .cqf-chapter-one .act-board .board-detail h3 { font-size:28px; }
  .flow .cqf-chapter-one .act-board .board-photo { max-width:none; margin-top:26px; }
  .flow .cqf-chapter-one .chapter-close {
    display:flex; flex-direction:column; align-items:stretch; height:auto; min-height:0; margin-top:64px; padding:0;
  }
  .flow .cqf-chapter-one .chapter-close .store-copy {
    width:calc(100% - 2 * var(--page-gutter)); margin:0 auto; padding:0; order:0; position:relative; z-index:2;
    display:flex; align-items:center; justify-content:space-between;
  }
  .flow .cqf-chapter-one .chapter-close .store-proof { font-size:16px; gap:8px; }
  .flow .cqf-chapter-one .chapter-close .store-proof strong { font-size:64px; }
  .flow .cqf-chapter-one .chapter-close .store-copy > .text-link { margin:0; }
  .flow .cqf-chapter-one .chapter-close .person-scene {
    position:relative; right:auto; top:auto; transform:none; width:140%; max-width:none;
    margin:-6px 0 0 -31%; z-index:0; order:1; flex:none;
    mask-image:linear-gradient(180deg,transparent 0%,#000 8%,#000 86%,transparent 100%);
  }
  .flow .process { padding-top:56px; }
  .flow .process-opening > .section-intro { margin-bottom:20px; }
  .flow .consultation-reference { width:100%; margin-inline:0; }
  .flow .consultation-art { mask-image:linear-gradient(180deg,transparent 0%,#000 7%,#000 88%,transparent 100%); }
  .flow .consultation-reference .story-motion-controls { padding-inline:0; margin-top:-10px; }
  .flow .consultation-reference .quote-summary { margin-inline:0; }
  .flow .brand-closing { margin-top:8px; padding:0; }
  .flow .brand-closing .section-intro {
    position:relative; inset:auto; width:calc(100% - 2 * var(--page-gutter)); max-width:none; margin:0 auto 14px;
  }
  .flow .brand-closing .section-body { max-width:100%; }
  .flow .street-storyboard { width:100%; margin-inline:0; }
  .flow .closing-art::after { display:none; }
  .flow .closing-art { mask-image:linear-gradient(180deg,transparent 0%,#000 8%,#000 92%,transparent 100%); }
  .flow .street-storyboard .story-motion-controls { margin-top:-8px; }
}
/* On ultra-wide screens the capped-resolution stage sits inside the viewport.
   Fade its outer edge too, so the native image never becomes a floating panel. */
@media (min-width:2001px) {
  .flow .cqf-chapter-one .chapter-close .person-scene {
    mask-image:linear-gradient(90deg,transparent 0%,#000 34%,#000 92%,transparent 100%),linear-gradient(180deg,transparent 0%,#000 7%,#000 86%,transparent 100%);
  }
}
@media (min-width:2201px) {
  .flow .cqf-chapter-one .act-board .person-scene {
    mask-image:linear-gradient(90deg,transparent 0%,#000 6%,#000 79%,transparent 94%,transparent 100%),linear-gradient(180deg,transparent 0%,#000 6%,#000 88%,transparent 100%);
  }
}
/* 100vw includes a non-overlay desktop scrollbar. Clip the whole full-bleed
   counter at the section boundary; never resize just one animation layer. */
.flow .process { overflow:hidden; overflow:clip; }
