body { isolation: isolate; }
.film-backdrop { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; background: #060a10; }
.film-backdrop :is(picture,img,video,canvas) { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.film-backdrop :is(canvas,video) { visibility: hidden; }
.film-backdrop .has-frame { visibility: visible; }
.film-backdrop::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgb(3 9 17 / 74%), rgb(5 17 25 / 39%) 78%),
              linear-gradient(0deg, rgb(2 7 13 / 42%), transparent 48%);
}
.page-hero, .workflow { background: transparent; }
.page-index .hero-explore a { pointer-events: auto; }
.page-index .about-mark { opacity: .54; }
.page-contact .footer-word { color: #748b95; }
@media (max-width: 650px) {
  .page-index .hero-explore { grid-template-columns: 1fr 1fr; gap: 10px; }
  .page-index .hero-explore > a { display: inline-flex; align-items: center; min-height: 44px; padding-top: 8px; }
  .page-index .hero-explore > .upwork-proof { grid-column: 1 / -1; justify-content: flex-start; }
  .page-index .about-mark { width: 50%; right: 0; top: 6%; height: 32%; }
}
@media (max-width: 650px) {
  .page-index .hero-explore a { font-size: .81rem; line-height: 1.35; }
}

/* Keep the tint above the outgoing still so its color matches the arriving page. */
.film-backdrop .film-handoff.shown { animation: film-dissolve var(--handoff-duration, 240ms) ease-in-out both; }
@keyframes film-dissolve { from { opacity: 0; } to { opacity: 1; } }

/* The portion outside a photo's reveal stays open to the fixed film layer. */
@media (scripting: enabled) {
  .frame-reveal:not(.media-entrance), .work-art:not(.media-entrance),
  .page-video .hero-photo:not(.photo-enter) { visibility: hidden; }
}
.waiting-for-photo { visibility: hidden; }

/* An intentional pull at the top can return to the previous category. */
html { overscroll-behavior-y: contain; }
#page-end { scroll-margin-top: 50vh; }
@media (max-width:650px) {
  .site-header nav.open { max-height: calc(100dvh - 92px); overflow-y: auto; overscroll-behavior: contain; }
}
