html { scroll-behavior: auto; }
body.mosaic { padding-inline: 0; isolation: isolate; }
body.mosaic::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse at 70% 64%, light-dark(#e7e3ff, #211944), transparent 63%), var(--surface);
}
body.mosaic > .preview-header,
body.mosaic .preview-catalog,
body.mosaic > .studio-footer { width: min(calc(100% - 64px), 1320px); }
body.mosaic .preview-header {
  position: absolute;
  top: 0;
  inset-inline: 0;
  z-index: 3;
}
body.mosaic > main.sc-main { width: 100%; max-width: none; }
body.mosaic .motion-track.motion-active { height: calc(100svh + min(67svh, 585px)); }
.motion-stage {
  position: relative;
  top: 0;
  height: 100svh;
  min-height: 490px;
  isolation: isolate;
  overflow: hidden;
}
.motion-active .motion-stage { position: sticky; }
.motion-canvas, .motion-fallback { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.motion-canvas { z-index: -1; opacity: calc(1 - var(--catalog-arrival, 0)); }
.motion-stage.rendered .motion-fallback { display: none; }
.motion-fallback { display: flex; z-index: -2; gap: 3px; justify-content: center; align-items: end; padding: 0 5% 14vh; transform: rotate(-10deg); }
.motion-fallback img { width: min(27%, 280px); aspect-ratio: 1.59; height: auto; border-radius: 6px; object-fit: cover; box-shadow: 0 10px 40px #17122c30; }
.motion-copy {
  position: absolute;
  inset: clamp(112px, 19vh, 200px) 0 auto;
  width: min(calc(100% - 64px), 1320px);
  margin-inline: auto;
  pointer-events: none;
}
.motion-copy h1 {
  font-size: clamp(4.1rem, 10.3vw, 10.5rem);
  line-height: .86;
  letter-spacing: -.1em;
}
.motion-copy h1 span { display: inline-block; }
.motion-copy h1 .motion-accent { color: var(--ink-blue); margin-left: .035em; }
.motion-copy p { margin-top: 20px; color: var(--quiet); max-width: 34ch; line-height: 1.45; }
.motion-copy .motion-description, .motion-copy h1 span { will-change: transform,opacity; }
body.mosaic .motion-skip {
  position: absolute;
  left: max(32px, calc((100vw - 1320px) / 2));
  bottom: 27px;
  padding: .6rem .95rem;
  border-radius: 99px;
  background: var(--action);
  color: var(--action-text);
  font-weight: 650;
  font-size: .9rem;
  text-decoration: none;
}
body.mosaic .motion-skip:hover { filter: brightness(1.1); }
.motion-cue {
  opacity: calc(1 - var(--catalog-arrival, 0));
  position: absolute;
  right: max(32px, calc((100vw - 1320px) / 2));
  bottom: 34px;
  display: none;
  align-items: center;
  gap: 11px;
  color: var(--quiet);
  font-size: .79rem;
}
.motion-stage.rendered .motion-cue { display: flex; }
.motion-cue i { width: 44px; height: 2px; background: var(--line); }
.motion-cue i::before { content: ""; display: block; height: 100%; background: var(--ink-blue); width: calc(var(--progress, 0) * 100%); }
body.mosaic .preview-catalog { min-height: calc(100svh - 64px); margin-inline: auto; padding: 0 0 4px; }
.preview-catalog .studio-tile {
  --tile-edge: light-dark(#3b33ce33, #c6b9ff40);
  --tile-shadow: light-dark(#2417581c, #08061069);
}
.preview-catalog .studio-tile:has(a:focus-visible) { box-shadow: 0 0 0 1px var(--tile-edge); }
@media (hover: hover) and (pointer: fine) {
  .preview-catalog .studio-tile:hover {
    box-shadow: 0 0 0 1px var(--tile-edge), 0 9px 24px -10px var(--tile-shadow);
  }
}
.preview-catalog .studio-tile.is-touch-pressed { box-shadow: 0 0 0 1px var(--tile-edge); }
@media (prefers-reduced-motion: no-preference) {
  .preview-catalog .studio-tile {
    transition: scale 210ms cubic-bezier(.2,.7,.3,1), translate 260ms cubic-bezier(.2,.7,.3,1),
      box-shadow 260ms ease-out;
  }
  .preview-catalog .studio-tile.is-touch-pressed {
    scale: .985;
    transition-duration: 100ms;
  }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .preview-catalog .studio-tile:hover { translate: 0 -3px; }
  .preview-catalog .studio-tile :is(.studio-event, .studio-fence, .studio-books, .tile-art img) {
    transition: scale 420ms cubic-bezier(.2,.7,.3,1);
  }
  .preview-catalog .studio-tile:hover :is(.studio-event, .studio-fence, .studio-books, .tile-art img) {
    scale: 1.035;
  }
}
body.mosaic .motion-empty { background: none; color: var(--quiet); padding-inline: 0; }
@media (max-width: 650px) {
  body.mosaic > .preview-header, body.mosaic .preview-catalog, body.mosaic > .studio-footer, .motion-copy { width: calc(100% - 36px); }
  .motion-copy { top: max(108px, 17vh); }
  .motion-copy h1 { font-size: clamp(3.1rem, 14vw, 6.3rem); }
  .motion-copy p { margin-top: 13px; }
  .motion-fallback { padding-bottom: 21vh; }
  body.mosaic .motion-skip { left: 18px; bottom: 20px; }
  .motion-cue { right: 18px; bottom: 28px; }
}
@media (max-height: 540px) and (orientation: landscape) {
  .motion-stage { min-height: 340px; }
  .motion-copy { top: 82px; }
  .motion-copy h1 { font-size: clamp(3.5rem, 8vw, 6rem); }
  .motion-copy p { margin-top: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  body.mosaic .motion-track.motion-active { height: auto; }
  .motion-active .motion-stage, .motion-stage { position: relative; height: 76svh; min-height: 450px; }
  .motion-stage.rendered .motion-cue { display: none; }
}
