/* The introduction shares the foreground plinth with the controls. The
   photographic terrain and its canvas keep the same 16:9 coordinate system. */
#mk-coal #home .hero-profile {
  color: var(--mk-text);
  text-align: left;
  z-index: 4;
  pointer-events: none;
}
#mk-coal #home .hero-profile-person {
  display: flex;
  align-items: center;
  gap: 17px;
}
#mk-coal #home .hero-profile-avatar {
  display: block;
  flex: none;
  overflow: hidden;
  border: 1px solid var(--mk-accent);
  border-radius: 50%;
}
#mk-coal #home .hero-profile-portrait {
  display: block;
  flex: none;
  box-sizing: border-box;
  width: 92px;
  height: 92px;
  transform: scale(1.65);
  transform-origin: 50% 0;
  object-fit: cover;
  object-position: 50% 4%;
}
#mk-coal #home .hero-profile-name {
  margin: 0;
  color: var(--mk-text);
  font: 600 1.55rem/1.14 var(--mk-sans);
  letter-spacing: -.035em;
}
#mk-coal #home .hero-profile-roles {
  display: flex;
  flex-wrap: wrap;
  column-gap: .85em;
  overflow: hidden;
  margin: 6px 0 0;
  color: var(--mk-accent);
  font: 600 1rem/1.2 var(--mk-sans);
  font-variant-caps: all-small-caps;
  letter-spacing: .075em;
}
#mk-coal #home .hero-profile-roles span + span {
  position: relative;
}
/* The separator sits in the column gap, outside the label when it wraps. */
#mk-coal #home .hero-profile-roles span + span::before {
  content: "·";
  position: absolute;
  right: 100%;
  width: .85em;
  text-align: center;
}
#mk-coal #home .hero-profile h1 span { display: block; }
#mk-coal #home .hero-profile h1 {
  margin: 0;
  color: var(--mk-text);
  font: 600 clamp(1.8rem, 2.55vw, 2.45rem)/1.05 var(--mk-sans);
  letter-spacing: -.045em;
  text-wrap: balance;
}
#mk-coal #home .hero-profile-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
#mk-coal #home .hero-profile-links a {
  pointer-events: auto;
  display: inline-flex;
  gap: .65em;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: 44px;
  padding: 7px 15px;
  border: 1px solid #8eaaa9;
  border-radius: 4px;
  color: var(--mk-text);
  background: #11232a;
  font: 600 .94rem/1.2 var(--mk-sans);
  text-decoration: none;
}
#mk-coal #home .hero-profile-links a::after {
  content: "";
  width: .38em;
  height: .38em;
  border: solid currentColor;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg) translateY(-.12em);
}
#mk-coal #home .hero-profile-links a:hover {
  color: var(--mk-accent);
  border-color: currentColor;
}
#mk-coal #home .hero-profile-links a:focus-visible {
  outline: 3px solid var(--mk-accent);
  outline-offset: 3px;
}
#mk-coal #home[data-room-mode=inspect] .hero-profile {
  display: none;
  position: absolute;
  opacity: 0;
}
#mk-coal #home[data-room-mode=inspect] .hero-profile-links a { pointer-events: none; }
@media (min-width: 731px) {
  #mk-coal #home .arrival.founder-intro {
    display: block;
    padding: 0;
  }
  #mk-coal #home[data-room-mode=arrival] .arrival-panorama {
    width: 100%;
    max-width: none;
    margin: 0;
    --hero-inset: clamp(20px, 2.7vw, 52px);
  }
  #mk-coal #home[data-room-mode=arrival] .room-hero {
    isolation: isolate;
    height: calc(100svh - var(--mast-height) - 48px);
    min-height: 265px;
    width: 100%;
    aspect-ratio: auto;
    background: #0d1a20;
  }
  #mk-coal #home[data-room-mode=arrival] .room-lens .window-scene {
    top: auto;
    bottom: clamp(55px, 7svh, 86px);
    transform: none;
  }
  #mk-coal #home[data-room-mode=arrival] .room-lens {
    mask-image: linear-gradient(to top, transparent 0, transparent clamp(55px, 7svh, 86px), black calc(clamp(55px, 7svh, 86px) + 50px));
  }
  #mk-coal #home[data-room-mode=arrival] .room-hero::after {
    content: "";
    position: absolute;
    z-index: 1;
    inset: auto 0 0;
    height: 48%;
    background: linear-gradient(to right, #0c1a21 1%, #0c1a21ef 26%, #0c1a21c9 42%, transparent 72%);
    mask-image: linear-gradient(to top, black 0%, black 58%, #000b 73%, transparent 100%);
    pointer-events: none;
  }
  #mk-coal #home .hero-profile {
    position: absolute;
    left: var(--hero-inset, clamp(20px, 2.7vw, 52px));
    bottom: clamp(17px, 2.5vh, 32px);
    display: grid;
    gap: clamp(9px, 1.2vh, 15px);
    width: min(48%, 575px);
    padding: 0;
  }
  #mk-coal #home[data-room-mode=arrival] .room-entry {
    position: absolute;
    inset: auto var(--hero-inset) clamp(17px, 2.5vh, 32px) auto;
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    gap: 10px;
    z-index: 5;
    margin: 0;
    background: transparent;
  }
  #mk-coal #home[data-room-mode=arrival] .room-entry > .motion,
  #mk-coal #home[data-room-mode=arrival] .arrival-tools > summary {
    position: static;
    float: none;
    max-width: none;
    margin: 0;
  }
}
@media (min-width: 731px) and (max-aspect-ratio: 11/10) {
  #mk-coal #home[data-room-mode=arrival] .room-lens {
    height: calc(100% - 175px);
    overflow: auto hidden;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    mask-image: linear-gradient(to top, transparent, black 65px);
  }
  #mk-coal #home[data-room-mode=arrival] .room-lens .window-scene {
    position: relative;
    inset: auto;
    height: 100%;
    width: auto;
    min-width: 100%;
    transform: none;
  }
  #mk-coal #home[data-room-mode=arrival] [data-room-camera=all] .window-scene {
    width: 100%;
    height: auto;
    top: 50%;
    transform: translateY(-50%);
  }
  #mk-coal #home[data-room-mode=arrival] .room-camera {
    display: flex;
    position: absolute;
    z-index: 6;
    top: 12px;
    right: 12px;
    padding: 2px;
    border: 1px solid #637a80;
    border-radius: 5px;
    background: #101e25f2;
  }
  #mk-coal #home .room-camera button {
    min-width: 44px;
    min-height: 44px;
    padding: 5px 9px;
    border: 0;
    border-radius: 3px;
    background: transparent;
    color: var(--mk-text);
    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; }
  #mk-coal #home .hero-profile { width: min(68%, 560px); }
}
@media (min-width: 731px) and (max-height: 500px) {
  #mk-coal #home[data-room-mode=arrival] .room-lens .window-scene {
    left: auto;
    right: 0;
    width: max(64%, calc((100svh - var(--mast-height) - 48px) * 1.77778));
    top: 42%;
    bottom: auto;
    transform: translateY(-50%);
  }
  #mk-coal #home[data-room-mode=arrival] .room-lens { mask-image: none; }
  #mk-coal #home[data-room-mode=arrival] .room-hero::after {
    height: 100%;
    mask-image: none;
    background: linear-gradient(to right, #0d1a20 24%, #0d1a20f7 35%, transparent 58%);
  }
  #mk-coal #home .hero-profile { width: 36%; gap: 7px; }
  #mk-coal #home[data-room-mode=arrival] .room-location { left: auto; right: 12px; top: 7px; }
  #mk-coal #home .hero-profile-person { gap: 10px; }
  #mk-coal #home .hero-profile-name { font-size: 1.4rem; }
  #mk-coal #home .hero-profile h1 { font-size: 1.48rem; }
  #mk-coal #home .hero-profile-links { gap: 6px; }
  #mk-coal #home .hero-profile-links a { padding-inline: 9px; }
}

/* Shared motion and control-room layers */
:root {
  --motion-fast: 140ms;
  --motion-normal: 240ms;
  --motion-long: 480ms;
  --motion-ease: cubic-bezier(.2,.8,.2,1);
}
#mk-coal .room-lens .window-scene { transform-origin: 0 0; }
#mk-coal .room-lens .room-table { background-image: none; }
#mk-coal .room-table::before, #mk-coal .boot-grid {
  content: ""; position: absolute; inset: 0; pointer-events: none;
}
#mk-coal .room-table::before { background: url(dispatch-coast.webp) center / 100% 100% no-repeat; }
#mk-coal .room-table > canvas { position: relative; }
#mk-coal .boot-grid {
  background: linear-gradient(90deg, #74d7e540 1px, transparent 1px),
              linear-gradient(#74d7e540 1px, transparent 1px);
  background-size: 4% 6%;
  clip-path: polygon(1% 47%, 34% 39%, 99% 46%, 99% 86%, 87% 95%, 0 78%);
}
@keyframes mk-grid { 0% {opacity:0} 40% {opacity:1} 100% {opacity:0} }
@keyframes mk-on { from {opacity:0} to {opacity:1} }
@media (prefers-reduced-motion:no-preference) {
  html[data-room-boot] #mk-coal .boot-grid { animation:mk-grid var(--motion-long) var(--motion-ease) both; }
  html[data-room-boot] #mk-coal .room-table::before { animation:mk-on var(--motion-long) var(--motion-ease) var(--motion-fast) backwards; }
  html[data-room-boot] #mk-coal [data-map] { animation:mk-on var(--motion-long) var(--motion-ease) var(--motion-normal) backwards; }
  html[data-room-boot] #mk-coal :is(.hero-profile,.room-entry,.room-camera) { animation:mk-on var(--motion-normal) var(--motion-ease) var(--motion-long) backwards; }
}
#mk-coal .nav-underline {
  pointer-events:none; position:absolute; left:0; top:0; height:2px; width:1px;
  transform-origin:left top; background:var(--mk-accent);
  transition:transform var(--motion-normal) var(--motion-ease);
}
#mk-coal .chapter-next .next-arrow, #mk-coal .about-intents a::after,
#mk-coal #home .hero-profile-links a::after {
  transition:transform var(--motion-fast) var(--motion-ease);
}
#mk-coal .chapter-next:is(:hover,:focus-visible) .next-arrow {transform:translateX(4px)}
#mk-coal #home .hero-profile-links a:is(:hover,:focus-visible)::after {transform:translateX(4px) rotate(45deg) translateY(-.12em)}
#mk-coal .about-intents a {position:relative}
#mk-coal .about-intents h4 {padding-right:18px}
#mk-coal .about-intents a::after {content:"";position:absolute;right:16px;top:22px;width:6px;height:6px;border:solid var(--mk-accent);border-width:1.5px 1.5px 0 0;transform:rotate(45deg)}
#mk-coal .about-intents a:is(:hover,:focus-visible)::after {transform:translateX(4px) rotate(45deg)}
#mk-coal button:is(:hover,:focus-visible) {outline:1px solid var(--mk-accent);outline-offset:1px}
#mk-coal button:focus-visible {outline-width:2px;outline-offset:2px}
#mk-coal .motion-number {position:relative}
#mk-coal .motion-number > span {opacity:0}
#mk-coal .motion-number::after {content:attr(data-reading) / "";position:absolute;inset:0 auto auto 0;white-space:nowrap;pointer-events:none}
html[data-motion-still] #mk-coal *,html[data-motion-still] #mk-coal *::after,html[data-motion-still] #mk-coal *::before {transition:none!important;animation:none!important}
@media(prefers-reduced-motion:reduce){
 #mk-coal *,#mk-coal *::after,#mk-coal *::before {transition:none!important;animation:none!important}
}
#mk-coal .boot-grid {opacity:0;z-index:1}
#mk-coal .room-lens {transition:transform var(--motion-normal) var(--motion-ease)}
#mk-coal #home[data-story-view="0"] .room-table {transform:scale(1.065);transform-origin:28% 62%}
#mk-coal #home[data-story-view="2"] .room-table {transform:scale(1.035);transform-origin:28% 62%}
#mk-coal #home .room-table {transition:transform var(--motion-normal) var(--motion-ease)}

#mk-coal #home .hero-tagline {
  margin: 0;
  color: var(--mk-text);
  font: 480 1rem/1.35 var(--mk-sans);
}
@media (min-width: 1100px) {
  #mk-coal #home .hero-profile {width: min(76%, 1060px)}
  #mk-coal #home .hero-profile h1 {width: fit-content}
}
