.flow-lip { display: none; }
.flow-slot + .flow-slot > .page-section { border-top: 1px solid var(--page-rule); }
@media (prefers-reduced-motion: no-preference) {
  [data-handoffs] main { overflow-x: clip; }
  [data-handoffs] .flow-slot {
    position: relative; isolation: isolate; display: flow-root;
    margin-bottom: calc(-1 * var(--runout, 0px));
    pointer-events: none;
  }
  [data-handoffs] .flow-slot::after { display: block; height: var(--runout, 0px); content: ""; }
  [data-handoffs] .flow-slot > :first-child {
    position: sticky; top: var(--pin-top, 0px); pointer-events: auto;
  }
  [data-handoffs] .flow-slot > .page-section { background-color: var(--ink); }
  [data-handoffs].case-story .flow-slot > .page-section,
  [data-handoffs] .flow-slot > .work { background-color: var(--paper); }
  [data-handoffs] .flow-slot > .stats { background-color: #191620; }
  [data-handoffs] :is(.case-showcase,.service-catalog,.engagement,.office-grid,.page-hero-grid) { transform-origin: 50% 80%; }
  [data-handoffs] :is(.section-heading,.contact-inner,.page-section-heading,.page-cta-inner) {
    translate: var(--entry-x,0px) var(--entry-y,0px);
  }
  [data-handoffs] .flow-slot > :is(.services,.process,.about,.contact)::before { display: none; }
  [data-handoffs] .flow-lip {
    --face: var(--ink); --back: #524461;
    display: block; position: absolute; z-index: 1; inset: auto 0 calc(100% - 1px); height: clamp(38px,8vh,80px);
    pointer-events: none; transform-origin: bottom; transform: scaleY(0);
  }
  [data-handoffs] .flow-lip i { position: absolute; inset: 0; background: var(--face); }
  [data-handoffs] .flow-lip i:first-child { background: var(--back); clip-path: polygon(0 70%, 28% 34%, 100% 85%, 100% 100%, 0 100%); }
  [data-handoffs] .flow-lip i:last-child { clip-path: polygon(0 70%, 28% 46%, 100% 86%, 100% 100%, 0 100%); }
  .home[data-handoffs] .flow-lip { height: clamp(82px,22vh,206px); }
  [data-handoffs] .stats > .flow-lip { --face: #191620; --back: #625177; height: clamp(22px,4vh,44px); }
  [data-handoffs] .work > .flow-lip, .case-story[data-handoffs] .page-section > .flow-lip {
    --face: var(--paper); --back: #b6a3bf;
  }
  .home[data-handoffs] .work > .flow-lip { height: clamp(42px,8.5vh,90px); }
  .home[data-handoffs] .work > .flow-lip i { border-radius: 50% 50% 0 0 / 100% 100% 0 0; clip-path: none; }
  .home[data-handoffs] .work > .flow-lip i:last-child { top: 5%; }
  .home[data-handoffs] .services > .flow-lip { --face: #16131f; --back: #695879; }
  .home[data-handoffs] .services > .flow-lip i:first-child { clip-path: polygon(0 73%,79% 2%,100% 77%,100% 100%,0 100%); }
  .home[data-handoffs] .services > .flow-lip i:last-child { clip-path: polygon(0 73%,79% 2%,65% 64%,100% 77%,100% 100%,0 100%); }
  .home[data-handoffs] .process > .flow-lip { --face: #eae5f1; --back: #a897bb; }
  .home[data-handoffs] .process > .flow-lip i:first-child {
    background: repeating-linear-gradient(0deg, transparent 0 13px,#ece5f640 13px 14px),var(--back);
    clip-path: polygon(0 78%,23% 3%,100% 83%,100% 100%,0 100%);
  }
  .home[data-handoffs] .process > .flow-lip i:last-child { clip-path: polygon(0 78%,23% 3%,32% 55%,100% 83%,100% 100%,0 100%); }
  .home[data-handoffs] .about > .flow-lip { --face: #15121c; --back: #695775; }
  .home[data-handoffs] .about > .flow-lip i:first-child { clip-path: polygon(0 4%,49% 73%,100% 15%,100% 100%,0 100%); }
  .home[data-handoffs] .about > .flow-lip i:last-child { clip-path: polygon(0 4%,45% 89%,100% 15%,100% 100%,0 100%); }
  .home[data-handoffs] .contact > .flow-lip { --face: #d6c9ef; --back: #aa94c6; }
  .home[data-handoffs] .contact > .flow-lip i:first-child { clip-path: polygon(0 92%,49% 1%,100% 91%,100% 100%,0 100%); }
  .home[data-handoffs] .contact > .flow-lip i:last-child { clip-path: polygon(0 92%,49% 1%,64% 64%,100% 91%,100% 100%,0 100%); }
  .inner-page[data-handoffs] .page-cta > .flow-lip i:last-child { background: linear-gradient(115deg,#e5d5ff,#cebaff 62%,#d1f8ed); }
  @media (max-width: 640px) {
    .home[data-handoffs] .flow-lip { height: clamp(55px,12svh,105px); }
    .home[data-handoffs] .stats > .flow-lip { height: 20px; }
    .home[data-handoffs] .work > .flow-lip { height: 46px; }
  }
}
.art-transfer {
  position: fixed; z-index: 4; inset: 0 auto auto 0; width: 320px; height: 194px;
  margin: -97px 0 0 -160px; transform-origin: center; pointer-events: none;
}
.art-transfer > img, .transfer-drawing { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; backface-visibility: hidden; }
.transfer-drawing { display: grid; place-items: center; perspective: 600px; }
.transfer-drawing .model-stack { width: 70%; --pitch: 35deg; --roll: -13deg; --gap: 11px; }
.in-transfer { opacity: var(--transfer-alpha,1) !important; }
@media (prefers-reduced-motion: no-preference) {
  /* The service image crosses this low, gently curved seam on its own layer. */
  .home[data-handoffs] .services > .flow-lip { height: clamp(44px,8vh,86px); }
  .home[data-handoffs] .services > .flow-lip i:is(:first-child,:last-child) { clip-path: none; border-radius: 92% 0 0 0 / 100% 0 0 0; }
  .home[data-handoffs] .services > .flow-lip i:last-child { top: 5%; }
  /* The two photographs form the leading edge of the studio section. */
  .home[data-handoffs] .about {
    padding-top: 0; background: linear-gradient(to bottom,transparent 0 200px,#15121c 305px);
  }
  .home[data-handoffs] .about > .flow-lip { visibility: hidden; }
  .home[data-handoffs] .about > .shell { display: flex; flex-direction: column; width: 100%; max-width: none; }
  .home[data-handoffs] .about .section-heading { order: 1; margin: clamp(34px,5.3vw,82px) auto 0; width: min(calc(100% - 2 * var(--gutter)),var(--max-width)); }
  .home[data-handoffs] .about .office-grid { grid-template-columns: .94fr 1.06fr; gap: 0; opacity: 1; transform: none; }
  .home[data-handoffs] .about .office { min-height: clamp(365px,43vw,620px); }
  .home[data-handoffs] .contact > .flow-lip i:first-child { clip-path: polygon(13% 100%,16% 46%,65% 3%,74% 100%); background: linear-gradient(132deg,#c0e5d9,#efedf1); }
  .home[data-handoffs] .contact > .flow-lip i:last-child { clip-path: polygon(0 21%,52% 78%,100% 24%,100% 100%,0 100%); background: linear-gradient(155deg,#c0aad5,#d6c9ef 65%); }
  @media (max-width: 640px) {
    .home[data-handoffs] .about .office { min-height: clamp(265px,40svh,390px); min-width: 0; padding: 15px 11px; }
    .home[data-handoffs] .about .office p { font-size: clamp(22px,6.4vw,39px); }
    .home[data-handoffs] .about .office h3 { font-size: 14px; }
    .home[data-handoffs] .about .office address { font-size: 11px; }
  }
}
