/* Scroll movement is layered on the existing reveal/hover transforms. */
.motion-enabled :is(.services, .projects, .team, .contact, .references) {
  position: relative;
}
.motion-enabled .hero-interior {
  translate: 0 var(--hero-drift, 0px);
  scale: 1.07;
}
.motion-enabled .hero-facade img {
  translate: 0 var(--hero-photo-drift, 0px);
  scale: 1.16;
}
.motion-enabled .team-image > img {
  translate: none;
  scale: 1;
  transform: none;
}
.motion-enabled .project-image img {
  translate: 0 calc(var(--section-travel, 0) * -18px);
  scale: 1.12;
}
.motion-enabled .services-heading h2 {
  translate: calc(var(--section-travel, 0) * -14px) 0;
}
.motion-enabled .project-title-row h2 {
  translate: calc(var(--section-travel, 0) * 12px) 0;
}
.motion-enabled .team-copy h2 {
  translate: 0 calc(var(--section-travel, 0) * -15px);
}
.motion-enabled .contact h2 {
  translate: calc(var(--section-travel, 0) * -15px) 0;
}
.motion-enabled :is(.services, .projects, .team, .contact) .small-line {
  scale: calc(.8 + var(--section-progress, .5) * .65) 1;
  transform-origin: left center;
}
.scroll-rule, .scroll-progress { display: none; pointer-events: none; }
.motion-enabled .scroll-rule {
  display: block;
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  overflow: hidden;
  z-index: 2;
}
.scroll-rule::before {
  content: '';
  display: block;
  width: 100%;
  height: 100%;
  background: var(--yellow);
  transform-origin: left center;
  scale: calc(.05 + var(--section-progress, 0) * .95) 1;
}
.contact .scroll-rule::before { background: var(--ink); }
.motion-enabled .scroll-progress {
  display: block;
  position: fixed;
  inset: 0 0 auto;
  height: 3px;
  background: var(--yellow);
  transform-origin: left center;
  scale: var(--page-progress, 0) 1;
  z-index: 40;
}

/* The paint trail is very light and disappears in less than a second. */
.brush-trail {
  display: none;
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 80;
}
.brush-cursor {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 34px;
  height: 40px;
  pointer-events: none;
  z-index: 81;
  contain: layout style;
}
.brush-cursor svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(0 1px 1px #0005);
}
.brush-cursor .brush-tip { fill: var(--yellow); }
.brush-cursor.is-link .brush-tip { fill: #fff36b; }
@media (hover: hover) and (pointer: fine) {
  .brush-active .brush-trail, .brush-active .brush-cursor { display: block; }
  .brush-active, .brush-active body, .brush-active body * { cursor: none !important; }
  .brush-active :is(input, textarea, [contenteditable="true"]) { cursor: text !important; }
}
@media (max-width: 600px) {
  .motion-enabled .hero-interior { scale: 1.04; }
  .motion-enabled .team-image > img { translate: none; }
  .motion-enabled .project-image img { translate: 0 calc(var(--section-travel, 0) * -12px); }
  .motion-enabled :is(.services-heading, .project-title-row, .contact) h2 {
    translate: calc(var(--section-travel, 0) * -6px) 0;
  }
  .motion-enabled .team-copy h2 { translate: 0 calc(var(--section-travel, 0) * -8px); }
}
@media (prefers-reduced-motion: reduce) {
  .scroll-rule, .scroll-progress, .brush-cursor, .brush-trail { display: none !important; }
}

.cursor-roller{display:none}.brush-cursor.is-link .cursor-brush{display:none}.brush-cursor.is-link .cursor-roller{display:block}
