/*ARC SCROLL*/

[data-arc-scroll-transition] svg {
  display: block;
  width: 100%;
  height: 100%;
}

[data-arc-scroll-transition] path {
  fill: currentcolor;
}

/*MARQUEE LOGOS*/

/* Optional cards styling for the Webflow Designer */
:is(.wf-design-mode, .wf-editor) [data-wavy-marquee-list] {
  overflow: scroll;
  max-width: 100vw;
}

/*SCRAMBLE MENU*/

/* the letters are made by initScrambleMenu (they are not in the Designer) */
.scramble-menu__char {
  display: inline-block;
  opacity: 0;
}

/* the small square before the logo blinks once a second */
.scramble-menu__dot {
  animation: scramble-menu-blink 1s steps(1) infinite;
}

@keyframes scramble-menu-blink {
  50% {
    opacity: 0;
  }
}

/* the current page's big link (Webflow adds .w--current) */
.scramble-menu__link.w--current,
.scramble-menu__link.w--current:hover {
  color: #4488c7;
}

@media (prefers-reduced-motion: reduce) {
  .scramble-menu__dot {
    animation: none;
  }
}

/*MENU BAR HIDDEN WHILE A LIGHTBOX IS OPEN*/

/* the project video and member lightboxes add html.lightbox-open while open,
   so the menu bar never covers their close button */
.scramble-menu__bar {
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

html.lightbox-open .scramble-menu__bar {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* HOME HERO DRIFT: while the page scrolls past the hero, its card layer moves at half
   speed (Webflow can't tie an animation to scroll position natively). The browser runs it
   in step with the scroll, so the cards don't shake. Browsers without support just scroll */
@supports (animation-timeline: view()) {
  .dome-grid {
    view-timeline: --dome-hero block;
  }

  .dome-grid__collection {
    animation: dome-hero-drift linear both;
    animation-timeline: --dome-hero;
    animation-range: exit 0% exit 100%;
  }

  @keyframes dome-hero-drift {
    from {
      transform: translate3d(0, 0, 0);
    }

    to {
      transform: translate3d(0, 50svh, 0);
    }
  }
}

/* CURTAIN: [data-curtain] blocks open top to bottom the first time they scroll into view
   (initCurtain adds .is-revealed). Webflow has no clip-path control, so it lives here */
html.curtain-ready [data-curtain]:not(.is-revealed) {
  clip-path: inset(0 0 100% 0);
}

html.curtain-ready [data-curtain] {
  clip-path: inset(0 0 0 0);
  /* open: a real inset, so the browser can animate to it */
  transition: clip-path 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (prefers-reduced-motion: reduce) {
  html.curtain-ready [data-curtain] {
    transition: none;
  }
}
