/* Opening typography is driven by the first styled paint. Everything settles
   into its ordinary layout, including when the script or observer is absent. */
@media screen and (prefers-reduced-motion:no-preference) {
  main {
    --type-easing:cubic-bezier(.28,.13,.24,1);
  }
  .hero-copy > .eyebrow,
  .hero-copy h1 > .title-line,
  .hero > div > h1:not(#hero-title),
  .product > .overline,
  .product > h1,
  .product > .finish {
    --entry-opacity:.36;
    animation:kegyeleti-type-in 1.65s var(--type-easing) var(--entry-delay,0ms) backwards;
  }
  .hero-copy .title-line:first-child,.product > h1 { --entry-delay:90ms; }
  .hero-copy .title-line:last-child,.product > .finish { --entry-delay:280ms; }

  .text-arriving {
    animation:kegyeleti-type-in 1.4s var(--type-easing) var(--entry-delay,0ms) backwards;
  }
  :is(h2,h3).text-arriving { animation-duration:1.6s; }
  a.text-arriving { --entry-opacity:.76; }
  .collection-body .text-arriving,.reading-links a.text-arriving {
    --entry-offset:-.65rem;
  }
  @keyframes kegyeleti-type-in {
    from { opacity:var(--entry-opacity,.52); transform:translateX(var(--entry-offset,-1rem)); }
    to { opacity:1; transform:translateX(0); }
  }

  /* Keyboard navigation always presents the destination at full contrast. */
  .text-arriving:focus-within,.collection-card:focus-within .text-arriving,
  .hero-copy > a:focus,.hero > div > a:focus { animation:none; }
}

@media screen and (prefers-reduced-motion:no-preference) {
  .scroll-panel:not(.packing-sequence > figure),
  .packing-sequence > .scroll-panel > :first-child {
    transition:translate .34s cubic-bezier(.22,.72,.2,1),
      box-shadow .34s ease, border-color .25s ease, background-color .2s ease;
  }
  .scroll-panel:is(.panel-raised,:focus-within):not(.packing-sequence > figure,.collection-featured),
  .packing-sequence > .scroll-panel:is(.panel-raised,:focus-within) > :first-child {
    translate:0 -.3rem;
    box-shadow:0 0 0 1px #b9bab479, 0 .8rem 1.45rem -.65rem #050606ab;
  }
  @media (max-width:680px) {
    .scroll-panel:is(.panel-raised,:focus-within):not(.packing-sequence > figure,.collection-featured),
    .packing-sequence > .scroll-panel:is(.panel-raised,:focus-within) > :first-child {
      translate:0 -.22rem;
    }
  }
}

@media screen and (prefers-reduced-motion:no-preference) {
  .collection-photo.photo-arriving img {
    animation:collection-photo-rise 760ms cubic-bezier(.22,.74,.25,1) both;
  }
  .collection-photo.photo-arriving::after {
    content:"";
    position:absolute;
    inset:0 auto auto 0;
    width:42%;
    height:2px;
    background:linear-gradient(90deg,transparent,#b1b2ab43 28%,#c4c6be 65%,#dedfd8 79%,#bec0b849 92%,transparent);
    box-shadow:0 1px 5px #e0e0d822;
    pointer-events:none;
    animation:collection-edge-light 860ms cubic-bezier(.31,.65,.42,1) both;
  }
  @keyframes collection-photo-rise {
    from { transform:translateY(.55rem) }
    to { transform:translateY(0) }
  }
  @keyframes collection-edge-light {
    0% { transform:translateX(-100%); opacity:0 }
    16%,76% { opacity:.58 }
    100% { transform:translateX(240%); opacity:0 }
  }
}
