@media (max-width: 730px) {
  #mk-coal #home .arrival.founder-intro {
    display: block;
    padding: 0;
  }

  #mk-coal #home .founder-intro .arrival-panorama {
    width: 100%;
    max-width: none;
    margin: 0;
  }

  /* Keep the camera and the identity in consecutive rows of the same hero.
     Switching cameras affects the field of view, never the height of the scene. */
  #mk-coal #home[data-room-mode=arrival] .room-hero {
    --mobile-scene-height: max(46svh, 56.25cqw);
    display: grid;
    grid-template: var(--mobile-scene-height) auto / minmax(0, 1fr);
    height: auto;
    min-height: 0;
    max-height: none;
    aspect-ratio: auto;
    background: var(--mk-deep);
  }

  #mk-coal #home[data-room-mode=arrival] .room-hero::before,
  #mk-coal #home[data-room-mode=arrival] .room-hero::after {
    content: none;
  }

  #mk-coal #home[data-room-mode=arrival] .room-lens {
    position: relative;
    inset: auto;
    grid-area: 1 / 1;
    width: 100%;
    height: 100%;
    overflow: auto hidden;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
  }

  #mk-coal #home[data-room-mode=arrival] .window-scene {
    position: relative;
    inset: auto;
    width: max(100%, calc(var(--mobile-scene-height) * 16 / 9));
    height: 100%;
    transform: none;
  }

  /* Fit the complete 16:9 view in the same stage, with matching insets for
     the photographic background and the animated equipment drawn over it. */
  #mk-coal #home[data-room-mode=arrival] [data-room-camera=all] .window-scene {
    width: 100%;
  }

  #mk-coal #home[data-room-mode=arrival] [data-room-camera=all] .room-table {
    background-size: contain;
    background-position: center;
  }

  #mk-coal #home[data-room-mode=arrival] [data-room-camera=all] [data-map] {
    box-sizing: border-box;
    padding-block: max(0px, calc((var(--mobile-scene-height) - 56.25cqw) / 2));
  }

  #mk-coal #home[data-room-mode=arrival] .hero-profile {
    position: relative;
    inset: auto;
    grid-area: 2 / 1;
    display: grid;
    align-self: stretch;
    justify-items: start;
    gap: 6px;
    width: 100%;
    max-width: none;
    box-sizing: border-box;
    margin: 0;
    padding: 12px clamp(14px, 4.3vw, 25px) 10px;
    text-align: left;
    background: var(--mk-deep);
    transform: none;
  }

  #mk-coal #home[data-room-mode=arrival] .hero-profile::before {
    content: "";
    position: absolute;
    inset: auto 0 100%;
    height: 22px;
    background: linear-gradient(to top, var(--mk-deep), transparent);
    pointer-events: none;
  }

  #mk-coal #home .hero-profile-person {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
  }

  #mk-coal #home .hero-profile-avatar {
    --portrait-size: clamp(68px, 22.6vw, 88px);
    width: var(--portrait-size);
    height: var(--portrait-size);
    box-sizing: border-box;
  }

  #mk-coal #home .hero-profile-portrait {
    width: 100%;
    height: 100%;
  }

  #mk-coal #home .hero-profile-name {
    margin: 0;
    font-size: clamp(1.24rem, 5.3vw, 1.6rem);
    line-height: 1.1;
  }

  #mk-coal #home .hero-profile-roles {
    flex-direction: column;
    margin: 4px 0 0;
    font-size: .94rem;
    line-height: 1.22;
  }

  #mk-coal #home .hero-profile-roles span + span::before {
    content: none;
  }

  #mk-coal #home .hero-profile h1 {
    width: 100%;
    margin: 0;
    padding: 0;
    font-size: clamp(1.05rem, 5.25vw, 1.8rem);
    font-stretch: 82%;
    line-height: 1.12;
    text-align: left;
    text-wrap: balance;
  }

  #mk-coal #home .hero-tagline {
    font-size: .95rem;
    font-stretch: 86%;
  }

  #mk-coal #home .hero-profile-links {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 12px;
    margin: 0;
  }

  #mk-coal #home .hero-profile-links a {
    min-height: 44px;
  }

  #mk-coal #home[data-room-mode=arrival] .room-entry {
    --entry-inset: clamp(14px, 4.3vw, 25px);
    --entry-gap: 5px;
    position: relative;
    margin: 0;
    background: var(--mk-deep);
  }
}

@media (max-width: 360px) {
  #mk-coal #home .hero-profile-roles {
    letter-spacing: .055em;
  }

  #mk-coal #home .hero-profile-links {
    column-gap: 8px;
  }

  #mk-coal #home .hero-profile-links a {
    gap: .4em;
    padding-inline: 10px;
    font-size: .875rem;
  }
}

@media (min-width: 661px) and (max-width: 730px) {
  #mk-coal #home[data-room-mode=arrival] .room-camera {
    position: absolute;
    z-index: 6;
    top: 4px;
    right: 6px;
    display: flex;
    padding: 1px;
    border: 1px solid #637a80;
    border-radius: 5px;
    background: #101e25f2;
  }

  #mk-coal #home .room-camera button {
    min-width: 44px;
    min-height: 44px;
    padding: 5px 7px;
    border: 0;
    border-radius: 3px;
    color: var(--mk-text);
    background: transparent;
    font: 560 .875rem/1.2 var(--mk-sans);
    cursor: pointer;
  }

  #mk-coal #home .room-camera button[aria-pressed=true] {
    color: #17272c;
    background: var(--mk-accent);
  }

  #mk-coal #home .room-camera button:focus-visible {
    outline: 2px solid white;
    outline-offset: -3px;
  }
}

/* Keep both rows of scene controls in view below the full-height table. */
@media (max-width: 730px) and (max-height: 825px) {
  #mk-coal #home .hero-tagline {display: none}
}
