/* Scroll progress owns translation/opacity. Pointer springs own rotation/lift. */
@keyframes drift-through {
  0% { opacity: .06; translate: 0 36px; }
  18%, 78% { opacity: 1; translate: 0 0; }
  100% { opacity: .08; translate: 0 -28px; }
}
@keyframes surface-in {
  from { opacity: 0; translate: 0 17px; }
  to { opacity: 1; translate: 0 0; }
}
@media (prefers-reduced-motion:no-preference) {
  @supports (animation-timeline:view()) {
    :is(.section-heading,.project,.journey details,.tile,.panel,.row,.hero-copy) {
      animation: drift-through 1s linear both;
      animation-timeline: view(block);
    }
    .project:nth-child(2n), .tile:nth-child(2n), .journey details:nth-child(2n) {
      animation-range: cover -2% cover 102%;
    }
    .works {view-timeline:--works-in-view block}
    .works .project {animation-timeline:--works-in-view}
    .project {
      animation-name:drift-through,card-float;
      animation-duration:1s,6.8s;
      animation-timing-function:linear,cubic-bezier(.37,0,.63,1);
      animation-iteration-count:1,infinite;
      animation-fill-mode:both,both;
      animation-timeline:view(block),auto;
    }
    :is(.project,details,.tile,.panel,.row):focus-within { opacity:1; }
  }
  @supports not (animation-timeline:view()) {
    .section,.tile,.panel,.row { animation:surface-in .6s ease-out both; }
  }
  :is(.project,.journey details,.tile,.panel,.row),
  body :is(.project,.journey details,.tile,.panel,.row):is(:hover,:active,:focus-within) {
    position:relative; isolation:isolate;
    transform:perspective(800px) translateY(var(--lift,0px)) rotateX(var(--rx,0deg)) rotateY(var(--ry,0deg));
    transition:border-color .25s, box-shadow .35s;
  }
  :is(.project,.journey details,.tile,.panel,.row)::after {
    content:""; position:absolute; inset:0; border-radius:inherit; pointer-events:none;z-index:2;
    background:radial-gradient(ellipse at var(--light-x,50%) var(--light-y,50%),#afffdf27,transparent 64%);
    opacity:var(--shine,0);
  }
  :is(.project,.journey details,.tile,.panel,.row):hover { border-color:#7cbba599; }
  .project .more {transition:rotate .65s cubic-bezier(.22,1.3,.3,1); }
  .project:hover .more,.project:focus-visible .more {rotate:90deg;}
  @supports (interpolate-size:allow-keywords) {
    .journey {interpolate-size:allow-keywords}
    .journey details::details-content {block-size:0;opacity:0;overflow:clip;transition:block-size .45s cubic-bezier(.22,1,.36,1),opacity .32s,content-visibility .45s allow-discrete;}
    .journey details[open]::details-content {block-size:auto;opacity:1}
  }
  .hero-copy > * { animation:surface-in .82s cubic-bezier(.16,1,.3,1) backwards; }
  .hero-copy h1 {animation-delay:.07s}
  .hero-copy .role {animation-delay:.15s}
  .hero-copy .primary {animation-delay:.22s}
}
@media (prefers-reduced-motion:reduce) {
  :is(.project,.journey details,.tile,.panel,.row):hover {transform:none}
}

