.set-story {
  --set-progress: 0;
  position: relative;
}
.set-sticky {
  background: white;
}
@media (prefers-reduced-motion: no-preference) {
  .set-scroll-page::after {
    content: "";
    display: block;
    height: clamp(340px, 55svh, 600px);
  }
  /* Keep the following content against the logo band while the set fills. */
  .set-scroll-page > .set-page-content {
    position: sticky;
    top: var(--set-inset, 0px);
  }
  .set-page-content :is(section[id], h2[id]):not(.set-story) {
    scroll-margin-top: var(--set-anchor-shift, 0px);
  }
}
.set-layout {
  display: grid;
  width: min(1240px, calc(100% - 2 * clamp(24px, 3.5vw, 64px)));
  grid-template-columns: minmax(0, .69fr) minmax(0, 1.31fr);
  align-items: start;
  gap: clamp(22px, 3vw, 50px);
  padding-block: clamp(10px, 1.8vh, 19px) 8px;
}
.set-layout .actions { margin-top: 26px; }
.set-layout h1 { font-size: clamp(48px, 4.9vw, 66px); }
.set-view { min-width: 0; }
.set-stage {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  height: clamp(310px, min(48vw, 68svh), 570px);
  border-radius: 15px;
  background: linear-gradient(to bottom, #b4c3c9, #d6e1e4 50%, #e4eaef);
}
#set-poster, #set-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
#set-poster { object-fit: contain; }
#set-canvas { display: block; }
#set-canvas[hidden] { display: none; }

.set-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 12px; }
.set-hint { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--blue-deep); font-weight: 600; }
.set-hint>span:first-child { font-size: 17px; }
.hint-hand,.set-story:not(.set-ready) .set-foot,.set-story:not(.set-ready) .set-controls { display: none; }
.set-reduced .hint-scroll,.set-reduced .set-hint>span:first-child { display: none; }
.set-reduced .hint-hand { display: inline; }
.progress-track { width: 16%; max-width: 82px; border-radius: 2px; height: 3px; background: #d9e6ed; overflow: hidden; }
.progress-track i { display: block; height: 100%; background: var(--blue); transform-origin: left; transform: scaleX(var(--set-progress)); }
.set-controls { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 9px; }
.set-controls button {
  appearance: none; border: 1px solid transparent; border-radius: 5px; padding: 6px 10px;
  background: #f2f6f9; color: #40586b; font: inherit; font-size: 13px; font-weight: 560; line-height: 1.45; cursor: pointer;
}
.set-controls button:hover { background: #e3edf4; color: var(--ink); }
.set-controls button.active { border-color: #bfd4e4; color: #21537a; background: #e3f0f8; }

.set-layout > .hero-copy {
  min-width: 0;
  align-self: start;
  padding-block: clamp(28px, 5.5vh, 62px);
}
.client-proof {
  border-block: 1px solid var(--line);
  background: white;
}
.client-proof-inner {
  display: grid;
  width: min(1240px, calc(100% - 2 * clamp(24px, 3.5vw, 64px)));
  grid-template-columns: minmax(170px, .29fr) minmax(0, 1fr);
  align-items: center;
  column-gap: clamp(24px, 4vw, 64px);
  padding-block: clamp(16px, 1.5vw, 24px);
}
.client-proof .eyebrow { align-self: end; font-size: 11px; }
.client-proof h2 {
  grid-column: 1;
  align-self: start;
  margin: 5px 0 0;
  font-size: clamp(22px, 2.2vw, 32px);
  line-height: 1.12;
  letter-spacing: -.04em;
}
.client-logos {
  grid-column: 2;
  grid-row: 1 / 3;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px clamp(16px, 2vw, 30px);
  padding: 0;
  margin: 0;
  list-style: none;
}
.client-logos li { display: grid; place-items: center; }
.client-logos img {
  width: 100%;
  max-width: 138px;
  height: clamp(34px, 3.1vw, 46px);
  object-fit: contain;
  filter: grayscale(1);
  opacity: .78;
}
@media (hover: hover) {
  .client-logos img:hover { filter: grayscale(0); opacity: 1; }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .client-logos img { transition: filter .18s ease, opacity .18s ease; }
}












@media (min-width: 1100px) {
  .set-layout h1 { font-size: clamp(46px, 3.6vw, 52px); }
}
@media (max-width: 920px) {
  .set-layout { gap: 21px; grid-template-columns: minmax(0,.74fr) minmax(0,1.26fr); }
  .set-controls { gap: 3px; }
  .set-controls button { padding-inline: 7px; }
}
@media (max-width: 720px) {
  .set-layout { display: block; width: calc(100% - 28px); }
  .set-layout > .hero-copy { padding-block: 25px 0; }
  .client-proof-inner { display: block; width: calc(100% - 40px); padding-block: 18px; text-align: center; }
  .client-proof .eyebrow { justify-content: center; }
  .client-proof h2 { margin: 4px 0 12px; }
  .client-logos { gap: 10px 20px; }
  .set-layout .hero-copy { padding-inline: 6px; }
  .set-layout { padding-block: 0 10px; }
  .set-view { margin-top: 16px; }
  .set-layout h1 { font-size: clamp(39px,6.8vw,48px); margin: 9px 0 6px; line-height: 1.06; }
  .set-layout .intro { font-size: 15px; line-height: 1.48; max-width: 54ch; }
  .set-layout .eyebrow { font-size: 10px; }
  .set-layout .actions { margin-top: 13px; gap: 12px; }
  .set-layout .actions a { min-height: 39px; font-size: 12px; }
  .set-stage { height: clamp(255px, min(94vw, 49svh), 445px); }
  .set-foot { margin-top: 6px; }
  .set-hint { font-size: 12px; }
  .set-controls { margin-top: 5px; gap: 3px; }
  .set-controls button { font-size: 12px; padding: 6px; }




}
@media (max-width: 480px) {
  .client-logos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 22px; }
  .client-logos img { height: 30px; }
  .set-layout .actions { gap: 9px; }
  .set-layout .button { padding-inline: 12px; }
  .set-controls button { font-size: 11px; }

}
@media (max-width: 720px) and (max-height: 680px) {
  .set-layout { gap: 12px; }
  .set-layout h1 { font-size: 36px; }
  .set-stage { height: clamp(210px,38svh,252px); }
}
@media (max-height: 480px) and (min-aspect-ratio: 3/2) {
  .set-layout { grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr); gap: 16px; }
  .set-layout { padding-block: 6px; }
  .set-stage { height: 53svh; }
  .set-layout h1 { font-size: 34px; margin-block: 7px; }
  .set-layout .intro { font-size: 13px; }
}
@media (max-width: 360px) and (max-height: 720px) {
  .set-layout { width: calc(100% - 22px); gap: 9px; }
  .set-layout h1 { font-size: 31px; margin-block: 6px; }
  .set-layout .intro { font-size: 13.5px; line-height: 1.4; }
  .set-layout .actions { margin-top: 8px; }
  .set-layout .actions a { min-height: 33px; padding-block: 6px; }
  .set-stage { height: clamp(185px, 34svh, 228px); }
  .set-controls button { padding: 5px; }
}

@media (min-width: 721px) and (max-height: 800px) {
  .set-foot { margin-top: 6px; }
  .set-controls { margin-top: 4px; }
}
@media (max-height: 480px) and (min-aspect-ratio: 3/2) {
  .set-layout { display: block; }
  .set-layout > .hero-copy { padding-block: 20px 8px; }
  .set-view { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 4px 12px; }
  .set-stage { grid-column: 1 / -1; }
  .set-controls { justify-content: end; }
  .set-foot, .set-controls { margin-top: 0; }
  .set-foot .progress-track { display: none; }
}
