/* The kitchen fills the frame from the moment the film cuts into the room. */
#space .hero-visual { clip-path: none; }
#space:focus { outline: none; }
body.room-at-opening .site-header.is-scrolled:not(.menu-open) {
  background: rgb(23 27 23 / calc(.97 - .85 * var(--room-nav-frame)));
  transition-property: padding;
}
/* A single backing for the links, with no change to their hit areas as it fades. */
@media (min-width: 741px) {
  body[data-page="home"] .header-actions { position: relative; isolation: isolate; }
  body[data-page="home"] .site-nav > a { font-size: .9375rem; }
  body.room-at-opening .header-actions::before {
    content: "";
    position: absolute;
    inset: -6px -10px;
    z-index: -1;
    pointer-events: none;
    background: #18201ac9;
    border: 1px solid #efe9d54f;
    border-radius: 2px;
    opacity: var(--room-nav-frame);
  }
  #space .hero-phase {
    top: 54%;
    transform: translateY(-50%);
    padding: 12px 7px;
    border-left: 1px solid #ded4b7;
    background: #18201ac9;
    color: #f6f4ea;
    font-size: .8125rem;
    line-height: 1.2;
    opacity: var(--room-phase-opacity, 1);
    pointer-events: none;
  }
}
@media (max-width: 740px) {
  #space .hero-bottom-right { display: none; }
  body.room-at-opening .header-actions [data-contact] {
    background: rgb(24 32 26 / calc(.78 * var(--room-nav-frame)));
  }
  body.room-at-opening .site-header:not(.menu-open) .menu-toggle::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: #18201ac9;
    border: 1px solid #efe9d54f;
    border-radius: 2px;
    opacity: var(--room-nav-frame);
  }
}

#space .hero-photo { inset: 0; will-change: auto; }
#space .hero-photo picture { display: block; height: 100%; }
#space .hero-photo img { object-position: var(--room-focus, 50%) 51%; }
#space.room-entering :is(.hero-copy, .hero-frame, .hero-shade, .hero-caption, .hero-bottom-right, .hero-phase) {
  animation: room-appear .55s ease-out both;
}
@keyframes room-appear { from { opacity: 0; } }

@media (min-width: 741px) {
  #space .hero-shade {
    background: linear-gradient(90deg, rgba(9,15,11,.48), rgba(9,15,11,.13) 45%, transparent 72%),
      linear-gradient(0deg, rgba(8,12,9,.35), transparent 42%);
  }
}
