/* The calibrated Chisel view and its poster use the same cover crop. */
html.site,
.site body {
  min-height: 100%;
  overflow: auto;
  background: #101318;
}
.jobsite,
.shade,
.landmarks {
  position: fixed;
  inset: 0;
}
.jobsite {
  background: #263139 url('media/first-light/sunrise.jpg') center / cover no-repeat;
}
.jobsite video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.jobsite canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0;
}
.jobsite canvas.ready {
  opacity: 1;
}
.shade {
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(4, 8, 13, 0.53),
    transparent 25%,
    transparent 48%,
    rgba(4, 8, 13, 0.34) 69%,
    rgba(4, 8, 13, 0.89) 100%
  );
}
.site-shell {
  position: relative;
  z-index: 2;
  min-height: 100svh;
  padding: max(28px, env(safe-area-inset-top)) clamp(24px, 4.4vw, 88px)
    max(22px, env(safe-area-inset-bottom));
  display: grid;
  grid-template-rows: auto 1fr auto;
  pointer-events: none;
}
.masthead,
.site-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.masthead h1 {
  margin: 0;
  text-transform: uppercase;
  font-weight: 400;
  font-size: clamp(12px, 1.02vw, 17px);
  letter-spacing: 0.46em;
  text-shadow: 0 1px 12px #18202b;
}
.tour-controls {
  display: flex;
  align-items: center;
  gap: 9px;
  pointer-events: auto;
}
.tour-controls[hidden] {
  display: none;
}
.waypoint-picker,
.playback,
.landmark {
  color: var(--ink);
  border: 1px solid rgba(250, 242, 222, 0.35);
  background: rgba(10, 18, 23, 0.72);
}
.waypoint-picker {
  position: relative;
  display: inline-flex;
  align-items: center;
  border-radius: 24px;
}
.waypoint-picker::after {
  content: '';
  position: absolute;
  right: 14px;
  width: 5px;
  height: 5px;
  border: solid var(--sun);
  border-width: 0 1px 1px 0;
  transform: translateY(-2px) rotate(45deg);
  pointer-events: none;
}
.waypoint-picker select {
  appearance: none;
  font: inherit;
  font-size: 12px;
  color: inherit;
  border: 0;
  max-width: 165px;
  min-height: 42px;
  padding: 0 33px 0 15px;
  border-radius: inherit;
  cursor: pointer;
  background: transparent;
}
.waypoint-picker option {
  background: var(--night);
  color: var(--ink);
}
.playback {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.playback-symbol {
  width: 9px;
  height: 12px;
  border-left: 2px solid currentColor;
  border-right: 2px solid currentColor;
}
.playback.is-paused .playback-symbol {
  width: 0;
  height: 0;
  border: solid transparent;
  border-width: 6px 0 6px 9px;
  border-left-color: currentColor;
  transform: translateX(1px);
}
.landmarks {
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}
.landmark {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 10px 5px 7px;
  border-radius: 14px;
  font:
    400 11px/1.3 Montserrat,
    sans-serif;
  letter-spacing: 0.015em;
  white-space: nowrap;
  cursor: pointer;
  pointer-events: auto;
  will-change: transform;
}
.landmark[hidden] {
  display: none;
}
.landmark::before {
  content: '';
  width: 6px;
  height: 6px;
  border: 1px solid var(--sun);
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(255, 199, 102, 0.12);
}
.landmark::after {
  content: '';
  position: absolute;
  height: 15px;
  width: 1px;
  background: var(--sun);
  top: 100%;
  left: 10px;
}
.landmark:hover,
.playback:hover,
.waypoint-picker:hover {
  border-color: var(--sun);
}
.site :is(button, select):focus-visible {
  outline: 2px solid var(--sun);
  outline-offset: 3px;
}
.invitation {
  align-self: end;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin: 0 0 clamp(23px, 5.2vh, 65px);
}
.headline {
  margin: 0;
  font-size: clamp(40px, 4.75vw, 94px);
  font-weight: 300;
  line-height: 1.015;
  letter-spacing: -0.055em;
  text-shadow: 0 1px 18px rgba(4, 8, 13, 0.18);
}
.invitation .ask {
  pointer-events: auto;
  min-width: 0;
  flex: 0 1 clamp(310px, 28vw, 530px);
}
.invitation form {
  border-color: rgba(250, 242, 222, 0.62);
}
.invitation #access input::placeholder,
.invitation .status {
  color: #dedbce;
}
.site-foot {
  font-size: clamp(10px, 0.77vw, 14px);
  font-weight: 400;
  color: #b4bac1;
}
@media (max-width: 700px) {
  .site-shell {
    padding: max(19px, env(safe-area-inset-top)) 20px max(18px, env(safe-area-inset-bottom));
  }
  .masthead h1 {
    font-size: 11px;
    letter-spacing: 0.36em;
  }
  .tour-controls {
    gap: 5px;
  }
  .waypoint-picker select {
    min-height: 38px;
    font-size: 10px;
    padding-left: 11px;
    padding-right: 25px;
    max-width: 128px;
  }
  .playback {
    width: 38px;
    height: 38px;
  }
  .invitation {
    display: grid;
    gap: 23px;
    margin-bottom: 12px;
  }
  .invitation .ask {
    width: min(100%, 450px);
  }
  .headline {
    font-size: clamp(38px, 8.6vw, 56px);
  }
  .landmark {
    font-size: 10px;
  }
}
@media (max-height: 470px) and (min-width: 600px) {
  .site-shell {
    padding-top: 12px;
    padding-bottom: 10px;
  }
  .headline {
    font-size: 32px;
  }
  .invitation {
    margin-bottom: 8px;
  }
}
.landmark::after {
  left: var(--pin-x, 10px);
  height: var(--stem, 15px);
}
