/* Mobile chapters use a stable small viewport; the final page uses the live
   viewport so Safari's retracting toolbar never leaves a white footer band. */
.cadence-edition .btn {border-radius:9999px;}
.cadence-edition .closing {
  container-type:inline-size;
  min-height:100svh;
  min-height:100dvh;
  padding-top:max(var(--g-section-space),104px + env(safe-area-inset-top));
  padding-bottom:max(var(--g-lg),env(safe-area-inset-bottom));
}
.cadence-edition .closing-word {
  width:100cqw;
  max-width:none;
  margin-inline:calc(50% - 50cqw);
  aspect-ratio:706.83 / 138.7;
}

@media (max-width:620px) {
  .cadence-edition .closing-word {margin-block:clamp(var(--g-lg),5svh,var(--g-2xl)) var(--g-title);}
  .cadence-edition .capabilities--typographic [data-service="capture"] .cap-word {font-size:clamp(44px,14.5vw,68px);}
  .cadence-edition .capabilities--typographic [data-service="growth"] .cap-word {font-size:clamp(36px,11.8vw,55px);}
}
@media (max-aspect-ratio:1/1) and (prefers-reduced-motion:no-preference) {
  .cadence-edition [data-team-sequence] .team-frame {background:#080c10;}
  .cadence-edition [data-team-sequence] .team-image-window::before {display:none;}
  /* Original is rotated 90deg. A 108% width crop retains all three people;
     fading the source's horizontal ends extends naturally into black. */
  .cadence-edition [data-team-sequence] .team-frame img {
    width:144cqw;height:108cqw;object-fit:fill;object-position:center;
    mask-image:linear-gradient(90deg,transparent,#000 14%,#000 84%,transparent);
    -webkit-mask-image:linear-gradient(90deg,transparent,#000 14%,#000 84%,transparent);
  }
}

/* A viewport-sized closing sheet. Content, rather than a fixed crop, is the
   lower bound on short screens and when the visitor enlarges text. */
.cadence-edition .closing {
  z-index:7;display:flex;box-sizing:border-box;
  min-height:100dvh;
  padding-top:max(96px,env(safe-area-inset-top));
  padding-bottom:0;
}
.cadence-edition .closing-inner {
  display:flex;flex-direction:column;justify-content:space-between;
  gap:clamp(12px,2.6svh,var(--g-lg));
}
.cadence-edition .closing-top {
  grid-template-columns:1.61803398875fr 1fr;
  gap:var(--g-xl);align-items:center;
}
.cadence-edition .closing .display {
  font-size:clamp(44px,min(6.4vw,9svh),104px);
  max-width:15ch;line-height:1.04;
}
.cadence-edition .closing-actions {gap:clamp(14px,2.4svh,var(--g-lg));padding:0;}
.cadence-edition .closing-actions p {font-size:var(--g-copy);line-height:1.45;}
.cadence-edition .closing-word {flex-shrink:0;margin-block:0;}
.cadence-edition .closing-foot {border-top:0;padding-top:0;gap:var(--g-md);}
/* Share the overlap and the previous chapter's extra hold. It must never be
   taller than the live footer: otherwise the previous white box protrudes
   past the page's last element when iOS Chrome expands its toolbars. */
.cadence-edition .new-page {--closing-overlap:min(100svh,100dvh);}
.cadence-edition .process-new[data-process-scroll]:not(.is-static) {
  height:calc(100svh + var(--process-travel,2400px) + var(--closing-overlap));
}
.cadence-edition .process-new[data-process-scroll]:not(.is-static) + .closing {
  margin-top:calc(-1 * var(--closing-overlap));
}
@media(max-width:860px) {
  .cadence-edition .closing {padding-top:max(100px,env(safe-area-inset-top));}
  .cadence-edition .closing-top {grid-template-columns:1fr;gap:clamp(20px,3svh,var(--g-xl));}
  .cadence-edition .closing .display {font-size:clamp(38px,min(10.4vw,7.2svh),72px);max-width:none;}
  .cadence-edition .closing-actions p {font-size:16px;}
  .cadence-edition .closing-actions {gap:18px;}
  .cadence-edition .closing-foot {font-size:13px;gap:14px;}
}
