.opening-reel { position: relative; background: #2484f2; }
.title-window { display: block; overflow: clip; padding: .12em .16em .24em .1em; margin: -.12em -.16em -.24em -.1em; }
.title-window > * { display: block; width: fit-content; }
.gallery-spread { display: contents; }
.work { position: relative; isolation: isolate; overflow-x: clip; background: var(--sky-tint); }
/* Chunky ink-outlined pixel bank stepping from bright sky-blue hero into airy ice-white gallery. */
.pixel-bank {
  --edge: polygon(0 48%, 9% 48%, 9% 31%, 14% 31%, 14% 16%, 21% 16%, 21% 31%, 35% 31%, 35% 48%, 51% 48%, 51% 66%, 59% 66%, 59% 81%, 71% 81%, 71% 61%, 79% 61%, 79% 42%, 88% 42%, 88% 26%, 94% 26%, 94% 40%, 100% 40%, 100% 100%, 0 100%);
  position: relative; height: clamp(36px, 4.3vw, 72px); overflow: clip; background: #2484f2;
}
.pixel-bank::before, .pixel-bank::after { content: ""; position: absolute; inset: 0; background: var(--ink); clip-path: var(--edge); }
.pixel-bank::after { background: var(--sky-tint); transform: translateY(3.5px); }
@media (prefers-reduced-motion: no-preference) {
  @media (min-height: 560px) {
    .opening-reel { --hold: clamp(56px, 10svh, 110px); margin-bottom: calc(-1 * var(--hold)); }
    .opening-reel::after { content: ""; display: block; height: var(--hold); }
    .opening-reel .hero { position: sticky; top: min(0px, calc(100svh - var(--shot-height,100svh))); }
    .opening-reel:has(:focus-visible) .hero { position: relative; top: auto; }
  }
  .lookbook[open] .lookbook-grid > * { animation: sheet-in .65s var(--ease-expo) backwards; }
  .lookbook-grid > :nth-child(2) { animation-delay: 75ms; }
  .lookbook-grid > :nth-child(3) { animation-delay: 150ms; }
  .lookbook-grid > :nth-child(4) { animation-delay: 225ms; }
  @keyframes sheet-in { from { transform: translateY(18px) scale(.97); opacity: 0; } }
}

/* Scroll reveal: studio.js enables .reveal-on only when IntersectionObserver is active
   and reduced motion is off, so content always renders cleanly without JS or animations. */
.reveal-on [data-reveal]:not(.is-revealed) {
  opacity: 0;
  translate: 0 28px;
  scale: .985;
}
.reveal-on [data-reveal="line"]:not(.is-revealed) {
  opacity: 0;
  translate: 0 106%;
  scale: 1;
}
.reveal-on [data-reveal="left"]:not(.is-revealed) {
  opacity: 0;
  translate: -24px 0;
  scale: .99;
}
.reveal-on [data-reveal="right"]:not(.is-revealed) {
  opacity: 0;
  translate: 24px 0;
  scale: .99;
}
.reveal-on [data-reveal="stage"]:not(.is-revealed) {
  opacity: 0;
  translate: 0 24px;
  scale: .965;
}
.reveal-on [data-reveal].is-revealing {
  transition:
    opacity .85s var(--ease) var(--reveal-delay, 0ms),
    translate 1s var(--ease-expo) var(--reveal-delay, 0ms),
    scale 1s var(--ease-expo) var(--reveal-delay, 0ms);
  will-change: opacity, translate, scale;
}
.reveal-on [data-reveal="line"].is-revealing {
  transition:
    opacity .75s var(--ease) var(--reveal-delay, 0ms),
    translate .95s var(--ease-expo) var(--reveal-delay, 0ms);
}
.reveal-on [data-reveal="stage"].is-revealing {
  transition:
    opacity .95s var(--ease) var(--reveal-delay, 0ms),
    translate 1.1s var(--ease-expo) var(--reveal-delay, 0ms),
    scale 1.1s var(--ease-expo) var(--reveal-delay, 0ms);
}
@media (max-width: 760px) {
  .reveal-on [data-reveal="left"]:not(.is-revealed),
  .reveal-on [data-reveal="right"]:not(.is-revealed) {
    translate: 0 22px;
  }
}
@media (prefers-reduced-motion: reduce), print {
  .reveal-on [data-reveal] {
    opacity: 1 !important;
    translate: none !important;
    scale: 1 !important;
    transition: none !important;
  }
}
