/* All motion is an enhancement of an ordinary, vertically scrolling document. */
[data-reading-progress] {
  position: fixed;
  z-index: 18;
  inset: 0 0 auto;
  height: 2px;
  background: var(--red);
  transform: scaleX(var(--reading-fraction,0));
  transform-origin: left center;
  pointer-events: none;
}
body:has([data-reading-progress])::before { content: none; }
:where([data-scroll-scene]) { --scene-progress: .5; --scene-entry: 1; --scene-exit: 0; }
[data-slide-tween] {scroll-snap-type:none !important;scroll-behavior:auto !important}

/* At rest on a small or reduced-motion screen, each photograph belongs to its own step. */
.edition-body #inspection-process {
  background: #10272c;
  color: #f6f7ef;
}
.protocol .protocol-heading { align-items: baseline; }
.edition-body #inspection-process .protocol-heading .edition-link {
  color: #f6f7ef;
  text-decoration-color: #ff7952;
}
.protocol .protocol-photo { display: none; }
.protocol .protocol-layout { display: block; }
.edition-body #inspection-process ol {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: clamp(1rem,2.5vw,3rem);
}
.edition-body #inspection-process li {
  display: block;
  border: 0;
  list-style: none;
  padding: 0;
  min-width: 0;
}
.edition-body #inspection-process li::before { content: none; }
.protocol .step-inline { overflow: hidden; }
.protocol .step-inline img { width: 100%; aspect-ratio: 1.5; object-fit: cover; }
.protocol .step-copy { padding-block: 1.3rem; }
.protocol .step-copy::before {
  content: counter(steps,decimal-leading-zero);
  display: block;
  margin-bottom: .75rem;
  color: #ffa27e;
  font: 600 .82rem/1 Inter,sans-serif;
  font-variant-numeric: tabular-nums;
  letter-spacing: .08em;
}
.edition-body #inspection-process h3 {
  color: #fafbf4;
  font: 700 clamp(1.9rem,3.2vw,3.9rem)/.98 var(--display);
  letter-spacing: -.018em;
  margin: 0 0 .8rem;
  overflow-wrap: anywhere;
}
.edition-body #inspection-process li p { color: #d5e1dc; max-width: 39ch; font-size: 1.03rem; }
.protocol .protocol-photo .step-glass, .protocol .step-frame { position:absolute; inset:0; }
.protocol .step-frame {
  overflow: hidden;
  animation: none;
  clip-path: inset(0 calc(100% - var(--exposure,0) * 100%) 0 0);
}
.protocol .step-frame:first-child { clip-path: none; }
.protocol .step-frame img { width:100%; height:100%; object-fit:cover; }
.protocol .step-jumps {
  display:flex; position:absolute; bottom:.8rem; left:.8rem; right:.8rem; width:fit-content; max-width:calc(100% - 1.6rem);
  background:#10272cf5; overflow-x:auto; box-shadow:0 1px 8px #10272c45;
}
.protocol .step-jumps a {
  flex:none; min-width:47px; min-height:44px; display:grid; place-items:center;
  font:600 .83rem/1 Inter,sans-serif; font-variant-numeric:tabular-nums; letter-spacing:.045em;
  border-bottom:3px solid transparent; border-top:3px solid transparent; color:white; text-decoration:none;
}
.protocol .step-jumps a[aria-current=step] { border-bottom-color:#ff754f; background:#31494c; }
.protocol .step-jumps a:is(:focus-visible,:hover) { color:white; background:#455d5f; }
.protocol .step-jumps a:focus-visible { outline-offset:-4px; outline-color:white; }

@media (prefers-reduced-motion:no-preference) {
  .scroll-enabled .field-hero .field-stage {
    transform: translate3d(0,calc(var(--scene-exit) * 15%),0);
  }
  .scroll-enabled .hero-shade::after {
    content:""; position:absolute; inset:0; background:#10272c;
    opacity:calc(var(--scene-exit) * .45);
  }
  .scroll-enabled .field-copy h1 span:last-child {
    translate:calc(var(--scene-exit) * 3vw) 0;
  }
  .scroll-enabled #pest-guide .atlas-plate img {
    scale: calc(1.025 + var(--scene-progress) * .19);
    translate: 0 calc((.5 - var(--scene-progress)) * 3%);
  }
  .scroll-enabled .atlas-photographs::before,
  .scroll-enabled .atlas-photographs::after {
    content:""; position:absolute; z-index:2; top:0; bottom:0; width:10%;
    pointer-events:none; background:var(--paper);
    transform:scaleX(calc(1 - var(--scene-entry)));
  }
  .scroll-enabled .atlas-photographs::before { left:0; transform-origin:left; }
  .scroll-enabled .atlas-photographs::after { right:0; transform-origin:right; }
  .scroll-enabled .section-heading { position:relative; padding-top:1.15rem; }
  .scroll-enabled .atlas .section-heading::before {
    content:""; position:absolute; top:0; left:0; width:100%; height:1px; background:#9fa9a4;
    transform:scaleX(var(--scene-entry)); transform-origin:left;
  }
  .scroll-enabled #business-intro {
    isolation:isolate; overflow:clip;
    clip-path:inset(0 calc((1 - var(--scene-entry)) * 7%) 0);
  }
  .scroll-enabled #business-intro .feature-photo img {
    transform:translate3d(0,calc((var(--scene-progress) - .5) * 8%),0) scale(calc(1.13 - var(--scene-entry) * .06));
  }
  .scroll-enabled #business-intro .feature-copy {
    translate: 0 calc((.5 - var(--scene-progress)) * 2.5rem);
  }
  .scroll-enabled #equipment-intro .feature-photo {
    position:relative; isolation:isolate; background:#f7f8f3;
  }
  .scroll-enabled #equipment-intro .feature-photo img {
    mix-blend-mode:multiply;
    transform:translate3d(calc((1 - var(--scene-entry)) * 12%),0,0) scale(calc(.86 + var(--scene-entry)*.14));
  }
  .scroll-enabled #equipment-intro .feature-photo::after {
    content:""; position:absolute; bottom:0; left:0; right:0; height:3px; background:var(--red);
    transform-origin:left; transform:scaleX(var(--scene-entry)); pointer-events:none;
  }
  .scroll-enabled footer .foot-contact { position:relative; }
  .scroll-enabled footer .foot-contact::after {
    content:""; position:absolute; left:0; right:0; bottom:-1px; height:2px;
    background:#e78162; transform:scaleX(var(--scene-entry)); transform-origin:left;
  }
  .scroll-enabled footer .foot-contact a { translate:0 calc((1 - var(--scene-entry)) * 1.15rem); }

  .protocol.is-pinned .protocol-layout { display:grid; grid-template-columns:1.13fr .87fr; align-items:start; gap:clamp(2.5rem,6vw,7rem); }
  .protocol.is-pinned .protocol-photo {
    position:sticky; top:5vh; display:block; height:clamp(250px,54svh,565px); min-height:0;
    overflow:hidden; background:#1d3538; isolation:isolate; z-index:2;
  }
  .protocol.is-pinned .step-inline { display:none; }
  .edition-body #inspection-process.is-pinned ol { display:block; border-bottom:1px solid #82978e70; }
  .edition-body #inspection-process.is-pinned li {
    display:flex; flex-direction:column; justify-content:center; min-height:clamp(10rem,29svh,22rem);
    padding:.4rem .25rem .4rem 1.55rem; border-top:1px solid #82978e70;
    scroll-margin-top:22vh;
  }
  .protocol.is-pinned .step-copy { padding-block:1rem; }
  .protocol.is-pinned .step-copy::after {
    content:""; position:absolute; left:0; top:1.25rem; bottom:1.25rem; width:3px;
    background:var(--accent); transform:scaleY(.07); transform-origin:top;
    transition:transform 300ms cubic-bezier(.2,.65,.21,1);
  }
  .protocol.is-pinned .is-current .step-copy::after { transform:scaleY(1); }
}
@media (max-width:40.625em) {
  .edition-body #inspection-process ol { grid-template-columns:minmax(0,1fr); gap:1.35rem; }
  .protocol .step-inline img { aspect-ratio:1.8; }
  .edition-body #inspection-process h3 { font-size:clamp(1.95rem,8vw,3.55rem); }
  .protocol.is-pinned .protocol-layout { display:block; }
  .protocol.is-pinned .protocol-photo {
    top:0; height:clamp(158px,31svh,345px);
    border-bottom:4px solid #10272c; box-shadow:0 6px 0 #10272c;
  }
  .protocol .step-jumps { left:.65rem; bottom:.6rem; }
  .edition-body #inspection-process.is-pinned li {
    min-height:clamp(10rem,27svh,17rem); padding-left:1.2rem;
    scroll-margin-top:calc(clamp(158px,31svh,345px) + 1rem);
  }
  .protocol.is-pinned .step-copy::before { margin-bottom:.6rem; }
  .protocol.is-pinned .step-copy::after { top:1.1rem; bottom:1.1rem; }
}
